Log in

View Full Version : ffmpeg output raw video


Sirber
5th July 2004, 03:23
E:\Projets\RealAnime CLX\output\ffmpeg\win32>ffmpeg -i E102.avi -vcodec rawvideo
-acodec pcm_u16be test.avi
Input #0, avi, from 'E102.avi':
Duration: 00:23:04.5, bitrate: 1393 kb/s
Stream #0.0: Video: mpeg4, 640x480, 23.98 fps
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Output #0, avi, to 'test.avi':
Stream #0.0: Video: rawvideo, yuv420p, 640x480, 23.98 fps, q=2-31, 200 kb/s
Stream #0.1: Audio: pcm_u16be, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec paramters ?)

What am I doing wrong?

bill_baroud
5th July 2004, 20:09
what are you trying to do ? output a raw video file ?

ffmpeg -i input -f rawvideo -vcodec rawvideo output
or -f yuv4mpegpipe -vcodec rawvideo (or -f rawvideo -vcodec yuv4mpegpipe ?)

should work better.
iirc.

you can output each frame as pgm file using "-f pgmyuv" too, and then copy /B them...in case you need a raw pgm video file (for xvid encraw for example)

Sirber
5th July 2004, 21:50
I need RAW video and PCM audio from a compressed source to use with linux producer.

bill_baroud
6th July 2004, 20:06
using -f rawvideo didn't work ?

Sirber
6th July 2004, 23:22
Originally posted by Sirber
Could not write header for output file #0 (incorrect codec paramters ?)Nope :D

bill_baroud
8th July 2004, 22:23
well you can't have both raw video and raw audio in the same file, since in this case you have a bitstream and thus a file format :o

at least, what i posted works here, for raw video only :)

Sirber
8th July 2004, 23:26
What if I want a AVI with raw video (RGB or YUV2) and PCM audio? :confused:

bill_baroud
9th July 2004, 17:21
then it's not a raw video, but uncompressed video in avi ;)
i don't have ffmpeg here, there isn't a codec "uncompressed" or "rgb" ?

Sirber
10th July 2004, 13:36
the problem was the audio codec.

with pcm_s16le it's works perfectly :)

[edit]

bitrate: 9mbps lol