kartu
21st March 2008, 10:39
Hi guys,
I am trying to encode avi-s from F30 Fuji digital photo camera. (well, actually create a script file that would do it). Camera creates avi-s with motion jpeg / mono wavs. My goal is to reencode them into either MKV or MP4 format using h264/aac codecs. Still cannot figure how to encode video using h264. :(
encoding audio to aac works, no problems.
encoding video to xvid works, no problem.
encoding video to h264 fails (crash). :(
I use the following command line (if I replace libx264 with libxvid it :
ffmpeg.exe -y -i dscf1424.avi -vcodec <libxvid or libx264> -b 2048k -acodec libfaac -ab 64k output.mp4
This is ffmpeg output:
FFmpeg version SVN-r10461, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-liba52
--enable-libx264 --enable-libxvid --enable-libfaad --enable-swscaler --enable-gpl --enable-avisynth --cpu=i686 --enable-pthreads
libavutil version: 49.5.0
libavcodec version: 51.43.0
libavformat version: 51.12.2
built on Sep 11 2007 01:20:02, gcc: 4.2.1-sjlj (mingw32-2)
Input #0, avi, from 'dscf1424.avi':
Duration: 00:00:44.0, start: 0.000000, bitrate: 9350 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30.00 fps(r)
Stream #0.1: Audio: pcm_u8, 16000 Hz, mono, 128 kb/s
Output #0, mp4, to 'output.mp4':
Stream #0.0: Video: libx264, yuv420p, 640x480, q=2-31, 2048 kb/s, 30.00 fps(c)
Stream #0.1: Audio: libfaac, 16000 Hz, mono, 32 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[libx264 @ 009C62E0]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
WARNING codec timebase is very high. If duration is too long,
file may not be playable by quicktime. Specify a shorter timebase
or choose different container.
Press [q] to stop encoding
I thought at first that problem was yuvj422p format not being supported by x264. But it also fails for yuv420p videos.
Is there a particular problem with mentioned revisions (10461 and 9017) on Windows or is something missing in the command line?
Thank you in advance,
Kartu
I am trying to encode avi-s from F30 Fuji digital photo camera. (well, actually create a script file that would do it). Camera creates avi-s with motion jpeg / mono wavs. My goal is to reencode them into either MKV or MP4 format using h264/aac codecs. Still cannot figure how to encode video using h264. :(
encoding audio to aac works, no problems.
encoding video to xvid works, no problem.
encoding video to h264 fails (crash). :(
I use the following command line (if I replace libx264 with libxvid it :
ffmpeg.exe -y -i dscf1424.avi -vcodec <libxvid or libx264> -b 2048k -acodec libfaac -ab 64k output.mp4
This is ffmpeg output:
FFmpeg version SVN-r10461, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-liba52
--enable-libx264 --enable-libxvid --enable-libfaad --enable-swscaler --enable-gpl --enable-avisynth --cpu=i686 --enable-pthreads
libavutil version: 49.5.0
libavcodec version: 51.43.0
libavformat version: 51.12.2
built on Sep 11 2007 01:20:02, gcc: 4.2.1-sjlj (mingw32-2)
Input #0, avi, from 'dscf1424.avi':
Duration: 00:00:44.0, start: 0.000000, bitrate: 9350 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30.00 fps(r)
Stream #0.1: Audio: pcm_u8, 16000 Hz, mono, 128 kb/s
Output #0, mp4, to 'output.mp4':
Stream #0.0: Video: libx264, yuv420p, 640x480, q=2-31, 2048 kb/s, 30.00 fps(c)
Stream #0.1: Audio: libfaac, 16000 Hz, mono, 32 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[libx264 @ 009C62E0]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
WARNING codec timebase is very high. If duration is too long,
file may not be playable by quicktime. Specify a shorter timebase
or choose different container.
Press [q] to stop encoding
I thought at first that problem was yuvj422p format not being supported by x264. But it also fails for yuv420p videos.
Is there a particular problem with mentioned revisions (10461 and 9017) on Windows or is something missing in the command line?
Thank you in advance,
Kartu