[FFmpeg-user] FFmpeg fails to detect input stream codec

Liran Bachar Liran.Bachar at BriefCam.Com
Tue Nov 27 14:09:13 EET 2018


Hi.
I have a sample file uploaded to:
https://briefcamltd-my.sharepoint.com/:v:/g/personal/liran_bachar_briefcam_com/EfkUUWEHoa5Cnwf_xxtp2iMBEiKs_TThbTYBBwPYjiAqgA?e=fkrXu4

Command:
ffmpeg -i "XRN-3010_10.0.21.62_80-Cam10_20181015_100000_20181015_120000_ID_0000_0020.avi<file://bcfs/Rndnew/Support/Tickets/871/Video2/XRN-3010_10.0.21.62_80-Cam10_20181015_100000_20181015_120000_ID_0000_0020.avi>" -f null -
Output:
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64
  configuration: --enable-asm --enable-yasm --enable-nvdec --disable-doc --enable-shared --disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv --disable-zlib --disable-dxva2 --disable-d3d11va --enable-decoder=tscc --toolchain=msvc --arch=x86_64 --extra-cflags=-MD --extra-ldflags='/NODEFAULTLIB:libcmt' --enable-cuda --enable-cuvid --enable-nvenc --enable-libopenh264 --extra-cflags=-I/d/Sources/ExternalLibs/CudaToolkit_9_0/include --prefix=/d/Sources/5.3.0/ExternalLibs/ffmpeg_4_0_BC
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
[avi @ 000002B70EC09A00] non-interleaved AVI
[avi @ 000002B70EC09A00] Could not find codec parameters for stream 0 (Video: none (HEVC / 0x43564548), none, 2592x1520, 2021 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, avi, from '\\bcfs\Rndnew\Support\Tickets\871\Video2\XRN-3010_10.0.21.62_80-Cam10_20181015_100000_20181015_120000_ID_0000_0020.avi':
  Duration: 00:01:38.42, start: 0.000000, bitrate: 2033 kb/s
    Stream #0:0: Video: none (HEVC / 0x43564548), none, 2592x1520, 2021 kb/s, 60 fps, 60 tbr, 60 tbn, 60 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (? (?) -> wrapped_avframe (native))
Decoder (codec none) not found for input stream #0:0


When I force the decoder to hevc, decoding succeeds:
ffmpeg -c:v hevc -i "XRN-3010_10.0.21.62_80-Cam10_20181015_100000_20181015_120000_ID_0000_0020.avi<file://bcfs/Rndnew/Support/Tickets/871/Video2/XRN-3010_10.0.21.62_80-Cam10_20181015_100000_20181015_120000_ID_0000_0020.avi>" -f null -
Output:
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64
  configuration: --enable-asm --enable-yasm --enable-nvdec --disable-doc --enable-shared --disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv --disable-zlib --disable-dxva2 --disable-d3d11va --enable-decoder=tscc --toolchain=msvc --arch=x86_64 --extra-cflags=-MD --extra-ldflags='/NODEFAULTLIB:libcmt' --enable-cuda --enable-cuvid --enable-nvenc --enable-libopenh264 --extra-cflags=-I/d/Sources/ExternalLibs/CudaToolkit_9_0/include --prefix=/d/Sources/5.3.0/ExternalLibs/ffmpeg_4_0_BC
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
[avi @ 000001E436577640] non-interleaved AVI
Input #0, avi, from '\\bcfs\Rndnew\Support\Tickets\871\Video2\XRN-3010_10.0.21.62_80-Cam10_20181015_100000_20181015_120000_ID_0000_0020.avi':
  Duration: 00:01:38.42, start: 0.000000, bitrate: 2033 kb/s
    Stream #0:0: Video: hevc (Main) (HEVC / 0x43564548), yuv420p(tv), 2592x1520, 2021 kb/s, 60 fps, 60 tbr, 60 tbn, 60 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.12.100
    Stream #0:0: Video: wrapped_avframe, yuv420p, 2592x1520, q=2-31, 200 kb/s, 60 fps, 60 tbn, 60 tbc
    Metadata:
      encoder         : Lavc58.18.100 wrapped_avframe
[hevc @ 000001E43883A600] Could not find ref with POC 10
[hevc @ 000001E43883AA80] Could not find ref with POC 13
[hevc @ 000001E43657CE40] Could not find ref with POC 11rate=N/A speed=0.0943x
[hevc @ 000001E43657D2C0] Could not find ref with POC 14
frame=  338 fps=102 q=-0.0 size=N/A time=00:00:16.98 bitrate=N/A speed=5.15x


Why automatic codec detection fails? What can I do to fix this?
Thanks,
Liran.



More information about the ffmpeg-user mailing list