[FFmpeg-user] Can't encode a rawvideo stream - swScaler: Unknown format is not supported as input pixel format

White_Rabbit bruno at anche.no
Tue Mar 29 16:30:15 CEST 2011


On Tue, 2011-03-29 at 13:07 +0200, White_R wrote:
> Hi all,
> I couldn't find somebody else with my same issue, so I'm writing here.
> I recorded an audio+video .mkv with
> 
> ffmpeg -f video4linux2  -s 352x288 -r 15 -b 3000k -i /dev/video0 -f
> alsa -ac 2 -i hw:0 -vcodec rawvideo part0.mkv
> 
> Now I'd like to compress the video stream, [...]
> 
> I'm running debian squeeze, with debian-multimedia in apt sources.list
> Thank you for your attention,
> bruno

Hi again,
I managed to extract the raw video with
ffmpeg -i part0.mkv -an -vcodec copy -f rawvideo part1
I can reproduce correctly this with
mplayer -demuxer rawvideo -rawvideo fps=15:w=320:h=240:yuy2 part1

I still cannot encode/compress it; with
ffmpeg -f rawvideo -s 320x240 -r 15 -i part1 -vcodec mpeg4
part1_mpeg4.mkv
I get something that doesn't play correctly :(
I uploaded both files
http://tracciabi.li/~bruno/part1
http://tracciabi.li/~bruno/part1_mpeg4.mkv

Thanks for your attention
bruno



More information about the ffmpeg-user mailing list