Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.