09.09.2021, 10:48
Have you tried something like: (can't test atm., so the following is untested)
explanation:
loads the source two times (index: 0 and index: 1), while one of the input (index: 0) is delayed and video is disabled (-vn) for the first input (index: 0) and audio is disabled (-an) for the second input (index: 1); not sure if the disabling of the audio/video is necessary, might be covered by the mapping later.
is used to avoid 'Too many packets buffered for output stream'
does the video encoding
does the audio channel changes and the reencodeing
"[0:1][0:2]": take stream with index 1 and index 2 from the source with index 0
"join=inputs=2:channel_layout=stereo": join these inputs using a stereo layout
"[a]": output as "a"
Map the first stream form the second input (index: 0) and 'a' to the output.
drops meta data from the inputs
sets the output frame rate that should be set on the output
tells ffmpeg to set no subtitle track as default track (no clue why you use it here)
sets the output.
Like I wrote I'm not sure whether the '-an' and '-vn' are necessary, so the above might still not work, but should give a hint how to do it.
Cu Selur
ffmpeg -ss 00:00:04.0 -i "INPUT.mxf" -vn -i "INPUT.mxf" -an -max_muxing_queue_size 1024 -c:v libx265 -pix_fmt yuv420p10le -x265-params "aq-mode=2:repeat-headers=0:strong-intra-smoothing=1:bframes=4:b-adapt=2:frame-threads=0:colorprim=bt2020:transfer=arib-std-67:colormatrix=bt2020nc:hdr10_opt=0:hdr10=0:chromaloc=0" -crf:v 18 -preset:v slow -filter_complex "[0:1][0:2]join=inputs=2:channel_layout=stereo[a]" -c:a libfaac -q:a 100 -map 1:0 -map "[a]" -map_metadata -1 -r 25 -default_mode infer_no_subs "OUTPUT.MP4"
-ss 00:00:04.0 -i "INPUT.mxf" -vn -i "INPUT.mxf" -anf"
-max_muxing_queue_size 1024
-c:v libx265 -pix_fmt yuv420p10le -x265-params "aq-mode=2:repeat-headers=0:strong-intra-smoothing=1:bframes=4:b-adapt=2:frame-threads=0:colorprim=bt2020:transfer=arib-std-67:colormatrix=bt2020nc:hdr10_opt=0:hdr10=0:chromaloc=0" -crf:v 18 -preset:v slow
-filter_complex "[0:1][0:2]join=inputs=2:channel_layout=stereo[a]" -c:a libfaac -q:a 100
"[0:1][0:2]": take stream with index 1 and index 2 from the source with index 0
"join=inputs=2:channel_layout=stereo": join these inputs using a stereo layout
"[a]": output as "a"
-map 1:0 -map "[a]"
-map_metadata -1
-r 25
-default_mode infer_no_subs
"OUTPUT.MP4"
Like I wrote I'm not sure whether the '-an' and '-vn' are necessary, so the above might still not work, but should give a hint how to do it.
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.