Skip to content

felizk/mp4chap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MP4 chapter extraction utility

Simple portable c# library (.net, windows runtime, windows phone) for a chapter support in mpeg audio files.

Sample usage:

using System;
using System.IO;
using Mp4Chapters;

namespace TestChapters
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var str = File.OpenRead(args[0]))
            {
                var extractor = new ChapterExtractor(new StreamWrapper(str));
                Console.WriteLine(extractor.IsMp4a());
                extractor.Run();
                foreach (var c in extractor.Chapters ?? new ChapterInfo[0])
                {
                    Console.WriteLine("{0} -> {1}", c.Time, c.Name);
                }
            }
        }
    }
}

Nuget package

https://www.nuget.org/packages/mp4chap/

PM> Install-Package mp4chap 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%