Opened 8 years ago

Closed 4 months ago

Last modified 4 months 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 Changed 8 years ago by Cigaes

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

comment:2 Changed 8 years ago by gjdfgh

The ffmpeg component should be doing this.

comment:3 Changed 8 years ago by cehoyos

  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

comment:4 Changed 7 years ago by saste

  • Keywords url av_url_split http added
  • Resolution set to fixed
  • Status changed from open to closed

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 Changed 7 years ago by cehoyos

  • Resolution fixed deleted
  • Status changed from closed to reopened

The commit was reverted.

comment:6 Changed 4 months ago by gautamramk

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

comment:7 Changed 4 months ago by gautamramk

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:8 Changed 4 months ago by cehoyos

  • Keywords url av_url_split removed

Fixed by Marton Balint in 6a7b5226e1c868fe6406b114e7303c70d886900b

Note: See TracTickets for help on using tickets.