You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i wan to add pre-render action to do encode video file in work path but when i set input and output encode i think don't work
this is my postrender action in json :
this problem not in older version , i think this error maybe in new version action encode or downloading file with add unique name like in image , how to fix? you have any option to dont do add unique title in first name of files in work path ?
please help what to do ?
The text was updated successfully, but these errors were encountered:
this is because add this line in
packages/nexrender-core/src/tasks/download.js
in new version add this line to add random name
if comment maybe work
` /* if asset doesnt have a file name, make up a random one /
if (protocol === 'data' && !asset.layerName) {
destName = Math.random().toString(36).substring(2);
} else {
destName = path.basename(asset.src)
destName = destName.indexOf('?') !== -1 ? destName.slice(0, destName.indexOf('?')) : destName;
/ ^ remove possible query search string params ^ /
destName = decodeURI(destName) / < remove/decode any special URI symbols within filename */
can you add option in actions or action-encode to when we use input , can find new file name in input in relative path workpath and do
like this :
in assets
{
"type": "video", "layerName": "mediaHolder_02.mp4", "composition": "media02",
"src": "[...........93701_b209470a3db39ee3a0c5fa2e8fb166ee/userProjects/4752_flyermotion-white/350599/1080x1920-6745e9fde9aa4.mp4
}
in action encode
like when we add assets in action encode input
"input": "1080x1920-6745e3e1b8331.mp4"
action can find assets with new name and can do action
"input": "dawr312131jkadd-1080x1920-6745e3e1b8331.mp4"
and or have feature in assets we can add params
{
"type": "video",
"layerName": "mediaHolder_02.mp4",
"composition": "media02",
"src": "[............../93701_b209470a3db39ee3a0c5fa2e8fb166ee/userProjects/4752_flyermotion-white/350599/1080x1920-6745e9fde9aa4.mp4]"
"params": { "-ss": "0", "-to": "4.3263012354489"}
}
that auto use action encode to trim video automaticaly
i wan to add pre-render action to do encode video file in work path but when i set input and output encode i think don't work
this is my postrender action in json :
"assets": [ { "src": "[https://dl.viditor.net/uploads/users/93701_b209470a3db39ee3a0c5fa2e8fb166ee/userProjects/4752_flyermotion-white/350599/1080x1920-6745e9fde9aa4.mp4](https://l.ble.ir/?l=https%3A%2F%2Fdl.viditor.net%2Fuploads%2Fusers%2F93701_b209470a3db39ee3a0c5fa2e8fb166ee%2FuserProjects%2F4752_flyermotion-white%2F350599%2F1080x1920-6745e9fde9aa4.mp4&spec=eyJzcCI6IjE5NDc3MDQxMTAiLCJjcCI6IjE5NDc3MDQxMTAifQ%3D%3D)", "type": "video", "layerName": "mediaHolder_02.mp4", "composition": "media02" }],"actions": { "prerender": [ { "module": "@nexrender/action-encode", "input": "1080x1920-6745e3e1b8331.mp4", "output": "copy_1080x1920-6745e3e1b8331.mp4", "params": { "-ss": "0", "-to": "4.3263012354489", "-acodec": "aac", "-ab": "128k", "-ar": "44100", "-vcodec": "libx264", "-r": "25" } },
this is my error :
this problem not in older version , i think this error maybe in new version action encode or downloading file with add unique name like in image , how to fix? you have any option to dont do add unique title in first name of files in work path ?
please help what to do ?
The text was updated successfully, but these errors were encountered: