On Mon, 2010-05-10 at 10:44 +0200, Martin Schreiber wrote: > Hi there, > > i started to write a streaming video appliation in which i want to grab > frames fom a industrial camera and stream them over a network. i chose to > use libavcodec for videocompression but right now i'm a bit confused about > the codec-parameters. I tried the api-example but everytime i change > something, for example the pixelformat from PIX_FMT_YUV420P to something my > camera can provide the call to avcodec_open fails. Eventually i want to use > x264 for compression so i'm looking primarily for information regarding this > codec. > > Is there any link, literature or anything where codec-parameters are > described? i'd really like to RTFM but until now i havent found it. > > Thanks in advance. > > Best regards > Martin Schreiber
Check out AVCodec::pix_fmts. If non-NULL it contains a list of supported pixel formats. If your desired format is not on that list you have to pick one of the pixel formats on it and convert your frames to it using libswscale. See libavformat/output-example.c In general, look for clues in the headers, like avcodec.h /Tomas
signature.asc
Description: This is a digitally signed message part
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
