[mythtv-users] ffmpeg and some codecs

backuppc at sundquist.imapmail.org backuppc at sundquist.imapmail.org
Sun Nov 16 03:05:41 UTC 2008


On Sep 28, 2008, 4:38 PM seven said:

> I'm currently getting the error below
> 
> 
> # /usr/local/bin/mythipod.sh /storage/recordings/
> 1005_20080917195000.mpg
> FFmpeg version SVN-r12135, Copyright (c) 2000-2008 Fabrice Bellard, et
> al.
> configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
> --mandir=/usr/share/man --enable-shared --enable-gpl --enable-pp
> --enable-swscaler --enable-pthreads --enable-x11grab --enable-liba52
> --enable-liba52bin --disable-avisynth --disable-libamr-nb
> --disable-libamr-wb --enable-libdc1394 --enable-libfaac --enable-libfaad
> --enable-libfaadbin --enable-libgsm --enable-libmp3lame
> --enable-libtheora
> --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-O2
> -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables --disable-strip
> libavutil version: 49.6.0
> libavcodec version: 51.50.1
> libavformat version: 52.7.0
> libavdevice version: 52.0.0
> built on Feb 18 2008 20:01:30, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
> Input #0, mpegts, from '/storage/recordings//1005_20080917195000.mpg':
> Duration: 00:42:59.8, start: 43070.809111, bitrate: 6502 kb/s
> Program 1
> Stream #0.0[0x181]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR
> 16:9], 15000 kb/s, 25.00 tb(r)
> Stream #0.1[0x182](eng): Audio: mp2, 48000 Hz, stereo, 256 kb/s
> Unknown encoder 'aac'
> 
> Will I need to compile ffmpeg with aac support or is there something
> else I'm missing here??
> 
> I tried changing aac in the mythipod script too libfaac but I got a
> different error

SNIP

> [libfaac @ 0x570c730]libfaac doesn't support this output format!
> Error while opening codec for output stream #0.1 - maybe incorrect
> parameters such as bit_rate, rate, width or height
> 
> 
> I am able to export with nuvexport into ipod formated mpeg4 and then
> move
> the file into the correct location and filename and mythiphone works
> correctly, just need to correct the ffmpeg issue so it can transcode
> automatically...

Seven, did you get this working?

I have troubles with a newer ffmpeg myself.  It used to work for
exporting to ipod.  I used nuvexport, but got these "disabled"s:

Using ffmpeg for exporting.
What would you like to do?

  1. Export to XviD (disabled)
  2. Export to SVCD
  3. Export to VCD
  4. Export to DVCD (VCD with 48kHz audio for making DVDs)
  5. Export to DVD
  6. Export to DivX
  7. Export to ASF
  8. Export to MP3
  9. Export to PSP (disabled)
 10. Export to MP4 (iPod) (disabled)
 11. Export to .nuv and .sql

which I have traced to ffmpeg.

For example, trying ffmpeg directly:

user at mythtv:~$ ffmpeg -i /var/lib/mythtv/videos/sectionals/MVI_0825.AVI
-f mov -b 1800 -maxrate 2500 -vcodec xvid -qmin 3 -qmax 5 -s 320x240
-acodec aac -ab 128 sectionals.ipod.mov
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
  configuration: --enable-gpl --enable-pp --enable-swscaler
  --enable-pthreads --enable-libvorbis --enable-libtheora
  --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug
  --enable-libmp3lame --enable-libfaadbin --enable-libfaad
  --enable-libfaac --enable-xvid --enable-x264 --enable-liba52
  --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jul 29 2008 18:21:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Input #0, avi, from '/var/lib/mythtv/videos/sectionals/MVI_0825.AVI':
  Duration: 00:02:30.6, start: 0.000000, bitrate: 14480 kb/s
  Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30.00 fps(r)
  Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
Unknown codec 'xvid'

and

user at mythtv:~$ ffmpeg -i /var/lib/mythtv/videos/sectionals/MVI_0825.AVI
-f mov -b 1800 -maxrate 2500 -vcodec mpeg4 -qmin 3 -qmax 5 -s 320x240
-acodec aac -ab 128 sectionals.ipod.mov
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
  configuration: --enable-gpl --enable-pp --enable-swscaler
  --enable-pthreads --enable-libvorbis --enable-libtheora
  --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug
  --enable-libmp3lame --enable-libfaadbin --enable-libfaad
  --enable-libfaac --enable-xvid --enable-x264 --enable-liba52
  --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jul 29 2008 18:21:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Input #0, avi, from '/var/lib/mythtv/videos/sectionals/MVI_0825.AVI':
  Duration: 00:02:30.6, start: 0.000000, bitrate: 14480 kb/s
  Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30.00 fps(r)
  Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
Unknown codec 'aac'

I am using mythbuntu 8.04 and the latest ffmpeg from medibuntu  As you
can see, ffmpeg has aac, xvid, etc. compiled in.  And I have those
particular libraries installed (e.g. libfaac, etc.)

I know this is ffmpeg, not mythtv, so sorry for the OT.

Thanks.

J.S.


More information about the mythtv-users mailing list