Thank you for help again.

I changed the buffer size and made sure that it returns same size in
read_data()

Still I get -1 in av_open_input_stream and no information even after I set
log level as AV_LOG_VERBOSE

Any help would be greatly appreciated

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kulti
Sent: 27/09/2010 11:25 PM
To: Libav* user questions and discussions
Subject: Re: [libav-user] av_open_input_stream Failing

On Mon, Sep 27, 2010 at 9:19 PM, Linux V <[email protected]> wrote:

> Thank you for the help.
>
> I have added
>
>  av_log_set_callback(my_log_callback);
>   av_log_set_level(AV_LOG_VERBOSE);
>
> At top of the program and added this function
>
> void my_log_callback(void *ptr, int level, const char *fmt, va_list 
> vargs) {  if (level > av_log_get_level())
>    return;
>  vprintf(fmt, vargs);
> }
>
> It still does not output any line of log.
>
> I am getting return value of -1 from av_open_input_stream
>
> Sorry for being novice here, I understand that this is pretty basic
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Mike Edenfield
> Sent: 27/09/2010 8:54 PM
> To: [email protected]
> Subject: Re: [libav-user] av_open_input_stream Failing
>
> On 9/27/2010 10:52 AM, Linux V wrote:
>
> > I am not sure what is wrong here, probably I am supposed to use 
> > different code/method for ASF ? Is there any way I can get more 
> > information debug information on how it is failing?
>
> 1. The negative return values for the FFmpeg functions are meaningful 
> (most likely a value from libavutil/error.h); check the libavformat 
> source code to see what they represent.
>
> 2. You can get more debugging information from FFmpeg using something
like:
>
> av_log_set_callback(my_log_callback);
> av_log_set_level(AV_LOG_DEBUG);
>
> void my_log_callback(void *ptr, int level, const char *fmt, va_list 
> vargs) {
>        if (level > av_log_get_level())
>                return;
>
>        vprintf(fmt, vargs);
> }
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>

As I remember, read_data() should be return the same size, as received in
third parameter. Check it.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to