PDA

View Full Version : Live stream stuttering and disconnects


unknownsoldierx
01-09-2013, 07:24 PM
Is there a way to deal with unreliable live streams? I have a couple feeds that sometimes start to freeze every few seconds. This is when I play them in my browser and when I have it sent via rtmpdump to VLC.

Also, these streams are not watchable in VLC. Besides the freezing, after a short time watching, VLC stops and rtmpdump says something like "ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 4696".

I've tried adding "--live-caching" to the command, but it doesn't help any.

D:\Programs\rtmpdump\rtmpdump.exe -r rtmp://d.cdn.msnbclive.eu/edge -W http://msnbclive.eu/player.swf -y msnbc_live -v | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --live-caching 60000 -

svnpenn
01-09-2013, 07:54 PM
ffplay "rtmp://d.cdn.msnbclive.eu/edge/msnbc_live swfUrl=http://msnbclive.eu/player.swf live=1"

​​​​​

unknownsoldierx
01-09-2013, 08:56 PM
Video loaded and played for a few seconds, then froze and the audio went crazy.

ffplay version N-48675-g2672b2c Copyright (c) 2003-2013 the FFmpeg developers
built on Jan 9 2013 23:28:36 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --e
nable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-l
ibbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
ble-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwol
ame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --ena
ble-libx264 --enable-libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.107 / 54. 59.107
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Metadata:
presetname Custom
creationdate Tue Jan 08 04:52:54 2013
videodevice 713x BDA Analog Capture
framerate 25.00
width 768.00
height 576.00
videocodecid avc1
videodatarate 550.00
avclevel 31.00
avcprofile 66.00
videokeyframe_frequency5.00
audiodevice Line In (VIA High Definition Audio)
audiosamplerate 44100.00
audiochannels 2.00
audioinputvolume 79.00
audiocodecid .mp3
audiodatarate 112.00
RTMP_ReadPacket, failed to read RTMP packet body. len: 4681
[flv @ 000000000203d0e0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://d.cdn.msnbclive.eu/edge/msnbc_live swfUrl=http://msnbclive.eu/
player.swf live=1':
Metadata:
author :
copyright :
description :
keywords :
rating :
title :
presetname : Custom
creationdate : Tue Jan 08 04:52:54 2013
:
videodevice : 713x BDA Analog Capture
avclevel : 31
avcprofile : 66
videokeyframe_frequency: 5
audiodevice : Line In (VIA High Definition Audio)
audiochannels : 2
audioinputvolume: 79
Duration: N/A, start: 0.000000, bitrate: 675 kb/s
Stream #0:0: Video: h264 (Baseline), yuv420p, 768x576 [SAR 1:1 DAR 4:3], 563 kb/s, 25
tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 112 kb/s
Frame changed from size:0x0 to size:768x576 278KB sq= 0B f=0/0
WriteN, RTMP send error 10054 (46 bytes)q= 0KB sq= 0B f=115/80

karlo2105
01-10-2013, 04:47 PM
Works fine.


rtmpdump -v -r "rtmp://d.cdn.msnbclive.eu/edge/msnbc_live" -W "http://msnbclive.eu/player.swf" | vlc -
RTMPDump v2.4 GIT-2012-11-09 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: author
INFO: copyright
INFO: description
INFO: keywords
INFO: rating
INFO: title
INFO: presetname Custom
INFO: creationdate Tue Jan 08 04:52:54 2013
INFO: videodevice 713x BDA Analog Capture
INFO: framerate 25.00
INFO: width 768.00
INFO: height 576.00
INFO: videocodecid avc1
INFO: videodatarate 550.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency 5.00
INFO: audiodevice Line In (VIA High Definition Audio)
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: audioinputvolume 79.00
INFO: audiocodecid .mp3
INFO: audiodatarate 112.00
1555.207 kB / 11.18 sec
ERROR: Download: Failed writing, exiting!

unknownsoldierx
01-10-2013, 06:46 PM
Your connection to the server is more stable. I'm not sure what that has to do with my problem. Also, I'm trying to play it through VLC.