Maybe it would be better to try to figure out why ffmpeg is slower than ffmpeg.
Remuxing "Caras de la noticia ep1.ts"
vs.
with:
=> I suspect the thing that is slowing ffmpeg down is the bitstream filter
https://ffmpeg.org/ffmpeg-bitstream-filt...p4toannexb
(nowadays, that filter should even be added automatically: "Please note that this filter is auto-inserted for MPEG-TS (muxer mpegts) and raw H.264 (muxer h264) output formats. ")
Removing that from the call does not make a difference:
Neither does changing the thread count "-threads X" or removing the analysis/probe size "-analyzeduration 200M -probesize 200M".
adding "-vn -sn" to the audio extraction parts:
does speed it up somewhat.
=> no clue why ffmpeg is so much slower than tsMuxeR
Cu Selur
Remuxing "Caras de la noticia ep1.ts"
ffmpeg started...
starting 2023-11-20@14_52_26_9710_01_audio@14:53:04.632 - G:\Output\Caras de la noticia ep1.mkv
"F:\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -analyzeduration 200M -probesize 200M -i "G:\clips\ts_remux_test\Caras de la noticia ep1.ts" -r 25/1 -sn -vcodec copy -map_metadata -1 -metadata encoding_tool="Hybrid 2023.11.19.1" -bsf:v h264_mp4toannexb -f h264 "J:\tmp\Caras de la noticia ep1_1_2023-11-20@14_52_26_9710_05.264" -map 0:4 -y -acodec copy -map_metadata -1 "J:\tmp\iId_4_aid_485_2023-11-20@14_52_26_9710_04.eac3" -map 0:1 -y -acodec copy -map_metadata -1 "J:\tmp\iId_3_aid_484_2023-11-20@14_52_26_9710_03.eac3" -map 0:3 -y -acodec copy -map_metadata -1 "J:\tmp\iId_2_aid_483_2023-11-20@14_52_26_9710_02.mp2" -map 0:2 -y -acodec copy -map_metadata -1 "J:\tmp\iId_1_aid_482_2023-11-20@14_52_26_9710_01.mp2"
2023-11-20@14_52_26_9710_01_audio finished after 00:00:12.508
finished...
"F:\Hybrid\64bit\tsMuxeR.exe" "J:\tmp\tsmuxer_2023-11-20@14_52_48_2410_01_0.meta" "J:\tmp"
2023-11-20@14_52_48_2410_02_audio finished after 00:00:03.482
finished...
MUXOPT --no-hdmv-descriptors --new-audio-pes --demux --vbr --vbv-len=500
A_MP3, "G:\clips\ts_remux_test\Caras de la noticia ep1.ts", track=482
A_MP3, "G:\clips\ts_remux_test\Caras de la noticia ep1.ts", track=483
A_AC3, "G:\clips\ts_remux_test\Caras de la noticia ep1.ts", track=484
A_AC3, "G:\clips\ts_remux_test\Caras de la noticia ep1.ts", track=485
V_MPEG4/ISO/AVC, "G:\clips\ts_remux_test\Caras de la noticia ep1.ts"
=> I suspect the thing that is slowing ffmpeg down is the bitstream filter
https://ffmpeg.org/ffmpeg-bitstream-filt...p4toannexb
(nowadays, that filter should even be added automatically: "Please note that this filter is auto-inserted for MPEG-TS (muxer mpegts) and raw H.264 (muxer h264) output formats. ")
Removing that from the call does not make a difference:
ffmpeg started...
starting 2023-11-20@15_02_52_1210_01_audio@15:03:15.593 - G:\Output\Caras de la noticia ep1_new.mkv
"F:\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -analyzeduration 200M -probesize 200M -i "G:\clips\ts_remux_test\Caras de la noticia ep1.ts" -r 25/1 -sn -vcodec copy -map_metadata -1 -metadata encoding_tool="Hybrid 2023.11.19.1" "J:\tmp\Caras de la noticia ep1_new_1_2023-11-20@15_02_52_1210_05.264" -map 0:4 -y -acodec copy -map_metadata -1 "J:\tmp\iId_4_aid_485_2023-11-20@15_02_52_1210_04.eac3" -map 0:1 -y -acodec copy -map_metadata -1 "J:\tmp\iId_3_aid_484_2023-11-20@15_02_52_1210_03.eac3" -map 0:3 -y -acodec copy -map_metadata -1 "J:\tmp\iId_2_aid_483_2023-11-20@15_02_52_1210_02.mp2" -map 0:2 -y -acodec copy -map_metadata -1 "J:\tmp\iId_1_aid_482_2023-11-20@15_02_52_1210_01.mp2"
2023-11-20@15_02_52_1210_01_audio finished after 00:00:11.608
finished...
adding "-vn -sn" to the audio extraction parts:
ffmpeg started...
starting 2023-11-20@15_27_30_2210_01_audio@15:27:37.184 - G:\Output\Caras de la noticia ep1.mkv
"F:\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -analyzeduration 200M -probesize 200M -i "G:\clips\ts_remux_test\Caras de la noticia ep1.ts" -r 25/1 -an -sn -vcodec copy -map_metadata -1 -metadata encoding_tool="Hybrid 2023.11.19.1" -bsf:v h264_mp4toannexb -f h264 "J:\tmp\Caras de la noticia ep1_1_2023-11-20@15_27_30_2210_05.264" -map 0:4 -y -sn -vn -acodec copy -map_metadata -1 "J:\tmp\iId_4_aid_485_2023-11-20@15_27_30_2210_04.eac3" -map 0:1 -y -sn -vn -acodec copy -map_metadata -1 "J:\tmp\iId_3_aid_484_2023-11-20@15_27_30_2210_03.eac3" -map 0:3 -y -sn -vn -acodec copy -map_metadata -1 "J:\tmp\iId_2_aid_483_2023-11-20@15_27_30_2210_02.mp2" -map 0:2 -y -sn -vn -acodec copy -map_metadata -1 "J:\tmp\iId_1_aid_482_2023-11-20@15_27_30_2210_01.mp2"
2023-11-20@15_27_30_2210_01_audio finished after 00:00:08.621
finished...
=> no clue why ffmpeg is so much slower than tsMuxeR
Cu Selur