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

ram seth prasadn2004 at gmail.com
Wed Apr 6 19:24:43 CEST 2011


Looks like your cam is giving YUYV (packed 2 byte per pixel) format
video.You need to convert it in Yuv420 planer format then encode it .

On Tue, Mar 29, 2011 at 8:00 PM, White_Rabbit <bruno at anche.no> wrote:

> 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
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list