[FFmpeg-trac] #8833(undetermined:new): ffprobe doesn't properly follow redirect on remote url

FFmpeg trac at avcodec.org
Mon Aug 3 15:56:51 EEST 2020


#8833: ffprobe doesn't properly follow redirect on remote url
-------------------------------------+-------------------------------------
             Reporter:  azhelev      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by azhelev):

 Hello cehoyos,

 the issue is reproducible with ffmpeg too. I have reproduced the case with
 a file on a web server that i control.

 {{{
 $ ffmpeg -v 9 -loglevel 99 -i "http://77.238.90.90/play/vimeo-prod-
 skyfire-std-
 us/01/697/15/378487171/Práctica+mirar+la+imagen+instantánea+en+la+distancia+fácil+y+difícil..mp4"
 -f image2 -vframes 1 image%03d.jpg
 ffmpeg version N-98588-gcbb6ba2e86 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 10.1.0 (GCC)
   configuration: --prefix=/usr --disable-debug --disable-static --disable-
 stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-
 gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass
 --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype
 --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack
 --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-
 libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
 --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr
 --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora
 --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis
 --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-
 nvenc --enable-omx --enable-shared --enable-version3
   libavutil      56. 57.100 / 56. 57.100
   libavcodec     58. 97.102 / 58. 97.102
   libavformat    58. 49.100 / 58. 49.100
   libavdevice    58. 11.101 / 58. 11.101
   libavfilter     7. 87.100 /  7. 87.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
   libpostproc    55.  8.100 / 55.  8.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input url with argument
 'http://77.238.90.90/play/vimeo-prod-skyfire-std-
 us/01/697/15/378487171/Práctica+mirar+la+imagen+instantánea+en+la+distancia+fácil+y+difícil..mp4'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'image2'.
 Reading option '-vframes' ... matched as option 'vframes' (set the number
 of video frames to output) with argument '1'.
 Reading option 'image%03d.jpg' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url http://77.238.90.90/play/vimeo-prod-
 skyfire-std-
 us/01/697/15/378487171/Práctica+mirar+la+imagen+instantánea+en+la+distancia+fácil+y+difícil..mp4.
 Successfully parsed a group of options.
 Opening an input file: http://77.238.90.90/play/vimeo-prod-skyfire-std-
 us/01/697/15/378487171/Práctica+mirar+la+imagen+instantánea+en+la+distancia+fácil+y+difícil..mp4.
 [NULL @ 0x560e9bcf7300] Opening 'http://77.238.90.90/play/vimeo-prod-
 skyfire-std-
 us/01/697/15/378487171/Práctica+mirar+la+imagen+instantánea+en+la+distancia+fácil+y+difícil..mp4'
 for reading
 [http @ 0x560e9bcf7e80] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy,data'
 [tcp @ 0x560e9bcfae00] Original list of addresses:
 [tcp @ 0x560e9bcfae00] Address 77.238.90.90 port 80
 [tcp @ 0x560e9bcfae00] Interleaved list of addresses:
 [tcp @ 0x560e9bcfae00] Address 77.238.90.90 port 80
 [tcp @ 0x560e9bcfae00] Starting connection attempt to 77.238.90.90 port 80
 [tcp @ 0x560e9bcfae00] Successfully connected to 77.238.90.90 port 80
 [http @ 0x560e9bcf7e80] request: GET /play/vimeo-prod-skyfire-std-
 us/01/697/15/378487171/Pr%C3%A1ctica+mirar+la+imagen+instant%C3%A1nea+en+la+distancia+f%C3%A1cil+y+dif%C3%ADcil..mp4
 HTTP/1.1
 User-Agent: Lavf/58.49.100
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: 77.238.90.90
 Icy-MetaData: 1


 [http @ 0x560e9bcf7e80] header='HTTP/1.1 302 Moved Temporarily'
 [http @ 0x560e9bcf7e80] http_code=302
 [http @ 0x560e9bcf7e80] header='Server: nginx'
 [http @ 0x560e9bcf7e80] header='Date: Mon, 03 Aug 2020 12:51:47 GMT'
 [http @ 0x560e9bcf7e80] header='Content-Type: text/html'
 [http @ 0x560e9bcf7e80] header='Content-Length: 138'
 [http @ 0x560e9bcf7e80] header='Location: http://77.238.90.90/vimeo-prod-
 skyfire-std-
 us/01/697/15/378487171/Pr%C3%A1ctica+mirar+la+imagen+instant%C3%A1nea+en+la+distancia+f%C3%A1cil+y+dif%C3%ADcil..mp4'
 [http @ 0x560e9bcf7e80] header='Connection: close'
 [http @ 0x560e9bcf7e80] header=''
 [tcp @ 0x560e9bcfb380] Original list of addresses:
 [tcp @ 0x560e9bcfb380] Address 77.238.90.90 port 80
 [tcp @ 0x560e9bcfb380] Interleaved list of addresses:
 [tcp @ 0x560e9bcfb380] Address 77.238.90.90 port 80
 [tcp @ 0x560e9bcfb380] Starting connection attempt to 77.238.90.90 port 80
 [tcp @ 0x560e9bcfb380] Successfully connected to 77.238.90.90 port 80
 [http @ 0x560e9bcf7e80] request: GET /vimeo-prod-skyfire-std-
 us/01/697/15/378487171/p4 HTTP/1.1
 User-Agent: Lavf/58.49.100
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: 77.238.90.90
 Icy-MetaData: 1


 [http @ 0x560e9bcf7e80] header='HTTP/1.1 404 Not Found'
 [http @ 0x560e9bcf7e80] http_code=404
 [http @ 0x560e9bcf7e80] HTTP error 404 Not Found
 http://77.238.90.90/play/vimeo-prod-skyfire-std-
 us/01/697/15/378487171/Práctica+mirar+la+imagen+instantánea+en+la+distancia+fácil+y+difícil..mp4:
 Server returned 404 Not Found
 }}}


 ffplay is also affected

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8833#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list