[FFmpeg-devel] ismindex and multiple audio streams

Martin Bene Martin.Bene at icomedias.com
Fri Mar 13 09:13:58 CET 2015


Hi,

at the moment the ismindex program included in the ffmpeg tools folder supports multiple audio streams only as separate quality levels; there is another use that isn't supported however: generating alternative audio streams, for example for streams in multiple languages.

I'm wondering how to add this functionality to ismindex without breaking the current behavior.

*         Add a command line switch to select quality level vs. alternate audio?

o   What about a use case where each language would be available in multiple audio qualities - how could that be specified?

*         Check the bit rate of audio streams and treat multiple streams with (aprox.) identical bitrate as alternate streams?

When encoding  audio streams using ffmpeg, the streams end up with slightly different bitrate declarations (see below) - would it make sense to round these to the nearest 1000 for output to the ism/ismc files (another ism indexer (mp4split) seems to do this)?

I've also added the ability to use the language attribute of the input audio streams to extend the generated .ism and .ismc files; will have to make sure to avoid duplicate names for the quality level case.

.ism fragment with added language attributes:
                                               <audio src=".\stream5.ismv" systemBitrate="64024" systemLanguage="ara">
                                                               <param name="trackID" value="1" valueType="data" />
                                                               <param name="trackName" value="audio_ara" valueType="data" />
                                               </audio>
                                               <audio src=".\stream6.ismv" systemBitrate="64012" systemLanguage="zho">
                                                               <param name="trackID" value="1" valueType="data" />
                                                               <param name="trackName" value="audio_zho" valueType="data" />
                                               </audio>

.ismc for alternate audio:
                <StreamIndex Type="audio" Name="audio_ara" Language="ara" QualityLevels="1" Chunks="20" Url="QualityLevels({bitrate})/Fragments(audio_ara={start time})">
                               <QualityLevel Index="0" Bitrate="64024" FourCC="AACL" SamplingRate="48000" Channels="1" BitsPerSample="16" PacketSize="4" AudioTag="255" CodecPrivateData="1188" />
                               <c d="20053333" t="0" />
                               <c d="20053333" />
                               <c d="2913750" />
                </StreamIndex>
                <StreamIndex Type="audio" Name="audio_zho" Language="zho" QualityLevels="1" Chunks="20" Url="QualityLevels({bitrate})/Fragments(audio_zho={start time})">
                               <QualityLevel Index="0" Bitrate="64012" FourCC="AACL" SamplingRate="48000" Channels="1" BitsPerSample="16" PacketSize="4" AudioTag="255" CodecPrivateData="1188" />
                               <c d="20053333" t="0" />
                               <c d="20053333" />
                </StreamIndex>

I'd like to end up with a patch that I can  contribute to the ffmpeg project.

Thanks for any hints on how best to proceed.


[http://transfer.icomedias.com/icomedias-email-banner/icomedias-HYBRID-FORMS.png]<http://go.icomedias.com/hfstore/bild>Sofort digital. Kein Papier!

Vorteil: Ihre Anwender gewinnen mehr Zeit f?r die wesentlichen Aufgaben
durch mobile Formulare und Datenerfassung vor Ort mit vollst?ndig digitalem Workflow.

Nutzen Sie die Kombination aus SharePoint Server und Windows 8 Client App f?r die online + offline Datenerfassung. Mit Formular-Workflow sind die Daten schon w?hrend der Eingabe in Ihren Backend-Anwendungen. Sicher mit den Standards HTML5, XML, Adobe PDF und Microsoft SQL Server f?r den Datenaustausch.
Testen Sie die HYBRID.FORMS Version 2.0 mit Musterformularen - jetzt kostenlos im Windows Store.
Mehr dazu finden Sie hier: http://go.icomedias.com/hfstore


icomedias.com<http://icomedias.com> | icomedias(r) Gruppe | icomedias GmbH | Entenplatz 1 | 8020 Graz. FB: LG.ZRS Graz FN 217 305t, UID ATU 5328 0701, GF/CEO Christian Ekhart. Disclaimer.icomedias Diese Nachricht ist vertraulich und nur f?r den beabsichtigten Empf?nger bestimmt. Sie dr?ckt die pers?nliche Meinung des Schreibers aus und ist keine Stellungnahme des jeweiligen Unternehmens. F?r dieses kann nur ein Gesch?ftsf?hrer in firmenm??iger Zeichnung mit Unterschrift in Schriftform rechtsverbindlich sprechen. Eine m?gliche digitale Signatur der Nachricht dient nur der Sicherstellung der Unversehrtheit, ordnet aber weder Unternehmen noch Personen zu und stellt keine Unterschrift dar. Irrtum und Fehler sind vorbehalten.


More information about the ffmpeg-devel mailing list