Unable to convert sets of PNG or BMP images, but can TGA and JPEG

Bug #540083 reported by Mampir
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ffmpeg2theora
New
Undecided
Unassigned

Bug Description

When trying to convert a set of PNG image, the colors of the output OGV file become badly messed-up - see the attachment for an example. The input files for this example can be found at http://media.xiph.org/BBB/BBB-360-png/ and the example output should be similar to http://media.xiph.org/BBB/BBB-360-png/big_buck_bunny_00080.png

Also the output file size becomes abnormally huge - 4.7 MB for 100 frames.

The command that gives this result is:
    ffmpeg2theora bbb/big_buck_bunny_0%04d.png -o bbb.ogv

When doing a similar command with a set of BMP image, the program quits with a small and useless output file and the following error:

    [bmp @ 0x12ecf40]declared file size is less than header size (0 < 54)
        Last message repeated 7 times
    [image2 @ 0x12eb8e0]MAX_READ_SIZE:5000000 reached
    Input #0, image2, from 'bmp/frame%04d.bmp':
      Duration: 00:00:04.04, start: 0.000000, bitrate: N/A
        Stream #0.0: Video: bmp, yuv420p, 25 fps, 25 tbr, 25 tbn, 25 tbc
    picture size invalid (0x0)
    Could not set keyframe interval to 64.
    Internal Theora library error.

I'm using the binary "ffmpeg2theora-0.26.linux64.bin".

Conversion of TGA, JPEG and TIFF image sets works as expected.

Revision history for this message
Mampir (mampir) wrote :
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Mampir (mampir)
description: updated
Revision history for this message
Roger (rogerimp) wrote :

Ouch! I ran into this this encoding PNG sequences from After Effects for use as a movie texture in Unity, which fully utilizes Vorbis & Theora (yay!) But this bug really stood in my way before I realized it only affected PNG sequences. Hope to see it resolved!

Revision history for this message
j^ (j) wrote :

in the inital description it looks like libav* detects the input as bmp.
possibly forcing it to png helps. something like:

    ffmpeg2theora -f png bbb/big_buck_bunny_0%04d.png -o bbb.ogv

might do the trick.
another option is to use png2theora, that should work with your png files.

Revision history for this message
Mampir (mampir) wrote :

Manually specifying the image format doesn't help, at least for PNG images.

Revision history for this message
Roger (rogerimp) wrote :

In my case, PNGs are correctly detected as PNG format; adding the format option changes nothing. Though I'll have to try png2theora. Didn't know of its existence; thank you.

Revision history for this message
Hugues Digonnet (hugues-digonnet) wrote :

Hi all,

don't know if the problem is already solved but I have the same type of video with png images

Otherwise, looking more closely it seems to me that the images are added to one another rather than replace.

If there is a solution I'm interested.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.