Hello, this is the first time I have used ffmpegX. I thought that I would try using this program to convert my avi's into kvcds using a mac. Previously, I have been using tmpgenc on a pc to do this job.

Everything was working fine, but once I tried using subtitles from an external file (.sub and .idx), I kept on getting an error.

Here is what I did:
1. opened up my video (xvid) file.
2. chose quick preset KVCD
3. Changed audio bitrate to 128
4. in the filter tab, checked the subtitle box, then opened up the subtitle file
5. in the options tab, changed it from quicktime to mplayer
6. encode

Unfortunately, when it finished encoding, there was a failure creating the video file.

Here is the error log:

Encoding started on Tue Jul 13 14:51:49 EST 2004
-f 2 -b 1000 -B 260 -V 46 -a 1
-F 1
INFO: [yuvscaler] yuvscaler (version 1.7.0) is a general scaling utility for yuv frames
INFO: [yuvscaler] (C) 2001-2002 Xavier Biquard <xbiquard@free.fr>
INFO: [yuvscaler] yuvscaler -h for help, or man yuvscaler
MPlayer dev-CVS-040614-23:18-3.3 (C) 2000-2004 MPlayer Team
: No such file or directory
AltiVec found
CPU: PowerPC
Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /Users/david/.mplayer/config
Reading /Users/david/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf.
Can't open '/Users/david/.mplayer/codecs.conf': No such file or directory
Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
'-noframedrop' '-vo' 'yuv4mpeg' '-ao' 'pcm' '-waveheader' '-v' '-osdlevel' '0' '/Users/david/hero1.avi' '-aid' '1' '-sid' '0' '-vobsub' '/Users/david/hero1'
init_freetype
get_path('font/font.desc') -> '/Users/david/.mplayer/font/font.desc'
font: can't open file: /Users/david/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Unoptimized OnScreenDisplay
Using usleep() timing
Can't open input config file /Users/david/.mplayer/input.conf: No such file or directory
Terminal type `unknown' is not defined.
get_path('input.conf') -> '/Users/david/.mplayer/input.conf'
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
VobSub: Can't open IFO file
get_path('hero1.avi.conf') -> '/Users/david/.mplayer/hero1.avi.conf'
Playing /Users/david/hero1.avi.
vobsub: ignoring scale: 100%, 100%
vobsub: ignoring alpha: 100%
vobsub: ignoring smooth: OFF
vobsub: ignoring fadein/out: 50, 50
vobsub: ignoring align: OFF at LEFT TOP
vobsub: ignoring time offset: 0
[vobsub] subtitle (vobsubid): 0 language zh
[vobsub] subtitle (vobsubid): 1 language zh
[vobsub] subtitle (vobsubid): 2 language en
No matching VOBSUB language found!
[file] File size is 735242240 bytes
STREAM: [file] /Users/david/hero1.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x22CA
======= AVI Header =======
us/frame: 41708 (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 58825 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 272
==========================
list_end=0x1138
==> Found video stream: 0
====== STREAM Header =====
Type: sdiv FCC: divx (64697678)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 2997/125 = 23.976
Start: 0 Len: 58825
Suggested BufferSize: 88863
Quality 10000
Sample size: 0
==========================
found 'bih', 108 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 272
biPlanes 1
biBitCount 12
biCompression 1145656920='DIVX'
biSizeImage 1044480
===========================
list_end=0x21BE
==> Found audio stream: 1
====== STREAM Header =====
Type: sdua FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 48000/1 = 48000.000
Start: 0 Len: 117766708
Suggested BufferSize: 24000
Quality -1
Sample size: 1
==========================
found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 5
Samplerate: 48000
avg byte/sec: 48000
Block align: 1
bits/sample: 0
cbSize: 18
Unknown extra header dump: [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0]
===========================
list_end=0x22CA
AVI: dmlh found (size=248) (total_frames=58825)
list_end=0x22EE
hdr=Software size=15
Software : Nandub v1.0rc2
list_end=0x2BB62E94
Found movie at 0x280C - 0x2BB62E94
Reading INDEX block, 117640 chunks for 58825 frames (fpos=0x0)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x5DCC)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=614611502 (58825) audio size=117766708 (117766708)
VIDEO: [DIVX] 640x272 12bpp 23.976 fps 2004.0 kbps (244.6 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:640x272 fps:23.98 ftime:=0.0417
Clip info:
Software: Nandub v1.0rc2
================================================== ========================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
Using AltiVec optimized IMDCT transform
XXX initial v_pts=0.000 a_pos=24000 (0.500)
AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s
Checking for AltiVec resampler : 0x0000000a, 2
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using AltiVec optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x20), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
================================================== ========================
vo_yuv4mpeg: Using (default) progressive frame mode
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
================================================== ========================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000000 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, big endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Big-Endian)
PCM: File: audiodump.wav (WAVE)
PCM: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
PCM: Info: fastest dumping is achieved with -vc dummy -vo null
PCM: Info: to write WAVE files use -waveheader (default); for RAW PCM -nowaveheader.
AO: [pcm] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: RAW PCM/WAVE file writer audio output
AO: Author: Atmosfear
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000000 and bps = 2
[libaf] Adding filter format
[format] Changing sample format from 16bit big endian signed int to 16bit little endian signed int
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000000 and bps = 2
[format] Changing sample format from 16bit big endian signed int to 16bit little endian signed int
Starting playback...
[libaf] Reallocating memory in module format, old len = 0, new len = 65540
[ffmpeg] aspect_ratio: 2.352941
VDec: vo config request - 640 x 272 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO Config (640x272->640x272,flags=0,'MPlayer',0x32315659)
VO: [yuv4mpeg] 640x272 => 640x272 Planar YV12
VO: Description: yuv4mpeg output for mjpegtools (to "stream.yuv")
VO: Author: Robert Kesterson <robertk@robertk.com>
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
INFO: [yuvscaler] VCD output format requested in NTSC norm
INFO: [yuvscaler] input: frame size: 640x272 pixels (261120 bytes)
INFO: [yuvscaler] input: frame rate: 23975999/1000000 fps (~23.975999)
INFO: [yuvscaler] input: interlace: none/progressive
INFO: [yuvscaler] input: sample aspect ratio: ?
INFO: [yuvscaler] from 640x272, take 640x272+0+0, NOT_INTERLACED/PROGRESSIVE
INFO: [yuvscaler] scale to 352x180, 352x240 being displayed, NOT_INTERLACED/PROGRESSIVE
INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm,
INFO: [yuvscaler] without line switching
INFO: [yuvscaler] without time forwarding
INFO: [yuvscaler] Without luminance correction
INFO: [yuvscaler] Without chrominance correction
INFO: [yuvscaler] black lines: 30 above and 30 under
INFO: [yuvscaler] black columns: 0 left and 0 right
INFO: [yuvscaler] frame rate: 23.976 fps
INFO: [yuvscaler] Scaling ratio for width is 20 to 11
INFO: [yuvscaler] and is 68 to 45 for height
INFO: [yuvscaler] output: frame size: 352x240 pixels (126720 bytes)
INFO: [yuvscaler] output: frame rate: 23975999/1000000 fps (~23.975999)
INFO: [yuvscaler] output: interlace: none/progressive
INFO: [yuvscaler] output: sample aspect ratio: ?
INFO: [mpeg2enc] Selecting VCD output profile
INFO: [mpeg2enc] Encoding MPEG-1 video to /Users/david/movie.mpv
INFO: [mpeg2enc] Horizontal size: 352 pel
INFO: [mpeg2enc] Vertical size: 240 pel
INFO: [mpeg2enc] Aspect ratio code: 1 = 1:1 (square pixels)
INFO: [mpeg2enc] Frame rate code: 1 = 24000.0/1001.0 (NTSC 3:2 pulldown converted FILM)
INFO: [mpeg2enc] Bitrate: 1000 KBit/s
INFO: [mpeg2enc] Field order for input: none/progressive
INFO: [mpeg2enc] New Sequence every 9999 Mbytes
INFO: [mpeg2enc] Assuming non-video stream of 260 Kbps
INFO: [mpeg2enc] Search radius: 16
INFO: [mpeg2enc] GOP SIZE RANGE 12 TO 12
INFO: [mpeg2enc] Setting colour/gamma parameters to "unspecified"
INFO: [mpeg2enc] Progressive format frames = 1
INFO: [mpeg2enc] mpeg1 - setting intra_dc_precision = 0
INFO: [mpeg2enc] Using default unmodified quantization matrices
INFO: [mpeg2enc] Buffering 33 frames
INFO: [mpeg2enc] SETTING AltiVec for QUANTIZER!
INFO: [mpeg2enc] SETTING AltiVec for MOTION!
INFO: [mpeg2enc] SETTING AltiVec for TRANSFORM!
INFO: [mpeg2enc] SETTING AltiVec for PREDICTION!
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
************************************************
**** Your system is too SLOW to play this! ****
************************************************
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use ALSA 0.5 or the OSS emulation of ALSA 0.9.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/devices.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
7205 B quant=5.88 total act=1045549.7
e end 7210 B quant=5.47 total act=1045929.9
=5.19 total act=1046346.5
2607 0 0%
7.9
3% 1.1% 14466 0 0%
4595668.2
=4596151.4
mber 39589
4472 0 0%
uant=3.65 total act=4597395.0
32.5
ame number 39607
3% 1.1% 14484 0 0%
=4598387.9
t=4598859.5

447.3
tal act=5301640.8
2% 1.1% 17033 0 0%
otal act=5302249.2
6.5
4% 1.1% 20721 0 0%
6596015.8
=6596674.1
l act=6596899.8
al act=6597515.8
ds_fill_buffer: EOF reached (stream: video)
EOF code: 1
Uninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter format
uninit audio: liba52
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x1d44c00
INFO: [yuvscaler] End of stream!
INFO: [yuvscaler] Normal exit: end of stream with frame number 58826!
Exiting... (End of file)
INFO: [mpeg2enc] Guesstimated final muxed size = 386431670
wait, encoding to mp2 audio with mp2enc...
INFO: Opened WAV file, freq = 48000 Hz, channels = 2, bits = 16
INFO: format = 0x1, audio length = 469827584 bytes
INFO: slots/frame = 313
INFO: frac SpF=0.469, tot bitrate=96 kbps, s freq=44.1 kHz
INFO: Fractional number of slots, padding required
INFO: System is big endian
INFO: Avg slots/frame = inf; b/smp = inf; br = inf kbps
INFO: Encoding with psychoacoustic model 2 is finished
INFO: The MPEG encoded output file name is "/Users/david/movie.mpa"
INFO: [mplex] mplex version 2.2.2 ($Date: 2003/05/13 20:27:15 $)
INFO: [mplex] File /Users/david/movie.mpv looks like an MPEG Video stream.
INFO: [mplex] File /Users/david/movie.mpa looks like an MPEG Audio stream.
INFO: [mplex] Found 1 audio streams and 1 video streams
INFO: [mplex] Selecting VCD output profile
INFO: [mplex] Multiplexing video program stream!
INFO: [mplex] Scanning for header info: Video stream e0 (/Users/david/movie.mpv)
INFO: [mplex] VIDEO STREAM: e0
INFO: [mplex] Frame width : 352
INFO: [mplex] Frame height : 240
INFO: [mplex] Aspect ratio : 1:1 (square pixels)
INFO: [mplex] Picture rate : 23.976 frames/sec
INFO: [mplex] Bit rate : 1000000 bits/sec
INFO: [mplex] Vbv buffer size : 34816 bytes
INFO: [mplex] CSPF : 1
INFO: [mplex] Scanning for header info: Audio stream c0 (/Users/david/movie.mpa)
INFO: [mplex] MPEG AUDIO STREAM: c0
INFO: [mplex] Audio version : 1.0
INFO: [mplex] Layer : 2
INFO: [mplex] CRC checksums : no
INFO: [mplex] Bit rate : 12288 bytes/sec ( 96 kbit/sec)
INFO: [mplex] Frequency : 44100 Hz
INFO: [mplex] Mode : 0 stereo
INFO: [mplex] Mode extension : 0
INFO: [mplex] Copyright bit : 0 no copyright
INFO: [mplex] Original/Copy : 0 copy
INFO: [mplex] Emphasis : 0 none
INFO: [mplex] SYSTEMS/PROGRAM stream:
INFO: [mplex] rough-guess multiplexed stream data rate : 1116000
INFO: [mplex] Setting best-guess data rate.
INFO: [mplex] Run-in Sectors = 15 Video delay = 22761 Audio delay = 26515
INFO: [mplex] New sequence commences...
INFO: [mplex] Video e0: buf= 40960 frame=000000 sector=00000000
INFO: [mplex] Audio c0: buf= 4096 frame=000000 sector=00000000
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=17819055 required(DTS)=17819048
++ WARN: [mplex] Video e0: buf= 26014 frame=004729 sector=00009794
++ WARN: [mplex] Audio c0: buf= 1968 frame=007553 sector=00001039
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=18277316 required(DTS)=18277006
++ WARN: [mplex] Video e0: buf= 35898 frame=004851 sector=00010069
++ WARN: [mplex] Audio c0: buf= 1562 frame=007750 sector=00001066
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=18732541 required(DTS)=18731209
++ WARN: [mplex] Video e0: buf= 32785 frame=004972 sector=00010343
++ WARN: [mplex] Audio c0: buf= 3121 frame=007939 sector=00001092
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=19187767 required(DTS)=19185413
++ WARN: [mplex] Video e0: buf= 38659 frame=005093 sector=00010616
++ WARN: [mplex] Audio c0: buf= 2088 frame=008135 sector=00001119
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=19642993 required(DTS)=19639617
++ WARN: [mplex] Video e0: buf= 38655 frame=005213 sector=00010890
++ WARN: [mplex] Audio c0: buf= 3647 frame=008324 sector=00001145
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=23269625 required(DTS)=23269493
++ WARN: [mplex] Video e0: buf= 21016 frame=006181 sector=00013064
++ WARN: [mplex] Audio c0: buf= 1903 frame=009872 sector=00001358
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=27413698 required(DTS)=27413633
++ WARN: [mplex] Video e0: buf= 26236 frame=007285 sector=00015553
++ WARN: [mplex] Audio c0: buf= 2718 frame=011632 sector=00001600
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=27868923 required(DTS)=27867837
++ WARN: [mplex] Video e0: buf= 36358 frame=007406 sector=00015826
++ WARN: [mplex] Audio c0: buf= 1998 frame=011828 sector=00001627
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=28324149 required(DTS)=28322041
++ WARN: [mplex] Video e0: buf= 38664 frame=007527 sector=00016100
++ WARN: [mplex] Audio c0: buf= 3557 frame=012017 sector=00001653
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=28779375 required(DTS)=28776244
++ WARN: [mplex] Video e0: buf= 38655 frame=007647 sector=00016373
++ WARN: [mplex] Audio c0: buf= 2524 frame=012214 sector=00001680
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=34756490 required(DTS)=34755968
++ WARN: [mplex] Video e0: buf= 22431 frame=009241 sector=00019935
++ WARN: [mplex] Audio c0: buf= 1713 frame=014758 sector=00002030
**ERROR: [mplex] Too many frame drops -exiting


I hope that somebody will be able to help me solve this problem, thanks in advance!