Benutzer-Werkzeuge

Webseiten-Werkzeuge


beispiel-programme_in_go

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
beispiel-programme_in_go [2023-01-16 22:09:31] – [Verwendung einer Bibliothek] manfredbeispiel-programme_in_go [2023-01-17 00:05:55] (aktuell) – [Verwendung einer Bibliothek] manfred
Zeile 957: Zeile 957:
  codectype := s.CodecType  codectype := s.CodecType
  sprache, _ := s.TagList.GetString("language")  sprache, _ := s.TagList.GetString("language")
- fmt.Printf("%v %v %v\n", i, codectype, sprache)+ fmt.Printf("Spur: %v, Typ: %v, Sprache: %v\n", i, codectype, sprache)
  
  if "video" == s.CodecType {  if "video" == s.CodecType {
- spieldauer := 0 + fmt.Printf("Spur%v, Typ: %v, Width: %v\n", i, codectype, data.Streams[i].Width) 
- duration:= s.TagList.GetString("DURATION") + fmt.Printf("Spur: %vTyp%v, Height: %v\n", i, codectype, data.Streams[i].Height) 
- length := len([]rune(duration))+ fmt.Printf("Spur: %v, Typ: %v, PAR: %v\n", i, codectype, data.Streams[i].SampleAspectRatio
 + fmt.Printf("Spur%v, Typ: %v, DAR: %v\n", i, codectype, data.Streams[i].DisplayAspectRatio) 
 + fmt.Printf("Spur: %v, Typ: %v, Level: %v\n", i, codectype, data.Streams[i].Level) 
 + fmt.Printf("Spur: %v, Typ: %v, FieldOrder: %v\n", i, codectype, data.Streams[i].FieldOrder) 
 + fmt.Printf("Spur: %v, Typ: %v, FPS: %v\n", i, codectype, data.Streams[i].RFrameRate) 
 + fmt.Printf("Spur: %v, Typ: %v, avg FSP: %v\n", i, codectype, data.Streams[i].AvgFrameRate)
  
- // Test + drehung := 0 
- //fmt.Printf("Länge: %v\n", length)+ rotation, _ := s.TagList.GetString("Rotate"
 + drehlength := len([]rune(rotation)) 
 + if drehlength > 0 { 
 + drehung = string2int(rotation) 
 + } 
 + fmt.Printf("Spur: %v, Typ: %v, Drehung: %v Grad\n", i, codectype, drehung)
  
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].Width) + spieldauer := 0 
- fmt.Printf("%v %v %v\n"i, codectype, data.Streams[i].Height) + duration_ := s.TagList.GetString("DURATION") 
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].SampleAspectRatio+ durlength := len([]rune(duration)) 
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].DisplayAspectRatio) + if durlength > 0 {
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].Level) +
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].FieldOrder) +
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].RFrameRate) +
- fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].AvgFrameRate) +
- +
- if length > 0 {+
  var hms [3]int  var hms [3]int
  rsplit := regexp.MustCompile("[:.]")  rsplit := regexp.MustCompile("[:.]")
Zeile 987: Zeile 991:
  }  }
  
- fmt.Printf("%v %v %v\n", i, codectype, spieldauer)+ fmt.Printf("Spur: %v, Typ: %v, Spieldauer: %v Sekunden\n", i, codectype, spieldauer)
  
  // Alle TAGs aus dem Container anzeigen  // Alle TAGs aus dem Container anzeigen
Zeile 999: Zeile 1003:
  
 <code> <code>
 +> go build FFprobeTest.go
 > ./FFprobeTest titlet01.mkv > ./FFprobeTest titlet01.mkv
-0 video eng +Spur: 0, Typ: video, Sprache: eng 
-0 video 720 +Spur: 0, Typ: video, Width: 720 
-0 video 576 +Spur: 0, Typ: video, Height: 576 
-0 video 16:15 +Spur: 0, Typ: video, PAR: 16:15 
-0 video 4:3 +Spur: 0, Typ: video, DAR: 4:3 
-0 video 8 +Spur: 0, Typ: video, Level: 
-0 video tt +Spur: 0, Typ: video, FieldOrder: tt 
-0 video 25/1 +Spur: 0, Typ: video, FPS: 25/1 
-0 video 25/1 +Spur: 0, Typ: video, avg FSP: 25/1 
-0 video 122 +Spur: 0, Typ: video, Drehung: 0 Grad 
-1 audio eng +Spur: 0, Typ: video, Spieldauer: 122 Sekunden 
-2 subtitle eng +Spur: 1, Typ: audio, Sprache: eng 
-3 subtitle ger+Spur: 2, Typ: subtitle, Sprache: eng 
 +Spur: 3, Typ: subtitle, Sprache: ger
 </code> </code>
  
  
/home/http/wiki/data/attic/beispiel-programme_in_go.1673906971.txt · Zuletzt geändert: von manfred