0

I tried to merge video files using examples from the wiki

https://wiki.videolan.org/VLC_HowTo/Merge_videos_together/

/Applications/VLC.app/Contents/MacOS/VLC -vv a.flv b.mkv c.mp4 \
--sout-keep \
--sout '#gather:transcode{vcodec="h264",vb="1024",acodec="aac",ab="128"}:standard{mux="mp4",dst="test.mp4",access=file}' vlc://quit

But what I found is that if the videos are not identical the encoding doesn't work

Terminal Error

[0000000131779030] main encoder debug: using encoder module "x264"
[000000013170b910] main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
[000000013171dd80] stream_out_transcode stream out error: cannot add this stream
[0000000132919090] main decoder error: cannot continue streaming due to errors with codec h264
[000000013175c4d0] videotoolbox generic: Raising max DPB to 3
2022-12-17 12:28:25.577 VLC[12119:275251] Can't find app with identifier com.spotify.client
[0000000131707660] macosx interface debug: Continue to use IOKit assertion NoIdleSleepAssertion (39363)
[0000000132904f70] main stream output debug: adding a new sout input for `subt` (sout_input: 0x600001af0c40)
[0000000131721000] gather stream out debug: creating new output
[000000013171dd80] stream_out_transcode stream out debug: not transcoding a stream (fcc=`subt')
[000000013170b910] main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
[0000000132904f70] main stream output warning: new sout input failed (sout_input: 0x600001af0c40)
[0000000132919850] main decoder error: cannot create packetizer output (subt)
[0000000132904f70] main stream output debug: adding a new sout input for `subt` (sout_input: 0x600001af0bd0)
[0000000131721000] gather stream out debug: creating new output
[000000013171dd80] stream_out_transcode stream out debug: not transcoding a stream (fcc=`subt')
[000000013170b910] main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
[0000000132904f70] main stream output warning: new sout input failed (sout_input: 0x600001af0bd0)
[0000000132919c30] main decoder error: cannot create packetizer output (subt)

Merging video files after re-encoding is still not possible. How can I use vlc to merge media files in any video encoding format

I’m truly grateful for your help

I may be worried about the inconsistency of encoding parameters, so I set all the configurable parameters of transcode to the same result. There is still no solution to the problem

0 Answers0