UriDecodeBin3 unable to process hevc file (refused caps)
Hi, I'm having troubles decoding/parsing certain files with uridecodebin3. The error I am receiving is qtdemux qtdemux.c:6967:gst_qtdemux_loop:<qtdemux0>[00m error: streaming stopped, reason not-negotiated (-4)
.
The file will decode fine using ffmpeg so i'm wondering if there is anything i can do to change demuxers, or update caps to get it working.
Command run
Minimal pipeline that still shows the error:
GST_DEBUG=5 gst-launch-1.0 uridecodebin3 uri=file:///10000076_230411174001_L.mp4 ! fakesink
Error
I believe the root of the err is:
gst_h265_parse_set_caps:<h265parse0>[00m refused caps video/x-h265, stream-format=(string)hvc1, alignment=(string)au, tier=(string)main, profile=(string)main, codec_data=(buffer)01010101600090000000000000f000fcfdf8f800000f04200001001740010c01ffff01600000030080000003000003007bac09210001004242010101600000030080000003000003007ba00280802d1fe36bbb5377725d602dc040404100000303e800004e20721dee510005dc00001a5e00002ee00000d2f008220001000b4401c172b09c3877060c24270001000000, width=(int)1280, height=(int)720, framerate=(fraction)20/1, pixel-aspect-ratio=(fraction)1/1
GST_DEBUG logs
Input file
Unfortunately I cannot share the input file, however here is a mediainfo
output
General
Complete name : /path/10000076_230411174001_L.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/hvc1)
File size : 47.8 MiB
Duration : 10 min 0 s
Overall bit rate : 669 kb/s
Frame rate : 20.000 FPS
Encoded date : 2023-04-11 07:50:01 UTC
Tagged date : 2023-04-11 07:50:01 UTC
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4.1@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 10 min 0 s
Bit rate : 622 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 20.000 FPS
Minimum frame rate : 15.000 FPS
Maximum frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.034
Stream size : 44.5 MiB (93%)
Language : English
Encoded date : 2023-04-11 07:50:01 UTC
Tagged date : 2023-04-11 07:50:01 UTC
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : hvcC
ffmpeg decode stream metadata
Stream #0:0(eng), 1, 1/90000: Video: hevc (Main), 1 reference frame (hvc1 / 0x31637668), yuvj420p(pc, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 0/1, 622 kb/s, 20 fps, 30 tbr, 90k tb
I did notice that this often happens with bt709 colour spaces also.
Any help would be appreciated.
Cheers, Jayden