Opened 12 years ago

Closed 5 years ago

Last modified 5 years ago

#2031 closed enhancement (fixed)

ffmpeg fails to access certain http URLs

Reported by: gjdfgh Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: http
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

$ ffmpeg -i 'http://samples.mplayerhq.hu/V-codecs/N264/Video demo-1.avi' fds.avi
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 17 2012 12:13:29 with gcc 4.7 (Debian 4.7.2-4)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec   libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[http @ 0x8091600] HTTP error 404 Not Found
http://samples.mplayerhq.hu/V-codecs/N264/Video demo-1.avi: Input/output error

mplayer can access the file without trouble.

(Never mind the problem that the video codec used for this file is not supported by ffmpeg or mplayer.)

Change History (8)

comment:1 by Cigaes, 12 years ago

Spaces are not valid in HTTP URLs. Replace them by %20 and it works.

comment:2 by gjdfgh, 12 years ago

The ffmpeg component should be doing this.

comment:3 by Carl Eugen Hoyos, 12 years ago

Priority: normalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement
Version: unspecifiedgit-master

comment:4 by Stefano Sabatini, 12 years ago

Keywords: url av_url_split http added
Resolution: fixed
Status: openclosed

Hopefully fixed in:

commit 4a8fc1d83b1b55e1ac533644168018ebeec0c732
Author: Senthilnathan M <senthilnathan.maadasamy@gmail.com>
Date:   Sun Feb 10 23:08:52 2013 +0530

    lavf/utils: add support for special characters encoding in URL
    
    In particular, fix trac ticket #2031.
    
    Signed-off-by: Senthilnathan M <senthilnathan.maadasamy@gmail.com>
    Signed-off-by: Stefano Sabatini <stefasab@gmail.com>

Please reopen the ticket if this still fails in some cases.

comment:5 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: closedreopened

The commit was reverted.

comment:6 by Gautam, 5 years ago

http://mplayerhq.hu/pipermail/ffmpeg-devel/2020-February/256904.html
This commit fixes this issue. It can be closed.

comment:7 by Gautam, 5 years ago

Resolution: fixed
Status: reopenedclosed

comment:8 by Carl Eugen Hoyos, 5 years ago

Keywords: url av_url_split removed

Fixed by Marton Balint in 6a7b5226e1c868fe6406b114e7303c70d886900b

Note: See TracTickets for help on using tickets.