[Libav-user] decoding example program not working
Krishna
krishnaks at iwavesystems.com
Fri Apr 27 18:44:20 CEST 2012
Hi Alex,
For using format context ,I need to av_open_input_file API? I am new to
this.Can you give suggestions?
Thanks and Regards,
KP
----- Original Message -----
From: "Alex Cohn" <alexcohn at netvision.net.il>
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice
and libavfilter." <libav-user at ffmpeg.org>
Sent: Wednesday, April 25, 2012 7:27 AM
Subject: Re: [Libav-user] decoding example program not working
On Wed, Apr 25, 2012 at 19:41, Krishna <krishnaks at iwavesystems.com> wrote:
> Yes. With ffmpeg command line tool, same file getting decoded without any
> problem.
Note that the simple example does not use format context, only codec
context. In real life, you should use rawvideo h264 demuxer.
Alex
> ----- Original Message ----- From: "Alex Cohn" <alexcohn at netvision.net.il>
> To: "This list is about using libavcodec, libavformat,
> libavutil,libavdevice
> and libavfilter." <libav-user at ffmpeg.org>
> Sent: Tuesday, April 24, 2012 8:00 AM
> Subject: Re: [Libav-user] decoding example program not working
>
>
> On Tue, Apr 24, 2012 at 15:51, <krishnaks at iwavesystems.com> wrote:
>>
>> HI,
>> I used example program in ffmpeg/doc/examples/decoding_encoding.c for
>> decoding raw H264 file. But I am getting following errors. Where I am
>> going wrong.
>>
>> Video decoding
>> [h264 @ 0x102d9600] Invalid level prefix
>> [h264 @ 0x102d9600] error while decoding MB 5 6
>> [h264 @ 0x102d9600] concealing 77 DC, 77 AC, 77 MV errors
>> saving frame 0
>> 2012-04-24 18:22:18.519 iPadRecv[6627:14303] Current directory is /
>> [h264 @ 0x102d9600] concealing 99 DC, 99 AC, 99 MV errors
>> saving frame 1
>> 2012-04-24 18:22:18.524 iPadRecv[6627:14303] Current directory is /
>> [h264 @ 0x102d9600] concealing 73 DC, 73 AC, 73 MV errors
>> saving frame 2
>> 2012-04-24 18:22:18.527 iPadRecv[6627:14303] Current directory is /
>> [h264 @ 0x102d9600] concealing 93 DC, 93 AC, 93 MV errors
>> saving frame 3
>> 2012-04-24 18:22:18.531 iPadRecv[6627:14303] Current directory is /
>> [h264 @ 0x102d9600] concealing 90 DC, 90 AC, 90 MV errors
>> saving frame 4
>> 2012-04-24 18:22:18.535 iPadRecv[6627:14303] Current directory is /
>> [h264 @ 0x102d9600] concealing 99 DC, 99 AC, 99 MV errors
>> saving frame 5
>> 2012-04-24 18:22:18.537 iPadRecv[6627:14303] Current directory is /
>> [h264 @ 0x102d9600] no frame!
>> Error while decoding frame 6
>>
>> Regards,
>> KP
>
>
> Does this file decode with no errors with ffmpeg executable?
>
> Alex
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
More information about the Libav-user
mailing list