Popularity
2.2
Stable
Activity
5.1
Stable
23
3
8
Programming language: Go
License: MIT License
Tags:
Video
go-mpd alternatives and similar packages
Based on the "Video" category.
Alternatively, view go-mpd alternatives based on common mentions on social networks and blogs.
-
go-m3u8
Parse and generate m3u8 playlists for Apple HTTP Live Streaming (HLS) in Golang (ported from gem https://github.com/sethdeckard/m3u8)
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai
Do you think we are missing an alternative of go-mpd or a related project?
Popular Comparisons
README
go-mpd
Go library for parsing and generating MPEG-DASH Media Presentation Description (MPD) files.
This project is based on https://github.com/mc2soft/mpd.
Usage
package main
import (
"fmt"
"github.com/unki2aut/go-mpd"
)
func main() {
mpd := new(mpd.MPD)
mpd.Decode([]byte(`<MPD type="static" mediaPresentationDuration="PT3M30S">
<Period>
<AdaptationSet mimeType="video/mp4" codecs="avc1.42c00d">
<SegmentTemplate media="../video/$RepresentationID$/dash/segment_$Number$.m4s" initialization="../video/$RepresentationID$/dash/init.mp4" duration="100000" startNumber="0" timescale="25000"/>
<Representation id="180_250000" bandwidth="250000" width="320" height="180" frameRate="25"/>
<Representation id="270_400000" bandwidth="400000" width="480" height="270" frameRate="25"/>
<Representation id="360_800000" bandwidth="800000" width="640" height="360" frameRate="25"/>
<Representation id="540_1200000" bandwidth="1200000" width="960" height="540" frameRate="25"/>
<Representation id="720_2400000" bandwidth="2400000" width="1280" height="720" frameRate="25"/>
<Representation id="1080_4800000" bandwidth="4800000" width="1920" height="1080" frameRate="25"/>
</AdaptationSet>
<AdaptationSet lang="en" mimeType="audio/mp4" codecs="mp4a.40.2" bitmovin:label="English stereo">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
<SegmentTemplate media="../audio/$RepresentationID$/dash/segment_$Number$.m4s" initialization="../audio/$RepresentationID$/dash/init.mp4" duration="191472" startNumber="0" timescale="48000"/>
<Representation id="1_stereo_128000" bandwidth="128000" audioSamplingRate="48000"/>
</AdaptationSet>
</Period>
</MPD>`))
fmt.Println(mpd.MediaPresentationDuration)
}