[Ffmpeg-devel] ffmpeg hanging when transcoding mpeg4

Aaron Williams aaronw
Sat Oct 21 11:32:11 CEST 2006


I am trying to transcode a video for a friend into MPEG2 for use with a
hardware MPEG decoder and am running into problems with FFMPEG stopping
at the same place in the video and consuming all of the CPU.  I seem to
be unable to do any source level debugging with gdb (even when compiled
with -O2 and -g) so I cannot find the source of the hang.  It always
occurs at about time 236.2 in the file.

Unfortunately the file I have to work with is 46MB and my bandwidth is
somewhat limited.  I can privately make it available as needed but don't
want to post the link to the whole mailing list.

This is where it hangs:

../ftp/mpeg/ffmpeg/ffmpeg/ffmpeg -i DCF-Brick-DivX-high.avi -target
ntsc-dvd -er 2  -sameq -ar 48000 -ac 2 -acodec mp2 -ab 192 -y DCF-Brick3.vob
FFmpeg version SVN-r6280, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --enable-mp3lame --enable-libogg --enable-vorbis
--enable-faad --enable-faac --enable-xvid --enable-x264 --enable-a52
--enable-dts --enable-pp --enable-amr_wb --enable-dc1394
--enable-swscaler --enable-gpl --arch=athlon64
--extra-ldflags=-L/usr/local/lib -g --enable-static --extra-cflags=-g
-O2 --enable-amr_wb --enable-amr_if2
  libavutil version: 49.0.1
  libavcodec version: 51.20.0
  libavformat version: 50.6.0
  built on Oct 21 2006 02:03:27, gcc: 4.1.0 (SUSE Linux)

Seems that stream 0 comes from film source: 29.98 (65534/2186) -> 29.97
(2997/100)
Input #0, avi, from 'DCF-Brick-DivX-high.avi':
  Duration: 00:07:09.6, start: 0.000000, bitrate: 865 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 720x380, 29.97 fps(r)
  Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Output #0, dvd, to 'DCF-Brick3.vob':
  Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 6000 kb/s,
29.97 fps(c)
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 7080 q=0.0 size=   74414kB time=236.2 bitrate=2580.8kbits/s 



This is on an Athlon64 (San Diego) system.

-Aaron Williams




More information about the ffmpeg-devel mailing list