Page 1 of 1

Issues playing RTSP stream

Posted: 01 Mar 2013 11:22
by Capitrium
I've setup an RTSP stream using VLC 2.0.6 on a virtual Ubuntu 12.04 server and I've been trying to view the stream using a separate VLC 2.0.5 client on a Windows 7 x64 Home Premium desktop. As far a I can tell (something of a newbie when it comes to this kind of streaming setup) the VLC server is playing the stream, as I can monitor it using the web interface. I can also connect to the stream from the VLC client, however the issue is that the client seems to randomly close it's connection to the stream - the video will be playing fine, then suddenly stops as if I had pressed the stop button. I can resume playback by hitting play, but the same thing happens roughly once a minute which makes the stream basically useless.

I've searched the forums for similar issues but the only results were for old or already fixed issues, so now I'm posting here in the hopes that someone can help me out. Here's the command used to start the stream just in case I screwed it up:

Code: Select all

cvlc -d -I http /path/to/media/directory --random --sout '#rtp{mux=ts,dst=192.168.2.6,port=48844,sdp=rtsp://192.168.2.6:8080/stream.sdp}'
And here's the log output from the opening of the stream to the random close shortly after:

Code: Select all

main debug: processing request item: rtsp://192.168.2.6:8080/stream.sdp, node: Playlist, skip: 0 main debug: resyncing on rtsp://192.168.2.6:8080/stream.sdp main debug: rtsp://192.168.2.6:8080/stream.sdp is at 0 main debug: starting playback of the new playlist item main debug: resyncing on rtsp://192.168.2.6:8080/stream.sdp main debug: rtsp://192.168.2.6:8080/stream.sdp is at 0 main debug: creating new input thread main debug: Creating an input for 'rtsp://192.168.2.6:8080/stream.sdp' main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\Cap\AppData\Local\Temp' main debug: `rtsp://192.168.2.6:8080/stream.sdp' gives access `rtsp' demux `' path `192.168.2.6:8080/stream.sdp' main debug: creating demux: access='rtsp' demux='' location='192.168.2.6:8080/stream.sdp' file='\\192.168.2.6:8080\stream.sdp' main debug: looking for access_demux module: 1 candidate live555 debug: version 2012.09.13 qt4 debug: IM: Setting an input live555 debug: RTP subsession 'video/MP2T' live555 debug: setup start: 0.000000 stop:0.000000 main debug: creating demux: access='' demux='ts' location='' file='(null)' live555 debug: play start: 667.224056 stop:0.000000 main debug: using access_demux module "live555" main debug: TIMER module_need() : 334.150 ms - Total 334.150 ms / 1 intvls (Avg 334.150 ms) main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\Cap\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 1.520 ms - Total 1.520 ms / 1 intvls (Avg 1.520 ms) main debug: `rtsp://192.168.2.6:8080/stream.sdp' successfully opened main debug: looking for demux module: 1 candidate ts debug: pid[68] unknown ts debug: pid[69] unknown ts debug: PATCallBack called ts debug: new PAT ts_id=8781 version=15 current_next=1 ts debug: * number=1 pid=66 ts debug: PMTCallBack called ts debug: new PMT program number=1 version=25 pid_pcr=68 ts error: MPEG-4 descriptor not found ts debug: * es pid=68 type=16 fcc=mp4v main debug: selecting program id=1 main debug: looking for decoder module: 32 candidates avcodec debug: libavcodec already initialized avcodec debug: trying to use direct rendering avcodec debug: allowing 4 thread(s) for decoding avcodec debug: ffmpeg codec (MPEG-4 Video) started avcodec debug: using frame thread mode with 4 threads main debug: using decoder module "avcodec" main debug: TIMER module_need() : 0.815 ms - Total 0.815 ms / 1 intvls (Avg 0.815 ms) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_mpeg4video" main debug: TIMER module_need() : 0.090 ms - Total 0.090 ms / 1 intvls (Avg 0.090 ms) ts debug: * es pid=69 type=3 fcc=mpga main debug: looking for decoder module: 32 candidates main debug: using decoder module "mpeg_audio" main debug: TIMER module_need() : 0.179 ms - Total 0.179 ms / 1 intvls (Avg 0.179 ms) main debug: using demux module "ts" main debug: TIMER module_need() : 89.931 ms - Total 89.931 ms / 1 intvls (Avg 89.931 ms) ts debug: DEMUX_SET_GROUP -1 00000000 ts warning: first packet for pid=68 cc=0x9 ts warning: first packet for pid=69 cc=0x7 main debug: Buffering 0% mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:96 main debug: recycling audio output main debug: looking for audio output module: 2 candidates aout_directx debug: Opening DirectSound Audio Output aout_directx debug: found device: Primary Sound Driver aout_directx debug: found device: TOSHIBA-TV-1 (NVIDIA High Definition Audio) aout_directx debug: found device: Speakers (2- USB Audio CODEC ) aout_directx debug: device supports 2 channels (DEFAULT!) aout_directx debug: device supports 1 channel aout_directx debug: Windows says your SpeakerConfig is stereo packetizer_mpeg4video warning: waiting for VOL aout_directx debug: creating DirectSoundThread main debug: using audio output module "aout_directx" main debug: TIMER module_need() : 14.497 ms - Total 14.497 ms / 1 intvls (Avg 14.497 ms) aout_directx debug: DirectSoundThread ready main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'f32l'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 13 candidates audio_format debug: f32l->s16l, bits per sample: 32->16 main debug: using audio filter module "audio_format" main debug: TIMER module_need() : 0.064 ms - Total 0.064 ms / 1 intvls (Avg 0.064 ms) main debug: conversion pipeline completed main debug: looking for audio mixer module: 2 candidates main debug: using audio mixer module "float32_mixer" main debug: TIMER module_need() : 0.038 ms - Total 0.038 ms / 1 intvls (Avg 0.038 ms) main debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/969 bytes main debug: looking for audio filter module: 1 candidate scaletempo debug: format: 48000 rate, 2 nch, 4 bps, fl32 scaletempo debug: params: 30 stride, 0.200 overlap, 14 search scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode main debug: using audio filter module "scaletempo" main debug: TIMER module_need() : 0.070 ms - Total 0.070 ms / 1 intvls (Avg 0.070 ms) main debug: filter(s) 'mpga'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 13 candidates mpgatofixed32 debug: mpga->f32l, bits per sample: 32 main debug: using audio filter module "mpgatofixed32" main debug: TIMER module_need() : 0.060 ms - Total 0.060 ms / 1 intvls (Avg 0.060 ms) main debug: conversion pipeline completed main debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo main debug: conversion pipeline completed main debug: filter(s) 'f32l'->'f32l' 52800 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 13 candidates main debug: using audio filter module "samplerate" main debug: TIMER module_need() : 0.068 ms - Total 0.068 ms / 1 intvls (Avg 0.068 ms) main debug: conversion pipeline completed main debug: End of audio preroll main debug: Buffering 7% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 14% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 21% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 28% main debug: Buffering 35% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 42% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 49% packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 56% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 64% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 71% packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 78% packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 85% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 92% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 99% packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Stream buffering done (1067 ms in 1055 ms) main debug: Decoder buffering done in 0 ms mpgatofixed32 debug: libmad error: bad main_data_begin pointer packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main warning: buffer too late (64916), up-sampling packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: looking for text renderer module: 2 candidates freetype debug: Using Arial as font from file C:\Windows\Fonts\arial.ttf freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 0.767 ms - Total 0.767 ms / 1 intvls (Avg 0.767 ms) main debug: looking for video filter2 module: 18 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 0.318 ms - Total 0.318 ms / 1 intvls (Avg 0.318 ms) main debug: looking for video filter2 module: 18 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 0.079 ms - Total 0.079 ms / 1 intvls (Avg 0.079 ms) main debug: Deinterlacing available main debug: deinterlace 0, mode blend, is_needed 0 main debug: Opening vout display wrapper main debug: looking for vout display module: 6 candidates direct3d debug: creating Vout EventThread direct3d debug: DirectXCreateWindow main debug: looking for vout window hwnd module: 2 candidates qt4 debug: requesting video... main warning: audio output out of sync, adjusting dates (63400 us) qt4 debug: Video was requested 0, 0 main debug: using vout window hwnd module "qt4" main debug: TIMER module_need() : 7.574 ms - Total 7.574 ms / 1 intvls (Avg 7.574 ms) direct3d debug: created video sub-window direct3d debug: Vout EventThread running direct3d debug: disabling screen saver direct3d debug: Direct3d Device: NVIDIA GeForce GTX 560 Ti 4318 4608 161 main warning: not synchronized (63400 us), resampling main debug: VoutDisplayEvent 'resize' 642x401 window direct3d warning: trying surface pixel format: YV12 direct3d debug: selected surface pixel format is YV12 direct3d debug: Using D3DTEXF_LINEAR for minification direct3d debug: Using D3DTEXF_LINEAR for magnification direct3d debug: Direct3D scene created successfully direct3d debug: Direct3D device adapter successfully initialized main debug: using vout display module "direct3d" main debug: TIMER module_need() : 35.625 ms - Total 35.625 ms / 1 intvls (Avg 35.625 ms) main debug: original format sz 624x352, of (0,0), vsz 624x352, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: removing module "freetype" main debug: VoutDisplayEvent 'resize' 624x352 window main debug: looking for text renderer module: 2 candidates freetype debug: Using Arial as font from file C:\Windows\Fonts\arial.ttf freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 0.639 ms - Total 0.639 ms / 1 intvls (Avg 0.639 ms) avcodec debug: using direct rendering main warning: timing screwed, stopping resampling main warning: buffer too late (127197), up-sampling main debug: End of video preroll direct3d debug: Created 345x23 texture for OSD main debug: Post-processing available main debug: auto hiding mouse cursor main warning: picture is too late to be displayed (missing 41 ms) main debug: picture might be displayed late (missing 0 ms) main debug: auto hiding mouse cursor main warning: resampling stopped after 16804989 usec (drift: 1103) main debug: auto hiding mouse cursor main debug: auto hiding mouse cursor live555 debug: StreamClose main debug: EOF reached main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: waiting decoder fifos to empty main debug: finished input main debug: removing module "avcodec" avcodec debug: ffmpeg codec (MPEG-4 Video) stopped main debug: killing decoder fourcc `mp4v', 0 PES in FIFO main debug: saving a free vout main debug: reusing provided vout main debug: removing module "packetizer_mpeg4video" main debug: removing module "mpeg_audio" main debug: killing decoder fourcc `mpga', 0 PES in FIFO main debug: removing module "mpgatofixed32" main debug: removing module "scaletempo" main debug: removing module "samplerate" main debug: removing module "aout_directx" aout_directx debug: closing audio device aout_directx debug: DirectSoundThread exiting main debug: removing module "audio_format" main debug: removing module "float32_mixer" main debug: releasing audio output main debug: removing module "live555" ts debug: eof ? main debug: removing module "ts" ts debug: pid list: ts debug: - pid[0] seen ts debug: - pid[66] seen ts debug: - pid[68] seen main debug: Program doesn't contain anymore ES ts debug: - pid[69] seen ts debug: - pid[8191] seen main debug: dead input main debug: changing item without a request (current 0/1) main debug: nothing to play main debug: destroying useless vout main debug: removing module "direct3d" direct3d debug: Direct3D scene released successfully qt4 debug: IM: Deleting the input direct3d debug: DirectXEventThread terminating direct3d debug: DirectXCloseWindow direct3d debug: WinProc WM_DESTROY qt4 debug: releasing video... qt4 debug: Video is not needed anymore main debug: removing module "freetype" main debug: removing module "yuvp" main debug: removing module "swscale"
Any help with getting the VLC client to stay open while viewing the RTSP stream would be greatly appreciated! :)

Re: Issues playing RTSP stream

Posted: 01 Mar 2013 11:38
by Sébastien Escudier
There is a bug in 2.0.5, so try 2.0.4 or 2.0.6 nightly build for the client

Re: Issues playing RTSP stream

Posted: 01 Mar 2013 12:03
by Capitrium
Downgraded the client to 2.0.4 and it seems like that did the trick; I love it when complicated problems have simple solutions :P Thanks a bunch!