How to record stream RTSP with JVLC?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
lefish
Blank Cone
Blank Cone
Posts: 32
Joined: 23 Jun 2008 04:58

How to record stream RTSP with JVLC?

Postby lefish » 05 Sep 2008 09:41

Hey, all, i met the problem, is there a way to record stream RTSP into a file, so that i can play it when another time.
I found the VLC have this feature, does JVLC implement this feature?
Thanks.

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to record stream RTSP with JVLC?

Postby littlejohn » 07 Sep 2008 20:39

Yes,
you can use the same command line of VLC as the argument of the JVLC class, and JVLC will behave like VLC.

Cheers,
Filippo

lefish
Blank Cone
Blank Cone
Posts: 32
Joined: 23 Jun 2008 04:58

Re: How to record stream RTSP with JVLC?

Postby lefish » 08 Sep 2008 05:07

thanks, sir.
I tried to write the code like what you told me(the following code), but i couldn't terminal the program from eclipse console panel. Can you check my code and give me some suggestion, thanks a lot.

Code: Select all

public class JVLCArgs { /** * */ public JVLCArgs() { try { Runtime .getRuntime() .exec( "C:/Program Files/VideoLAN/VLC/vlc.exe -I none rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=D:/record_vlc/rtsp_800.mpg}}"); } catch (IOException e) { e.printStackTrace(); } } /** * @param args */ public static void main(String[] args) { new JVLCArgs(); } }
Regards.

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to record stream RTSP with JVLC?

Postby littlejohn » 08 Sep 2008 09:51

Hi,
you should do:

JVLC jvlc = new JVLC("-I none rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=D:/record_vlc/rtsp_800.mpg}}");

so giving the command line you use with vlc as a constructor argument to JVLC.

Cheers,
Filippo

lefish
Blank Cone
Blank Cone
Posts: 32
Joined: 23 Jun 2008 04:58

Re: How to record stream RTSP with JVLC?

Postby lefish » 08 Sep 2008 10:27

Thanks, i did it according to what you told me, but it doesn't generate any output file.

Code: Select all

public class Snippet { public static void main(String[] args) { String output = "#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=C:/aaaab.mpg}}"; String[] param = new String[] { "-vvv", "--plugin-path=.\\3rd_party\\vlc-0.9.0-test3-20080727-0004\\plugins", "--no-plugins-cache", "-I none rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=c:/rtsp_800.mpg}}" }; JVLC jvlc = new JVLC(param); jvlc.play("rtsp://192.168.10.133:554"); try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } } }
here is the debug output:

Code: Select all

[00000001] main libvlc debug: VLC media player - version 0.9.0-test3-20080727-0004 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--enable-debug' '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-shared-libvlc' '--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--disable-gtk' '--disable-hal' '--disable-libcdio' '--enable-nls' '--enable-skins2' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-zlib' '--with-ffmpeg-config-path=/usr/win32/bin' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-dvdread' '--disable-vcdx' '--disable-cddax' '--enable-mozilla' '- [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: opening config file (C:\Documents and Settings\Administrator\Application Data\vlc\vlcrc) [00000001] main libvlc debug: loading config for module "main" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules [00000001] main libvlc debug: recursively browsing `D:\JavaSoft\Java\jre1.6.0_06\bin\modules' [00000001] main libvlc debug: recursively browsing `D:\JavaSoft\Java\jre1.6.0_06\bin\plugins' [00000001] main libvlc debug: recursively browsing `.\3rd_party\vlc-0.9.0-test3-20080727-0004\plugins' [00000001] main libvlc debug: module bank initialized, found 261 modules [00000001] main libvlc debug: opening config file (C:\Documents and Settings\Administrator\Application Data\vlc\vlcrc) [00000001] main libvlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT FPU [00000001] main libvlc debug: looking for memcpy module: 4 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000357] main interaction debug: thread 7060 (Interaction control) created at priority 0 (interface/interaction.c:379) [00000357] main interaction debug: thread started [00000359] main input debug: Creating an input for 'Media Library' [00000359] main input debug: Input is a meta file: disabling unneeded options [00000359] main input debug: `file/xspf-open://C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' gives access `file' demux `xspf-open' path `C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' [00000359] main input debug: creating access 'file' path='C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' [00000360] main access debug: looking for access module: 2 candidates [00000360] access_file access debug: opening file `C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' [00000360] main access debug: using access module "access_file" [00000360] main access debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [00000361] main stream debug: Using AStream*Stream [00000361] main stream debug: pre-buffering... [00000361] main stream debug: received first data for our buffer [00000359] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' [00000362] main demux debug: looking for demux module: 1 candidate [00000362] playlist demux debug: using XSPF playlist reader [00000362] main demux debug: using demux module "playlist" [00000362] main demux debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [00000359] main input debug: `file/xspf-open://C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' successfully opened [00000363] main xml debug: looking for xml module: 2 candidates [00000363] main xml debug: using xml module "xml" [00000363] main xml debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [00000362] playlist demux debug: parsed 0 tracks successfully [00000363] main xml debug: removing module "xml" [00000359] main input debug: EOF reached [00000359] main input debug: control type=1 [00000362] main demux debug: removing module "playlist" [00000360] main access debug: removing module "access_file" [00000359] main input debug: Destroying the input for 'Media Library' [00000359] main input debug: TIMER input launching for 'Media Library' : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) [00000364] main preparser debug: waiting for thread completion [00000364] main preparser debug: thread started [00000364] main preparser debug: thread 6976 (preparser) created at priority 0 (playlist/thread.c:80) [00000365] main fetcher debug: waiting for thread completion [00000365] main fetcher debug: thread started [00000365] main fetcher debug: thread 6964 (fetcher) created at priority 0 (playlist/thread.c:110) [00000358] main playlist debug: waiting for thread completion [00000358] main playlist debug: thread started [00000358] main playlist debug: thread 6968 (playlist) created at priority 0 (playlist/thread.c:119) [00000358] main playlist debug: rebuilding array of current - root Playlist [00000358] main playlist debug: rebuild done - 0 items, index -1 [00000366] main interface debug: looking for interface module: 1 candidate [00000366] main interface debug: using interface module "hotkeys" [00000366] main interface debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [00000366] main interface debug: thread 6944 (interface) created at priority 0 (interface/interface.c:168) [00000366] main interface debug: thread started [00000358] main playlist debug: adding item `rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=c:/rtsp_800.mpg}}' ( rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=c:/rtsp_800.mpg}} )
Hi,
you should do:

JVLC jvlc = new JVLC("-I none rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=D:/record_vlc/rtsp_800.mpg}}");

so giving the command line you use with vlc as a constructor argument to JVLC.

Cheers,
Filippo

wollnyst
New Cone
New Cone
Posts: 8
Joined: 10 Oct 2008 16:40

Re: How to record stream RTSP with JVLC?

Postby wollnyst » 12 Oct 2008 19:09

i got pretty much the same problem...
any solutions?

BexX
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jul 2008 00:26

Re: How to record stream RTSP with JVLC?

Postby BexX » 13 Oct 2008 00:25

:sout is not the right choice in this case, because it is locally scoped to a media and you don't give any. So use --sout for global scope or:

Code: Select all

String[] parms = new String[] { "-vv", "--plugin-path=c:\\Programme\\VideoLAN\\VLC\\plugins"}; JVLC jvlc = new JVLC(parms); String file = "C:\\Dokumente und Einstellungen\\BexX\\Desktop\\jvlc-test\\a.mp3"; MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc, file); mediaDescriptor.addOption(":sout=#std{access=file,mux=ts,dst=test.ts}"); MediaPlayer mediaPlayer = mediaDescriptor.getMediaPlayer(); mediaPlayer.play();

wollnyst
New Cone
New Cone
Posts: 8
Joined: 10 Oct 2008 16:40

Re: How to record stream RTSP with JVLC?

Postby wollnyst » 13 Oct 2008 16:45

hmm i dont know realy much about vlc commands arguments / commands, is there a faq/tut?


i tried

Code: Select all

public static void main(String[] args) { String[] arg = new String[5]; arg[0] = "--intf=dummy"; arg[1] = "--ignore-config"; arg[2] = "--no-plugins-cache"; arg[3] = "--plugin-path=plugins"; arg[4] = "--extraintf=logger"; JVLC jvlc = new JVLC(arg); MediaDescriptor mdist = new MediaDescriptor(jvlc, "rtsp://169.254.239.208/mpeg/media.amp"); mdist.addOption(":sout=#std{access=file,mux=ts,dst=d:/test.avi}"); mdist.addOption("#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=D:/test2.avi"); MediaPlayer mplay = mdist.getMediaPlayer(); mplay.play(); }
doesn't workt, whats wrong?

BexX
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jul 2008 00:26

Re: How to record stream RTSP with JVLC?

Postby BexX » 18 Oct 2008 17:36

what exactly didn't work? Please try to add "-vvv" to arg and post your console ouput here.

wollnyst
New Cone
New Cone
Posts: 8
Joined: 10 Oct 2008 16:40

Re: How to record stream RTSP with JVLC?

Postby wollnyst » 22 Oct 2008 11:26

hum?

-vvv works with jvlc?

if I try

Code: Select all

String[] arg = new String[5]; arg[0] = "--vvv"; arg[1] = "--no-ignore-config"; arg[2] = "--no-plugins-cache"; arg[3] = "--plugin-path=plugins"; arg[4] = "--no-snapshot-preview"; // ** neue JVLC Instanz erzeugen ** // jvlc = new JVLC(arg); // ** videoOutPut festlegen ** // jvlc.setVideoOutput(mainVideoSiFrame.getVideoOutput());
i get
[00000001] main libvlc debug: VLC media player - version 0.9.2 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena
[00000001] main libvlc debug: translation test: code is "C"
vlc: unknown option or missing mandatory argument `--vvv'

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to record stream RTSP with JVLC?

Postby littlejohn » 22 Oct 2008 11:31

-vvv , not --vvv. Use a single dash.

wollnyst
New Cone
New Cone
Posts: 8
Joined: 10 Oct 2008 16:40

Re: How to record stream RTSP with JVLC?

Postby wollnyst » 22 Oct 2008 11:54

ah ok...

i dont know wich part is important, so the hole output:

Code: Select all

[00000001] main libvlc debug: VLC media player - version 0.9.2 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: opening config file (C:\Users\Stefan Wollny\AppData\Roaming\vlc\vlcrc) [00000001] main libvlc debug: loading config for module "main" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules [00000001] main libvlc debug: recursively browsing `C:\Program Files\Java\jdk1.6.0_10\jre\bin\modules' [00000001] main libvlc debug: recursively browsing `C:\Program Files\Java\jdk1.6.0_10\jre\bin\plugins' [00000001] main libvlc debug: recursively browsing `plugins' [00000354] main module warning: cannot find symbol "vlc_entry__0_9_0m" in file `plugins\libxml_plugin.dll' (Die angegebene Prozedur wurde nicht gefunden. (error 127)) [00000001] main libvlc debug: module bank initialized, found 261 modules [00000001] main libvlc debug: opening config file (C:\Users\Stefan Wollny\AppData\Roaming\vlc\vlcrc) [00000001] main libvlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU [00000001] main libvlc debug: looking for memcpy module: 4 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000358] main interaction debug: thread 5216 (Interaction control) created at priority 0 (interface/interaction.c:382) [00000360] main input debug: Creating an input for 'Media Library' [00000360] main input debug: Input is a meta file: disabling unneeded options [00000360] main input debug: `file/xspf-open://C:\Users\Stefan Wollny\AppData\Roaming\vlc\ml.xspf' gives access `file' demux `xspf-open' path `C:\Users\Stefan Wollny\AppData\Roaming\vlc\ml.xspf' [00000360] main input debug: creating access 'file' path='C:\Users\Stefan Wollny\AppData\Roaming\vlc\ml.xspf' [00000361] main access debug: looking for access module: 2 candidates [00000361] access_file access debug: opening file `C:\Users\Stefan Wollny\AppData\Roaming\vlc\ml.xspf' [00000361] main access debug: using access module "access_file" [00000361] main access debug: TIMER module_Need() : 1.834 ms - Total 1.834 ms / 1 intvls (Avg 1.834 ms) [00000362] main stream debug: Using AStream*Stream [00000362] main stream debug: pre-buffering... [00000362] main stream debug: received first data for our buffer [00000360] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\Stefan Wollny\AppData\Roaming\vlc\ml.xspf' [00000363] main demux debug: looking for demux module: 1 candidate [00000363] playlist demux debug: using XSPF playlist reader [00000363] main demux debug: using demux module "playlist" [00000363] main demux debug: TIMER module_Need() : 1.005 ms - Total 1.005 ms / 1 intvls (Avg 1.005 ms) [00000360] main input debug: `file/xspf-open://C:\Users\Stefan Wollny\AppData\Roaming\vlc\ml.xspf' successfully opened [00000364] main xml debug: looking for xml module: 1 candidate [00000364] main xml debug: using xml module "xtag" [00000364] main xml debug: TIMER module_Need() : 0.592 ms - Total 0.592 ms / 1 intvls (Avg 0.592 ms) [00000363] playlist demux debug: parsed 0 tracks successfully [00000364] main xml debug: removing module "xtag" [00000360] main input debug: EOF reached [00000360] main input debug: control type=1 [00000358] main interaction debug: thread started [00000363] main demux debug: removing module "playlist" [00000361] main access debug: removing module "access_file" [00000360] main input debug: TIMER input launching for 'Media Library' : 8.539 ms - Total 8.539 ms / 1 intvls (Avg 8.539 ms) [00000365] main preparser debug: waiting for thread initialization [00000365] main preparser debug: thread started [00000365] main preparser debug: thread 5292 (preparser) created at priority 0 (playlist/thread.c:79) [00000366] main fetcher debug: waiting for thread initialization [00000366] main fetcher debug: thread started [00000366] main fetcher debug: thread 5304 (fetcher) created at priority 0 (playlist/thread.c:108) [00000359] main playlist debug: waiting for thread initialization [00000359] main playlist debug: thread started [00000359] main playlist debug: thread 5300 (playlist) created at priority 0 (playlist/thread.c:117) [00000367] main interface debug: looking for interface module: 1 candidate [00000367] main interface debug: using interface module "hotkeys" [00000367] main interface debug: TIMER module_Need() : 0.121 ms - Total 0.121 ms / 1 intvls (Avg 0.121 ms) [00000367] main interface debug: thread 5324 (interface) created at priority 0 (interface/interface.c:168) *** LibVLC Exception not handled: No active input Set a breakpoint in 'libvlc_exception_not_handled' to debug. [00000368] main input debug: Creating an input for 'rtsp://169.254.239.208/mpeg4/media.amp' [00000359] main playlist debug: rebuilding array of current - root Playlist [00000368] main input debug: waiting for thread initialization [00000359] main playlist debug: rebuild done - 0 items, index -1 [00000368] main input debug: thread started [00000369] main stream output debug: stream=`std' [00000370] main stream out debug: looking for sout stream module: 1 candidate [00000370] main stream out debug: set config option: sout-standard-access to file [00000370] main stream out debug: set config option: sout-standard-mux to ts [00000368] main input debug: thread 5400 (input) created at priority 1 (input/input.c:368) [00000370] main stream out debug: set config option: sout-standard-dst to e:/test.avi [00000370] stream_out_standard stream out debug: creating `file/ts://e:/test.avi' [00000370] stream_out_standard stream out debug: extension is avi [00000370] stream_out_standard stream out debug: extension -> mux=avi [00000370] stream_out_standard stream out debug: using `file/ts://e:/test.avi' [00000371] main access out debug: looking for sout access module: 1 candidate [00000371] access_output_file access out debug: file access output opened (e:/test.avi) [00000371] main access out debug: using sout access module "access_output_file" [00000371] main access out debug: TIMER module_Need() : 16.700 ms - Total 16.700 ms / 1 intvls (Avg 16.700 ms) [00000370] stream_out_standard stream out debug: access opened [00000372] main mux debug: looking for sout mux module: 1 candidate [00000372] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000 [00000372] main mux debug: using sout mux module "mux_ts" [00000372] main mux debug: TIMER module_Need() : 114.436 ms - Total 114.436 ms / 1 intvls (Avg 114.436 ms) [00000369] main stream output debug: muxer support adding stream at any time [00000369] main stream output debug: muxer prefers to wait for all ES before starting to mux [00000370] stream_out_standard stream out debug: mux opened [00000370] main stream out debug: using sout stream module "stream_out_standard" [00000370] main stream out debug: TIMER module_Need() : 147.815 ms - Total 147.815 ms / 1 intvls (Avg 147.815 ms) [00000368] main input debug: `rtsp://169.254.239.208/mpeg4/media.amp' gives access `rtsp' demux `' path `169.254.239.208/mpeg4/media.amp' [00000368] main input debug: creating demux: access='rtsp' demux='' path='169.254.239.208/mpeg4/media.amp' [00000373] main demux debug: looking for access_demux module: 1 candidate Sending request: OPTIONS rtsp://169.254.239.208/mpeg4/media.amp RTSP/1.0 CSeq: 1 User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24) Received OPTIONS response: RTSP/1.0 200 OK CSeq: 1 Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN Sending request: DESCRIBE rtsp://169.254.239.208/mpeg4/media.amp RTSP/1.0 CSeq: 2 Accept: application/sdp User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24) Received DESCRIBE response: RTSP/1.0 200 OK CSeq: 2 Content-Base: rtsp://192.168.0.90:554/mpeg4/media.amp/ Content-Type: application/sdp Content-Length: 713 Need to read 713 extra bytes Read 713 extra bytes: v=0 o=- 4907454038 4907454048 IN IP4 192.168.0.90 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 b=AS:3000 t=0 0 a=control:* a=range:npt=now- a=mpeg4-iod: "data:application/mpeg4-iod;base64,AoDUAE8BAf/0AQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBTGNiQUFDM0d3QVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA==" a=isma-compliance:1,1.0,1 m=video 0 RTP/AVP 96 b=AS:3000 a=framerate:30.0 a=control:trackID=1 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=244; config=000001B0F4000001B5891300000100000001200086C40FA28A021E0A21 a=mpeg4-esid:201 [00000373] live555 demux debug: RTP subsession 'video/MP4V-ES' Sending request: SETUP rtsp://192.168.0.90:554/mpeg4/media.amp/trackID=1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=49546-49547 User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24) [00000367] main interface debug: thread started Received SETUP response: RTSP/1.0 200 OK CSeq: 3 Session: 0780518326;timeout=60 Transport: RTP/AVP;unicast;client_port=49546-49547;server_port=50064-50065;ssrc=049F92F8;mode="PLAY" [00000368] main input debug: selecting program id=0 [00000373] live555 demux debug: setup start: 0 stop:0 Sending request: PLAY rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 4 Session: 0780518326 Range: npt=0.000- User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24) Received PLAY response: RTSP/1.0 200 OK CSeq: 4 Session: 0780518326 Range: npt=now- RTP-Info: url=trackID=1;seq=26858;rtptime=1488874631 [00000373] live555 demux debug: We have a timeout of 60 seconds [00000374] main generic debug: waiting for thread initialization [00000374] main generic debug: thread started [00000374] main generic debug: thread 5704 (liveMedia-timeout) created at priority 0 (live555.cpp:1054) [00000373] live555 demux debug: spawned timeout thread [00000373] live555 demux debug: play start: 0 stop:0 [00000373] main demux debug: using access_demux module "live555" [00000373] main demux debug: TIMER module_Need() : 68.715 ms - Total 68.715 ms / 1 intvls (Avg 68.715 ms) [00000368] main input debug: looking for a subtitle file in C:\Users\Stefan Wollny\Documents\optronic\vrc\ [00000375] main packetizer debug: looking for packetizer module: 18 candidates [00000375] packetizer_mpeg4video packetizer debug: opening with vol size: 30 [00000375] main packetizer debug: using packetizer module "packetizer_mpeg4video" [00000375] main packetizer debug: TIMER module_Need() : 2.842 ms - Total 2.842 ms / 1 intvls (Avg 2.842 ms) [00000375] main packetizer debug: thread 5732 (decoder) created at priority 0 (input/decoder.c:217) [00000375] main packetizer debug: thread started [00000368] main input debug: starting in sync mode [00000368] main input debug: `rtsp://169.254.239.208/mpeg4/media.amp' successfully opened [00000368] main input debug: control type=1 [00000369] main stream output debug: adding a new sout input (sout_input:050A4098) [00000372] main mux debug: adding a new input [00000372] mux_ts mux debug: adding input codec=mp4v pid=68 [00000372] mux_ts mux debug: new PCR PID is 68 [00000375] main packetizer debug: switching to async mode [00000372] mux_ts mux warning: packet with too strange dts (dts=7869326430,old=231000,pcr=231000) [00000373] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [00000372] mux_ts mux warning: packet with too strange dts (dts=4911255904,old=7871658804,pcr=7871658804) [00000372] mux_ts mux warning: packet with too strange dts (dts=7871984943,old=4911366904,pcr=4911366904) Sending request: GET_PARAMETER rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 5 Session: 0780518326 User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24) Received GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 5 Session: 0780518326 [00000374] live555 generic debug: reset the timeout timer Sending request: GET_PARAMETER rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 6 Session: 0780518326 User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24) Received GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 6 Session: 0780518326 [00000374] live555 generic debug: reset the timeout timer

BexX
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jul 2008 00:26

Re: How to record stream RTSP with JVLC?

Postby BexX » 22 Oct 2008 18:19

looks good imho... so whats the exact problem? Is "e:/test.avi" being created? If so, is their content in the file? By the way: as you are using mux ts, you should use ".ts" as file extension.

wollnyst
New Cone
New Cone
Posts: 8
Joined: 10 Oct 2008 16:40

Re: How to record stream RTSP with JVLC?

Postby wollnyst » 22 Oct 2008 20:16

oh, wow as you say, looks good...
now i checked it, the e:\test.avi is creating, but if i open it with vlc the first 10-15 seconds are black...

what can i do to transform the video into simple mpeg1 or mpeg2 ?

BexX
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jul 2008 00:26

Re: How to record stream RTSP with JVLC?

Postby BexX » 22 Oct 2008 23:35

take a look at:
http://www.videolan.org/doc/streaming-h ... /ch03.html
http://www.videolan.org/streaming-features.html

ps or raw as mux should work, depending on the input format, or if you use transcode to make it mpeg2.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests