After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748641 - codecparsers_h265: fails (core dump) to parse h265 sample
codecparsers_h265: fails (core dump) to parse h265 sample
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-29 13:47 UTC by Athanasios Oikonomou
Modified: 2018-11-03 13:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
codecparser: h265: Fix the number of tile rows/columns parsing (1.25 KB, patch)
2015-04-29 16:46 UTC, sreerenj
committed Details | Review

Description Athanasios Oikonomou 2015-04-29 13:47:07 UTC
Hi, 

I get the following error when trying to play h256 file.

root@dm800se:/var/volatile/tmp# GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:3 gst-launch-1.0 -v playbin uri=file:///media/usb/1/140626_720p_hm130_4s_sao_dbf_qp27.265.mkv
Setting pipeline to PAUSED ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri = file:///media/usb/1/140626_720p_hm130_4s_sao_dbf_qp27.265.mkv
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
0:00:00.227617000   579   0x649780 WARN                 basesrc gstbasesrc.c:3481:gst_base_src_start_complete:<source> pad not activated yet
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source = "\(GstFileSrc\)\ source"
0:00:00.237162296   579   0x649780 WARN                 basesrc gstbasesrc.c:3481:gst_base_src_start_complete:<source> pad not activated yet
Pipeline is PREROLLING ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = "NULL"
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = "NULL"
0:00:00.599147963   579 0x76142200 WARN       codecparsers_h265 gsth265parser.c:1824:gst_h265_parse_pps: value not in allowed range. value: 0, range 1-19
0:00:00.599541963   579 0x76142200 WARN       codecparsers_h265 gsth265parser.c:1869:gst_h265_parse_pps: error parsing "Picture parameter set"
0:00:00.599739963   579 0x76142200 WARN               h265parse gsth265parse.c:562:gst_h265_parse_process_nal:<h265parse0> failed to parse PPS:
0:00:00.600066519   579 0x76142200 WARN       codecparsers_h265 gsth265parser.c:1951:gst_h265_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0
*** Error in `gst-launch-1.0': free(): invalid pointer: 0x75365d34 ***
Aborted (core dumped)


Above error is happening on Enigma2 STB using latest HEAD (compiled using openembedded few minutes ago). 
Currently there is no Enigma2 STB that supports h265 and there is no video sink that has h265 caps.

Here you can find above sample http://www.elecard.com/assets/files/other/clips/140626_720p_hm130_4s_sao_dbf_qp27.265
Comment 1 sreerenj 2015-04-29 16:46:09 UTC
Created attachment 302590 [details] [review]
codecparser: h265: Fix the number of tile rows/columns parsing

I am not sure whether this is enough for fixing the issue since all elementary h265 streams are failing for me. But this fix is needed anyways.
Comment 2 Sebastian Dröge (slomo) 2015-04-29 17:17:35 UTC
Of course it should also not crash on invalid data there. Do we need to add a check too where it crashed now?
Comment 3 Athanasios Oikonomou 2015-04-29 18:05:39 UTC
Using latest HEAD code dump is gone.

root@dm800se:~# GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:3 gst-launch-1.0 -v playbin uri=file:///media/usb/1/140626_720p_hm130_4s_sao_dbf_qp27.265.mkv
Setting pipeline to PAUSED ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri = file:///media/usb/1/140626_720p_hm130_4s_sao_dbf_qp27.265.mkv
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
0:00:00.232388814  1111   0x738da0 WARN                 basesrc gstbasesrc.c:3481:gst_base_src_start_complete:<source> pad not activated yet
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source = "\(GstFileSrc\)\ source"
0:00:00.242306703  1111   0x738da0 WARN                 basesrc gstbasesrc.c:3481:gst_base_src_start_complete:<source> pad not activated yet
Pipeline is PREROLLING ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = "NULL"
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = "NULL"
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstH265Parse:h265parse0.GstPad:src: caps = "video/x-h265\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ parsed\=\(boolean\)true\,\ stream-format\=\(string\)hvc1\,\ alignment\=\(string\)au\,\ level\=\(string\)0\,\ tier\=\(string\)main\,\ profile\=\(string\)main\,\ codec_data\=\(buffer\)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000"
Missing element: H.265 (Main Profile) decoder
0:00:00.613645148  1111 0x76342200 WARN            uridecodebin gsturidecodebin.c:939:unknown_type_cb:<uridecodebin0> warning: No decoder available for type 'video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000'.
WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: No decoder available for type 'video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000'.
Additional debug info:
/opt/openpli/openpligst/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.4.5+gitAUTOINC+5a8d1d2246-r0/git/gst/playback/gsturidecodebin.c(939): unknown_type_cb (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
0:00:00.615823926  1111 0x76342200 WARN               decodebin gstdecodebin2.c:4330:gst_decode_bin_expose:<decodebin0> error: no suitable plugins found:
Missing decoder: H.265 (Main Profile) (video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000)

0:00:00.616914851  1111 0x76342200 WARN            uridecodebin gsturidecodebin.c:1006:no_more_pads_full:<uridecodebin0> error: no suitable plugins found:
/opt/openpli/openpligst/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.4.5+gitAUTOINC+5a8d1d2246-r0/git/gst/playback/gstdecodebin2.c(4330): gst_decode_bin_expose (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: H.265 (Main Profile) (video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000)

ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
/opt/openpli/openpligst/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.4.5+gitAUTOINC+5a8d1d2246-r0/git/gst/playback/gsturidecodebin.c(1006): no_more_pads_full (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0:
no suitable plugins found:
/opt/openpli/openpligst/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.4.5+gitAUTOINC+5a8d1d2246-r0/git/gst/playback/gstdecodebin2.c(4330): gst_decode_bin_expose (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: H.265 (Main Profile) (video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000)

ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:00.620743926  1111 0x76342200 WARN               decodebin gstdecodebin2.c:4330:gst_decode_bin_expose:<decodebin0> error: no suitable plugins found:
Missing decoder: H.265 (Main Profile) (video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000)

0:00:00.622361629  1111 0x76342200 WARN            uridecodebin gsturidecodebin.c:1006:no_more_pads_full:<uridecodebin0> error: no suitable plugins found:
/opt/openpli/openpligst/build/tmp/work/mips32el-oe-linux/gstreamer1.0-plugins-base/1.4.5+gitAUTOINC+5a8d1d2246-r0/git/gst/playback/gstdecodebin2.c(4330): gst_decode_bin_expose (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: H.265 (Main Profile) (video/x-h265, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)hvc1, alignment=(string)au, level=(string)0, tier=(string)main, profile=(string)main, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a00280802d1fe59499246d869622aa4c4c32fb3ebcdf967d7851189cbb24220001000a4401e1a542040521b789000000)

/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0.GstPad:src: caps = "NULL"
0:00:00.623725666  1111 0x76342200 WARN               decodebin gstdecodebin2.c:2847:pad_added_cb:<decodebin0> Couldn't expose group
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0.GstPad:src: caps = "NULL"
0:00:00.624877592  1111 0x76342200 FIXME              h265parse gsth265parse.c:1410:gst_h265_parse_parse_frame:<h265parse0> Implement timestamp/duration interpolation based on SEI message
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstH265Parse:h265parse0.GstPad:src: caps = "NULL"
0:00:00.628263036  1111 0x76342200 WARN                 basesrc gstbasesrc.c:2391:gst_base_src_update_length:<source> processing at or past EOS
Freeing pipeline ...
Comment 4 Sebastian Dröge (slomo) 2015-04-29 18:16:55 UTC
Yes, but see comment 2. This fix looks like we use some data later without checking if it's valid.
Comment 5 sreerenj 2015-05-01 15:25:31 UTC
I didn't get any crash by the way! Also it is not clear in the debug log where it crashed. All the warnings in the debug log were because of the issue which fixed in the patch.

The attached stream is hevc elementary stream and debug log is based on an mkv stream. Would it be possible to get the mkv stream?
Comment 6 Athanasios Oikonomou 2015-05-01 16:35:14 UTC
(In reply to sreerenj from comment #5)
> The attached stream is hevc elementary stream and debug log is based on an
> mkv stream. Would it be possible to get the mkv stream?

It's the same file, just extra mkv extension was added (in order to be able to open it from enigma2 gui).
Comment 7 GStreamer system administrator 2018-11-03 13:34:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/245.