run ffmpeg command: -loop 1 -framerate 2 -i,input-file-0,-i,input-file-1,-i,input-file-2 -c:a libmp3lame -b:a 320k -filter_complex concat=n=2:v=0:a=1 -vcodec libx264 -bufsize 3M -filter:v scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2 -crf 18 -pix_fmt yuv420p -shortest -tune stillimage -t 13 cool-output-video. to expand it inside the function call but that causes an error as well as the commas are included in the command (which they shouldnt be) let ffmpegInputs=[ I've tried having only the inputs as a list, and using the. Error splitting the argument list: Option not found Unrecognized option 'i input-file-0 -i input-file-1 -i input-file-2'. I've tried to include multiple inputs in one line like so but it results in an error: For example to remux an MP4 file containing an H.264 stream to mpegts format with ffmpeg, you can use the command: ffmpeg -i INPUT.mp4 -codec copy -bsf:v. I've tried giving await n(myListArgs) a var containing a list of the same args but that does not work but this causes an error as it only runs the last var outputFIlename so this below does not work: let ffmpegArgs=('-loop', '1', I have it statically set to take three file inputs right now ( -i) but I need to have these inputs set dynamically for however many strings are inside the inputFileNames list. "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2",Īs you can see, the await n() command takes a list of args / vars to run. I am working on a ffmpeg wasm project and I have it working with this code: await n(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |