problem solving code

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

problem solving code

Postby mcsniper95 » 28 Jul 2010 12:56

Good morning,

I would like to stream files in multicast way using rtsp, I will try to explain it the most clearly I can:
The purpose of my work is that a client could reach a multicast stream(no released to the client) via rtsp/sdp (release to client).
So the client iniciate the session by the correct rtsp/sdp wich contain the path to open the multicast session stream.

So I tryed his code, but It didn´t work:

Code: Select all

new teste vod enabled setup teste input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" #setup teste output #transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=file://C:\Program Files\VideoLAN\VLC\BeyBoyvod.sdp}" :sout-all :sout-keep" #setup teste enabled #save teste
I tryed also:

Code: Select all

#"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv -I rc --reset-config "file:///D:\aulas\tese\LAB\Videos\BeyBoy.mpg" --sout="#transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=//rtsp://localhost:554/testevod}"
and It don´t works...

Could anyone help me? where is the problem?
I have vlc 1.0.4

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: problem solving code

Postby Sébastien Escudier » 28 Jul 2010 14:27

- your vlm file is wrong. There is a bug in the VLM export function, you should wait for vlc 1.1.2 to use it.

- The command line seems ok, but I can't say what's wrong without the logs.

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 29 Jul 2010 16:05

Thanks for replying and for your help. :)

If I used the command line:

Code: Select all

#"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv -I rc --reset-config "file:///D:\aulas\tese\LAB\Videos\BeyBoy.mpg" --sout="#transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=//rtsp://localhost:5554/testevod}"
It didn´t work, I don´t know where the problem is.

I have this log in the client side:

Code: Select all

main debug: processing request item rtsp://localhost:5554/testevod node Lista de reprodução skip 0 main debug: resyncing on rtsp://localhost:5554/testevod main debug: rtsp://localhost:5554/testevod is at 0 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'rtsp://localhost:5554/testevod' main debug: thread started main debug: using timeshift granularity of 50 MBytes main debug: using timeshift path 'C:\DOCUME~1\MICKAE~1\LOCALS~1\Temp' main debug: thread (input) created at priority 1 (../.././src/input/input.c:230) main debug: `rtsp://localhost:5554/testevod' gives access `rtsp' demux `' path `localhost:5554/testevod' main debug: creating demux: access='rtsp' demux='' path='localhost:5554/testevod' main debug: looking for access_demux module: 1 candidate qt4 debug: IM: Setting an input qt4 debug: Updating the geometry qt4 debug: Updating the geometry live555 debug: DESCRIBE failed with 0: select/connect() failed: No error live555 debug: connection timeout live555 error: Failed to connect with rtsp://localhost:5554/testevod main warning: no access_demux module matching "rtsp" could be loaded main debug: TIMER module_need() : 10004.000 ms - Total 10004.000 ms / 1 intvls (Avg 10004.000 ms) main debug: creating access 'rtsp' path='localhost:5554/testevod' main debug: looking for access module: 1 candidate main debug: net: connecting to localhost port 5554 main debug: connection: Resource temporarily unavailable main warning: connection timed out access_realrtsp error: cannot connect to localhost:5554 access_realrtsp debug: could not connect to: localhost:5554/testevod main warning: no access module matching "rtsp" could be loaded main debug: TIMER module_need() : 5090.000 ms - Total 5090.000 ms / 1 intvls (Avg 5090.000 ms) main debug: waitpipe: object killed main error: open of `rtsp://localhost:5554/testevod' failed: (null) main debug: thread ended main debug: dead input main debug: thread times: real 0m15.093750s, kernel 0m0.000000s, user 0m0.000000s main debug: changing item without a request (current 0/1) main debug: nothing to play qt4 debug: IM: Deleting the input qt4 debug: Updating the geometry qt4 debug: Updating the geometry main debug: TIMER input launching for 'rtsp://localhost:5554/testevod' : 15183.001 ms - Total 15183.001 ms / 1 intvls (Avg 15183.000 ms)

Do I have to put something in sdp file named "testevod"?

Best regards
Mickael

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: problem solving code

Postby Sébastien Escudier » 29 Jul 2010 16:17

sdp=//rtsp://localhost:5554/testevod}
try without // :
sdp=rtsp://localhost:5554/testevod}

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 29 Jul 2010 17:09

Thanks a lot Sébastien,

It works perfectly, the first time.

I tryed to open it several times and it don´t open the Gui interface, I don´t know why.
I tryed to open a windows command prompt and write in the vlc directory "vlc -I qt".
It opens vlc but it crashes and present a window command line of rc interface .. and I have to
do allways the same thing: open a windows command prompt and write in the vlc directory "vlc -I qt".

Is there a problem the vlc 1.0.5 version or anything else that I can´t see?

Could you, please, awnser an others questions I have, I m so lost with all these command lines:

a-) is it possible to make a vlm.conf, or testevod.sdp, of my command line:

Code: Select all

cd C:\Program Files\VideoLAN\VLC\ vlc.exe -vvv -I rc --reset-config "file:///C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" --sout="#transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=rtsp://localhost:5554/testevod}"
b-)Tell me if I understand my comand line:
A client is able to receive a multicast stream (239.255.1.1), wich is not receable by him, throught the correspondent
sdp file by rtsp://X.X.X.X:5554/test.sdp. Am I right?

c-)I would like to stream to mobile phone, HTC Touch Diamond, do you some idea about the right codecs to use?
The sound is mostly bad, it is possibly due to the codecs I have utilized, It seems I m in the bathroom.

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 30 Jul 2010 15:35

Hello guys,

is it possible to transform:

Code: Select all

#"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv -I rc --reset-config "file:///D:\aulas\tese\LAB\Videos\BeyBoy.mpg" --sout="#transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=//rtsp://localhost:5554/testevod}"
in to a sdp file, because using rc interface crash vlc clients..

Please help me please

Mickael

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 30 Jul 2010 18:04

Hei guys,

I try to write a sdp file, but I didn´t work:

Code: Select all

new testevod vod enabled setup testevod input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" setup testevod output --sout=#transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=300,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=rtsp://localhost:5554/testevod} setup testevod enabled save testevod
I have this log message error in the client side:

Code: Select all

main debug: adding item `rtsp://localhost:5554/testevod' ( rtsp://localhost:5554/testevod ) main debug: rebuilding array of current - root Lista de reprodução main debug: rebuild done - 1 items, index -1 main debug: processing request item rtsp://localhost:5554/testevod node null skip 0 main debug: resyncing on rtsp://localhost:5554/testevod main debug: rtsp://localhost:5554/testevod is at 0 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'rtsp://localhost:5554/testevod' qt4 debug: Adding a new MRL to recent ones: rtsp://localhost:5554/testevod main debug: thread (input) created at priority 1 (../.././src/input/input.c:230) main debug: thread started main debug: using timeshift granularity of 50 MBytes main debug: using timeshift path 'C:\DOCUME~1\MICKAE~1\LOCALS~1\Temp' main debug: `rtsp://localhost:5554/testevod' gives access `rtsp' demux `' path `localhost:5554/testevod' main debug: creating demux: access='rtsp' demux='' path='localhost:5554/testevod' main debug: looking for access_demux module: 1 candidate live555 debug: RTP subsession 'audio/MPA' qt4 debug: IM: Setting an input qt4 debug: Updating the geometry live555 error: SETUP of'audio/MPA' failed SETUP: cannot handle response: RTSP/1.0 461 Unsupported transport qt4 debug: Updating the geometry live555 debug: RTP subsession 'video/MPV' live555 error: SETUP of'video/MPV' failed SETUP: cannot handle response: RTSP/1.0 461 Unsupported transport live555 debug: setup start: 0.000000 stop:303.456000 live555 error: Nothing to play for rtsp://localhost:5554/testevod main warning: no access_demux module matching "rtsp" could be loaded main debug: TIMER module_need() : 242.000 ms - Total 242.000 ms / 1 intvls (Avg 242.000 ms) main debug: creating access 'rtsp' path='localhost:5554/testevod' main debug: looking for access module: 1 candidate main debug: net: connecting to localhost port 5554 main debug: connection: Resource temporarily unavailable main debug: connection succeeded (socket = 1340) access_realrtsp debug: rtsp connected access_realrtsp warning: only real/helix rtsp servers supported for now main warning: no access module matching "rtsp" could be loaded main debug: TIMER module_need() : 66.000 ms - Total 66.000 ms / 1 intvls (Avg 66.000 ms) main debug: waitpipe: object killed main error: open of `rtsp://localhost:5554/testevod' failed: (null) main debug: thread ended main debug: dead input main debug: thread times: real 0m0.312500s, kernel 0m0.000000s, user 0m0.031250s main debug: changing item without a request (current 0/1) main debug: nothing to play qt4 debug: IM: Deleting the input qt4 debug: Updating the geometry qt4 debug: Updating the geometry main debug: TIMER input launching for 'rtsp://localhost:5554/testevod' : 412.000 ms - Total 412.000 ms / 1 intvls (Avg 412.000 ms)
Help me please, I really need this.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: problem solving code

Postby Sébastien Escudier » 02 Aug 2010 10:24

Your VLM file (not sdp) is wrong.
Please read the doc if you want to create one yourself
http://wiki.videolan.org/Documentation: ... _HowTo/VLM

Or use version 1.1.2 if you want vlc to generate one for you (previous versions are broken).

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 02 Aug 2010 12:16

Hi Sebastien,
thanks for your help again.

I have that problem that knuckle my head:
I want that client reach a multicast session(some movie) by a correspondent rtsp link in my web page.
What I mean is that the client, in my web page, click on the rtsp/sdp link (ike rtsp://X.X.X.X:5554/test ,reachable to the client) and open the correspondent movie in a multicast session (239.255.1.1 , unreachable to the client: I mean that the client don´t see ip of the multicast session).

Am I doing right with my code in vlm? I mean do I have to do a vod or a broadcast configuration on the vlm?

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 02 Aug 2010 15:04

I have install vlc 1.1.2, and something goes wrong with my code.

I ve tried:

Code: Select all

new teste4 vod enabled setup teste4 input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg"
and it works in first time, at second times it didn´t work

I have tried the next code, i haven´t video nor audio:

Code: Select all

cd C:\Program Files\VideoLAN\VLC\ vlc.exe -vvv -I rc --reset-config "file:///C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" --sout="#transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=239.255.1.1,port=1234,sdp=rtsp://localhost:5554/testevod}"
and it didn´t work, I have in the client:

Code: Select all

qt4 warning: Input option: rtsp-caching=1200 main debug: adding item `rtsp://localhost:5554/testevod' ( rtsp://localhost:5554/testevod ) qt4 debug: Adding a new MRL to recent ones: rtsp://localhost:5554/testevod main debug: rebuilding array of current - root Lista de reprodução main debug: rebuild done - 4 items, index 2 main debug: processing request item rtsp://localhost:5554/testevod node null skip 0 main debug: resyncing on rtsp://localhost:5554/testevod main debug: rtsp://localhost:5554/testevod is at 3 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'rtsp://localhost:5554/testevod' main debug: no fetch required for (null) (art currently (null)) main debug: thread started main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\DOCUME~1\MICKAE~1\LOCALS~1\Temp' main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: `rtsp://localhost:5554/testevod' gives access `rtsp' demux `' path `localhost:5554/testevod' main debug: creating demux: access='rtsp' demux='' path='localhost:5554/testevod' main debug: looking for access_demux module: 1 candidate qt4 debug: IM: Setting an input live555 debug: RTP subsession 'audio/MPEG4-GENERIC' main debug: selecting program id=0 live555 debug: RTP subsession 'video/H264' live555 debug: setup start: 0.000000 stop:0.000000 live555 debug: We have a timeout of 60 seconds live555 debug: spawned timeout thread live555 debug: play start: 0.000000 stop:0.000000 main debug: using access_demux module "live555" main debug: TIMER module_need() : 323.000 ms - Total 323.000 ms / 1 intvls (Avg 323.000 ms) main debug: looking for decoder module: 34 candidates main debug: using decoder module "faad" main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: thread started main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:301) main debug: looking for decoder module: 34 candidates avcodec debug: libavcodec already initialized avcodec debug: trying to use direct rendering avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: looking for packetizer module: 21 candidates packetizer_h264 debug: found NAL_SPS (sps_id=0) packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0) main debug: using packetizer module "packetizer_h264" main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301) main debug: thread started main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Documents and Settings\Mickael Soares\Application Data\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.lua main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: `rtsp://localhost:5554/testevod' successfully opened
I have tried also and nothing:

Code: Select all

new teste5 vod enabled setup teste5 input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" setup teste5 output #transcoding{vcodec=h264,vb=512,acodec=mp4a,ab=96}:rtp{dst=239.255.1.1,port=1234,sdp=rtsp://localhost:5554/teste5} setup teste5 mux mp2t
or and also nothing:

Code: Select all

new teste6 broadcast enabled setup teste6 input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" setup teste6 output #rtp{mux=ts,dst=239.255.1.1,port=1234,sdp=rtsp://localhost:5554/teste6}
Please help me

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: problem solving code

Postby Sébastien Escudier » 02 Aug 2010 18:46

I don't know if you can transcode with vod.
What you can try is to transcode your movie before, and vod your transcoded file.

Your broadcast one should work, but at the end of the file, the streaming is done (stopped). And each client will see the same thing.
With vod each client will see the file from the begining.

broadcast is for live streaming, vod is for video on demand.

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 03 Aug 2010 15:20

Hello,

this is crashing my head.
I would like to stream video content with rtp multicast and control it with rtsp/sdp.
The video should have 3 types of format (low, mid and high quality), so I have to transcode my movie.
I m so lost, what is the better: vod or broadcast?


Help me guys, I m worried and I can´t figure it out by my self.

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 03 Aug 2010 15:35

I tryed without transcode:

Code: Select all

new channel broadcast enabled setup channel input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" setup channel output #rtp{mux=ts,dst=239.255.1.1,port=5004,sdp=rtsp://localhost:5554/channel} control channel play
and in the server side, I have this log:

Code: Select all

main debug: Creating an input for '(null)' main debug: thread started main debug: using sout chain=`rtp{mux=ts,dst=239.255.1.1,port=5004,sdp=rtsp://localhost:5554/channel}' main debug: stream=`rtp' main debug: looking for sout stream module: 1 candidate main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: set config option: sout-rtp-mux to ts main debug: set config option: sout-rtp-dst to 239.255.1.1 main debug: set config option: sout-rtp-port to 5004 main debug: set config option: sout-rtp-sdp to rtsp://localhost:5554/channel main debug: looking for sout mux module: 1 candidate mux_ts debug: shaping=200000 pcr=70000 dts_delay=400000 main debug: using sout mux module "mux_ts" main debug: TIMER module_need() : 176.000 ms - Total 176.000 ms / 1 intvls (Avg 176.000 ms) main debug: muxer support adding stream at any time main debug: muxer prefers to wait for all ES before starting to mux stream_out_rtp debug: maximum RTP packet size: 1400 bytes main debug: net: connecting to [239.255.1.1]:5004 main debug: net: connecting to [239.255.1.1]:5005 from [95.69.67.97]:1310 stream_out_rtp debug: sdp= v=0 o=- 14988708891305443328 14988708891305443328 IN IP4 your-f3984e9f2a s=Unnamed i=N/A c=IN IP4 239.255.1.1/255 t=0 0 a=tool:vlc 1.1.2 a=recvonly a=type:broadcast a=charset:UTF-8 m=video 5004 RTP/AVP 33 b=RR:0 a=rtpmap:33 MP2T/90000 stream_out_rtp debug: RTSP stream: host localhost port 5554 at /channel main info: creating httpd main debug: net: listening to localhost port 5554 stream_out_rtp debug: RTSP: adding /channel/trackID=0 main debug: using sout stream module "stream_out_rtp" main debug: TIMER module_need() : 205.000 ms - Total 205.000 ms / 1 intvls (Avg 205.000 ms) main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\DOCUME~1\MICKAE~1\LOCALS~1\Temp' main debug: `C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' gives access `' demux `' path `C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' main debug: creating demux: access='' demux='' path='C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' main debug: looking for access_demux module: 4 candidates main debug: no access_demux module matching "any" could be loaded main debug: TIMER module_need() : 51.000 ms - Total 51.000 ms / 1 intvls (Avg 51.000 ms) main debug: creating access '' path='C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' main debug: looking for access module: 5 candidates vcd debug: trying .cue file: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.cue vcd debug: could not find .cue file filesystem debug: opening file `C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' main debug: using access module "filesystem" main debug: TIMER module_need() : 38.000 ms - Total 38.000 ms / 1 intvls (Avg 38.000 ms) main debug: Using AStream*Stream main debug: pre buffering main debug: received first data after 0 ms main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s main debug: looking for stream_filter module: 2 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: creating demux: access='' demux='' path='C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' main debug: looking for demux module: 50 candidates main debug: using demux module "ps" main debug: TIMER module_need() : 30.000 ms - Total 30.000 ms / 1 intvls (Avg 30.000 ms) main debug: starting in async mode main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Documents and Settings\Mickael Soares\Application Data\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.lua main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: `C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg' successfully opened ps warning: garbage at input, trying to resync... ps warning: found sync code ps debug: we found a length of: 303456000 main debug: selecting program id=0 main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "mpeg_audio" main debug: TIMER module_need() : 16.000 ms - Total 16.000 ms / 1 intvls (Avg 16.000 ms) main debug: thread started main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:301) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_mpegvideo" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread started main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301) main debug: Buffering 0% main debug: switching to sync mode packetizer_mpegvideo debug: size 720x576 fps=25.000 main debug: Buffering 0% mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:320 main debug: adding a new sout input (sout_input:01bac568) main debug: adding a new input mux_ts debug: adding input codec=mpga pid=68 mux_ts debug: new PCR PID is 68 main debug: Buffering 1% main debug: Buffering 2% main debug: Buffering 2% main debug: Buffering 3% main debug: Buffering 4% main debug: Buffering 4% main debug: Buffering 5% main debug: Buffering 6% main debug: Buffering 6% main debug: Buffering 7% main debug: Buffering 8% main debug: Buffering 8% main debug: Buffering 9% main debug: Buffering 10% main debug: Buffering 10% main debug: Buffering 11% main debug: Buffering 12% main debug: adding a new sout input (sout_input:01b27f68) main debug: adding a new input mux_ts debug: adding input codec=mpgv pid=69 mux_ts debug: new PCR PID is 69 main debug: Buffering 12% main debug: Buffering 13% main debug: Buffering 14% main debug: Buffering 14% main debug: Buffering 15% main debug: Buffering 16% main debug: Buffering 16% main debug: Buffering 17% main debug: Buffering 18% main debug: Buffering 18% main debug: Buffering 19% main debug: Buffering 20% main debug: Buffering 20% main debug: Buffering 21% main debug: Buffering 22% main debug: Buffering 22% main debug: Buffering 23% main debug: Buffering 24% main debug: Buffering 24% main debug: Buffering 25% main debug: Buffering 26% main debug: Buffering 26% main debug: Buffering 27% main debug: Buffering 28% main debug: Buffering 28% main debug: Buffering 29% main debug: Buffering 30% main debug: Buffering 30% main debug: Buffering 31% main debug: Buffering 32% main debug: Buffering 32% main debug: Buffering 33% main debug: Buffering 34% main debug: Buffering 34% main debug: Buffering 35% main debug: Buffering 36% main debug: Buffering 36% main debug: Buffering 37% main debug: Buffering 38% main debug: Buffering 38% main debug: Buffering 39% main debug: Buffering 40% main debug: Buffering 40% main debug: Buffering 41% main debug: Buffering 42% main debug: Buffering 42% main debug: Buffering 43% main debug: Buffering 44% main debug: Buffering 44% main debug: Buffering 45% main debug: Buffering 46% main debug: Buffering 46% main debug: Buffering 47% main debug: Buffering 48% main debug: Buffering 48% main debug: Buffering 49% main debug: Buffering 50% main debug: Buffering 50% main debug: Buffering 51% main debug: Buffering 52% main debug: Buffering 52% main debug: Buffering 53% main debug: Buffering 54% main debug: Buffering 54% main debug: Buffering 55% main debug: Buffering 56% main debug: Buffering 56% main debug: Buffering 57% main debug: Buffering 57% main debug: Buffering 58% main debug: Buffering 59% main debug: Buffering 60% main debug: Buffering 60% main debug: Buffering 61% main debug: Buffering 62% main debug: Buffering 62% main debug: Buffering 63% main debug: Buffering 64% main debug: Buffering 64% main debug: Buffering 65% main debug: Buffering 66% main debug: Buffering 66% main debug: Buffering 67% main debug: Buffering 68% main debug: Buffering 68% main debug: Buffering 69% main debug: Buffering 70% main debug: Buffering 70% main debug: Buffering 71% main debug: Buffering 72% main debug: Buffering 72% main debug: Buffering 73% main debug: Buffering 74% main debug: Buffering 74% main debug: Buffering 75% main debug: Buffering 76% main debug: Buffering 76% main debug: Buffering 77% main debug: Buffering 78% main debug: Buffering 78% main debug: Buffering 79% main debug: Buffering 80% main debug: Buffering 80% main debug: Buffering 81% main debug: Buffering 82% main debug: Buffering 82% main debug: Buffering 83% main debug: Buffering 84% main debug: Buffering 84% main debug: Buffering 85% main debug: Buffering 86% main debug: Buffering 86% main debug: Buffering 87% main debug: Buffering 88% main debug: Buffering 88% main debug: Buffering 89% main debug: Buffering 90% main debug: Buffering 90% main debug: Buffering 91% main debug: Buffering 92% main debug: Buffering 92% main debug: Buffering 93% main debug: Buffering 94% main debug: Buffering 94% main debug: Buffering 95% main debug: Buffering 96% main debug: Buffering 96% main debug: Buffering 97% main debug: Buffering 98% main debug: Buffering 98% main debug: Buffering 99% main debug: Buffering 100% main debug: Stream buffering done (302 ms in 12 ms) main debug: Decoder buffering done in 0 ms
at the client side with rtp://@239.255.1.1:5004, the result is no video or audio:

Code: Select all

qt4 warning: Input option: rtp-caching=1000 main debug: adding item `rtp://239.255.1.1:5004' ( rtp://@239.255.1.1:5004 ) qt4 debug: Adding a new MRL to recent ones: rtp://@239.255.1.1:5004 main debug: rebuilding array of current - root Lista de reprodução main debug: rebuild done - 2 items, index 0 main debug: processing request item rtp://239.255.1.1:5004 node Lista de reprodução skip 0 main debug: resyncing on rtp://239.255.1.1:5004 main debug: rtp://239.255.1.1:5004 is at 1 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'rtp://239.255.1.1:5004' main debug: thread started main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\DOCUME~1\MICKAE~1\LOCALS~1\Temp' main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: `rtp://@239.255.1.1:5004' gives access `rtp' demux `' path `@239.255.1.1:5004' main debug: creating demux: access='rtp' demux='' path='@239.255.1.1:5004' main debug: looking for access_demux module: 1 candidate main debug: net: opening 239.255.1.1 datagram port 5004 main debug: Multicast group join request main debug: IP_ADD_MEMBERSHIP multicast request main debug: using access_demux module "rtp" main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Documents and Settings\Mickael Soares\Application Data\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.lua main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) main debug: `rtp://@239.255.1.1:5004' successfully opened qt4 debug: IM: Setting an input

at the client side with rtsp://localhost:5554, the result is the same:

Code: Select all

main debug: processing request item rtsp://localhost:5554/channel node Lista de reprodução skip 0 main debug: resyncing on rtsp://localhost:5554/channel main debug: rtsp://localhost:5554/channel is at 3 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'rtsp://localhost:5554/channel' main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: thread started main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\DOCUME~1\MICKAE~1\LOCALS~1\Temp' main debug: `rtsp://localhost:5554/channel' gives access `rtsp' demux `' path `localhost:5554/channel' main debug: creating demux: access='rtsp' demux='' path='localhost:5554/channel' main debug: looking for access_demux module: 1 candidate qt4 debug: IM: Setting an input live555 debug: RTP subsession 'video/MP2T' main debug: thread started main debug: thread (stream out) created at priority 1 (../.././src/input/stream_demux.c:100) live555 debug: setup start: 0.000000 stop:0.000000 main debug: creating demux: access='' demux='ts' path='' live555 debug: We have a timeout of 60 seconds live555 debug: spawned timeout thread live555 debug: play start: 0.000000 stop:0.000000 main debug: using access_demux module "live555" main debug: TIMER module_need() : 155.000 ms - Total 155.000 ms / 1 intvls (Avg 155.000 ms) main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Documents and Settings\Mickael Soares\Application Data\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.lua main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) main debug: `rtsp://localhost:5554/channel' successfully opened
where is the error? can anyone help me..

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: problem solving code

Postby Sébastien Escudier » 03 Aug 2010 22:28

I m so lost, what is the better: vod or broadcast?
I am repeating myself :
With broadcast, at the end of the file, the streaming is done (stopped). And each client will see the same thing.
With vod each client will see the file from the begining, when they request it.

So when you broadcast your file, if you try to connect with a client after the streaming is done, it won't work. It can be short if your movie has a small size.

and rtsp://localhost:5554/channel is the url you have to open (not rtp://)
But the client has to be on the same computer, otherwise, localhost can't work.

mcsniper95
Blank Cone
Blank Cone
Posts: 33
Joined: 05 Aug 2009 23:33

Re: problem solving code

Postby mcsniper95 » 04 Aug 2010 01:45

thanks for replying Sebastien,
so i have to do rtsp, beacause clients can view movies at diferent times.

I don´t understand why I can´t get it, i will try tomorrow

thanks a lot

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: problem solving code

Postby Sébastien Escudier » 04 Aug 2010 08:11

start vlc with rtsp-host option :
vlc --rtsp-host=192.168.0.1:5554
replace 192.168.0.1 with your ip

and then :

Code: Select all

new teste5 vod setup teste5 input "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Portal_de_Video\videos\BeyBoy.mpg" setup teste5 mux mp2t setup teste5 enabled


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 1 guest