[FFmpeg-devel] [PATCH] Use file protocol to deal with bogus protocol strings

Rich Felker dalias
Fri Sep 28 17:02:45 CEST 2007


On Fri, Sep 28, 2007 at 12:04:06PM +0200, Stefano Sabatini wrote:
> And for the most pathological cases such as that suggested by Aurelian:
> 
> $ mkdir -p http://samples.mplayerhq.hu/V-codecs/IV50
> $ cp foo.avi http://samples.mplayerhq.hu/V-codecs/IV50/girl_01.avi
> $ file http://samples.mplayerhq.hu/V-codecs/IV50/girl_01.avi
> http://samples.mplayerhq.hu/V-codecs/IV50/girl_01.avi: RIFF (little-endian)
> data, AVI, 320 x 240, 25.00 fps, video: DivX 5, audio: MPEG-1 Layer 3
> (stereo, 48000 Hz)
> $ ffmpeg -i http://samples.mplayerhq.hu/V-codecs/IV50/girl_01.avi
> FFmpeg version SVN-r10579, Copyright (c) 2000-2007 Fabrice Bellard, et al.
>   configuration:
>   libavutil version: 49.5.0
>   libavcodec version: 51.44.0
>   libavformat version: 51.14.0
>   built on Sep 25 2007 22:51:10, gcc: 4.2.1 (Debian 4.2.1-5)
> Input #0, avi, from 'http://samples.mplayerhq.hu/V-codecs/IV50/girl_01.avi':
>   Duration: 00:00:26.0, start: 0.000000, bitrate: 418 kb/s
>   Stream #0.0: Video: IV50 / 0x30355649, 256x256, 30.00 fps(r)
> 
> you can still do:
> $ ffmpeg -i file://http://samples.mplayerhq.hu/V-codecs/IV50/girl_01.aiv

Or you can do
ffmpeg -i http:/samples.mplayerhq.hu/V-codecs/IV50/girl_01.avi

Rich




More information about the ffmpeg-devel mailing list