Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a video from .rgb files. These just contain the pixels, no header.

I'm able to cerate a video from pngs:

ffmpeg -f image2 -r 30 -i %%06d.png -vcodec huffyuv video.avi

But converting the .rgb files to png via ImageMagick (not surprisingly) takes ages. When I try:

ffmpeg -f image2 -r 30 -s 1776x1000 -pix_fmt rgb24 -i %%06d.rgb -vcodec huffyuv video.avi

[image2 @ 0238d520] Stream #0: not enough frames to estimate rate; consider increasing probesize
[image2 @ 0238d520] Could not find codec parameters for stream 0 (Video: none, rgb24, 1776x1000): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options %06d.rgb: could not find codec parameters

Is there a way to directly feed rgb files to ffmpeg?

share|improve this question
    
Can you provide a sample input file? – LordNeckbeard Sep 2 '12 at 20:29
    
I got it, I was lacking -vcodec rawvideo. But apparently I can't answer my own question in the first 8 hours ... – DiddiZ Sep 2 '12 at 21:15
up vote 1 down vote accepted
-vcodec rawvideo

That's what I was lacking

fmpeg -f image2 -r 30 -s 1776x1000 -pix_fmt rgb24 -vcodec rawvideo -i %%06d.rgb -vcodec huffyuv video.avi

Works now.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .