[MPlayer-users] Possible to get raw frames

Christian Ebert blacktrash at gmx.net
Tue Sep 29 08:35:25 CEST 2009


* Ivan on Tuesday, September 29, 2009 at 01:02:00 -0400
>> Is it possible to get a raw, decoded frame from an mpeg stream
>> somehow?
>> I want it decoded, but not filtered in any way such as color space
>> conversions etc...
> 
> You can use ffmpeg:
> 
> ffmpeg -i MOVIE_FILE -ss START_TIME -t DURATION -f rawvideo
> RAW_OUTPUT_FILE
> 
> FFmpeg will tell you the pixel format of the input movie and will
> use the same format for the raw output, which will probably be
> yuv420p (planar YUV with 4:2:0 chroma subsampling).  Note that
> ffmpeg uses exact seeking, which can be very slow if START_TIME is
> late in a long movie (we're talking slow as in decoding every frame
> from the beginning).

It's faster if you specify -ss and -t before -i:

ffmpeg -ss START_TIME -t DURATION -i MOVIE_FILE -f rawvideo RAW_OUTPUT_FILE

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
                     Ein deutscher Western/A German Western

         --->> http://www.blacktrash.org/underdogma/ccc.php


More information about the MPlayer-users mailing list