[FFmpeg-trac] #5341(undetermined:new): Getting remote file problem via HTTPS: could not find codec parameters

FFmpeg trac at avcodec.org
Wed Mar 16 09:41:19 CET 2016


#5341: Getting remote file problem via HTTPS: could not find codec parameters
-------------------------------------+-------------------------------------
             Reporter:  pszemus      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by pszemus):

 Hmmm version 2.8.2 handled that correctly:
 {{{
 $ ./ffmpeg -v trace -y -i
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg
 -s 200x200 /tmp/tmp.jpg
 ffmpeg version n2.8.2-9-gac0c013 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
   configuration: --prefix=build --enable-pic --enable-pthreads --enable-
 libmp3lame --enable-version3 --enable-libfaac --enable-gpl --enable-
 nonfree --enable-libvpx --enable-libvorbis --enable-libopus --enable-
 libx264 --enable-protocol=https --enable-openssl --extra-
 cflags=-I/opt/WP/wpencoder_worker/common.libs/include --extra-
 ldflags='-L/opt/WP/wpencoder_worker/common.libs/lib -ldl'
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'trace'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '-i' ... matched as input file with argument
 'https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg'.
 Reading option '-s' ... matched as option 's' (set frame size (WxH or
 abbreviation)) with argument '200x200'.
 Reading option '/tmp/tmp.jpg' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument trace.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg.
 Successfully parsed a group of options.
 Opening an input file:
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg.
 [https @ 0x3626c80] request: GET
 /imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg
 HTTP/1.1
 User-Agent: Lavf/56.40.101
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: i.abczdrowie.pl
 Icy-MetaData: 1


 [https @ 0x3626c80] header='HTTP/1.1 200 OK'
 [https @ 0x3626c80] http_code=200
 [https @ 0x3626c80] header='Date: Wed, 16 Mar 2016 08:37:15 GMT'
 [https @ 0x3626c80] header='Content-Type: image/jpeg'
 [https @ 0x3626c80] header='Transfer-Encoding: chunked'
 [https @ 0x3626c80] header='Connection: close'
 [https @ 0x3626c80] header='Last-Modified: Tue, 02 Feb 2016 09:30:42 GMT'
 [https @ 0x3626c80] header='ETag: "56b07742-6d37"'
 [https @ 0x3626c80] header='Expires: Wed, 15 Mar 2017 16:09:52 GMT'
 [https @ 0x3626c80] header='cache-control: max-age=2592000'
 [https @ 0x3626c80] header='Age: 59247'
 [https @ 0x3626c80] header='X-Cache: HIT 29'
 [https @ 0x3626c80] header='X-UA-Device: desktop'
 [https @ 0x3626c80] header=''
 Chunked encoding data size: 27959'
 Probing image2 score:50 size:2048
 Probing jpeg_pipe score:51 size:2048
 [jpeg_pipe @ 0x3626380] Format jpeg_pipe probed with size=2048 and
 score=51
 [jpeg_pipe @ 0x3626380] Before avformat_find_stream_info() pos: 0 bytes
 read:3769 seeks:0
 Chunked encoding data size: 0'
 [mjpeg @ 0x363abc0] marker=d8 avail_size_in_buf=27957
 [mjpeg @ 0x363abc0] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x363abc0] marker=e0 avail_size_in_buf=27955
 [mjpeg @ 0x363abc0] marker parser used 16 bytes (128 bits)
 [mjpeg @ 0x363abc0] marker=fe avail_size_in_buf=27937
 [mjpeg @ 0x363abc0] marker parser used 59 bytes (472 bits)
 [mjpeg @ 0x363abc0] marker=db avail_size_in_buf=27876
 [mjpeg @ 0x363abc0] index=0
 [mjpeg @ 0x363abc0] qscale[0]: 1
 [mjpeg @ 0x363abc0] marker parser used 67 bytes (536 bits)
 [mjpeg @ 0x363abc0] marker=db avail_size_in_buf=27807
 [mjpeg @ 0x363abc0] index=1
 [mjpeg @ 0x363abc0] qscale[1]: 2
 [mjpeg @ 0x363abc0] marker parser used 67 bytes (536 bits)
 [mjpeg @ 0x363abc0] marker=c0 avail_size_in_buf=27738
 [mjpeg @ 0x363abc0] Changeing bps to 8
 [mjpeg @ 0x363abc0] sof0: picture: 648x429
 [mjpeg @ 0x363abc0] component 0 2:2 id: 0 quant:0
 [mjpeg @ 0x363abc0] component 1 1:1 id: 1 quant:1
 [mjpeg @ 0x363abc0] component 2 1:1 id: 2 quant:1
 [mjpeg @ 0x363abc0] pix fmt id 22111100
 [mjpeg @ 0x363abc0] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x363abc0] marker=c4 avail_size_in_buf=27719
 [mjpeg @ 0x363abc0] class=0 index=0 nb_codes=12
 [mjpeg @ 0x363abc0] marker parser used 31 bytes (248 bits)
 [mjpeg @ 0x363abc0] marker=c4 avail_size_in_buf=27686
 [mjpeg @ 0x363abc0] class=1 index=0 nb_codes=251
 [mjpeg @ 0x363abc0] marker parser used 181 bytes (1448 bits)
 [mjpeg @ 0x363abc0] marker=c4 avail_size_in_buf=27503
 [mjpeg @ 0x363abc0] class=0 index=1 nb_codes=12
 [mjpeg @ 0x363abc0] marker parser used 31 bytes (248 bits)
 [mjpeg @ 0x363abc0] marker=c4 avail_size_in_buf=27470
 [mjpeg @ 0x363abc0] class=1 index=1 nb_codes=251
 [mjpeg @ 0x363abc0] marker parser used 181 bytes (1448 bits)
 [mjpeg @ 0x363abc0] escaping removed 119 bytes
 [mjpeg @ 0x363abc0] marker=da avail_size_in_buf=27287
 [mjpeg @ 0x363abc0] component: 0
 [mjpeg @ 0x363abc0] component: 1
 [mjpeg @ 0x363abc0] component: 2
 [mjpeg @ 0x363abc0] marker parser used 27167 bytes (217334 bits)
 [mjpeg @ 0x363abc0] marker=d9 avail_size_in_buf=0
 [mjpeg @ 0x363abc0] decode frame unused 0 bytes
 [jpeg_pipe @ 0x3626380] 0: start_time: -9223372036854.775 duration:
 -9223372036854.775
 [jpeg_pipe @ 0x3626380] stream: start_time: -9223372036854.775 duration:
 -9223372036854.775 bitrate=0 kb/s
 [jpeg_pipe @ 0x3626380] After avformat_find_stream_info() pos: 27959 bytes
 read:27959 seeks:0 frames:1
 Input #0, jpeg_pipe, from
 'https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg':
   Duration: N/A, bitrate: N/A
     Stream #0:0, 1, 1/25: Video: mjpeg, 1 reference frame, yuvj420p(pc,
 bt470bg/unknown/unknown, center), 648x429 [SAR 1:1 DAR 216:143], 1/25, 25
 tbr, 25 tbn, 25 tbc
 Successfully opened the file.
 Parsing a group of options: output file /tmp/tmp.jpg.
 Applying option s (set frame size (WxH or abbreviation)) with argument
 200x200.
 Successfully parsed a group of options.
 Opening an output file: /tmp/tmp.jpg.
 Successfully opened the file.
 detected 2 logical cores
 [graph 0 input from stream 0:0 @ 0x36308c0] Setting 'video_size' to value
 '648x429'
 [graph 0 input from stream 0:0 @ 0x36308c0] Setting 'pix_fmt' to value
 '12'
 [graph 0 input from stream 0:0 @ 0x36308c0] Setting 'time_base' to value
 '1/25'
 [graph 0 input from stream 0:0 @ 0x36308c0] Setting 'pixel_aspect' to
 value '1/1'
 [graph 0 input from stream 0:0 @ 0x36308c0] Setting 'sws_param' to value
 'flags=2'
 [graph 0 input from stream 0:0 @ 0x36308c0] Setting 'frame_rate' to value
 '25/1'
 [graph 0 input from stream 0:0 @ 0x36308c0] w:648 h:429 pixfmt:yuvj420p
 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
 [scaler for output stream 0:0 @ 0x3631020] Setting 'w' to value '200'
 [scaler for output stream 0:0 @ 0x3631020] Setting 'h' to value '200'
 [scaler for output stream 0:0 @ 0x3631020] Setting 'flags' to value
 'bicubic'
 [scaler for output stream 0:0 @ 0x3631020] w:200 h:200 flags:'bicubic'
 interl:0
 [format @ 0x36312e0] compat: called with args=[yuvj420p|yuvj422p|yuvj444p]
 [format @ 0x36312e0] Setting 'pix_fmts' to value
 'yuvj420p|yuvj422p|yuvj444p'
 [AVFilterGraph @ 0x36430e0] query_formats: 5 queried, 4 merged, 0 already
 done, 0 delayed
 [swscaler @ 0x3661c80] deprecated pixel format used, make sure you did set
 range correctly
 [scaler for output stream 0:0 @ 0x3631020] w:648 h:429 fmt:yuvj420p
 sar:1/1 -> w:200 h:200 fmt:yuvj420p sar:216/143 flags:0x4
 [mjpeg @ 0x362d100] Forcing thread count to 1 for MJPEG encoding, use
 -thread_type slice or a constant quantizer if you want to use multiple cpu
 cores
 [mjpeg @ 0x362d100] intra_quant_bias = 96 inter_quant_bias = 0
 Output #0, image2, to '/tmp/tmp.jpg':
   Metadata:
     encoder         : Lavf56.40.101
     Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj420p(pc,
 center), 200x200 [SAR 216:143 DAR 216:143], 1/25, q=2-31, 200 kb/s, 25
 fps, 25 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.60.100 mjpeg
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
 Press [q] to stop, [?] for help
 [mjpeg @ 0x363b060] marker=d8 avail_size_in_buf=27957
 [mjpeg @ 0x363b060] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x363b060] marker=e0 avail_size_in_buf=27955
 [mjpeg @ 0x363b060] marker parser used 16 bytes (128 bits)
 [mjpeg @ 0x363b060] marker=fe avail_size_in_buf=27937
 [mjpeg @ 0x363b060] marker parser used 59 bytes (472 bits)
 [mjpeg @ 0x363b060] marker=db avail_size_in_buf=27876
 [mjpeg @ 0x363b060] index=0
 [mjpeg @ 0x363b060] qscale[0]: 1
 [mjpeg @ 0x363b060] marker parser used 67 bytes (536 bits)
 [mjpeg @ 0x363b060] marker=db avail_size_in_buf=27807
 [mjpeg @ 0x363b060] index=1
 [mjpeg @ 0x363b060] qscale[1]: 2
 [mjpeg @ 0x363b060] marker parser used 67 bytes (536 bits)
 [mjpeg @ 0x363b060] marker=c0 avail_size_in_buf=27738
 [mjpeg @ 0x363b060] sof0: picture: 648x429
 [mjpeg @ 0x363b060] component 0 2:2 id: 0 quant:0
 [mjpeg @ 0x363b060] component 1 1:1 id: 1 quant:1
 [mjpeg @ 0x363b060] component 2 1:1 id: 2 quant:1
 [mjpeg @ 0x363b060] pix fmt id 22111100
 [mjpeg @ 0x363b060] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x363b060] marker=c4 avail_size_in_buf=27719
 [mjpeg @ 0x363b060] class=0 index=0 nb_codes=12
 [mjpeg @ 0x363b060] marker parser used 31 bytes (248 bits)
 [mjpeg @ 0x363b060] marker=c4 avail_size_in_buf=27686
 [mjpeg @ 0x363b060] class=1 index=0 nb_codes=251
 [mjpeg @ 0x363b060] marker parser used 181 bytes (1448 bits)
 [mjpeg @ 0x363b060] marker=c4 avail_size_in_buf=27503
 [mjpeg @ 0x363b060] class=0 index=1 nb_codes=12
 [mjpeg @ 0x363b060] marker parser used 31 bytes (248 bits)
 [mjpeg @ 0x363b060] marker=c4 avail_size_in_buf=27470
 [mjpeg @ 0x363b060] class=1 index=1 nb_codes=251
 [mjpeg @ 0x363b060] marker parser used 181 bytes (1448 bits)
 [mjpeg @ 0x363b060] escaping removed 119 bytes
 [mjpeg @ 0x363b060] marker=da avail_size_in_buf=27287
 [mjpeg @ 0x363b060] component: 0
 [mjpeg @ 0x363b060] component: 1
 [mjpeg @ 0x363b060] component: 2
 [mjpeg @ 0x363b060] marker parser used 27167 bytes (217334 bits)
 [mjpeg @ 0x363b060] marker=d9 avail_size_in_buf=0
 [mjpeg @ 0x363b060] decode frame unused 0 bytes
 Cliping frame in rate conversion by 0.000008
 [AVIOContext @ 0x3766220] Statistics: 0 seeks, 1 writeouts
 [output stream 0:0 @ 0x3630e40] EOF on sink link output stream
 0:0:default.
 No more output streams to write to, finishing.
 frame=    1 fps=0.0 q=3.6 Lsize=N/A time=00:00:00.04 bitrate=N/A
 video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 Input file #0
 (https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg):
   Input stream #0:0 (video): 1 packets read (27959 bytes); 1 frames
 decoded;
   Total: 1 packets (27959 bytes) demuxed
 Output file #0 (/tmp/tmp.jpg):
   Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (4979
 bytes);
   Total: 1 packets (4979 bytes) muxed
 1 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 0x36422e0] Statistics: 27959 bytes read, 0 seeks
 }}}
 but latest from master doesn't:
 {{{
 $ ffmpeg -v trace -i
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg
 -f mjpeg /dev/null
 ffmpeg version N-79053-g7eedad9 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
   configuration: --prefix=/home/pszemus/ffmpeg/build --enable-pic
 --enable-pthreads --enable-libmp3lame --enable-version3 --enable-libfaac
 --enable-gpl --enable-nonfree --enable-libvpx --enable-libvorbis --enable-
 libopus --enable-libx264 --enable-libwebp --enable-protocol=https
 --enable-openssl --extra-cflags=-I/opt/WP/common.libs/include --extra-
 ldflags='-L/opt/WP/common.libs/lib -ldl'
   libavutil      55. 19.100 / 55. 19.100
   libavcodec     57. 28.103 / 57. 28.103
   libavformat    57. 28.101 / 57. 28.101
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 39.102 /  6. 39.102
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'trace'.
 Reading option '-i' ... matched as input file with argument
 'https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'mjpeg'.
 Reading option '/dev/null' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument trace.
 Successfully parsed a group of options.
 Parsing a group of options: input file
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg.
 Successfully parsed a group of options.
 Opening an input file:
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg.
 [https @ 0x2a78c80] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [https @ 0x2a78c80] request: GET
 /imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg
 HTTP/1.1
 User-Agent: Lavf/57.28.101
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: i.abczdrowie.pl
 Icy-MetaData: 1


 [https @ 0x2a78c80] header='HTTP/1.1 200 OK'
 [https @ 0x2a78c80] http_code=200
 [https @ 0x2a78c80] header='Date: Wed, 16 Mar 2016 08:30:00 GMT'
 [https @ 0x2a78c80] header='Content-Type: image/jpeg'
 [https @ 0x2a78c80] header='Transfer-Encoding: chunked'
 [https @ 0x2a78c80] header='Connection: close'
 [https @ 0x2a78c80] header='Last-Modified: Tue, 02 Feb 2016 09:30:42 GMT'
 [https @ 0x2a78c80] header='ETag: "56b07742-6d37"'
 [https @ 0x2a78c80] header='Expires: Wed, 15 Mar 2017 16:09:52 GMT'
 [https @ 0x2a78c80] header='cache-control: max-age=2592000'
 [https @ 0x2a78c80] header='Age: 58811'
 [https @ 0x2a78c80] header='X-Cache: HIT 25'
 [https @ 0x2a78c80] header='X-UA-Device: desktop'
 [https @ 0x2a78c80] header=''
 Chunked encoding data size: 27959'
 Probing image2 score:50 size:2048
 Probing jpeg_pipe score:6 size:2048
 [image2 @ 0x2a78360] Format image2 probed with size=2048 and score=50
 [image2 @ 0x2a78360] Before avformat_find_stream_info() pos: 0 bytes
 read:3769 seeks:0
 [image2 @ 0x2a78360] 0: start_time: 0.000 duration: 0.000
 [image2 @ 0x2a78360] stream: start_time: 0.000 duration: 0.040 bitrate=0
 kb/s
 [image2 @ 0x2a78360] Could not find codec parameters for stream 0 (Video:
 mjpeg, 1 reference frame, none(bt470bg/unknown/unknown, center)):
 unspecified size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [image2 @ 0x2a78360] After avformat_find_stream_info() pos: 0 bytes
 read:3769 seeks:0 frames:0
 https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg:
 could not find codec parameters
 Input #0, image2, from
 'https://i.abczdrowie.pl/imageCache/gallery/2016/02/02/shutterstock-200494427-1_e474-x5y8xx1000yy667w648h429.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame,
 none(bt470bg/unknown/unknown, center), 25 tbr, 25 tbn, 25 tbc
 Successfully opened the file.
 Parsing a group of options: output file /dev/null.
 Applying option f (force format) with argument mjpeg.
 Successfully parsed a group of options.
 Opening an output file: /dev/null.
 Output #0, mjpeg, to '/dev/null':
 Output file #0 does not contain any stream
 [AVIOContext @ 0x2a94260] Statistics: 3769 bytes read, 0 seeks
 }}}

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


More information about the FFmpeg-trac mailing list