thank you Evgeny,

I tried your suggestion but I can not make it work, probably I'm not
too experienced
in the use of libraries.

my goal is to read a continuous stream (audio / video) generated with VLC

avformat_open_input function waits until it receives data ???

oc->streams[0]->codec->codec_id ... here i find codec type

but when data is received where it is stored......

Digita il testo o l'indirizzo di un sito web oppure traduci un
documento<http://translate.google.it/?tr=f&hl=it>
.
Annulla <http://translate.google.it/?tr=t&hl=it>
Traduzione da italiano verso inglese
.. thank you for the help

if you have the examples are very welcome....







2011/12/6 Evgeny Yakimov <[email protected]>

> Hey Paulo
>
> This works for me
>
> char * url = "udp://:1500";
> char * format = "mpegts";
>
> AVInputFormat *fmt = NULL;
> AVFormatContext *oc = NULL;
>
> int res;
>
> if (format != NULL){
> fmt = av_find_input_format(format);
>  res = avformat_open_input(&oc, url, fmt , NULL);
> } else {
> res = avformat_open_input(&oc, url, NULL , NULL);
> }
>
> So it may be just a matter of supplying the format (its normally mpegts
> for udp streams).
>
> Evgeny
>
> _______________________________________________
> libav-api mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-api
>
>


-- 
Ing. Paolo Melucci
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to