FFmpeg fails to detect input stream codec

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

FFmpeg fails to detect input stream codec

Liran Bachar
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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg fails to detect input stream codec

Paul B Mahol
On 11/27/18, Liran Bachar <[hidden email]> wrote:

> 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?

Use: ffmpeg -c:v hevc -i input_file ...
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg fails to detect input stream codec

Liran Bachar
I need automatic detection to work. Our product can get any file at the input, I cannot assume the input file is hevc.

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Paul B Mahol
Sent: Tuesday, November 27, 2018 02:15 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] FFmpeg fails to detect input stream codec

On 11/27/18, Liran Bachar <[hidden email]> wrote:

> Hi.
> I have a sample file uploaded to:
> https://briefcamltd-my.sharepoint.com/:v:/g/personal/liran_bachar_brie
> fcam_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?

Use: ffmpeg -c:v hevc -i input_file ...
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg fails to detect input stream codec

Micael Silva
On Tue, Nov 27, 2018 at 10:35 AM Liran Bachar <[hidden email]>
wrote:

> I need automatic detection to work. Our product can get any file at the
> input, I cannot assume the input file is hevc.
>
> -----Original Message-----
> From: ffmpeg-user <[hidden email]> On Behalf Of Paul B
> Mahol
> Sent: Tuesday, November 27, 2018 02:15 PM
> To: FFmpeg user questions <[hidden email]>
> Subject: Re: [FFmpeg-user] FFmpeg fails to detect input stream codec
>
> On 11/27/18, Liran Bachar <[hidden email]> wrote:
> > Hi.
> > I have a sample file uploaded to:
> > https://briefcamltd-my.sharepoint.com/:v:/g/personal/liran_bachar_brie
> > fcam_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?
>
> Use: ffmpeg -c:v hevc -i input_file ...
>
>
Increasing -probesize maybe?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg fails to detect input stream codec

Liran Bachar
I tried to increase probesize and analyzeduration. Same result.
________________________________
From: ffmpeg-user <[hidden email]> on behalf of Micael Silva <[hidden email]>
Sent: Tuesday, November 27, 2018 2:43:07 PM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] FFmpeg fails to detect input stream codec

On Tue, Nov 27, 2018 at 10:35 AM Liran Bachar <[hidden email]>
wrote:

> I need automatic detection to work. Our product can get any file at the
> input, I cannot assume the input file is hevc.
>
> -----Original Message-----
> From: ffmpeg-user <[hidden email]> On Behalf Of Paul B
> Mahol
> Sent: Tuesday, November 27, 2018 02:15 PM
> To: FFmpeg user questions <[hidden email]>
> Subject: Re: [FFmpeg-user] FFmpeg fails to detect input stream codec
>
> On 11/27/18, Liran Bachar <[hidden email]> wrote:
> > Hi.
> > I have a sample file uploaded to:
> > https://briefcamltd-my.sharepoint.com/:v:/g/personal/liran_bachar_brie
> > fcam_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<file://\\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<file://\\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?
>
> Use: ffmpeg -c:v hevc -i input_file ...
>
>
Increasing -probesize maybe?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg fails to detect input stream codec

Carl Eugen Hoyos-2
In reply to this post by Liran Bachar
2018-11-27 13:09 GMT+01:00, Liran Bachar <[hidden email]>:

> Why automatic codec detection fails? What can I do to fix this?

Feel free to use this patch:
https://patchwork.ffmpeg.org/patch/8744/

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFmpeg fails to detect input stream codec

Liran Bachar
Thanks, it worked

Liran.

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Carl Eugen Hoyos
Sent: Tuesday, November 27, 2018 10:32 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] FFmpeg fails to detect input stream codec

2018-11-27 13:09 GMT+01:00, Liran Bachar <[hidden email]>:

> Why automatic codec detection fails? What can I do to fix this?

Feel free to use this patch:
https://patchwork.ffmpeg.org/patch/8744/

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".