VLC to SDP/3GP/MP4 DSS Problem

About encoding, codec settings, muxers and filter usage
biau83
New Cone
New Cone
Posts: 5
Joined: 17 Sep 2009 11:16

VLC to SDP/3GP/MP4 DSS Problem

Postby biau83 » 08 Oct 2009 10:18

Hi,

Sorry for asking this problem. I know there is a lot example and tutorial about how to stream SDP to darwin, but I know cannot make it run.

I am using VLC version 0.9.9 initialially, then tried 1.0.1, 1.0.2, and i read some ppl said there is problem with new version, so i even downgrade to 0.8.6 (currently)

my darwin is ver 5.5.5

OS = WinXP / WinVista/ Windows Server 2003

various batch command that i have used:

#######################################################################
vlc.exe -vvv c:\movie.avi --sout '#rtp{dst=192.168.1.98,port=1234,sdp=rtsp://192.168.1.98:8080/live.sdp}' (can run and stream, but when i try rtsp://192.168.1.98:8080/live.sdp, error, no video found)
vlc.exe -vvv c:\movie.avi --sout '#rtp{dst=192.168.1.98,port=1234,sdp=file:///n:\\DarwinMovies\live.sdp}' (can run, but file is not created at the location, and no video play)


- file is not create at the location
#######################################################################
vlc.exe c:\video.avi :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=display,dst=rtp{dst=192.168.1.98,mux=mp4,port=1234,port-audio=1234,port-video=1234}}

tried to access: rtsp://192.168.1.98:1234
#######################################################################

vlc.exe c:\video.avi :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=rtp{dst=192.168.1.98,mux=ts,port=1234}}

tried to access: rtsp://192.168.1.98:1234
#######################################################################

vlc.exe c:\mymovie.avi :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=rtp{dst=192.168.1.98,mux=ts,port=1234}}

tried to access: rtsp://192.168.1.98:1234
#######################################################################

vlc.exe c:\mymovie.avi --sout-transcode-fps 15 --sout "#transcode{width=128,height=96,venc=x264,vcodec=x264,vb=100
,scale=1,acodec=mp4a,ab=28,channels=2,samplerate=22100}:rtp{dst=192.168.1.98,port=10002,port-video=10000,sdp=file:///n:\\DarwinMovies\\live.sdp}" (run, but sdp file not create at the folder)

vlc.exe c:\mymovie.avi --sout-transcode-fps 15 --sout "#transcode{width=128,height=96,venc=mp4v,vcodec=mp4v,vb=100
,scale=1,acodec=mp4a,ab=28,channels=2,samplerate=22100}:rtp{dst=192.168.1.98,port=10002,port-video=10000,sdp=file:///n:\\DarwinMovies\\live.sdp}" (run, but sdp file not create at the folder)

********************************************************************************************************************************

So conclusion is, i tried out many, but no 1 working. Or, it "seem like streaming", but i cant play it at another player.
and, until now, i still don't know why the sdp out file never create the sdp file.

Really hope that anyone who can do it help me a while, see whether is my system incompatible or vlc version problem or command line error.

Thank you

lunatictr
New Cone
New Cone
Posts: 9
Joined: 04 Oct 2009 23:22

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby lunatictr » 08 Oct 2009 14:21

I have the same problem, I send my webcams stream to dss, it seems like it's streaming ( I see the webcams light that it's working ) but sdp file is not being created, besides I can't see the stream from relay status, I searched for how to write sdp files manually but I couldn't succeed at it. Anyone help ?

brizio
Blank Cone
Blank Cone
Posts: 27
Joined: 13 Oct 2009 13:46

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby brizio » 13 Oct 2009 15:34

biau83,
did u tried with sdp=file://sdp=file:///n:/DarwinMovies/live.sdp ?

also, as u can see in my post i can successfully create sdp file until version 0.9.9 of vlc...
i really don't know why but with 1.0.0 and newer sdp file is not created...

let me know something.. :roll:

ILEoo
Developer
Developer
Posts: 91
Joined: 05 Nov 2008 16:29

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby ILEoo » 17 Oct 2009 19:59

Hi,

Sorry for asking this problem. I know there is a lot example and tutorial about how to stream SDP to darwin, but I know cannot make it run.

I am using VLC version 0.9.9 initialially, then tried 1.0.1, 1.0.2, and i read some ppl said there is problem with new version, so i even downgrade to 0.8.6 (currently)

my darwin is ver 5.5.5

OS = WinXP / WinVista/ Windows Server 2003
Firstly, what does that movie.avi contains? codec-wise

various batch command that i have used:

#######################################################################
vlc.exe c:\video.avi :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=display,dst=rtp{dst=192.168.1.98,mux=mp4,port=1234,port-audio=1234,port-video=1234}}
MP4 mux ain't streamable at all,

vlc.exe c:\video.avi :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=rtp{dst=192.168.1.98,mux=ts,port=1234}}

tried to access: rtsp://192.168.1.98:1234
there you tell vlc to push rtp stream toward 192.168.1.98, is there server there what accepts your connection attemps at all? usually that scenario is used on multicast addresses (192.168.1.98 ain't multicast address)

vlc.exe c:\mymovie.avi --sout-transcode-fps 15 --sout "#transcode{width=128,height=96,venc=x264,vcodec=x264,vb=100
,scale=1,acodec=mp4a,ab=28,channels=2,samplerate=22100}:rtp{dst=192.168.1.98,port=10002,port-video=10000,sdp=file:///n:\\DarwinMovies\\live.sdp}" (run, but sdp file not create at the folder)

vlc.exe c:\mymovie.avi --sout-transcode-fps 15 --sout "#transcode{width=128,height=96,venc=mp4v,vcodec=mp4v,vb=100
,scale=1,acodec=mp4a,ab=28,channels=2,samplerate=22100}:rtp{dst=192.168.1.98,port=10002,port-video=10000,sdp=file:///n:\\DarwinMovies\\live.sdp}" (run, but sdp file not create at the folder)
Run those with

Code: Select all

--extraintf logger -vvv
and check vlc log file what it says about sdp file creation
********************************************************************************************************************************

So conclusion is, i tried out many, but no 1 working. Or, it "seem like streaming", but i cant play it at another player.
and, until now, i still don't know why the sdp out file never create the sdp file.

Really hope that anyone who can do it help me a while, see whether is my system incompatible or vlc version problem or command line error.

Thank you
http://wiki.videolan.org/Documentation: ... ile_Phones Theres one example on rtp-output with DSS

biau83
New Cone
New Cone
Posts: 5
Joined: 17 Sep 2009 11:16

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby biau83 » 28 Oct 2009 09:52

WOW!!~~ thanks a lot for ILEoo and brizio's replied. below is the code that is working

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" c:/ThreeKings.avi --sout=#transcode{vcodec=mp4v,vb=128,width=128,height=96,acodec=mp4a,ab=28}:rtp{dst=127.0.0.1,ttl=127,name="RTB LIVE NEWS",port=10002,port-video=10000,sdp="file://C:\\Program Files\\Darwin Streaming Server\\Movies\\live.sdp"} --extraintf logger -vvv
thanks for telling me the "--extraintf logger -vvv" , this is really useful.

my file cannot generate because i having 3 slash behind file:
the correct 1 for windows pc should be file:// (two slash only)
and also, i have to quote the path since there is a space in between

anyway, i still got 1 more problem. I not sure why this SDP i only manage to open using VLC player, not QuickTime 7 player.
When i try to use my mobile phone Nokia E51 Real Player to play this live feed, it said "either video or audio cannot be played" and it only play for audio, and the connection will drop within 5 sec. (I host the darwin in LAN, IP 192.168.1.98, my E51 connect to the same LAN through the wireless Router, there shouldn't be any connectivity problem cause i am using WLAN to online access a local machine. ) hmmm.... is that because my screen resolution or video bitrate problem?

brizio
Blank Cone
Blank Cone
Posts: 27
Joined: 13 Oct 2009 13:46

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby brizio » 28 Oct 2009 15:06

i've tried something similar but with an n93..I really don't know why but real player can manage the "rtsp handshake", after the play request it starts to send a huge quantity of rtp packets (with fixed 28 bytes payload), and then nothing being played on the phone. Timeout was on the order of 5 seconds...
If another instance of vlc can play your stream try with a traffic capture to see if packets are according to a "normal" streaming traffic... It's just a my thought!

ILEoo
Developer
Developer
Posts: 91
Joined: 05 Nov 2008 16:29

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby ILEoo » 29 Oct 2009 15:11

You seem to missed the mentioning about fiddling that sdp-file to be more compatible with nokia-phones (well, get them to use it) in that wiki link I posted.

biau83
New Cone
New Cone
Posts: 5
Joined: 17 Sep 2009 11:16

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby biau83 » 30 Oct 2009 09:54

you mean
"from b=RR:0 to b=RR:800" ?

i changed. but it seem like don't give any effect....

the video still cannot view in mobile, and audio keep disconnect (sometime can last until 10sec)

biau83
New Cone
New Cone
Posts: 5
Joined: 17 Sep 2009 11:16

Re: VLC to SDP/3GP/MP4 DSS Problem

Postby biau83 » 13 Nov 2009 04:16

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" c:/ThreeKings.avi --sout=#transcode{vcodec=mp4v,vb=128,width=128,height=96,acodec=mp4a,ab=28}:rtp{dst=127.0.0.1,ttl=127,name="RTB LIVE NEWS",port=1234,port-video=10000,sdp="file://C:\\Program Files\\Darwin Streaming Server\\Movies\\live.sdp"} --extraintf logger -vvv
want to update my post. The port should be "1234" instead of "10002", by using port 10002, i can stream well using vlc player, but not mobile phone (Nokia E51)

by changing the port to "1234", i manage to get partially content, which is audio feed, without the video screen.

i am trying to play around with the port number, and found that only this combination will make the thing thing work (audio able to stream), other port will make the phone totally cannot connect to get the content.

:(


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 24 guests