Save differents program of a MPTS stream in different file.

This forum is about all development around libVLC.
Haganeren
New Cone
New Cone
Posts: 2
Joined: 15 Jun 2010 17:30

Save differents program of a MPTS stream in different file.

Postby Haganeren » 15 Jun 2010 17:53

Hello

My problem is quite simple and even have a solution in several tutorial, I want to demux a MPTS stream i got by UDP and save all the programs in different file.

I want to test it in command line before make it run on my program, that's why I will post command line.

Code: Select all

vlc -vvv udp://@228.0.0.2:1234 --sout #duplicate{dst=standard{access=file,mux=ts,dst=fluxZ.avi},select="program=18",dst=standard{access=file,mux=ts,dst=fluxY.avi},select="program=17"} --verbose=1 -I dummy
All is in one line. (I read somewhere that vlc can be very stubborn about spelling, so no space and tab)

So with this line, i thought I can save the program 18 of my MPTS stream in the file "fluxY.avi" and save the program 19 in the file "fluxZ.avi" but no... All I have is my two files created with 0 octet (empty) and an error :

Code: Select all

main packetizer error: cannot create packetizer output (mpgv)
(and also

Code: Select all

main packetizer error: cannot create packetizer output (mpga)
but I don't care about audio)

Please anyone can help me?


I can see my stream with a simple

Code: Select all

--sout #display --program=18
so I don't think it's because of the stream.

Thanks for all help you can grant me.
(And sorry for bad English... I'm french)

Haganeren
New Cone
New Cone
Posts: 2
Joined: 15 Jun 2010 17:30

Re: Save differents program of a MPTS stream in different fi

Postby Haganeren » 16 Jun 2010 12:14

Ok, I have found the problem.
I needed to pre-select the program.
The final code is :

Code: Select all

--sout #duplicate{dst=standard{access=file,mux=ts,dst=flux.avi},select="program=17",dst=standard{access=file,mux=ts,dst=flux2.avi},select="program=18"} --verbose=2 -I dummy


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest