hi1. What is the difference between rtp and rtsp?
2. Why stream through rtsp, and not http? Cant my nokia can receive streams through http?
3. Is it possible to use ONLY vlc to perform this streaming operation(without Darwin Streaming Server or Real Media's Helix server)
Code: Select all
call "C:\Program Files\VideoLAN\VLC\vlc.exe" dshow://vdev="Chicony USB 2.0 Camera" adev="" -vvv --audio --sout "#transcode:rtp" --sout-rtp-dst="192.168.1.4" --sout-rtp-name="MHSS" --sout-rtp-sdp="rtsp://192.168.1.4:554/webcam.sdp" --sout-transcode-vcodec="mp4v" --sout-transcode-vb="400" --sout-transcode-width="144" --sout-transcode-height="176" --sout-transcode-fps="5" --sout-transcode-aenc="ffmpeg" --sout-transcode-acodec="mp4a" --sout-rtp-mp4a-latm --sout-transcode-ab="32" --sout-transcode-samplerate="16000" --sout-transcode-channels="2"
I've used http for live content before, since it was the only protocol i could get windows media player to accept. And I'm still 70% sure the nokia reaplayer can show live feeds through http, since i've opened real-time internet tv links with an http:// link. (But this might just be a rtsp link in disguise?). I'm not 100% sure about this, but its worth looking into.2. rtsp = real time streaming protocol , as you can see you can get real time streams with this ( video on demand or live content, I'm working on live content ), http is a transfer based protocol, you can watch video by http protocol also, but in order to do this, first you have to download the video, then watch the video.
Thats good news(for me anyways). This means we only need to get the video encoding right. I think nokia's realplayer is very fussy when it comes to the right width, size, bitrate, framerate, etc...Currently I can stream in rtsp protocol by only using vlc media player, I can get the audio from realplayer in my nokia phone, but I cannot get the video.
I'm guessing you're an engineering student? Im final year Electronic Engineer, and we work with those things alot. My project is vehicle tracking using a GPS module and a GPRS module to send/receive data. I can do all kinds of cool stuff already, like switch the car on/off, switch headlights on/off, change radio volume/channel, etc...Last, I'm coding in java for mobile part ( project is a little bit complicated, webcam is on a electric circuit I designed which has a step motor, turns to left or right according to client commands which is listened by server and sent to microcontroller through rs232 serial port etc.etc.), playing rtsp streams in java is also little bit complicated, there are codes that you can find when you search in google, but I couldn't manage them to work.
Most mobile phones support rtp (even nokia ones you just mixed up on what they are, rtsp is used for signaling stream-data (sdp-files, where stream is basicly) rtp is used to deliver actual stream (video/audio packets).1. rtsp is supported by nokia s60 phones, but rtp is not. so that's why you have to stream in rtsp protocol.
Code: Select all
--sout="#transcode{vcodec=h264,venc=x264{profile=baseline,level=1.3},vb=240,width=240,height=180,fps=25,acodec=mp4a,ab=64}:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:5554/mystream.sdp}"
Code: Select all
C:\Program Files (x86)\VideoLAN\VLC>vlc.exe dvb-t://frequency=554000000 --sout="#transcode{vcodec=h264,venc=x264{profile=baseline,level=1.3},vb=800,width=320,height=240,fps=25,acodec=mp4a,ab=128}:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:5554/mystream.sdp}"
Code: Select all
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --play-and-stop "C:\temp\test.avi" --sout="#transcode{vcodec=h264,venc=x264{profile=baseline,level=1.3},vb=240,width=240,height=180,fps=25,acodec=mp4a,ab=64}:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:5554/mystream.sdp}, dst=display"
I did try that, but, that would be similar to private IP implementation, how to traverse the NAT in public network?Make sure the server is not firewalled.
Hi Rémi,You understand that an RTSP server must have a public unfirewalled IP address.You also understand that the RTSP client must either have a public IP address, or be behind a NAT with RTSP ALG support.
It sucks? Well then don't use RTSP.
It really sucks. But this is the only one way to stream video to mobile devices over 3G I found. SO if you can recommend me some thing can replace RTSP I'll appreciate this.You understand that an RTSP server must have a public unfirewalled IP address.You also understand that the RTSP client must either have a public IP address, or be behind a NAT with RTSP ALG support.
It sucks? Well then don't use RTSP.
use DSS with vlc-created .sdp file in DSS's media pathIt really sucks. But this is the only one way to stream video to mobile devices over 3G I found. SO if you can recommend me some thing can replace RTSP I'll appreciate this.You understand that an RTSP server must have a public unfirewalled IP address.You also understand that the RTSP client must either have a public IP address, or be behind a NAT with RTSP ALG support.
It sucks? Well then don't use RTSP.
Thanx for reply! Kind regards!
Return to “VLC stream-output (sout)”
Users browsing this forum: No registered users and 11 guests