Page 1 of 1

Merge Videos Using Qt

Posted: 21 Sep 2017 15:00
by Moriquendi
Hi there,

I'm trying to merge multiple video files using Qt and libvlc. I can achieve this using 2.2.6 Vlc command prompt as;

vlc input1.ts input2.ts :sout “”#gather:std{access=file,mux=ts,dst=output.ts}"" :sout-keep

However I couldn't find a way to do this using libvlc api. There is a "merge" function in the VLC-Qt project (https://github.com/vlc-qt/vlc-qt/blob/m ... /Media.cpp), but it takes only 3 parameters which are destination file name, file path and mux type. It doesn't mention anything about input video files.

Cheers.

Re: Merge Videos Using Qt

Posted: 16 Oct 2017 05:58
by Jean-Baptiste Kempf
You can set the sout option as a media option using libvlc_media_add_option