[Libav-user] Decoding specific formats?
Patrick Zielinski
dzeesea at gmail.com
Thu Mar 1 15:38:21 CET 2012
Sorry for the delay, I kind of lost track of time, here are the commands
I've used to generate an mkv format video.
*ffmpeg.exe -i "C:\path\left_%03d.bmp" -pix_fmt yuv420p left.y4m* *x264.exe
left.y4m -o left.mkv*
I'm still not really able to consistently decode video's of other format
than .h264, code hasn't changed much, I suppose I'll have to inspire myself
more to the ffmpeg.c script.
On Thu, Feb 23, 2012 at 4:28 PM, Alex Cohn <alexcohn at netvision.net.il>wrote:
> On Thu, Feb 23, 2012 at 02:16, Patrick Zielinski <dzeesea at gmail.com>
> wrote:
> > Ok, firstly please bare with me, up until two weeks ago I didn't even
> know
> > what codec were and how encoding worked. Also, this code is ported
> within a
> > C++ framework so it might not comply with your usual coding standards.
> >
> > Essentially here is the code that I have written which resembles closely
> to
> > the libav decoding example with minor tweaks due to deprecated
> functions. I
> > actually have a different version in our code, but it's mostly just
> working
> > with the buffer and the image data to add to our own structure.
> >
> > http://pastebin.ca/2120920
> >
> > I'd like to have either tips on how I could make this more robust, or
> what
> > steps I should take to extract each frame from different formats. I've
> taken
> > a look at ffmpeg.c, but not as much as I wanted.
>
> Regarding the specific problem decoding an MKV file, you did not write
> if you succeed to open this particular file with command-line ffmpeg.
>
> Regarding your code, you should use the AVCodecContext you get from
> avformat_open_input() for the chosen stream, no need to create a new
> one as you do in lines 127 and on.
>
> BR,
> Alex
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120301/1817147b/attachment.html>
More information about the Libav-user
mailing list