Vlc + DSS streaming to p990

About encoding, codec settings, muxers and filter usage
Drimy
New Cone
New Cone
Posts: 6
Joined: 28 May 2007 01:14

Vlc + DSS streaming to p990

Postby Drimy » 28 May 2007 01:48

1. Problem is when i try to stream to mobile phone p990 the video is ok but no sound.. settings:

#EXTVLCOPT:sout=#transcode{vcodec=mp4v,vb=92,width=176,height=144,fps=15,acodec=mp4a,ab=32,samplerate=22100,channels=1,}:rtp{dst=127.0.0.1,port=1234,sap,sdp=file://C:\Program Files\Darwin Streaming Server\Movies\test.sdp}--aspect-ratio=width:height

and on a pc via quicktime it plays nice.. with sound..

2. is it by now possible to stream amr/samr with a self-compiled ffmpeg lib? Did anyone succeed with that? (and how to compile evrything...)

any suggestions....

Tx in advance..

Drimy

Teetrinker
Cone that earned his stripes
Cone that earned his stripes
Posts: 174
Joined: 16 Aug 2004 16:12

yes it is possible to

Postby Teetrinker » 28 May 2007 15:52

to 1: Add "mp4a-latm," to rtp{....}.
to 2: Yes it is possible to compile vlc with amr encoding/decoding support.
Look here http://www.videolan.org/developers/vlc.html for compiling HOWTOS. You will find information what you have to do for amr support in the FFmpeg configure script. Search for AMR_WB=yes and AMR_NB=yes and you will get two links to extra source which is needed.

But in my opinion AMR_NB sounds to bad, better use AAC. To bad that there is no GPL HE-AAC(AAC+SBR) encoder to use with VLC.

Drimy
New Cone
New Cone
Posts: 6
Joined: 28 May 2007 01:14

Teetrinker ROCKS!

Postby Drimy » 28 May 2007 21:05

Woooow.. it works u ROCK man... it is unbelivable i have been looking for clue for 2 months.... it just works like a charm.. great stuff... Thanx man ...

i owe u one...

Drimy

yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Postby yinglcs » 31 May 2007 06:22

I have a few questions on this matter. I appreciate if you can help me as well:
1. I thought I need to use 3gp instead of 'mp4v' when I stream to a phone, is that true? Why 'mp4v' will work?
2. What is this 'width=176,height=144' for?

3. what does this mean 'Add "mp4a-latm," to rtp{....}. ' Do I need to remove 'acodec=mp4a'? and what should be teh sameple rate for 'mp4a-latm'

Thank you again.

Teetrinker
Cone that earned his stripes
Cone that earned his stripes
Posts: 174
Joined: 16 Aug 2004 16:12

Postby Teetrinker » 31 May 2007 11:05

1. I thought I need to use 3gp instead of 'mp4v' when I stream to a phone, is that true? Why 'mp4v' will work?
3gp is a Container format. You can find different audio/video formats inside this container. The 3gp container doesn't get streamed. The audio/video elementary streamed is streamed via rtp with a specific rtp payloadformat.

2. What is this 'width=176,height=144' for?
This is the max dimension which is supported by many cell phones. But if you use it this way you will get probably a distorted image dependend from the input dimensions. Anamorphic video streams are not supported by cell phones, they will not straightened the anamorphic video stream.

Nokia S60 3rd cell phones support up to 352x288 with MPEG 4 SP@L0-3.
[EDIT]The SE P990 should support up to 352x288 too. According the SE documentation it supports MPEG4 SP@L3[/EDIT]
3. what does this mean 'Add "mp4a-latm," to rtp{....}. ' Do I need to remove 'acodec=mp4a'? and what should be teh sameple rate for 'mp4a-latm'
If you use mp4a-latm a different payload format for aac(mp4a) audio is used.
You still have to use mp4a for encoding. Try to set the samplerate to 22050(in transcode{...}) if you use a audio bitrate of 32/48.

Drimy
New Cone
New Cone
Posts: 6
Joined: 28 May 2007 01:14

Postby Drimy » 03 Jun 2007 02:22

Well as u see evrything is working great now inside of local network.. but now another problem... how to allow this stream oustide of local network into wan...??

which ports to open? i read on DSS site that ... rtsp streaming uses 554 port... put i opend it.. no luck... i tried port triggering... no luck...

(well i got lucky seeing the stream from another computer)... but when i try to access from phone umts network... it just loades up buffering but no video is showing... any ideas...?

Ty

Drimy

Teetrinker
Cone that earned his stripes
Cone that earned his stripes
Posts: 174
Joined: 16 Aug 2004 16:12

Postby Teetrinker » 03 Jun 2007 15:52

Port 554(TCP) is used by default only for the communication(RTSP) between server and client.
The audio/video data is streamed over RTP(UDP). DSS is using for RTP(UDP) streaming the ports 6970-9999.

If you was able to see the stream from an other computer, the player probably asked for RTP over RTSP(TCP). This is not supported by the default player on cell phones nowadays.

Some mobile operators networks are behind a NAT Router in a private network, so the RTP(UDP) packets wont find there destination.
An old list can be found here: http://rtsp.de.vu/

yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Postby yinglcs » 04 Jun 2007 21:19

Thanks for the help.

i have another question:
Can I stream from a file hosting by a http server instead of a local file?
i.e. doing this:
./vlc -I dummy http://httpserver/test.avi --sout ....

And when I do this, does it mean it will download the whole file via HTTP first? or it will stream as it downloads the file via http?

Thank you.

Drimy
New Cone
New Cone
Posts: 6
Joined: 28 May 2007 01:14

Postby Drimy » 05 Jun 2007 01:12

Thats stange my Country is on the list as user friendly.. again opend all ports.. and still no video...

Well will try to ask my phone operator.. if they have closed... the receiving of rtsp stream... and ill let you know...

Tx again for all the help..

Drimy

madhavramkumar
New Cone
New Cone
Posts: 6
Joined: 06 Aug 2008 03:30

Re: Vlc + DSS streaming to p990

Postby madhavramkumar » 06 Aug 2008 03:57

Hi,

I am new to this forum as well as streaming concept. i am using Darwin streaming server on Windows XP SP3, and having VLC player also installed. i want to stream the videos to my P990i.

After seeing the conversation in this topic i have become a member, and I didn't understand anything you were talking,
can any one guide me with simple step by step process

I am successful on creating playlist on DSS with the 'sample_50kbit.3gp' and getting the same in my mobile. other samples are not running on my p990i

Thank you
Ram

madhavramkumar
New Cone
New Cone
Posts: 6
Joined: 06 Aug 2008 03:30

Re: Vlc + DSS streaming to p990

Postby madhavramkumar » 26 Dec 2008 10:48

finally i able to see the movie in my phone :-)
this link will be useful, got most of my commandline help from here
http://wiki.videolan.org/VLC_command-line_help

kaiontour
New Cone
New Cone
Posts: 2
Joined: 26 Dec 2008 17:04

Re: Vlc + DSS streaming to p990

Postby kaiontour » 26 Dec 2008 17:07

Hi there,

can you please explain how you did it?

I am reading and trying since days without success...

Thx
Kai

madhavramkumar
New Cone
New Cone
Posts: 6
Joined: 06 Aug 2008 03:30

Re: Vlc + DSS streaming to p990

Postby madhavramkumar » 28 Dec 2008 15:57

Application required:

1. Windows 2003 Server
2. Perl latest version
3. Darwin Streaming Server (DSS)
4. VLC

Step 1: install Perl, restart the machine
------

Step 2: install Darwin streaming server
------
a. create a batch file and copy this command. you can run this batch file when you want to see the DSS web admin

perl "C:\Program Files\Darwin Streaming Server\streamingadminserver.pl"

b. open Run -> services.msc check "Darwin Streaming Server" started

c. open IE and type "http://localhost:1220/" (check the option run thru port 80, this will run thru the firewall)

d. create a new playlist change 'untitled' & 'untitled.sdp' to "test" & "test.sdp", add "sample_50kbit.3gp" alone and click "save changes" check the status has changed to 'playing' else click the play icon next to the status column.

e. turn on your Wi-Fi, note the IP address of your PC (where u have installed DSS) and access the playlist from P990

f. P990 -> Mediaplayer -> online -> create a newlink
ex. 192.168.1.2\test.sdp

it should play with sound :-)

e. create a new 'Relay' name as 'movie'
Source Hostname IP of your PC (since we will be running VLC and DSS from same server)
Don't need Mount Point
Select Wait for announced streams()

Destination: 127.0.0.1
Announced UDP is "movies.sdp"

Step 3: install VLC
------
a. create a folder in some other drive and copy the C:\Program Files\Darwin Streaming Server\Movies\sample_100kbit.mp4 file

b. create a batch file in the same folder and copy the following code

call "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe" "sample_100kbit.mp4" -vvv --reset-config --audio --sout "#transcode:rtp" --sout-rtp-dst="192.168.1.2" --sout-rtp-ttl="127" --sout-rtp-sdp="file://E:/videos/mp4/movies.sdp" --sout-rtp-mp4a-latm

you need to change the '--sout-rtp-dst' and '--sout-rtp-sdp' to your desired values. for more info on command line option see http://wiki.videolan.org/VLC_command-line_help

c. double click the batch file, 'movies.sdp' file will be created under the folder '--sout-rtp-sdp' you specified, copy this '.sdp' to C:\Program Files\Darwin Streaming Server\Movies\

Step 4: Watch movie :-)
------
a. P990 -> Mediaplayer -> online -> create a newlink
ex. 192.168.1.4\movies.sdp


see also:
http://publishingwriting.net/article.php?pk_article=37

kaiontour
New Cone
New Cone
Posts: 2
Joined: 26 Dec 2008 17:04

Re: Vlc + DSS streaming to p990

Postby kaiontour » 29 Dec 2008 15:40

Hello and thx for the hints,

I missed the relays.

What are they good for?

Now I transcoded also and can now play any file I like. E. g. a ts file (its for home use with wifi - so good quality):

call "C:\\Programme\\VideoLAN\\VLC\\vlc.exe" "hitch.ts" -vvv --audio --sout "#transcode:rtp" --sout-rtp-dst="192.168.178.152" --sout-rtp-ttl="127" --sout-rtp-sdp="file://c:/streaming/movies.sdp" --sout-rtp-mp4a-latm --sout-transcode-vcodec=mp4v --sout-transcode-vb=256 --sout-transcode-width=176 --sout-transcode-height=144 --sout-transcode-fps=15 --sout-transcode-acodec=mp4a --sout-transcode-ab=128 --sout-transcode-samplerate=48000 --sout-transcode-channels=2

Have fun
Kai

madhavramkumar
New Cone
New Cone
Posts: 6
Joined: 06 Aug 2008 03:30

Re: Vlc + DSS streaming to p990

Postby madhavramkumar » 01 Jan 2009 11:17

Thank you for the handy settings :-),
when i use this settings, audio is not coming correctly, at the begining audio is coming after that only video is coming, and another problem is after some time i am getting a error message, asking me to re-connect and try again. i am in the process of finding correct bitrates and settings so that i can play and see a whole movie.

have any one successfull in that please share the settings.

madhavramkumar
New Cone
New Cone
Posts: 6
Joined: 06 Aug 2008 03:30

Re: Vlc + DSS streaming to p990

Postby madhavramkumar » 20 Jan 2009 17:17

Hi,

Finally i managed to play the DVD on my mobile with the following configuration. but without sound, can any one help me getting the sound.

call "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe" "dvd://H:/" -vvv --sout "#transcode:rtp" --no-audio --sout-rtp-dst="192.168.1.4" --sout-rtp-ttl="127" --sout-rtp-name="Mask" --sout-rtp-description="DVD" --sout-rtp-sdp="file://C:/Program Files/Darwin Streaming Server/Movies/movies.sdp" --sout-transcode-vcodec=mp4v --sout-transcode-vb=600 --sout-transcode-width=320 --sout-transcode-height=240 --sout-transcode-maxwidth=320 --sout-transcode-maxheight=240 --sout-transcode-fps=25

i tried using following options also, but the phone 'online player' crashes after buffering.
--sout-transcode-acodec=mp4a --sout-transcode-ab=128 --sout-transcode-samplerate=48000 --sout-transcode-channels=2 --sout-rtp-mp4a-latm

can any one please help me getting the video with sound.

Regards
Madhav Ramkumar R

numair84
New Cone
New Cone
Posts: 1
Joined: 04 Feb 2009 19:19

Re: Camera streaming to mobile

Postby numair84 » 04 Feb 2009 19:30

hello guys,
I am trying to stream video to my Nokia N78 from DV camera using VLC and DSS but still not successful

i setup DSS and can stream video files from my pc to the mobile. but when it comes to streaming from the camera, i'm stuck! and frustrated!
I'm using the following command in VLC

call "C:\Program Files\VideoLAN\VLC\vlc" -vvv --reset-config dshow://vdev="Sony Digital Imaging Video2" adev="USB Audio Device" -vvv --audio --sout "#transcode:rtp" --sout-rtp-dst="192.168.2.224" --sout-rtp-ttl="127" --sout-rtp-sdp="file://C:\Program Files\Darwin Streaming Server\Movies\cam2.sdp" --sout-rtp-mp4a-latm --sout-transcode-vcodec=mp4v --sout-transcode-vb=256 --sout-transcode-width=176 --sout-transcode-height=144 --sout-transcode-fps=15 --sout-transcode-acodec=mp4a --sout-transcode-ab=128 --sout-transcode-samplerate=48000 --sout-transcode-channels=2


i get only the audio, if i connect to rtsp://192.168.2.224:554 from QTplayer from my pc..no video yet:((


it's the same from my mobile..i only get the sound but not the video:((..i've been trying to do this for days now! but still got no result:((

here's how the SDP file looks

v=0

o=- 14786545347685515264 14786545347685515264 IN IP4 nmfad

s=Unnamed

i=N/A

c=IN IP4 192.168.2.224

t=0 0

a=tool:vlc 0.9.8a

a=recvonly

a=type:broadcast

a=charset:UTF-8

m=audio 50000 RTP/AVP 96

b=AS:128

b=RR:0

a=rtpmap:96 MP4A-LATM/48000/2

a=fmtp:96 profile-level-id=15; object=2; cpresent=0; config=400023203fc0

m=video 50002 RTP/AVP 97

b=AS:256

b=RR:0

a=rtpmap:97 MP4V-ES/90000

a=fmtp:97 profile-level-id=3; config=000001b001000001b58913000001000000012000c49588007d0584121463000001b24c61766335322e342e30;



Please somebody heelllppp:(

madhavramkumar
New Cone
New Cone
Posts: 6
Joined: 06 Aug 2008 03:30

Re: Vlc + DSS streaming to p990

Postby madhavramkumar » 02 Mar 2009 05:44

Hi,

Initially try without audio, after getting the video try tweeking with audio settings.

for no-audio:
call "C:\Program Files\VideoLAN\VLC\vlc" -vvv dshow://vdev="Sony Digital Imaging Video2" adev="USB Audio Device" --no-audio --sout "#transcode:rtp" --sout-rtp-dst="192.168.2.224" --sout-rtp-ttl="127" --sout-rtp-sdp="file://C:\Program Files\Darwin Streaming Server\Movies\cam2.sdp" --sout-transcode-vcodec=mp4v --sout-transcode-vb=256 --sout-transcode-width=176 --sout-transcode-height=144 --sout-transcode-fps=15

markostamcar
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Jul 2009 19:16

Re: Vlc + DSS streaming to p990

Postby markostamcar » 26 Jul 2009 22:47

Note: If you have Apache on port 80, you can try running DSS on port 8080 (and 544). It works for me! :)

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

Re: Vlc + DSS streaming to p990

Postby lunatictr » 08 Oct 2009 14:29

for no-audio:
call "C:\Program Files\VideoLAN\VLC\vlc" -vvv dshow://vdev="Sony Digital Imaging Video2" adev="USB Audio Device" --no-audio --sout "#transcode:rtp" --sout-rtp-dst="192.168.2.224" --sout-rtp-ttl="127" --sout-rtp-sdp="file://C:\Program Files\Darwin Streaming Server\Movies\cam2.sdp" --sout-transcode-vcodec=mp4v --sout-transcode-vb=256 --sout-transcode-width=176 --sout-transcode-height=144 --sout-transcode-fps=15
hi
I'm also trying to get my webcams stream to my cell phone nokia e65 which supports rtsp & sdp.

I tried this, and I can't get the stream from dss ? there's nothing on the relay status. plus sdp file is not being created ? what should I do ?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests