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 746574 - matroskamux: add G722 audio support
matroskamux: add G722 audio support
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-21 15:27 UTC by Nicola
Modified: 2016-12-20 10:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
G722 support (1.56 KB, patch)
2015-03-21 15:27 UTC, Nicola
none Details | Review
fix riff for G722 (1.61 KB, patch)
2015-03-21 15:28 UTC, Nicola
none Details | Review
G722 support in matroskamux (1.56 KB, patch)
2015-03-28 17:17 UTC, Nicola
committed Details | Review
add ADPCM_G722 support (1.59 KB, patch)
2015-03-28 17:18 UTC, Nicola
committed Details | Review

Description Nicola 2015-03-21 15:27:40 UTC
Created attachment 300024 [details] [review]
G722 support

add G722 support to matroskamux,

tested this way:

gst-launch-1.0 -ve pulsesrc ! audioconvert ! audioresample ! avenc_g722 ! matroskamux ! filesink location=/tmp/test.mkv

the resulting file can be played by vlc/ffmpeg and gstreamer

ffmpeg -f alsa -ar 8000 -i "hw:1,0" -acodec g722 -ac 1 -ar 16000 /tmp/test1.mkv

the resulting file can be played by gstreamer
Comment 1 Nicola 2015-03-21 15:28:36 UTC
Created attachment 300025 [details] [review]
fix riff for G722

riff codec id as ffmpeg
Comment 2 Tim-Philipp Müller 2015-03-28 15:26:51 UTC
Comment on attachment 300025 [details] [review]
fix riff for G722

Thanks for the patch. Some quick googling suggests that both 0x65 and 0x028f are in use for G.722 audio and mean the same, so I'm wondering if we shouldn't at least keep the 0x65 mapping around for reading. (e.g. google for 'VS1063a Datasheet G.722')
Comment 3 Nicola 2015-03-28 15:34:43 UTC
ok we can keep:

#define GST_RIFF_WAVE_FORMAT_G722_ADPCM     (0x0065)

and add:

#define GST_RIFF_WAVE_FORMAT_ADPCM_G722     (0x028F)

and use the last one for matroskamux, what do you think about?

0x028F is used by ffmpeg/libav/vlc/mplayer (pratically all the players I tested)
Comment 4 Tim-Philipp Müller 2015-03-28 15:43:22 UTC
Yes, that sounds good. Thanks.
Comment 5 Nicola 2015-03-28 17:17:52 UTC
Created attachment 300519 [details] [review]
G722 support in matroskamux
Comment 6 Nicola 2015-03-28 17:18:43 UTC
Created attachment 300520 [details] [review]
add ADPCM_G722 support
Comment 7 Nicola 2016-02-15 12:25:07 UTC
ping
Comment 8 Nicola 2016-12-19 16:24:21 UTC
any news on this patch?
Comment 9 Sebastian Dröge (slomo) 2016-12-20 10:48:52 UTC
Comment on attachment 300520 [details] [review]
add ADPCM_G722 support

commit a75be734718fc45f5ffe2e71209bdd37c65edde2
Author: Nicola Murino <nicola.murino@gmail.com>
Date:   Sat Mar 28 18:16:16 2015 +0100

    riff: add ADPCM_G722 support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746574
Comment 10 Sebastian Dröge (slomo) 2016-12-20 10:49:32 UTC
commit 92626d4085b97405aa73e5b56d312e493595356f
Author: Nicola Murino <nicola.murino@gmail.com>
Date:   Sat Mar 28 18:15:36 2015 +0100

    matroskamux: add G722 audio support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746574