[FFmpeg-trac] #7652(undetermined:reopened): video_size input option doesn't work for compressed raw stream
FFmpeg
trac at avcodec.org
Thu Jan 3 18:02:06 EET 2019
#7652: video_size input option doesn't work for compressed raw stream
-------------------------------------+-------------------------------------
Reporter: Ilya87 | Owner:
Type: defect | Status: reopened
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Changes (by Ilya87):
* status: closed => reopened
* resolution: invalid =>
Comment:
But ffmpeg can't read dimensions (video width and height) without from
this file, so this option is necesary.
Output:
ffmpeg version N-92906-g54109b1d14 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --disable-static --enable-shared --enable-gpl --enable-
version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libfreetype --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-
libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-
libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va
--enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-
libopenmpt
libavutil 56. 25.100 / 56. 25.100
libavcodec 58. 43.100 / 58. 43.100
libavformat 58. 25.100 / 58. 25.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 46.101 / 7. 46.101
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'trace'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'h264'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
fraction or abbreviation)) with argument '24'.
Reading option '-i' ... matched as input url with argument 'sintel.h264'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option '123.mkv' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url sintel.h264.
Applying option f (force format) with argument h264.
Applying option c:v (codec name) with argument h264.
Applying option r (set frame rate (Hz value, fraction or abbreviation))
with argument 24.
Successfully parsed a group of options.
Opening an input file: sintel.h264.
[h264 @ 000001b680682ec0] Opening 'sintel.h264' for reading
[file @ 000001b680683740] Setting default whitelist 'file,crypto'
[h264 @ 000001b680682ec0] Before avformat_find_stream_info() pos: 0 bytes
read:32768 seeks:0 nb_streams:1
[h264 @ 000001b68068d380] missing picture in access unit with size
12585771
[AVBSFContext @ 000001b6822d0f40] Invalid NAL unit 0, skipping.
[h264 @ 000001b68068d380] Invalid NAL unit 0, skipping.
[h264 @ 000001b68068d380] no frame!
[h264 @ 000001b680682ec0] Probe buffer size limit of 5000000 bytes reached
[h264 @ 000001b680682ec0] Stream #0: not enough frames to estimate rate;
consider increasing probesize
[h264 @ 000001b680682ec0] decoding for stream 0 failed
[h264 @ 000001b680682ec0] stream 0: start_time: -7686143364045.646
duration: -7686143364045.646
[h264 @ 000001b680682ec0] format: start_time: -9223372036854.775 duration:
-9223372036854.775 bitrate=0 kb/s
[h264 @ 000001b680682ec0] Could not find codec parameters for stream 0
(Video: h264, 1 reference frame, none(left)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[h264 @ 000001b680682ec0] After avformat_find_stream_info() pos: 12585771
bytes read:12585771 seeks:0 frames:1
Input #0, h264, from 'sintel.h264':
Duration: N/A, bitrate: N/A
Stream #0:0, 1, 1/1200000: Video: h264, 1 reference frame, none(left),
24 tbr, 1200k tbn, 48 tbc
Successfully opened the file.
Parsing a group of options: output url 123.mkv.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: 123.mkv.
File '123.mkv' already exists. Overwrite ? [y/N] y
[file @ 000001b6822d0380] Setting default whitelist 'file,crypto'
Successfully opened the file.
[matroska @ 000001b68069a800] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
[AVIOContext @ 000001b6822d0440] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 000001b68068b8c0] Statistics: 12585771 bytes read, 0 seeks
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7652#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list