Ejemplo n.º 1
0
        public void TestOpenInput()
        {
            Assert.Throws(typeof(AVErrorException), () => AVFormat.OpenInput("nonexisting.file"));
            var context = AVFormat.OpenInput("test.ts");

            Assert.IsNotNull(context);
        }
Ejemplo n.º 2
0
 public void TestMetadata()
 {
     _context = AVFormat.OpenInput("test.mp3");
     Assert.AreEqual(5, _context.Metadata.Count());
     foreach (var entry in _context.Metadata)
     {
         if (entry.Key == "genre")
         {
             Assert.AreEqual("Acid", entry.Value);
         }
         else
         {
             Assert.IsTrue(entry.Value.Contains("Test"));
         }
     }
 }
Ejemplo n.º 3
0
 public void Setup()
 {
     AVFormat.RegisterAll();
     _context = AVFormat.OpenInput("test.ts");
 }
Ejemplo n.º 4
0
 public void Setup()
 {
     AVFormat.RegisterAll();
     AVFormat.NetworkInit();
 }
Ejemplo n.º 5
0
 public void Setup()
 {
     _formatContext = AVFormat.OpenInput("test.ts");
     _formatContext.FindStreamInfo();
     _codecContext = _formatContext.GetStream(0).CodecContext;
 }
Ejemplo n.º 6
0
 public void FixtureSetup()
 {
     AVFormat.RegisterAll();
 }