Re: [Libav-user] Write raw RGB frames to file

2011-11-25 Thread Carl Eugen Hoyos
<=?iso-8859-1?Q?Max_G=F6ttner_-_d.stream?=> writes: > Resulting files seem ok, when analyzing them with mkvinfo (from mkvtoolnix), > filesize is also like you'd expect. However no player is able to replay > them. mplayer -demuxer lavf ? > Libav succeeds in opening and recognizing the format but

Re: [Libav-user] Write raw RGB frames to file

2011-11-25 Thread Max Göttner - d . stream
>Assuming you are only interested in mkv: Did you look into matroskaenc.c? >I suspect you have to set an appropriate codec_tag for the pix_fmt. >http://www.matroska.org/technical/specs/index.html "ColourSpace" >Looking at http://fourcc.org/rgb.php at least RGBA should work fine. Thanks for your he

Re: [Libav-user] Write raw RGB frames to file

2011-11-23 Thread Carl Eugen Hoyos
Carl Eugen Hoyos writes: > <=?iso-8859-1?Q?Max_G=F6ttner_-_d.stream?=> writes: > > > Is there any reference or example that tells me, which attributes of the > > AVCodecCtx have to be set in order to get the rawvideo-encoding work? > > Assuming you are only interested in mkv: Did you look into

Re: [Libav-user] Write raw RGB frames to file

2011-11-23 Thread Carl Eugen Hoyos
<=?iso-8859-1?Q?Max_G=F6ttner_-_d.stream?=> writes: > Is there any reference or example that tells me, which attributes of the > AVCodecCtx have to be set in order to get the rawvideo-encoding work? Assuming you are only interested in mkv: Did you look into matroskaenc.c? I suspect you have to s

Re: [Libav-user] Write raw RGB frames to file

2011-11-23 Thread Max Göttner - d . stream
So this means, I shall simply set the encoders AVCodecCtx.pix_fmt to e.g. PIX_FMT_BGR24? Unfortunately I don’t have any clue how to set codec relevant parameters and I only get 5kbyte files with no videodata. I could find examples for encoding to various mpeg codecs and h264 but nothing about rawvi

Re: [Libav-user] Write raw RGB frames to file

2011-11-22 Thread Carl Eugen Hoyos
<=?iso-8859-1?Q?Max_G=F6ttner_-_d.stream?=> writes: > >I suspect you are searching for CODEC_ID_RAWVIDEO. > > But it seems to me that rawvideo is yuv420 only. Why do you think so? I believe that for the sake of your question it supports "all" pix_fmts. (It does not support all but all relevant

Re: [Libav-user] Write raw RGB frames to file

2011-11-22 Thread Max Göttner - d . stream
>I suspect you are searching for CODEC_ID_RAWVIDEO. >Carl Eugen But it seems to me that rawvideo is yuv420 only. Can this codec also handle RGB? Thanks, Max ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] Write raw RGB frames to file

2011-11-22 Thread Carl Eugen Hoyos
<=?iso-8859-1?Q?Max_G=F6ttner_-_d.stream?=> writes: > >I read frames from input files, use swscale to have raw rgb images. I would > >like to write these images to a Mkv container, keeping the frames in raw rgb. > >How can this be obtained? > >What codec do I have to use? > >I tried CODEC_ID_BMP

Re: [Libav-user] Write raw RGB frames to file

2011-11-22 Thread Max Göttner - d . stream
Hello again. Am I asking wrong or is there no solution for my problem? Thanks, Max. >Hi. >I read frames from input files, use swscale to have raw rgb images. I would >like to write these images to a >Mkv container, keeping the frames in raw rgb. How can this be obtained? What >codec do I have to

[Libav-user] Write raw RGB frames to file

2011-11-11 Thread Max Göttner - d . stream
Hi. I read frames from input files, use swscale to have raw rgb images. I would like to write these images to a Mkv container, keeping the frames in raw rgb. How can this be obtained? What codec do I have to use? I tried CODEC_ID_BMP but I couldn't find any ressource that tells me what settings go