Audio/video stream recording forums 
 | 
| Attention Visitor: | 
You may have to register or log in before you can post: 
  | 
		
			
  | 	
	
	
		
		|||||||
     
		  
 
	
	
 | 
| 
		 | 
	Thread Tools | Display Modes | 
| 
	 | 
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Live stream stuttering and disconnectsIs 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. Code: 
	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 -  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: Live stream stuttering and disconnectsQuote: 
	
  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: Live stream stuttering and disconnectsVideo loaded and played for a few seconds, then froze and the audio went crazy. 
		
	
		
		
		
		
		
	
		
		
	
	
	Code: 
	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
 | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: Live stream stuttering and disconnectsWorks fine. 
		
	
		
		
		
		
		
	
		
		
	
	
	Code: 
	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!  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: Live stream stuttering and disconnectsYour 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. 
		
	
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 | 
		
	
| Tags: rtmpdump | 
| Thread Tools | |
| Display Modes | |
		
  | 
	
		
  |