[FFmpeg-user] -t 5 doesn't seem to work with certain live streams

Roger Pack rogerdpack2 at gmail.com
Mon Sep 26 21:40:27 CEST 2011


Hello all.
When receiving an mp3 stream VLC (which may or may not be a high
quality streamer),
if I specify that it record for 1s, I get the following (it records
for 16 seconds):



$ ffmpeg.exe -t 1 -y -i http://127.0.0.1:8081/go.mp3
"C:/Users/packrd/AppData/Local/Temp/wav.2220.32829.wav"
ffmpeg version N-32726-ga254452, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 19 2011 19:49:13 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 16. 1 / 51. 16. 1
  libavcodec   53. 16. 0 / 53. 16. 0
  libavformat  53. 12. 0 / 53. 12. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 2 /  2. 43. 2
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Ignoring attempt to set invalid timebase for st:0   # THIS MAY BE A CLUE.
[ogg @ 00038D00] Estimating duration from bitrate, this may be inaccurate
Input #0, ogg, from 'http://127.0.0.1:8081/go.mp3':
  Duration: N/A, start: 0.000000, bitrate: 268435 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 268435 kb/s
Output #0, wav, to 'C:/Users/packrd/AppData/Local/Temp/wav.2220.32829.wav':
  Metadata:
    encoder         : Lavf53.12.0
    Stream #0.0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0.0 -> #0.0 (mp3 -> pcm_s16le)
Press [q] to stop, [?] for help
size=    2781kB time=00:00:16.14 bitrate=1411.2kbits/s
video:0kB audio:2781kB global headers:0kB muxing overhead 0.001545%


Any insights here?
Thanks!
-roger-


More information about the ffmpeg-user mailing list