[FFmpeg-trac] #8622(avcodec:new): Bitstream filter hevc_metadata fails with "bit_equal_to_one out of range" on Linux but works on Windows for hevc_nvenc
FFmpeg
trac at avcodec.org
Sat Apr 18 12:36:22 EEST 2020
#8622: Bitstream filter hevc_metadata fails with "bit_equal_to_one out of range"
on Linux but works on Windows for hevc_nvenc
------------------------------------+-----------------------------------
Reporter: Sonic-Y3k | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by Sonic-Y3k):
Replying to [comment:4 cehoyos]:
> So if you first encode the raw hevc file and then stream-copy it into
another hevc file using the bitstream filter, the issue is not
reproducible?
If I first encode the file with
{{{
ffmpeg -i bbb_sunflower_2160p_30fps_normal.mp4 -c:v hevc_nvenc -f hevc -t
00:00:10 test_hevc.hevc
}}}
and afterwards execute the following:
{{{
ffmpeg -i test_hevc.hevc -c:v copy -bsf:v
"hevc_metadata=colour_primaries=9" -f hevc test_out_hevc.hevc
}}}
the error occurs again:
{{{
[hevc_metadata @ 0x55620167e880] bit_equal_to_one out of range: 0, but
must be in [1,1].
[hevc_metadata @ 0x55620167e880] Failed to read unit 3 (type 39).
[hevc_metadata @ 0x55620167e880] Failed to read packet.
Error applying bitstream filters to an output packet for stream #0:0.
[hevc_metadata @ 0x55620167e880] bit_equal_to_one out of range: 0, but
must be in [1,1].
[hevc_metadata @ 0x55620167e880] Failed to read unit 3 (type 39).
[hevc_metadata @ 0x55620167e880] Failed to read packet.
Error applying bitstream filters to an output packet for stream #0:0.
}}}
So it is reproducible.
I attached the raw hevc stream to this ticket as
"nvenc_encoded_hevc_stream.hevc"
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8622#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list