Transcoding into multiple different SDP from single input

About encoding, codec settings, muxers and filter usage
mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Transcoding into multiple different SDP from single input

Postby mirzaaaamir » 28 Mar 2012 12:14

Hi all,
I want to capture live feed from Osprey card and then transcode it into 2 different type of SDP for multiple unicast IP address. i read in documentation that we could use options, Can anybody guide me how this can be achieved. i can capture and transcode into one SDP file, Need different SDP for different DSS.

Regards

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcoding into multiple different SDP from single inpu

Postby Rémi Denis-Courmont » 28 Mar 2012 12:26

You can use duplicate in the stream output chain.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Re: Transcoding into multiple different SDP from single inpu

Postby mirzaaaamir » 28 Mar 2012 12:40

thanks, but could duplicate be used to send 2 different transcoded SDP to 4 or 5 destined Darwin servers ? Actually we are planning to do POC for MobileTV services.

mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Re: Transcoding into multiple different SDP from single inpu

Postby mirzaaaamir » 28 Mar 2012 13:28

can "duplicate" be used for only 2 outputs OR we can use for 4 or 5 outputs also ???

mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Re: Transcoding into multiple different SDP from single inpu

Postby mirzaaaamir » 29 Mar 2012 07:53

any one, please need little help....

mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Re: Transcoding into multiple different SDP from single inpu

Postby mirzaaaamir » 29 Mar 2012 14:56

Hi all, i am using following command for this. SDP files are created but cant through the stream, can anyone help,where could be the mistake

vlc -vvv -I rc dshow:// :dshow-vdev="Osprey-450e Video Device 1A"
:dshow-adev="Osprey-450e Audio Device 1A" :live-caching=300 :sout
=#duplicate{dst=display,dst={transcode{vcodec=h264,vb=400,scale=1,acodec=mp3,ab
=128,channels=2,samplerate=44100,fps=15}:rtp{dst=172.29.0.11,port=5004,mux=ts,sd
p=file:///e:\vlc.sdp}},dst={transcode{vcodec=h264,vb=200,scale=2,acodec=mp3,ab=1
28,channels=2,samplerate=44100,fps=15}:rtp{dst=172.29.0.11,port=5006,mux=ts,sdp=
file:///e:\vlca.sdp}}

mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Re: Transcoding into multiple different SDP from single inpu

Postby mirzaaaamir » 24 Apr 2012 13:43

Hi All

I have successfully done this, I am pasting here my command for reference, I hope it will help if someone else is also having the same scenario
I am using vlc 1.1.7

C:\Program Files\VideoLAN\VLC>vlc.exe -I rc dshow:// :dshow-vdev="Osprey-450e Vi
deo Device 1A" :dshow-adev="Osprey-450e Audio Device 1A" :dshow-caching=200 :sou
t=#duplicate{dst='transcode{vcodec=h264,vb=80,fps=20,scale=1,width=640,height=48
0,acodec=mp3,ab=20,channels=2,samplerate=44100}:rtp{dst=172.29.0.11,port=5004,mu
x=ts,sdp=file:///d:\vlc.sdp}',dst='transcode{vcodec=h264,vb=560,fps=24,scale=1,w
idth=427,height=320,acodec=mp3,ab=96,channels=2,samplerate=44100}:duplicate{dst=
rtp{dst=172.29.0.11,port=5008,mux=ts,sdp=file:///d:\vlc12.sdp},dst=rtp{dst=172.2
9.0.11,port=5012,mux=ts,sdp=file:///d:\vlc122.sdp},dst=rtp{dst=172.29.0.11,port=
5016,mux=ts,sdp=file:///d:\vlc1222.sdp}}}',dst='transcode{vcodec=h264,vb=80,fps=
20,scale=1,width=240,height=240,acodec=mp3,ab=20,channels=2,samplerate=44100}:rt
p{dst=172.29.0.11,port=5020,mux=ts,sdp=file:///d:\vlc-2.sdp}'}

mtanwr
New Cone
New Cone
Posts: 1
Joined: 30 Oct 2012 08:51

Re: Transcoding into multiple different SDP from single inpu

Postby mtanwr » 30 Oct 2012 09:08

Hi mirzaaaamir..

Thanks for your confirmed post. This is probably slightly off topic, but your post seems to be the only one with positive confirmation. And also you used vlc 1.1.7.

I am using the same on Windows 7. But my mission is much simpler. Just want to generate an SDP file from my webcam stream. This is the command I tried last. Everything seems ok:

vlc -I rc dshow:// :dshow-vdev="HP Webcam-101" :dshow-adev="Microphone (High Definition Audio)" :dshow-caching=200 :sout=#duplicate{dst='rtp{dst=192.168.0.101,port=5004,sdp=file:///d:\Stream.sdp}',dst='display'} :ttl=10

Unfortunately, the SDP file is not generated. I tried many other combinations mentioned in other posts in different forums but nothing seems to be working. Any idea whats going on?

What I want to do is create the SDP, then copy it to Darwin Streaming Server. That means I have VLC on Machine 1 throwing an RTP stream, and DSS on Machine 2 reflecting that RTP stream for other clients)


I have 2 questions:

(1) The dst port (for e.g dst=192.168.0.101 above) has to be the IP of the machine I am sending the stream too, right? Or does it have to be the IP of the machine I am trying to save the SDP on?

(2) Does saving the SDP file require any sort of permissions on Windows? I checked the permissions and the user I am logged in with has Full Control, just like the administrator does.

Thanks a lot in advance. This is really a strange issue.

mirzaaaamir
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Mar 2012 12:29

Re: Transcoding into multiple different SDP from single inpu

Postby mirzaaaamir » 04 Dec 2012 09:50

Sorry for being late. Remove DST=Display. Simply copy the generated SDP in your darwin machine, restart the service and access the file via

rtsp://IP-of-ur-darwin:554 (Port is default)

5004 is video port at which stream would be sent via transcoding. This has nothing to do while accessing from Darwin.

BR


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests