Streaming Stuttering Video

About encoding, codec settings, muxers and filter usage
hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

Streaming Stuttering Video

Postby hislitermos » 19 Oct 2013 23:58

Hello,
At both streaming and client sides, I have been running 2.0.8 Twoflower.
I resetted the preferences at both sides at first and then started streaming.
During preview VLC tried to buffer too many times at client side, stucked couple of times and then stopped.

Here are streaming parameters:

Code: Select all

:sout=#transcode{vcodec=h264,vb=920,fps=25,scale=1,width=720,height=576,acodec=mp3,ab=128,channels=2,samplerate=44100}:rtp{dst=streaming_server_ip,port=7002,mux=ts,ttl=1} :sout-all :sout-keep
Please let me know how to get rid of this problem.
You can find below debugging log file.

Code: Select all

main debug: processing request item: http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd, node: Playlist, skip: 0 main debug: resyncing on http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd main debug: http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd is at 0 main debug: starting playback of the new playlist item main debug: resyncing on http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd main debug: http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd is at 0 main debug: creating new input thread main debug: Creating an input for 'http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd' main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\acer\AppData\Local\Temp' main debug: `http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd' gives access `http' demux `' path `streaming_server_ip:8000/2.ch?u=username:p=user_passwd' main debug: creating demux: access='http' demux='' location='streaming_server_ip:8000/2.ch?u=username:p=user_passwd' file='\\streaming_server_ip:8000\2.ch?u=username:p=user_passwd' main debug: looking for access_demux module: 0 candidates main debug: no access_demux module matched "http" main debug: TIMER module_need() : 0.845 ms - Total 0.845 ms / 1 intvls (Avg 0.845 ms) main debug: creating access 'http' location='streaming_server_ip:8000/2.ch?u=username:p=user_passwd', path='\\streaming_server_ip:8000\2.ch?u=username:p=user_passwd' main debug: looking for access module: 2 candidates access_http debug: http: server='streaming_server_ip' port=8000 file='/2.ch?u=username:p=user_passwd' main debug: net: connecting to streaming_server_ip port 8000 qt4 debug: IM: Setting an input main debug: connection succeeded (socket = 2840) access_http debug: protocol 'HTTP' answer code 200 access_http debug: Server: Darwin/6.0 access_http debug: Connection: Keep-Alive access_http debug: Content-Type: video/mp2t main debug: using access module "access_http" main debug: TIMER module_need() : 432.595 ms - Total 432.595 ms / 1 intvls (Avg 432.595 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 7 ms main debug: pre-buffering done 1024 bytes in 0s - 134 KiB/s main debug: looking for stream_filter module: 4 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.861 ms - Total 0.861 ms / 1 intvls (Avg 0.861 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.728 ms - Total 0.728 ms / 1 intvls (Avg 0.728 ms) main debug: creating demux: access='http' demux='' location='streaming_server_ip:8000/2.ch?u=username:p=user_passwd' file='\\streaming_server_ip:8000\2.ch?u=username:p=user_passwd' main debug: looking for demux module: 55 candidates ts debug: PATCallBack called ts debug: new PAT ts_id=10445 version=21 current_next=1 ts debug: * number=1 pid=66 ts debug: PMTCallBack called ts debug: new PMT program number=1 version=18 pid_pcr=69 ts debug: * es pid=68 type=3 fcc=mpga main debug: selecting program id=1 ts debug: * es pid=69 type=27 fcc=h264 access_http warning: unimplemented query in control main debug: using demux module "ts" main debug: TIMER module_need() : 107.666 ms - Total 107.666 ms / 1 intvls (Avg 107.666 ms) main debug: looking for decoder module: 32 candidates main debug: using decoder module "mpeg_audio" main debug: TIMER module_need() : 0.781 ms - Total 0.781 ms / 1 intvls (Avg 0.781 ms) 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 (H264 - MPEG-4 AVC (part 10)) started avcodec debug: using frame thread mode with 4 threads main debug: using decoder module "avcodec" main debug: TIMER module_need() : 7.649 ms - Total 7.649 ms / 1 intvls (Avg 7.649 ms) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_h264" main debug: TIMER module_need() : 0.412 ms - Total 0.412 ms / 1 intvls (Avg 0.412 ms) ts debug: DEMUX_SET_GROUP 0 00000000 main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\acer\AppData\Roaming\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.luac main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 9.559 ms - Total 9.559 ms / 1 intvls (Avg 9.559 ms) main debug: `http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd' successfully opened ts warning: first packet for pid=69 cc=0x4 ts warning: first packet for pid=68 cc=0x5 main debug: Buffering 0% mpeg_audio debug: MPGA channels:2 samplerate:44100 bitrate:128 main debug: recycling audio output main debug: Buffering 7% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: looking for audio output module: 2 candidates aout_directx debug: Opening DirectSound Audio Output aout_directx debug: found device: Primary Audio Driver aout_directx debug: found device: Audio (High Definition Audio Device) aout_directx debug: device supports 2 channels (DEFAULT!) aout_directx debug: device supports 1 channel aout_directx debug: Windows says your SpeakerConfig is stereo aout_directx debug: creating DirectSoundThread main debug: using audio output module "aout_directx" aout_directx debug: DirectSoundThread ready main debug: TIMER module_need() : 71.412 ms - Total 71.412 ms / 1 intvls (Avg 71.412 ms) packetizer_h264 warning: waiting for SPS/PPS main debug: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'f32l'->'s16l' 44100 Hz->44100 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.393 ms - Total 0.393 ms / 1 intvls (Avg 0.393 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.281 ms - Total 0.281 ms / 1 intvls (Avg 0.281 ms) main debug: input 'mpga' 44100 Hz Stereo frame=1152 samples/1053 bytes main debug: looking for audio filter module: 1 candidate scaletempo debug: format: 44100 rate, 2 nch, 4 bps, fl32 scaletempo debug: params: 30 stride, 0.200 overlap, 14 search scaletempo debug: 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode main debug: using audio filter module "scaletempo" main debug: TIMER module_need() : 0.666 ms - Total 0.666 ms / 1 intvls (Avg 0.666 ms) main debug: filter(s) 'mpga'->'f32l' 44100 Hz->44100 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.405 ms - Total 0.405 ms / 1 intvls (Avg 0.405 ms) main debug: conversion pipeline completed main debug: filter(s) 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo main debug: conversion pipeline completed main debug: filter(s) 'f32l'->'f32l' 48510 Hz->44100 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.453 ms - Total 0.453 ms / 1 intvls (Avg 0.453 ms) main debug: conversion pipeline completed main debug: End of audio preroll main debug: Buffering 14% packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 21% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 28% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 35% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 42% packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 49% packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 56% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 63% packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 70% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 78% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 85% packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 92% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 99% packetizer_h264 warning: waiting for SPS/PPS main debug: Stream buffering done (1065 ms in 632 ms) packetizer_h264 warning: waiting for SPS/PPS main debug: Decoder buffering done in 0 ms mpgatofixed32 debug: libmad error: bad main_data_begin pointer packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: audio output is too slow (100432 us): trashing 50000 us main debug: audio output is too slow (50432 us): trashing 50000 us main debug: audio output is too slow (432 us): trashing 50000 us main warning: audio output out of sync, adjusting dates (60410 us) main warning: not synchronized (60414 us), resampling packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 debug: found NAL_SPS (sps_id=0) packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0) 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() : 3.381 ms - Total 3.381 ms / 1 intvls (Avg 3.381 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() : 1.525 ms - Total 1.525 ms / 1 intvls (Avg 1.525 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.365 ms - Total 0.365 ms / 1 intvls (Avg 0.365 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 error: Could not read adapter capabilities. (hr=0x8876086A) direct3d error: Direct3D could not be initialized directx debug: creating Vout EventThread directx debug: DirectXCreateWindow main debug: looking for vout window hwnd module: 2 candidates qt4 debug: requesting video... qt4 debug: Video was requested 0, 0 main debug: using vout window hwnd module "qt4" main debug: TIMER module_need() : 190.350 ms - Total 190.350 ms / 1 intvls (Avg 190.350 ms) directx debug: created video sub-window directx debug: Vout EventThread running directx debug: disabling screen saver directx debug: directx-device: directx debug: screen dimensions (0x0,1024x600) directx debug: DirectDraw Capabilities: overlay=0 yuvoverlay=0 can_deinterlace_overlay=0 colorkey=0 stretch=0 bltfourcc=0 main debug: VoutDisplayEvent 'resize' 784x614 window directx debug: RGB plain surface created successfully main debug: using vout display module "directx" main debug: TIMER module_need() : 270.074 ms - Total 270.074 ms / 1 intvls (Avg 270.074 ms) main debug: A filter to adapt decoder to display is needed main debug: looking for video filter2 module: 18 candidates swscale debug: 720x576 chroma: I420 -> 720x576 chroma: RV32 with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 0.605 ms - Total 0.605 ms / 1 intvls (Avg 0.605 ms) main debug: Filter 'Swscale' (03f303c8) appended to chain main debug: original format sz 720x576, of (0,0), vsz 720x576, 4cc I420, sar 16:15, msk r0x0 g0x0 b0x0 main debug: removing module "freetype" main debug: VoutDisplayEvent 'resize' 768x509 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() : 4.193 ms - Total 4.193 ms / 1 intvls (Avg 4.193 ms) avcodec debug: using direct rendering main debug: End of video preroll freetype error: Breaking unbreakable line main debug: looking for video blending module: 1 candidate main debug: using video blending module "blend" main debug: TIMER module_need() : 0.388 ms - Total 0.388 ms / 1 intvls (Avg 0.388 ms) main debug: Post-processing available main debug: picture might be displayed late (missing 9 ms) main debug: auto hiding mouse cursor main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms) main error: ES_OUT_RESET_PCR called main debug: End of audio preroll main debug: Buffering 0% main debug: Buffering 7% main debug: Buffering 14% main debug: Buffering 21% main debug: End of video preroll main debug: Received first picture main debug: Buffering 28% main debug: Buffering 35% main debug: Buffering 42% main debug: Buffering 49% main debug: Buffering 56% main debug: Buffering 63% main debug: Buffering 71% main debug: Buffering 78% main debug: Buffering 85% main debug: Buffering 92% main debug: Stream buffering done (1001 ms in 1023 ms) main debug: Decoder buffering done in 0 ms mpgatofixed32 debug: libmad error: bad main_data_begin pointer main debug: audio output is starving (-265069), playing silence ts warning: discontinuity received 0x6 instead of 0x0 (pid=69) ts warning: discontinuity received 0xf instead of 0xe (pid=68) mpgatofixed32 debug: libmad error: bad main_data_begin pointer main warning: buffer too early (-52246), down-sampling main warning: resampling stopped after 10972998 usec (drift: -345) ts debug: eof ? 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: finished input 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 main debug: waitpipe: object killed 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 "avcodec" avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped main debug: killing decoder fourcc `h264', 0 PES in FIFO main debug: saving a free vout main debug: reusing provided vout main debug: removing module "packetizer_h264" 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: removing module "stream_filter_record" main debug: removing module "access_http" 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 "blend" main debug: Filter 03f303c8 removed from chain main debug: removing module "swscale" main debug: removing module "directx" directx debug: DirectXEventThread terminating directx debug: DirectXCloseWindow directx debug: WinProc WM_DESTROY qt4 debug: releasing video... qt4 debug: IM: Deleting the input main debug: TIMER input launching for 'http://streaming_server_ip:8000/2.ch?u=username:p=user_passwd' : 579.016 ms - Total 579.016 ms / 1 intvls (Avg 579.016 ms) qt4 debug: Video is not needed anymore main debug: removing module "freetype" main debug: removing module "yuvp" main debug: removing module "swscale"
Thanks in advance
Ermos

hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

Re: Stuttering Video

Postby hislitermos » 20 Oct 2013 21:48

Hello,
I also have found a similar thread but there was no reply.
https://forum.videolan.org/viewtopic.php?f=2&t=89973

Thanks in advance
Ermos

hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

[solved] Re: Stuttering Video

Postby hislitermos » 22 Oct 2013 01:39

hello,
i changed bitrate, frame rate and scale parameters. As a result, time-out period is less now but related errors still exist.
I will keep my settings and wait for developments, if possible...


regards
Ermos


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests