splitting PID's from incoming UDP multicast stream

About encoding, codec settings, muxers and filter usage
hillya
New Cone
New Cone
Posts: 2
Joined: 05 Feb 2012 22:56

splitting PID's from incoming UDP multicast stream

Postby hillya » 05 Feb 2012 23:13

I have an incoming stream on udp 239.255.1.11:50111. It has three different programs on it, on PID's 49,65, and 81. I am trying to, using command line, ingest the stream, split out the pids, and output three different udp addresses, one for each pid. It is MPEG2 coming in, and I have no need to transcode. I

vlc -d -vvv udp://@224.1.1.3:1234 :sout=#duplicate{dst=udp{dst=224.1.1.4:1234}} :no-sout-rtp-sap :no-sout-standard-sap :ttl=8 :sout-keep

This works, but randomly chooses a program to output.

Any pointers would be appreciated.

Thanks!

hillya
New Cone
New Cone
Posts: 2
Joined: 05 Feb 2012 22:56

Re: splitting PID's from incoming UDP multicast stream

Postby hillya » 14 Feb 2012 23:57

I did get this working..

There are three programs running on a single incoming stream. I wanted to break them out into different channels into our lineup. Once I figured out the program numbers were 3, 4, and 5, here are the working commands:

vlc -d -vvv udp://@239.255.1.11:50111 :program=3 :sout=#duplicate{dst=udp{dst=224.1.3.10:8208}} :no-sout-rtp-sap :no-sout-standard-sap :ttl=8 :sout-keep

vlc -d -vvv udp://@239.255.1.11:50111 :program=4 :sout=#duplicate{dst=udp{dst=224.1.0.39:8208}} :no-sout-rtp-sap :no-sout-standard-sap :ttl=8 :sout-keep

vlc -d -vvv udp://@239.255.1.11:50111 :program=5 :sout=#duplicate{dst=udp{dst=224.1.0.53:8208}} :no-sout-rtp-sap :no-sout-standard-sap :ttl=8 :sout-keep

program #3 is an HD channel, and I was also able to transcode it to SD to add a 4th channel. I could not get this to work from command line, but here is the generated script when i went through the setup:

vlc -d -vvv udp://@239.255.1.11:50111 :program=3 :sout=#transcode{vcodec=mp2v,vb=6000,scale=1,width=720,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:udp{mux=ts,dst=224.1.0.3:8208} :no-sout-rtp-sap :no-sout-standard-sap :ttl=8 :sout-keep

I hope someone finds this useful.

IBM x3250 quad core xeon
Fedora 14

top - 14:57:31 up 7 days, 36 min, 2 users, load average: 2.68, 2.69, 2.64
Tasks: 177 total, 1 running, 176 sleeping, 0 stopped, 0 zombie
Cpu(s): 35.3%us, 3.7%sy, 0.0%ni, 60.5%id, 0.0%wa, 0.0%hi, 0.5%si, 0.0%st
Mem: 5093648k total, 1131152k used, 3962496k free, 53044k buffers
Swap: 7176188k total, 0k used, 7176188k free, 481492k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8398 vlc 20 0 1221m 114m 27m S 67.1 2.3 84:02.26 vlc
2848 vlc 20 0 686m 28m 6596 S 6.3 0.6 619:32.92 vlc
2852 vlc 20 0 686m 26m 6596 S 4.7 0.5 430:02.35 vlc
2856 vlc 20 0 686m 25m 6596 S 3.7 0.5 369:49.85 vlc

photonica
New Cone
New Cone
Posts: 8
Joined: 14 May 2012 21:18

Re: splitting PID's from incoming UDP multicast stream

Postby photonica » 14 May 2012 23:27

you may find this of use...

Code: Select all

--sout-all --http-caching=5000 :programs=261,517,773,1029 :sout=#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8080/p261},select="program=261",dst=std{access=http,mux=ts,dst=0.0.0.0:8080/p517},select="program=517",dst=std{access=http,mux=ts,dst=0.0.0.0:8080/p773},select="program=773",dst=std{access=http,mux=ts,dst=0.0.0.0:8080/p1029},select="program=1029"}
i use udp://224.2.2.2:1001 as my MPTS source....

quervo
New Cone
New Cone
Posts: 2
Joined: 04 Oct 2012 04:48

Re: splitting PID's from incoming UDP multicast stream

Postby quervo » 04 Oct 2012 10:49

i have the same problem with you, are you solve it?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests