[FFmpeg-user] Problems encoding to Ogg/Vorbis...

Mattt mattt at mattts.net
Wed Jan 30 07:08:05 CET 2013


Hi all :-)

   i'm using the deb-multimedia version of ffmpeg on Debian Squeeze to 
encode some audio tracks...

   i'm having trouble getting reliable OGGs (with libvorbis) - 
specifically, ffprobe shows (for some files) a rediculous duration, and 
ff shows NaN for duration in html5 players despite that Apache is 
serving byte-ranges.

   The files do play, btw... but frequently only for a few (seemingly 
random amount of) seconds. I'm also encoding same origin files (a 
mixture - usually MP3, OGG or FLAC) to mp3, which seems to be going 
swimmingly :-)

   The command I'm using:

     ffmpeg -y -i $infile -codec:a libvorbis -aq 2 -ar 44100 
-analyzeduration 10000000 $outfile

   ffprobe output for one of the troublesome output files:

==========
root at warhawk:/home/mc/artists/3/music/streams# ffprobe Pipeline.ogg
ffprobe version 0.7.13, Copyright (c) 2007-2011 the FFmpeg developers
   built on Jun 13 2012 14:14:09 with gcc 4.4.5
   configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall 
-g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl 
--enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid 
--enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 
--enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter 
--enable-libdirac --disable-decoder=libdirac --enable-libfreetype 
--enable-libschroedinger --disable-encoder=libschroedinger 
--enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp 
--extra-libs=-lgcrypt --disable-altivec --disable-armv5te 
--disable-armv6 --disable-vis
   libavutil    50. 43. 0 / 50. 43. 0
   libavcodec   52.123. 0 / 52.123. 0
   libavformat  52.111. 0 / 52.111. 0
   libavdevice  52.  5. 0 / 52.  5. 0
   libavfilter   1. 80. 0 /  1. 80. 0
   libswscale    0. 14. 1 /  0. 14. 1
   libpostproc  51.  2. 0 / 51.  2. 0
Input #0, ogg, from 'Pipeline.ogg':
   Duration: 159957:47:00.09, start: 0.000000, bitrate: N/A
     Stream #0.0: Audio: vorbis, 44100 Hz, stereo, s16, 96 kb/s
     Metadata:
       ENCODER         : Lavf52.111.0
Press any key to continue...
==========

   Note the duration (this was just a song track from the 70s - it's 
actually just shy of 2min 18sec)...

   Any ideas?

-- 
Cheers,
  Mattt.

Music Central <http://ausmusiccentral.com> - Be part of something bigger...

      Bespoke business systems and web application development - 
http://mattts.net/about/hiring-me

      There are only 10 kinds of people.
      Those who understand binary, and those that don't...



More information about the ffmpeg-user mailing list