streaming to mobile phone

About encoding, codec settings, muxers and filter usage
shai
Blank Cone
Blank Cone
Posts: 16
Joined: 26 Apr 2009 18:07

streaming to mobile phone

Postby shai » 11 May 2009 12:55

Hi,
what mode/options/codecs should i choose in order for the RTP stream to be in a format that is readable on a mobile phone?
i know that they support encapsulation of 3gp but there is none in the encapsulation tab
i also know that they support h263 codec so anyway i tried to mix & match all kinds of encapsulation with video codecs some of them perform stream and some didnt even stream out
but none of them got picked up by my phone properly (its not fw issue and nothing of that kind) so which options should i pick and would u consider insert 3gp encapsulation or its already there under different name?

CygnusX1
New Cone
New Cone
Posts: 6
Joined: 09 Jun 2009 01:37

Re: streaming to mobile phone

Postby CygnusX1 » 09 Jun 2009 02:01

Hello Shai,

I don't know the answer, but I have the exact same question, so I'm hoping a bump in the thread may stir some interest. I've got a Logitech web cam attached to a PC and I can make an mms stream just fine with VLC, but my ultimate goal is to create a stream that is playable on a Blackberry curve 8320. The phone plays rtsp streams just fine from the youtube mobile site (for example), but I don't know what settings to use in VLC to get it to work. As a matter of fact, I don't even know if it's possible, as I can find very limited info on the web. The phone supposedly supports an MP4/AAC RTSP stream, but I've messed around with the VLC stream settings to no avail..

Any help out there? :?: :?

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

Re: streaming to mobile phone

Postby ILEoo » 15 Jun 2009 09:18

I've used H264 (baseline-profile, level 1.2) + aac to stream SE G900/Android G1/Nokia-phones with success (iirc nokia didn't quite understood vlc rtsp-server time I tried it, and I used DSS between). I used following transcode:rtp chain to stream G1 just recently (same works in Nokia N95 and iirc SE G900)

Code: Select all

--sout '#transcode{soverlay,ab=42,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=320,height=180,vfilter="canvas{width=320,height=180,aspect=16:9}",fps=25,vb=200,venc=x264{vbv-bufsize=500,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2,direct=auto,qcomp=0.0,qpmax=51}}:gather:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:5554/leffa.sdp}'
for that you can connect to rtsp://your.vlc.ip:5554/leffa.sdp to connect stream.

Noticeable parts on that is venc=x264 stuff, like level=12 for level 1.2, no-cabac and bframes=0 to get baseline-profile, and vbv-bufsize to get better cbr-stream.

CygnusX1
New Cone
New Cone
Posts: 6
Joined: 09 Jun 2009 01:37

Re: streaming to mobile phone

Postby CygnusX1 » 16 Jun 2009 02:11

ILEoo,

Thanx for sharing your code. I tried it with my phone and couldn't get it to work. Actually, I could not get it to work PC-to-PC, so maybe my phone is not the only problem. I'm using VLC 0.9.9.

I do know that my phone does not support h264, although it does support mp4 and h263 codecs at 480x320. I have the following code working with my Blackberry curve 8320:

:sout=#transcode{vcodec=mp4v,vb=400,fps=30,scale=0.5,acodec=mp4a,ab=20,channels=2,samplerate=11250}:rtp{dst=(IP-or-name),port=1234,port-audio=1235,port-video=1236,name=nolescam.sdp,sdp=rtsp://(IP-or-name):554/webcam.sdp}

..and can connect on my Blackberry via rtsp://(IP-or-name):554/webcam.sdp}.

The frame rate is choppy at times and the video is a bit blotchy, so I'm trying to tweak it. If you or anyone has any suggestions, please let me know.

niftytv
New Cone
New Cone
Posts: 1
Joined: 25 Feb 2010 18:45

Re: streaming to mobile phone

Postby niftytv » 25 Feb 2010 18:54

ILEoo,

I have also been trying to use your code. I am using VLC 1.03 and am trying to play a streaming video on a Verizon Droid phone.I am on 3G and did a speed test which resulted in about 600 Kb/s download speed. The video will open and the quality is good, but it will usually play for only about 20-30 before just freezing. The audio will continue playing in the background, but the video wont recover. I was wondering if you have ever encountered this problem, or if you have any idea what might be causing it?

mpbejo
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jan 2010 23:13

Re: streaming to mobile phone

Postby mpbejo » 25 Feb 2010 23:34

I use this to see stream on my windows mobile phone work fine:
:sout=#transcode{vcodec=WMV2,vb=384,scale=1,width=320,height=240,acodec=wma2,ab=32,channels=2,samplerate=22500}:std{access=mmsh,mux=asfh,dst=192.168.2.4:1234/stream.asf}"

jrjbertram
New Cone
New Cone
Posts: 3
Joined: 23 Mar 2010 02:32

Re: streaming to mobile phone

Postby jrjbertram » 23 Mar 2010 02:40

I've been able to stream video successfully to a droid over 3g with handbrake, mp4box, and darwin streaming media server. Was about to try with vlc so I don't have to preprocess all my video.. probably via the built in http interface. Anyone gotten this working since Feb when this thread was last active? If not ill post if I figure it out / get lucky.

-J

Jarod_
New Cone
New Cone
Posts: 1
Joined: 23 Mar 2010 12:48

Re: streaming to mobile phone

Postby Jarod_ » 23 Mar 2010 12:49

Hey jrjbertram, if you find something interesting, please let us know!

Thanks.

jrjbertram
New Cone
New Cone
Posts: 3
Joined: 23 Mar 2010 02:32

Re: streaming to mobile phone

Postby jrjbertram » 24 Mar 2010 04:02

So I've been putzing around with this a little bit, and I'm stumped.

I have a file that I'm able to successfully stream to my android over LAN or 3G with Darwin Streaming Media Server. Off hand, I can't remember exactly what encoding settings I used, but I know that whatever I chose is suitable for the phone (because it plays via darwin streaming server). The file was encoded with handbrake and I used mp4box to insert hints (whatever that really means.)

So I have the darwin server listening for RTSP requests on port 554, and if I create an HTML file with an RTSP link such as rtsp://myserver.ip:port/myfile this works.

I am using VLC 1.0.5, have VLC's web interface set up, and I'm using the following as a guide, trying to set up Video On Demand... which is if I'm reading the docs right how VLC supports RTSP.

http://www.videolan.org/doc/streaming-h ... /ch05.html

After starting up VLC with ...

vlc --ttl 12 -vvv --color -I http --rtsp-host 0.0.0.0:5004

... I can get to the VLM interface at: http://127.0.0.1:8080/vlm.html. I use the interface to set up a "Video On Demand" element that I named "test", and I'm pointing the interface to a file that I can stream through either VLC or Darwin:
F:\test\ABCWorldNewsSaturday-300839-0-1.m4v

In VLC's VLM interface, I am disabling transcoding and am not specifying any additional options. After setting up the Video On Demand element, I observe with netstat (Windows 7 PC -- quiet you hecklers) that VLC is listening on port 5004. I disabled windows firewall to make sure that wasn't a factor, and I created an HTML on my PC that has two links:

Code: Select all

All streaming the same file, none are transcoding. <br> <a href="rtsp://192.168.1.198:5004/test">vlc test1</a><br> <a href="rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v">DSS lan ABCWorldNewsSaturday-300839-0-1.m4v</a><br>
I navigate my phone to this file, and press the two links. In both cases, the android media player attempts to go off and load the file. It works for the darwin link, doesn't work for the VLC link.

Here are two traces that I captured with wireshark where I have it follow the RTSP transactions. I put in bold the last request/response they both seem to have in common, and the things in the packet that seem different to me. The darwin server provides quite a bit of additional information earlier in the file, as well.

[edit: The bold didn't work within the code tags, so you'll just have to look for the 'b' tags in below. It's in CSeq 2.]

Is VLC maybe not sending the right transport information? ("right" meaning "right for android's sensitivities" of course...).

- Josh.

VLC link:

Code: Select all

OPTIONS rtsp://192.168.1.198:5004/test RTSP/1.0 CSeq: 0 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) ClientChallenge: 9e26d33f2984236010ef6253fb1887f7 PlayerStarttime: [28/03/2003:22:50:23 00:00] CompanyID: KnKV4M4I/B2FjJ1TToLycw== GUID: 00000000-0000-0000-0000-000000000000 RTSP/1.0 200 OK Server: vlc 1.0.5 Content-Length: 0 Cseq: 0 Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER DESCRIBE rtsp://192.168.1.198:5004/test RTSP/1.0 CSeq: 1 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Accept: application/sdp Accept-Encoding: RTSP/1.0 200 OK Content-type: application/sdp Server: VLC Server Content-Length: 575 CSeq: 1 Cache-Control: no-cache v=0 o=- 693372280000 3 IN IP4 192.168.1.198 c=IN IP4 0.0.0.0 t=0 0 a=tool:vlc 1.0.5 a=range:npt=0-1797.962 m=video 0 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=42c01e;sprop-parameter-sets=Z0LAHpp0El2AtQEBAUAAAPpAAC7gI8WLqA==,aM48gA==; a=control:rtsp://192.168.1.198:5004/test/trackID=0 m=audio 0 RTP/AVP 97 a=rtpmap:97 mpeg4-generic/48000 a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13;IndexLength=3; IndexDeltaLength=3; Profile=1; a=control:rtsp://192.168.1.198:5004/test/trackID=1 SETUP rtsp://192.168.1.198:5004/test/trackID=0 RTSP/1.0 CSeq: 2 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Transport: RTP/AVP/UDP;unicast;client_port=15330-15331 Blocksize: 1400 RTSP/1.0 200 OK [b]Transport: RTP/AVP/UDP;client_port=15330-15331[/b] <------------- pretend I am bold Server: VLC Server Content-Length: 0 Cseq: 2 [b]Cache-Control: no-cache[/b] <-------------- so am I Session: 29358
Now the darwin server:

Code: Select all

OPTIONS rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0 CSeq: 0 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) ClientChallenge: 9e26d33f2984236010ef6253fb1887f7 PlayerStarttime: [28/03/2003:22:50:23 00:00] CompanyID: KnKV4M4I/B2FjJ1TToLycw== GUID: 00000000-0000-0000-0000-000000000000 RTSP/1.0 200 OK Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; ) Cseq: 0 Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD DESCRIBE rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0 CSeq: 1 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Accept: application/sdp Accept-Encoding: RTSP/1.0 200 OK Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; ) Cseq: 1 Last-Modified: Mon, 22 Mar 2010 04:48:41 GMT Cache-Control: must-revalidate Content-length: 1275 Date: Wed, 24 Mar 2010 02:22:53 GMT Expires: Wed, 24 Mar 2010 02:22:53 GMT Content-Type: application/sdp x-Accept-Retransmit: our-retransmit x-Accept-Dynamic-Rate: 1 Content-Base: rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/ v=0 o=StreamingServer 3478386172 1269233321000 IN IP4 192.168.1.198 s=\ABCWorldNewsSaturday-300839-0-1.m4v u=http:/// e=admin@ c=IN IP4 0.0.0.0 b=AS:132 t=0 0 a=control:* a=x-copyright: MP4/3GP File hinted with GPAC 0.4.6-DEV (build 1) (C)2000-2005 - http://gpac.sourceforge.net a=range:npt=0-1797.96283 m=video 0 RTP/AVP 96 b=AS:100 a=rtpmap:96 H264/90000 a=control:trackID=65536 a=fmtp:96 profile-level-id=42C01E; packetization-mode=1; sprop-parameter-sets=Z0LAHpp0El2AtQEBAUAAAPpAAC7gI8WLqA==,aM48gA== a=framesize:96 144-80 m=audio 0 RTP/AVP 97 b=AS:32 a=rtpmap:97 mpeg4-generic/48000/1 a=control:trackID=65537 a=fmtp:97 profile-level-id=41; config=1188; streamType=5; mode=AAC-hbr; objectType=64; constantDuration=1024; sizeLength=13; indexLength=3; indexDeltaLength=3 m=video 0 RTP/AVP 96 b=AS:100 a=rtpmap:96 H264/90000 a=control:trackID=65538 a=fmtp:96 profile-level-id=42C01E; packetization-mode=1; sprop-parameter-sets=Z0LAHpp0El2AtQEBAUAAAPpAAC7gI8WLqA==,aM48gA== a=framesize:96 144-80 m=audio 0 RTP/AVP 97 b=AS:32 a=rtpmap:97 mpeg4-generic/48000/1 a=control:trackID=65539 a=fmtp:97 profile-level-id=41; config=1188; streamType=5; mode=AAC-hbr; objectType=64; constantDuration=1024; sizeLength=13; indexLength=3; indexDeltaLength=3 SETUP rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65536 RTSP/1.0 CSeq: 2 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Transport: RTP/AVP/UDP;unicast;client_port=10428-10429 Blocksize: 1400 RTSP/1.0 200 OK Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; ) Cseq: 2 Last-Modified: Mon, 22 Mar 2010 04:48:41 GMT [b]Cache-Control: must-revalidate[/b] <-------------------- so bold Session: 99273874110418 Date: Wed, 24 Mar 2010 02:22:53 GMT Expires: Wed, 24 Mar 2010 02:22:53 GMT [b]Transport: RTP/AVP/UDP;unicast;source=192.168.1.198;client_port=10428-10429;server_port=6970-6971;ssrc=0000700E[/b] ^------------------ this guy too SETUP rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65537 RTSP/1.0 CSeq: 3 Session: 99273874110418 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Transport: RTP/AVP/UDP;unicast;client_port=10430-10431 Blocksize: 1400 RTSP/1.0 200 OK Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; ) Cseq: 3 Session: 99273874110418 Last-Modified: Mon, 22 Mar 2010 04:48:41 GMT Cache-Control: must-revalidate Date: Wed, 24 Mar 2010 02:22:54 GMT Expires: Wed, 24 Mar 2010 02:22:54 GMT Transport: RTP/AVP/UDP;unicast;source=192.168.1.198;client_port=10430-10431;server_port=6970-6971;ssrc=00002ED3 PLAY rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0 CSeq: 4 Session: 99273874110418 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Range: npt=0.000-1797.963 RTSP/1.0 200 OK Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; ) Cseq: 4 Session: 99273874110418 Range: npt=0.00000-1797.96300 RTP-Info: url=rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65536;seq=27601;rtptime=19127,url=rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65537;seq=29259;rtptime=9292 TEARDOWN rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0 CSeq: 5 Session: 99273874110418 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1) Connection: close RTSP/1.0 200 OK Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; ) Cseq: 5 Session: 99273874110418 Connection: Close

jrjbertram
New Cone
New Cone
Posts: 3
Joined: 23 Mar 2010 02:32

Re: streaming to mobile phone

Postby jrjbertram » 24 Mar 2010 04:12

Note that if I open another instance of VLC and point it at the same RTSP link, it will play the video just fine. So I think we're looking at an integration issue between VLC and Android.

elchoco
New Cone
New Cone
Posts: 1
Joined: 27 May 2010 13:55

Re: streaming to mobile phone

Postby elchoco » 27 May 2010 14:24

Hi, I tried a very similar setup as the one of jrjbertram, using both DSS (Darwin Streaming Server) and VLC but using a Nokia 6110 Navigator

Using DSS I could watch the video in my mobile without problems, but with VLC I couldn't. The pcaps logs look similar to the ones jrjbertram captured.

Then I tried to open the same RTSP stream using a VLC player and a Quicktime player and it worked without problems.

I am using VLC 1.0.6. Does someone have an idea why this happens??

Thanks

gautham
New Cone
New Cone
Posts: 8
Joined: 22 Aug 2009 06:09

Re: streaming to mobile phone

Postby gautham » 02 Jul 2010 08:41

Hi
Can anyone tell me the link where I can get VLC player that I can run on BB 9700? Thanks

chinnaedu
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Feb 2010 08:51

Re: streaming to mobile phone

Postby chinnaedu » 05 Jul 2010 08:29

Even i tried to stream to mobile via vlc+Darwin and i use venc=ffmpeg.....and vcodec =mp4v and acodec=mp4a....The problem that i face is the stream has only video visible.....no audio....just a hissing sound.....
But when the same is played using a vlc player everything is fine....i mean both audi and also video too

Can anyone guide me so that i get even audio also on my mobile(w305 ericson)
Note:i compiled vlc in ubuntu and using it to stream(both a webcam and also a static file(hinted ones))

Any help is highly appreciated

Thanks and regards
Harish

spago
New Cone
New Cone
Posts: 1
Joined: 16 Aug 2010 05:03

Re: streaming to mobile phone

Postby spago » 16 Aug 2010 05:10

This can be done on a Windows setup. Port forwarding needs to be setup for port 5544 and a dummy html page to open the link on the Droid. Activate transcoding on the stream use mp4 on the video codec (works for the droid). Other smartphone users should just have to keep playing with the codecs until you get it right. The freezing problem could POSSIBLY be a slow pc issue. I was transcoding the stream on an older p4 machine that was pegging the processor at 100% and i was having all kinds of video problems. I backed off on the bitrate quite a bit and got fine results. It worked just fine when using a Core2Duo machine for the transcoding of the stream/streaming.

A step by step guide:
http://tuddthudnaar.blogspot.com/2010/ ... os-or.html

vindiez
New Cone
New Cone
Posts: 3
Joined: 19 Dec 2010 09:46

Re: streaming to mobile phone

Postby vindiez » 19 Dec 2010 10:58

hello peeps,
i am new to streaming.i've been trying to stream video to my phone over rtsp protocol.i luckily got this working over WLAN but not able to get it work over internet.the ports are open and also i disabled antivirus,but i dont know whether the problem is with the dynamic dns or something else.even when streaming over wlan it doesnt work when the internet lan cable is connected.can anyone help me on this.any help would be appreciated :)

Master_Mister
New Cone
New Cone
Posts: 2
Joined: 20 Dec 2010 06:00

Re: streaming to mobile phone

Postby Master_Mister » 21 Dec 2010 03:49

hello peeps,
i am new to streaming.i've been trying to stream video to my phone over rtsp protocol.i luckily got this working over WLAN but not able to get it work over internet.the ports are open and also i disabled antivirus,but i dont know whether the problem is with the dynamic dns or something else.even when streaming over wlan it doesnt work when the internet lan cable is connected.can anyone help me on this.any help would be appreciated :)
Hi !

Can I ask you what is your config for that ? Does it work without any low framerate ?

DsChAeK
Blank Cone
Blank Cone
Posts: 59
Joined: 01 Mar 2008 14:54
VLC version: newest
Operating System: windows

Re: streaming to mobile phone

Postby DsChAeK » 20 Aug 2011 23:05

After spending several hours with several example MRLs without success, I really found a way streaming http streams to my android phone (Samsung Galaxy Ace, Android 2.2.1):

original stream (ts): http://192.168.0.1:1111/0,0x0061,0x01FF,0x0200,0x0203
android stream: rtsp://192.168.0.2:5000/stream.sdp

Just open it with your android browser or use my example code with your own android app:

MRL

Code: Select all

:sout=#transcode:rtp :sout-rtp-sdp=rtsp://192.168.0.2:5000/stream.sdp :no-sout-x264-cabac :sout-rtp-caching=2000 :sout-transcode-venc=x264 :sout-transcode-audio-sync :sout-x264-profile=baseline :sout-x264-keyint=50 :no-sout-x264-interlaced :sout-x264-ref=1 :sout-x264-vbv-maxrate=1024 :sout-x264-vbv-bufsize=512 :sout-x264-aq-mode=0 :sout-x264-partitions=none :sout-x264-weightp=0 :sout-x264-me=dia :sout-x264-subme=0 :no-sout-x264-8x8dct :sout-x264-level=1.3 :sout-transcode-vcodec=h264 :sout-transcode-vb=1024 :sout-x264-trellis=0 :sout-transcode-vfilter=canvas{width=480,height=320,aspect=480:320,padd} :sout-transcode-fps=25 :no-sout-rtp-sap :no-sout-rtp-mp4a-latm :sout-transcode-soverlay :sout-keep :audio-desync=-50 :no-sout-x264-weightb :sout-x264-bframes=0 :no-sout-x264-mixed-refs :no-sout-x264-mbtree :sout-ffmpeg-aac-profile=low :meta-title=Testvideo :sout-transcode-acodec=mp4a :sout-transcode-ab=128 :sout-transcode-channels=1
Android App-Example

Code: Select all

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.myfirstandroidapp" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8" /> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".MyFirstAndroidAppActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> ---------------------------------------------------------------------------------------------------------------------------------- package de.myfirstandroidapp; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.widget.MediaController; import android.widget.VideoView; public class MyFirstAndroidAppActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); VideoView videoView = (VideoView) findViewById(R.id.VideoView); MediaController mediaController = new MediaController(this); mediaController.setAnchorView(videoView); Uri video = Uri.parse("rtsp://192.168.0.2:5000/stream.sdp"); videoView.setMediaController(mediaController); videoView.setVideoURI(video); videoView.start(); } }
Have fun! ;)

DsChAeK
Last edited by DsChAeK on 02 Oct 2011 01:54, edited 1 time in total.

forzaferrarileo
New Cone
New Cone
Posts: 3
Joined: 01 Oct 2011 19:02

Re: streaming to mobile phone

Postby forzaferrarileo » 01 Oct 2011 19:26

Hi ,
Can you tell me in what way I can create a streaming for a Sonyericsson vivaz (has the same operating system of nokia) , or for pc , for me it's the same.
I tried to make a stream with the wizard , but nothing appear on my phone , and there isn't any data traffic watching the connection statistic of my pc .
I also tried to watch the code that are in this post , but I didn't understood nothing .
This is the code that generate vlc before the streaming

Code: Select all

:sout=#transcode{vcodec=mp4v,vb=256,fps=20,scale=0,width=320,height=180,acodec=mp3,ab=64,channels=1,samplerate=22050}:rtp{sdp=rtsp://:5544/123.123.123.123/} :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
The main problem is when i put the link in the phone, starts realplayer and after a few second appear a message that says "Unable to Connect"
thanks in advance and sorry for my bad english

DsChAeK
Blank Cone
Blank Cone
Posts: 59
Joined: 01 Mar 2008 14:54
VLC version: newest
Operating System: windows

Re: streaming to mobile phone

Postby DsChAeK » 02 Oct 2011 01:59

Sorry, but I don't know anything about Sony mobiles...
The wizard generates weird mrls sometimes -> "rtsp://:5544/123.123.123.123/" !? -> try it like my mrl ("rtsp://192.168.0.2:5000/stream.sdp")

forzaferrarileo
New Cone
New Cone
Posts: 3
Joined: 01 Oct 2011 19:02

Re: streaming to mobile phone

Postby forzaferrarileo » 08 Oct 2011 16:01

I tried but it's the same .
P.S : do you have insert the ip of the pc ,the ip of your gateway or of your isp in the link? Because I created the stream with my pc ip (192.168.1.2
)

forzaferrarileo
New Cone
New Cone
Posts: 3
Joined: 01 Oct 2011 19:02

Re: streaming to mobile phone

Postby forzaferrarileo » 08 Oct 2011 16:27

I solved my problem : I think that the problem was the port , that if not 5000 ,( as the same in the code that is queted in this post ), the streaming will not work .
MRL

Code: Select all

:sout=#transcode:rtp :sout-rtp-sdp=rtsp://192.168.0.2:5000/stream.sdp :no-sout-x264-cabac :sout-rtp-caching=2000 :sout-transcode-venc=x264 :sout-transcode-audio-sync :sout-x264-profile=baseline :sout-x264-keyint=50 :no-sout-x264-interlaced :sout-x264-ref=1 :sout-x264-vbv-maxrate=1024 :sout-x264-vbv-bufsize=512 :sout-x264-aq-mode=0 :sout-x264-partitions=none :sout-x264-weightp=0 :sout-x264-me=dia :sout-x264-subme=0 :no-sout-x264-8x8dct :sout-x264-level=1.3 :sout-transcode-vcodec=h264 :sout-transcode-vb=1024 :sout-x264-trellis=0 :sout-transcode-vfilter=canvas{width=480,height=320,aspect=480:320,padd} :sout-transcode-fps=25 :no-sout-rtp-sap :no-sout-rtp-mp4a-latm :sout-transcode-soverlay :sout-keep :audio-desync=-50 :no-sout-x264-weightb :sout-x264-bframes=0 :no-sout-x264-mixed-refs :no-sout-x264-mbtree :sout-ffmpeg-aac-profile=low :meta-title=Testvideo :sout-transcode-acodec=mp4a :sout-transcode-ab=128 :sout-transcode-channels=1
DsChAeK
Now , the streaming work perfectly with wifi and i must try it with 3g or hsdpa connection (If all go right I'l watch f1 qualifying saturday morning when I go to school)

dkanova
New Cone
New Cone
Posts: 2
Joined: 10 Oct 2011 12:57

Re: streaming to mobile phone

Postby dkanova » 10 Oct 2011 16:57

Hi, I'm trying to make a video streamming to view it on my Android phone.
I used the following command:
C:\VLC\vlc myvideo-path -I http :sout=#transcode{soverlay,ab=64,samplerate=44100,channels=2,acodec=mp4a,vcodec=h264,width=480,height=270,fps=25,vb=800,venc=x264{level=12,no-cabac,threads=4,bframes=0,min-keyint=1,keyint=50}}:gather:rtp{mp4a-latm,sdp=rtsp://myip:1234/stream.sdp}


and VLC player is opened and I get the video and I can even see it from the vlc player from another PC on my local network, but when I try to access the phone (With HTC Hero or Samsung Galaxy ACE) using the
rtsp://myip: 1234/stream.sdp I get a message that can't play the video.

I read that on some phones there are problems with rtsp, so I created a html with a link to that direction and I'm still giving the same error.
Any suggestions?
Thank you very much in advance

yushalee10
Blank Cone
Blank Cone
Posts: 14
Joined: 05 Mar 2013 13:29

Re: streaming to mobile phone

Postby yushalee10 » 04 May 2013 19:45

Hi ,
Can you tell me in what way I can create a streaming for a Sonyericsson vivaz (has the same operating system of nokia) , or for pc , for me it's the same.
I tried to make a stream with the wizard , but nothing appear on my phone , and there isn't any data traffic watching the connection statistic of my pc .
I also tried to watch the code that are in this post , but I didn't understood nothing .
This is the code that generate vlc before the streaming

Code: Select all

:sout=#transcode{vcodec=mp4v,vb=256,fps=20,scale=0,width=320,height=180,acodec=mp3,ab=64,channels=1,samplerate=22050}:rtp{sdp=rtsp://:5544/123.123.123.123/} :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
The main problem is when i put the link in the phone, starts realplayer and after a few second appear a message that says "Unable to Connect"
thanks in advance and sorry for my bad english
I recently did something like this, but I used http.
If you have android os on your phone download vlc for android, go to the computer, (you may need to disable your firewall) and open port 8080 on your router. start vlc on the pc and select the files or whatever you want to stream. and select stream, using the wizard:
select http
select "add" and make sure its set at 8080 and make the name "stream"
then select the profile for mpeg2+mpga ( I had a nice video output with this)
then select stream all elementary streams and press stream
that should do it.

ibstars
Blank Cone
Blank Cone
Posts: 42
Joined: 20 Feb 2009 21:57
VLC version: Mul-versions
Operating System: Windows
Location: The richest man in Babylon

Re: streaming to mobile phone

Postby ibstars » 16 May 2013 20:41

Try this.

Code: Select all

#transcode{vcodec=h264,vb=300,deinterlace,ab=32,width=320,height=240,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=/mediaplayer/stream.flv},dst=display}
IBstars


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests