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 588546 - Add AC3 audio codec to DVD Muxer
Add AC3 audio codec to DVD Muxer
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-14 14:43 UTC by Jordi Mas
Modified: 2009-07-20 09:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (407 bytes, patch)
2009-07-14 14:44 UTC, Jordi Mas
none Details | Review
Proposed patch for the bug (475 bytes, patch)
2009-07-20 09:31 UTC, Jordi Mas
committed Details | Review

Description Jordi Mas 2009-07-14 14:43:40 UTC
Hello,

Currently the DVD Muxer does not support AC3 audio, that is in fact the most common audio format for commercial DVD discs. Attached you have a patch that adds AC3 support.

Regards,

Jordi,
Comment 1 Jordi Mas 2009-07-14 14:44:32 UTC
Created attachment 138397 [details] [review]
Proposed patch
Comment 2 Jan Schmidt 2009-07-15 13:14:53 UTC
If the muxer can handle it, it's probably worth adding DTS as well? 
Comment 3 Jordi Mas 2009-07-15 13:30:41 UTC
Hello Jan,

According to some information in the Net[1] on top of DTS also PCM can be used, however I never have seen a DVD encoded with PCM or DTS or tried myself. According to several sources, support for DTS is optional and PCM can vary a lot from player to player.

My patch only proposes AC3 because that is what I know for sure and what I have tried myself in several DVD units.

If you indicate me which codecs do you think are correct for DTS and PCM, I can try to encode so samples and try them on my DVD player. 

Regards,

Jordi,

[1] http://en.wikipedia.org/wiki/DVD_Video#Audio_data



Comment 4 Jan Schmidt 2009-07-15 14:53:49 UTC
DTS is indeed optional - all DVDs are supposed to carry an AC3 version of any audio track, to support players that don't handle DTS.

The PCM they talk about is 'DVD LPCM'. We have the 'dvdlpcmdec' decoder element for it, but not an 'encoder' (even though the encoding is just byte rearrangement). I'm not sure what FFmpeg has for encoding the correct LPCM format. A quick glance suggests they might only support encoding 16-bit LPCM in the muxer (I can only see references to CODEC_ID_PCM_S16BE in the code) 

DVD LPCM is used mainly for (for example) music concerts, where sound fidelity is important.
Comment 5 Jordi Mas 2009-07-15 16:14:29 UTC
Hola Jan,

Regarding DTS, do we have an encoder in GStreamer? I have found a a decoder but not an encoder.

Regards,

Jordi,
Comment 6 Sebastian Dröge (slomo) 2009-07-16 18:51:18 UTC
No, we have no DTS encoder but support in the muxer might still be useful if someone wants to mux an existing DTS stream.
Comment 7 Jordi Mas 2009-07-20 09:30:15 UTC
Hello,

Following your indications I have reworked the patch to include DTS and PCM too. I'm additionally removing MP3, since this is not supported by DVD-Video (only MP2).

Any comment is appreciated, if it is OK, please do commit it.

Regards,

Jordi,
Comment 8 Jordi Mas 2009-07-20 09:31:10 UTC
Created attachment 138788 [details] [review]
Proposed patch for the bug
Comment 9 Edward Hervey 2009-07-20 09:49:49 UTC
commit c27b4babf10a17160fd0d984c0926eefc4877d6a
Author: Jordi Mas <jordimash@gmail.com>
Date:   Mon Jul 20 11:48:45 2009 +0200

    ffmpegmux: Add proper audio mapping for DVD muxer. Fixes #588546