GNOME Bugzilla – Bug 797108
riff-media: Align channel-mask to channels
Last modified: 2018-11-03 12:10:10 UTC
Dear All. I have abnormal stream. Please look attached file. As I check the codec, it is GST_RIFF_WAVE_FORMAT_EXTENSIBLE, and channel-mask parse from codec_buffer. But the channel-mask does not match the channel value. So, audio mute symptom is observed. If I change channel-mask from 0x03 (2 channels) to 0x3f (6 channels), it could playback well. Thanks.
Dear Tim-Philipp Müller, Edward Hervey, Jan Schmidt, Sebastian Dröge The stream is close to 100mb. If you share (s)ftp address, I will share the stream. Thanks.
Created attachment 373578 [details] [review] riff-media: align channel-mask to channels
Created attachment 373580 [details] Attached log with GST_DEBUG:riff:6,avidemux:6 Dear All Please look at the log. channels and channel-mask is different. =========================================== 0:00:00.042183289 1032 0x7f8b340f8230 INFO avidemux gstavidemux.c:2106:gst_avi_demux_parse_stream: Stream duration according to header: 0:00:29.165986394 0:00:00.042193099 1032 0x7f8b340f8230 DEBUG riff riff-read.c:162:gst_riff_parse_chunk:<avidemux0> fourcc=strf, size=40 0:00:00.042201541 1032 0x7f8b340f8230 INFO riff riff-read.c:514:gst_riff_parse_strf_auds:<avidemux0> strf tag found in context auds: 0:00:00.042209000 1032 0x7f8b340f8230 INFO riff riff-read.c:515:gst_riff_parse_strf_auds:<avidemux0> format 65534 0:00:00.042215868 1032 0x7f8b340f8230 INFO riff riff-read.c:516:gst_riff_parse_strf_auds:<avidemux0> channels 6 0:00:00.042222720 1032 0x7f8b340f8230 INFO riff riff-read.c:517:gst_riff_parse_strf_auds:<avidemux0> rate 44100 0:00:00.042229461 1032 0x7f8b340f8230 INFO riff riff-read.c:518:gst_riff_parse_strf_auds:<avidemux0> av_bps 793800 0:00:00.042236157 1032 0x7f8b340f8230 INFO riff riff-read.c:519:gst_riff_parse_strf_auds:<avidemux0> blockalign 18 0:00:00.042242812 1032 0x7f8b340f8230 INFO riff riff-read.c:520:gst_riff_parse_strf_auds:<avidemux0> bits/sample 24 0:00:00.042249917 1032 0x7f8b340f8230 INFO riff riff-read.c:523:gst_riff_parse_strf_auds:<avidemux0> 22 bytes extradata 0:00:00.042258704 1032 0x7f8b340f8230 DEBUG avidemux gstavidemux.c:2144:gst_avi_demux_parse_stream:<avidemux0> marking audio as VBR:0, res 1 0:00:00.042268351 1032 0x7f8b340f8230 DEBUG riff riff-read.c:162:gst_riff_parse_chunk:<avidemux0> fourcc=JUNK, size=4120 0:00:00.042277158 1032 0x7f8b340f8230 DEBUG riff riff-read.c:189:gst_riff_parse_chunk:<avidemux0> End of chunk (offset 4244) 0:00:00.042289931 1032 0x7f8b340f8230 DEBUG riff riff-media.c:1620:gst_riff_create_audio_caps: valid bps = 24 0:00:00.042297235 1032 0x7f8b340f8230 DEBUG riff riff-media.c:1621:gst_riff_create_audio_caps: channel mask = 0x00000003 0:00:00.042305725 1032 0x7f8b340f8230 DEBUG riff riff-media.c:1623:gst_riff_create_audio_caps: GUID = 00000001-00100000-aa000080-719b3800 0:00:00.042311562 1032 0x7f8b340f8230 DEBUG riff riff-media.c:1628:gst_riff_create_audio_caps: PCM 0:00:00.042341958 1032 0x7f8b340f8230 DEBUG avidemux gstavidemux.c:2389:gst_avi_demux_parse_stream:<avidemux0> codec-name=Uncompressed 24-bit PCM audio 0:00:00.042376306 1032 0x7f8b340f8230 DEBUG avidemux gstavidemux.c:2390:gst_avi_demux_parse_stream:<avidemux0> caps=audio/x-raw, format=(string)S24LE, layout=(string)interleaved, channels=(int)6, rate=(int)44100, channel-mask=(bitmask)0x0000000000000003, codec_data=(buffer)1800030000000100000000001000800000aa00389b71 ===========================================
-- 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-base/issues/485.