Stream on mobile device

About encoding, codec settings, muxers and filter usage
nicolas.57
New Cone
New Cone
Posts: 4
Joined: 01 Dec 2009 19:27

Stream on mobile device

Postby nicolas.57 » 01 Dec 2009 20:14

Hi,

I actually need to build a streaming process which will transcode the files "on the fly". I have a standard AVI file and i would like to transcode it into mobile device compatible format.

Here is the command I have tried :

Code: Select all

vlc /home/movies/test_avi2.avi --sout '#transcode{vcodec=h263,vb=32,acodec=libamr_nb,ab=6.7,channels=1,samplerate=32000,width=352,height=288,deinterlace}:rtp{dst=server_ip,port=8485,sdp=rtsp://server_ip:8485/stream.mp4}' -vvv -I dummy --interact
But this doesn't work on my mobile phone (which is streaming compatible).

Do you know what's wrong with it ?

Thanks,
Nicolas N.

jankarlitos
Blank Cone
Blank Cone
Posts: 26
Joined: 23 Jan 2009 23:49

Re: Stream on mobile device

Postby jankarlitos » 01 Dec 2009 21:36

Hi nicolas, you should set


file.sdp instead of file.mp4

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

Re: Stream on mobile device

Postby Rémi Denis-Courmont » 01 Dec 2009 22:14

dst= and port= are useless here.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nicolas.57
New Cone
New Cone
Posts: 4
Joined: 01 Dec 2009 19:27

Re: Stream on mobile device

Postby nicolas.57 » 01 Dec 2009 22:18

Thank you both :)

I remplaced the file extension and removed the useless parts. Thing is I have now this error :

"Unable to connect to serveur. Not enough bandwith. Check in network settings."

Is there any connection to the video stream or is it just my device ?

Thanks,
Nicolas.

nicolas.57
New Cone
New Cone
Posts: 4
Joined: 01 Dec 2009 19:27

Re: Stream on mobile device

Postby nicolas.57 » 01 Dec 2009 23:45

Hi again,

Here are some new things. I tried to run the same command line with an http stream instead of rtsp. Everything runs well. Thing is I need to use RTSP. Any ideas ?

A few lines are logged when I try to connect via RTSP protocol :

Code: Select all

[00000311] main http server debug: Connection from *my_ip* [00000382] main private debug: looking for sout access module: 1 candidate [00000382] main private debug: set sout option: sout-udp-raw to (null) [00000382] main private debug: net: connecting to *my_ip* port 1232 [00000384] main private debug: thread 1148004688 (sout write thread) created at priority 0 (udp.c:268) [00000382] access_output_udp private debug: udp access output opened(*my_ip*:1232) [00000382] main private debug: using sout access module "access_output_udp" [00000384] main private debug: thread 1148004688 joined (udp.c:316) [00000382] access_output_udp private debug: udp access output closed [00000382] main private debug: removing module "access_output_udp
Thanks in advance,
Nicolas.

jankarlitos
Blank Cone
Blank Cone
Posts: 26
Joined: 23 Jan 2009 23:49

Re: Stream on mobile device

Postby jankarlitos » 02 Dec 2009 02:30

I think you should test the stream from a desktop PC, if it works try testing with another mobile..

That way you can isolate your errors.

If it works with the PC, you will know the transcoding parameters are OK. And if it works from another mobile you will know the error is in your mobile settings.



P.S. Once when i was streaming to mobile i had to change realplayer settings

nicolas.57
New Cone
New Cone
Posts: 4
Joined: 01 Dec 2009 19:27

Re: Stream on mobile device

Postby nicolas.57 » 02 Dec 2009 10:43

Hi jankarlitos,

I have actually tried on both mobile & desktop players. The logs I posted in my previous message was written when I was trying to play the stream with VLC Player on my computer.

I really think the problem is related to RTSP. I've tried to remove the transcoding step :

Code: Select all

vlc /home/movies/test_avi2.avi --sout '#rtp{ttl=30,sdp=rtsp://server_ip:8485/stream.sdp}' -vvv -I dummy --interact
And VLC (computer version) can't find any stream to play.
I can see some errors on VLC (server version) :
[00000308] main http server debug: Connection from *my_ip*
[00000352] main private debug: looking for sout access module: 1 candidate
[00000352] main private debug: set sout option: sout-udp-raw to (null)
[00000352] main private debug: set sout option: sout-udp-ttl to 30
[00000352] main private debug: net: connecting to *my_ip* port 1230
[00000354] main private debug: thread 1149401424 (sout write thread) created at priority 0 (udp.c:268)
[00000352] access_output_udp private debug: udp access output opened(*my_ip*:1230)
[00000352] main private debug: using sout access module "access_output_udp"
[00000355] main private debug: looking for sout access module: 1 candidate
[00000355] main private debug: set sout option: sout-udp-raw to (null)
[00000355] main private debug: set sout option: sout-udp-ttl to 30
[00000355] main private debug: net: connecting to *my_ip* port 1232
[00000356] main private debug: thread 1157794128 (sout write thread) created at priority 0 (udp.c:268)
[00000355] access_output_udp private debug: udp access output opened(*my_ip*:1232)
[00000355] main private debug: using sout access module "access_output_udp"
[00000354] main private debug: thread 1149401424 joined (udp.c:316)
[00000352] access_output_udp private debug: udp access output closed
[00000352] main private debug: removing module "access_output_udp"
[00000356] main private debug: thread 1157794128 joined (udp.c:316)
[00000355] access_output_udp private debug: udp access output closed
[00000355] main private debug: removing module "access_output_udp"
[00000308] main http server debug: Connection from *my_ip*
[00000357] main private debug: looking for sout access module: 1 candidate
[00000357] main private debug: set sout option: sout-udp-raw to (null)
[00000357] main private debug: set sout option: sout-udp-ttl to 30
[00000357] main private debug: net: connecting to *my_ip* port 1230
[00000358] main private debug: thread 1157794128 (sout write thread) created at priority 0 (udp.c:268)
[00000357] access_output_udp private debug: udp access output opened(*my_ip*:1230)
[00000357] main private debug: using sout access module "access_output_udp"
[00000359] main private debug: looking for sout access module: 1 candidate
[00000359] main private debug: set sout option: sout-udp-raw to (null)
[00000359] main private debug: set sout option: sout-udp-ttl to 30
[00000359] main private debug: net: connecting to *my_ip* port 1232
[00000360] main private debug: thread 1149401424 (sout write thread) created at priority 0 (udp.c:268)
The italic part loops indefinitely.

I really cannot figure out what happens .. :(

Thanks,
Nicolas.

Update @ 15:09 : Okay, the problem is definitely weird :D . Here is my command line (the full one, with transcoding options) :

Code: Select all

/home/movies/HU_117_750k.flv --sout '#transcode{vcodec=h264,vb=24,acodec=libmp3lame,ab=12,channels=1,samplerate=11000,width=176,height=144,fps=10,keyint=20,deinterlace}:rtp{ttl=30,sdp=rtsp://server_ip:554/stream.sdp}' -vvv -I dummy --interact
This stream is perfectly working on VLC (desktop version) : I can watch it without any problems. However, when I try to reach the stream on my mobile device (Nokia E61i), I have a "connection timeout" error message. Then I've checked my phone's settings and they're perfectly set (plus I can watch videos from other servers).

jankarlitos
Blank Cone
Blank Cone
Posts: 26
Joined: 23 Jan 2009 23:49

Re: Stream on mobile device

Postby jankarlitos » 04 Dec 2009 17:03

I'm looking at your phone details http://www.forum.nokia.com/devices/E61/. and it doesn't support H264.

And even though it is supported, it doesn't mean it is streamable. I would recommend you to change your codecs to MP4V/AAC.


It should work for you now...

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

Re: Stream on mobile device

Postby ILEoo » 09 Dec 2009 09:49

Nokia phones do support h264, but mobile phones usually require baseline-profile and certain level, you don't limit profile there in anyway so you get high-profile and your phone doesn't like that.

Also you don't really want to try to get that low bitrates (32+6.7) as you only get crappy image. You should check videolan wiki for example on mobile-streaming and remember to limit profile to baseline when you use h264 codec when targeting mobile.

jankarlitos
Blank Cone
Blank Cone
Posts: 26
Joined: 23 Jan 2009 23:49

Re: Stream on mobile device

Postby jankarlitos » 09 Dec 2009 22:17

I completely desagree with you on
Nokia phones do support h264
It is device-dependent whether they support H264 or not.You can't just generalize.

For example, blackberry phones. You can't just say Blackberry Curve support H264. Because only BlackBerry® Curve™ 8900 and BlackBerry® Curve™ 8520 does it. and BlackBerry® Curve™ 8300, BlackBerry® Curve™ 8310, BlackBerry® Curve™ 8320, BlackBerry® Curve™ 8350, and BlackBerry® Curve™ 8330 does NOT. http://www.blackberry.com/btsc/viewCont ... Id=KB05482

You should check your device specifications first.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests