Remsi icon indicating copy to clipboard operation
Remsi copied to clipboard

ffmpeg command fails parsing filterchain

Open stendarr opened this issue 1 year ago • 0 comments

Running

ffmpeg -i video.mp4 -hide_banner -af silencedetect=n=-50dB:d=1 -f null - 2>&1 | python remsi.py > command

I get this command

ffmpeg -i video.mp4 -vf "select='between(t,0,78.329342)+between(t,79.44[...]2673.798957)',setpts=N/FRAME_RATE/TB" -af "aselect='between(t,0,78.3293[...]en(t,5400.830227,5473.798957)',asetpts=N/SR/TB" outfile_video.mp4

which fails with

[AVFilterGraph @ 0x5650ca71c140] No option name near 'between(t,0,78.32[...]
[AVFilterGraph @ 0x5650ca71c140] Error parsing a filter description around: ,setpts=N/FRAME_RATE/TB"
[AVFilterGraph @ 0x5650ca71c140] Error parsing filterchain '"select='between(t,0,7[...]+between(t,5400.830227,5473.798957)',setpts=N/FRAME_RATE/TB"' around: ,setpts=N/FRAME_RATE/TB"
[vost#0:0/libx264 @ 0x5650caabc080] Error initializing a simple filtergraph
Error opening output file outfile_video.mp4.
Error opening output files: Invalid argument

Do you have an idea where I could look for more information or what to do?

I've shortened the large selection blocks with [...] for better readability.

stendarr avatar Sep 21 '24 18:09 stendarr