I kept having trouble encode videos. I can encode the video to mpg but the size is 10+x bigger (no joke).
So i thought i'd do something simple. Strip the sound, copy the video
ffmpeg -i 5.flv -vcodec copy -an 5o.flv
It couldnt do that! note that it can produce a very large mpg file and videolan can play it. However theres no keyframes so i can jump. It was produced by copying a stream. Results are...
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilt
er --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac -
-enable-libfaad --enable-libmp3lame --enable-libspeex --enable-libtheora --enabl
e-libvorbis --enable-libxvid --enable-libx264 --enable-memalign-hack
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya]
Input #0, flv, from '5.flv':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: nellymoser, 11025 Hz, mono, s16
File '5o.flv' already exists. Overwrite ? [y/N] y
Output #0, flv, to '5o.flv':
Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 90k tbn, 1k tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[NULL @ 0x16a4010]error, non monotone timestamps 1571775 >= 11811
av_interleaved_write_frame(): Error while opening file
D:\>
The file ends at 716kb (of 8.9mb). So it has started, it just had problems. How can i tell it to ignore errors or fix this?