[Libav-user] Does the image2 demuxer work with a custom AVIOContext?

2014-01-12 Thread Robert Krüger
Hi, I am having problems programmatically extracting metadata like size and pixel format from a dpx image using a custom AVIOContext. Should that work or does the image2 demuxer only work with files even in the single-file case? Or is there something I need to watch out for when using it this

[Libav-user] Check an address to see if there is any video stream on it or not

2014-01-12 Thread Hadi
I want to read a video stream from a UDP address using libavcodec functions. To do so, I use the following code: char *url = udp://127.0.0.1:1000; AVFormatContext *oc = NULL; avformat_open_input(oc, url, NULL , NULL); If we run this code, then function avformat_open_input starts listening on

Re: [Libav-user] Check an address to see if there is any video stream on it or not

2014-01-12 Thread Евгений Гарифуллин
12.01.2014, 22:23, Hadi hadi.hadiza...@hotmail.com: I want to read a video stream from a UDP address using libavcodec functions. To do so, I use the following code: char *url = udp://127.0.0.1:1000; AVFormatContext *oc = NULL; avformat_open_input(oc, url, NULL , NULL); If we run this

Re: [Libav-user] Does the image2 demuxer work with a custom AVIOContext?

2014-01-12 Thread Carl Eugen Hoyos
Robert Krüger krueger@... writes: I am having problems programmatically extracting metadata like size and pixel format from a dpx image using a custom AVIOContext. Should that work or does the image2 demuxer only work with files even in the single-file case? Contrary to all other

Re: [Libav-user] Does the image2 demuxer work with a custom AVIOContext?

2014-01-12 Thread Hendrik Leppkes
On Sun, Jan 12, 2014 at 4:49 PM, Robert Krüger krue...@lesspain.de wrote: Hi, I am having problems programmatically extracting metadata like size and pixel format from a dpx image using a custom AVIOContext. Should that work or does the image2 demuxer only work with files even in the

Re: [Libav-user] Check an address to see if there is any video stream on it or not

2014-01-12 Thread Hadi
Thanks for the response, it works! :) I was thinking to put such a code within a thread. Whenever avformat_open_input finds a stream at the given address, then the thread can be terminated. In the meantime, the program can do other stuffs. But do you know how I can make a thread with libavcodec

Re: [Libav-user] Check an address to see if there is any video stream on it or not

2014-01-12 Thread redhat_doom
Thanks for the response, it works! :) I was thinking to put such a code within a thread. Whenever avformat_open_input finds a stream at the given address, then the thread can be terminated. In the meantime, the program can do other stuffs. But do you know how I can make a thread with libavcodec

[Libav-user] ffmpeg on android

2014-01-12 Thread Marcelo Paes Rech
Hi guys, I am trying to do a stream player in android but I need to read a array of bytes and then decode every packet of array of bytes. In the end started to make my AAC decoder work with the ffmpeg example of decoder. But I ran into the same problem of this guy:

Re: [Libav-user] Does the image2 demuxer work with a custom AVIOContext?

2014-01-12 Thread Carl Eugen Hoyos
Hendrik Leppkes h.leppkes@... writes: image2 requires to directly access the files itself. Thank you for correcting me! There is also a image2pipe, which can read the data from a avio context, but in my experience it also didn't work properly because its designed for a pipe scenario where

Re: [Libav-user] Does the image2 demuxer work with a custom AVIOContext?

2014-01-12 Thread Hendrik Leppkes
On Sun, Jan 12, 2014 at 8:02 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Hendrik Leppkes h.leppkes@... writes: image2 requires to directly access the files itself. Thank you for correcting me! There is also a image2pipe, which can read the data from a avio context, but in my experience it

Re: [Libav-user] Does the image2 demuxer work with a custom AVIOContext?

2014-01-12 Thread Carl Eugen Hoyos
Hendrik Leppkes h.leppkes@... writes: Yeah it only works on img formats which have a parser to re-assemble full images, so its use is a bit limited. Note that I (?) implemented -frame_size for image formats with constant frame size. Carl Eugen

Re: [Libav-user] ffmpeg on android

2014-01-12 Thread Sylvio José Alves Neto
Marcelo, have you initialized the ffmpeg using av_register_all()? Also, when building the ffmpeg, have you included encoding/decoding/ parsing support for aac? Sylvio Em 12/01/2014 16:18, Marcelo Paes Rech marcelopaesr...@gmail.com escreveu: Hi guys, I am trying to do a stream player in