I have 2 clips, both exactly 5 seconds long, I'm just trying to merge them together as an experiment.
Ultimately I want to output directly to a rtmp stream, but in testing I'm simply muxing it into a file to see if it plays correctly.
Here's an example command:
Code: Select all
"C:\Program Files\VideoLAN\VLC\vlc.exe" 1.mkv 2.mkv --sout "#gather:transcode{vcodec=h264,venc=x264{profile=main,level=30,keyint=25,min-keyint=25,opengop=false},vfilter=canvas{width=1280,height=720,aspect=16:9},scale=1,fps=25,vb=1000,acodec=aac,ab=160,channels=2,samplerate=44100}:std{access=file,mux=ts,dst=out.ts}" --sout-keep
Mediainfo thinks the 10 second clip is 5 seconds long.
MPV almost plays correctly, but the seekbar goes back to the beginning at the start of the second clip and there are some audio sync issues.
I've tried different files, I get the same result.
VLC seems to be doing something that corrupts the video data.
I've also tried outputting directly to an rtmp server and it stops playing after the first clip.