Merge Videos Using Qt

This forum is about all development around libVLC.
Moriquendi
Blank Cone
Blank Cone
Posts: 74
Joined: 31 May 2011 16:22

Merge Videos Using Qt

Postby Moriquendi » 21 Sep 2017 15:00

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Merge Videos Using Qt

Postby Jean-Baptiste Kempf » 16 Oct 2017 05:58

You can set the sout option as a media option using libvlc_media_add_option
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests