VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. I have been searching the internet for days, for what are all the options of the tiff converter in ffmpeg.
    I keep finding hints at what's possible, but no documentation. So like this stackoverflow post, they say you can change the algorithm with '-compression_algo'. Sure wish I could find where they learned that. I found this .h file that defines the enum for what algorithms options exist:
    Code:
    list of TIFF compression types
    
    Enumerator:
        TIFF_RAW 	
        TIFF_CCITT_RLE 	
        TIFF_G3 	
        TIFF_G4 	
        TIFF_LZW 	
        TIFF_JPEG 	
        TIFF_NEWJPEG 	
        TIFF_ADOBE_DEFLATE 	
        TIFF_PACKBITS 	
        TIFF_DEFLATE
    I got lzw and deflate to work, but couldn't get ccitt rle to work.

    Does anyone know where the documentation for this is, or if it even exists?
    Quote Quote  
  2. Originally Posted by ForSerious View Post
    I have been searching the internet for days, for what are all the options of the tiff converter in ffmpeg.
    I keep finding hints at what's possible, but no documentation. So like this stackoverflow post, they say you can change the algorithm with '-compression_algo'. Sure wish I could find where they learned that. I found this .h file that defines the enum for what algorithms options exist:
    Code:
    list of TIFF compression types
    
    Enumerator:
        TIFF_RAW 	
        TIFF_CCITT_RLE 	
        TIFF_G3 	
        TIFF_G4 	
        TIFF_LZW 	
        TIFF_JPEG 	
        TIFF_NEWJPEG 	
        TIFF_ADOBE_DEFLATE 	
        TIFF_PACKBITS 	
        TIFF_DEFLATE
    I got lzw and deflate to work, but couldn't get ccitt rle to work.

    Does anyone know where the documentation for this is, or if it even exists?


    FFmpeg does not necessarily offer all compression types for each encoder or format. Even if it's listed in the source, they are not necessarily enabled or compiled in that binary

    To see what is supported by your binary, use ffmpeg -h encoder=tiff

    Code:
    Encoder tiff [TIFF image]:
        General capabilities: dr1 threads 
        Threading capabilities: frame
        Supported pixel formats: rgb24 rgb48le pal8 rgba rgba64le gray ya8 gray16le ya16le monob monow yuv420p yuv422p yuv440p yuv444p yuv410p yuv411p
    TIFF encoder AVOptions:
      -dpi               <int>        E..V....... set the image resolution (in dpi) (from 1 to 65536) (default 72)
      -compression_algo  <int>        E..V....... (from 1 to 32946) (default packbits)
         packbits        32773        E..V.......
         raw             1            E..V.......
         lzw             5            E..V.......
         deflate         32946        E..V.......
    Quote Quote  
  3. That does help. So what I need to do in the future is remember my linux training, and look to the built-in documentation instead of the internet.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!