Stefano Sabatini wrote:
> Hi all,
>
> the following program is meant to be a basic example of the encoding
> decoding libavcodec API.
>
> The problem is that I *always* got an empty frame when decoding the
> frame.
This does not happen here: the encdec-dst.pgm file I get is just a
"low quality" version of the encdec-src.pgm file. Probably, the rate
control mechanism starts encoding the first frame with a low quality
(and the image you use as input requires a very high bitrate).
> Curiosly enough, I also tried the code of apiexample.c, getting weird
> result, for example:
>
> ./apiexample ~/asian-commercials-are-weird.flv
> Video decoding
What is "asian-commercials-are-weird.flv"? Is it a video elementary
stream? If not, I do not think you can decode it with apiexample
> No decoding is performed with the video stream (VP6), while it is done
> with other types of video stream (for example MPEG-1).
Note that the video decoding example is hardcoding MPEG-1 as a video codec...
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user