New submission from aviad rozenhek <avia...@gmail.com>:

simple file URLs are of the form file://<absolute-path>, on windows 
platform an example would be file:///c:/temp/myfile.avi (notice 3 
slashes before c:)

libavformat doesn't properly parse file URLs, and as a result, ffmpeg 
cannot parse them as well.

so using well-formed file URLs doesn't work, while using ffmpeg-only 
syntax such as file:c:/temp/myfile.avi works.

here is a printout of an example

-- well formed URL which doesn't work
$>ffmpeg -i file:///c:/temp/bray.mov
FFmpeg version SVN-r21118, Copyright (c) 2000-2010 Fabrice Bellard, et 
al.
  built on Jan 10 2010 06:06:24 with gcc 4.4.2
  configuration: --enable-shared --disable-static --enable-memalign-hack 
--cross-prefix=i686-mingw32- --cc=ccache-i686-m
ingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth 
--enable-gpl --enable-version3 --enable-bzlib --
enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --
enable-libtheora --enable-libspeex --enable-libmp3
lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --
enable-libx264 --enable-libopencore_amrwb --enable
-libopencore_amrnb
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.46. 0 / 52.46. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0
file:///c:/temp/bray.mov: no such file or directory


-- ffmpeg-only syntax which (isn't a proper URL) works
$>ffmpeg -i file:c:/temp/bray.mov
FFmpeg version SVN-r21118, Copyright (c) 2000-2010 Fabrice Bellard, et 
al.
  built on Jan 10 2010 06:06:24 with gcc 4.4.2
  configuration: --enable-shared --disable-static --enable-memalign-hack 
--cross-prefix=i686-mingw32- --cc=ccache-i686-m
ingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth 
--enable-gpl --enable-version3 --enable-bzlib --
enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --
enable-libtheora --enable-libspeex --enable-libmp3
lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --
enable-libx264 --enable-libopencore_amrwb --enable
-libopencore_amrnb
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.46. 0 / 52.46. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0

Seems stream 0 codec frame rate differs from container frame rate: 
30000.00 (30000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:c:/temp/bray.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf52.46.0
    encoder-eng     : Lavf52.46.0
  Duration: 00:01:44.97, start: 0.000000, bitrate: 281 kb/s
    Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 
212 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc

    Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 65 kb/s
At least one output file must be specified

----------
messages: 8806
priority: normal
status: new
substatus: new
title: libavformat doesn't undertand file URLs
topic: avformat
type: bug

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1676>
_____________________________________________________

Reply via email to