[FFmpeg-devel] livestream.com us-local news channels

Georg Stein georg_stein at t-online.de
Tue Sep 23 12:59:48 CEST 2014


Hello,

this call i do already after  avformat_open_input(&this->avFormatContext,
fileNameChar, fmt, NULL);
i guess my problem is that the above call (and a av_probe_input_format to
the stream url) gives me always "mp3"/"MP2/3 (MPEG audio layer 2/3)" as
format back, ffmpeg and ffprobe returns here "hls,applehttp" what the stream
in fact is

i looked into the source of ffmpeg.c and ffprobe.c but could not figure out
if they set here some AVDictionary options to the callse.

Georg

-----Ursprüngliche Nachricht-----
Von: ffmpeg-devel-bounces at ffmpeg.org
[mailto:ffmpeg-devel-bounces at ffmpeg.org] Im Auftrag von Michael Niedermayer
Gesendet: Dienstag, 23. September 2014 12:29
An: FFmpeg development discussions and patches
Betreff: Re: [FFmpeg-devel] livestream.com us-local news channels

On Tue, Sep 23, 2014 at 07:05:29AM +0200, Georg Stein wrote:
> Hello,
> 
> i try now for some time to dump with a small app written in c by using 
> the ffmpeg libs to download the streams of a US local news channel 
> streamed on livestream.com - without success.
> 
>  
> 
> the stream url looks like (there is an auth key in):
> 
>  
> 
>  
> <http://api.new.livestream.com/broadcasts/62834750.m3u8?dw=100&hdnea=s
> t=1411
> 4>
> http://api.new.livestream.com/broadcasts/62834750.m3u8?dw=100&hdnea=st
> =14114
> 
> 03505~exp=1411404405~acl=/i/1864610_1649849_f007e646_1 at 188864/*~hmac=b
> e25315
> 
> e9f3dd58ac529bb167a3889b336af7faddaa02b8cae99b82969900097
> 
>  
> 
> and
> 
>  
> 
>  
> <http://livestream-f.akamaihd.net/i/1864610_1649849_f007e646_1@188864/
> master
> >
>
http://livestream-f.akamaihd.net/i/1864610_1649849_f007e646_1@188864/master.
> 
> m3u8?dw=100&__b__=678&hdnea=st=1411403505~exp=1411404405~acl=/i/186461
> 0_1649
> 
> 849_f007e646_1 at 188864/*~hmac=be25315e9f3dd58ac529bb167a3889b336af7fadd
> aa02b8
> 
> cae99b82969900097
> 
>  
> 
> when i call
> 
> int result = avformat_open_input(&this->avFormatContext, fileNameChar, 
> fmt, NULL);
> 
>  
> 
> the result is 0 but the AVFormatContext does not has any codec/stream 
> in
> 
>  
> 
> the command line tool from ffmepg can download the stream fine with 
> the url i use in my app
> 
>  
> 
> so perhaps somebody has here a hint for me to solve my problem

i can just guess but maybe missing avformat_find_stream_info() call


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus


---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com



More information about the ffmpeg-devel mailing list