[FFmpeg-user] Problem converting to Huffyuv codec

Leonid Makarovsky metaleonid at gmail.com
Tue Nov 13 04:15:28 CET 2012


Hello,

I just downloaded ffmpeg so I am pretty new to this tool. I will
eventually need to convert uncompressed MOV to lossless Huffyuv AVI
preserving interlaced video, frame rate and resolution.

Yesterday for the test purposes I tried to convert from the existing
Huffyuv AVI files to the same format (Huffyuv) using ffmpeg just to
compare quality of conversion.

The following command line was used:

/cygdrive/C/Program\ Files/ffmpeg/bin/ffmpeg.exe -i source.avi -vcodec
huffyuv -acodec pcm_s16le destination.avi

The source files were 24 bit Huffyuv. However, the output files turned
out to be 16 bit Huffyuv. Is there any flag I should specify in
command line to tell that I want to convert to 24 bit? Another thing
is that the size of the resulting files were 1.5 times bigger than the
size of the original file even though they were 16 bit. How come? And
the last thing is that the resulting file has 2 extra stub frames in
the beginning. I can live with that for sure, but if there is any way
not to have them during the conversion, that would be great. Thanks
for the help in advance. This is my output:

ffmpeg version N-46469-gc995644 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 5 2012 17:54:28 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab
le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libo
pus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
libavutil 52. 5.100 / 52. 5.100
libavcodec 54. 71.100 / 54. 71.100
libavformat 54. 36.100 / 54. 36.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 21.106 / 3. 21.106
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
[avi @ 023cc8e0] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'source.avi':
Duration: 00:00:55.39, start: 0.000000, bitrate: 49793 kb/s
Stream #0:0: Video: huffyuv (HFYU / 0x55594648), yuv422p, 704x480,
29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
using huffyuv 2.2.0 or newer interlacing flag
Output #0, avi, to 'destination.avi':
Metadata:
ISFT : Lavf54.36.100
Stream #0:0: Video: huffyuv (HFYU / 0x55594648), yuv422p, 704x480, q=2-31, 2
00 kb/s, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16
, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (huffyuv -> huffyuv)
Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le)
Press [q] to stop, for help
frame= 61 fps=0.0 q=0.0 size= 19342kB time=00:00:02.17 bitrate=72863.8kbits/
frame= 94 fps= 93 q=0.0 size= 29710kB time=00:00:03.26 bitrate=74599.9kbits/
frame= 104 fps= 63 q=0.0 size= 32865kB time=00:00:03.59 bitrate=74928.1kbits/
frame= 106 fps= 46 q=0.0 size= 33494kB time=00:00:03.67 bitrate=74591.1kbits/
frame= 168 fps= 60 q=0.0 size= 53015kB time=00:00:05.74 bitrate=75560.9kbits/
...
frame= 1598 fps= 20 q=0.0 size= 496305kB time=00:00:53.45 bitrate=76058.0kbits/
frame= 1660 fps= 20 q=0.0 Lsize= 513561kB time=00:00:55.45 bitrate=75864.4kbits
/s
video:503206kB audio:10245kB subtitle:0 global headers:0kB muxing overhead 0.021
412%


More information about the ffmpeg-user mailing list