digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Encode, Convert for discs (https://www.digitalfaq.com/forum/video-conversion/)
-   -   Problem converting to Huffyuv codec using ffmpeg (https://www.digitalfaq.com/forum/video-conversion/4733-problem-converting-huffyuv.html)

metaleonid 11-11-2012 09:18 PM

Problem converting to Huffyuv codec using ffmpeg
 
Hello,

I hope someone has used this tool here. 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:

Code:

/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:

Code:

    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%


kpmedia 11-14-2012 02:30 AM

While you can certainly use ffmpeg from the command line, there's usually no reason to do so. There's quite a few GUIs out there.
Have you considered using ffmpegX? Freeware download at http://www.ffmpegx.com

________

Note: Always use the [code][/code] bbcode tags when copy/pasting output from DOS or other CLIs. Or any kind of scripting, like Avisynth.
I fixed the above post for you.

metaleonid 11-14-2012 07:20 AM

Hi,

No, I haven't heard about it. I will try. Thanks.

kpmedia 11-19-2012 07:28 AM

Datura is another ffmpeg GUI for Mac: http://datura.sourceforge.net
I like the interface a little better.


All times are GMT -5. The time now is 07:51 PM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.