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
beispiel-programme_in_go [2023-01-16 22:24:37] – [Verwendung einer Bibliothek] manfredbeispiel-programme_in_go [2023-01-17 00:05:55] (aktuell) – [Verwendung einer Bibliothek] manfred
Zeile 960: Zeile 960:
  
  if "video" == s.CodecType {  if "video" == s.CodecType {
- spieldauer := 0 
- duration, _ := s.TagList.GetString("DURATION") 
- length := len([]rune(duration)) 
- 
- // Test 
- //fmt.Printf("Länge: %v\n", length) 
- 
  fmt.Printf("Spur: %v, Typ: %v, Width: %v\n", i, codectype, data.Streams[i].Width)  fmt.Printf("Spur: %v, Typ: %v, Width: %v\n", i, codectype, data.Streams[i].Width)
  fmt.Printf("Spur: %v, Typ: %v, Height: %v\n", i, codectype, data.Streams[i].Height)  fmt.Printf("Spur: %v, Typ: %v, Height: %v\n", i, codectype, data.Streams[i].Height)
Zeile 976: Zeile 969:
  fmt.Printf("Spur: %v, Typ: %v, avg FSP: %v\n", i, codectype, data.Streams[i].AvgFrameRate)  fmt.Printf("Spur: %v, Typ: %v, avg FSP: %v\n", i, codectype, data.Streams[i].AvgFrameRate)
  
- if length > 0 {+ drehung := 0 
 + 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) 
 + 
 + spieldauer := 0 
 + duration, _ := s.TagList.GetString("DURATION"
 + durlength := len([]rune(duration)) 
 + if durlength > 0 {
  var hms [3]int  var hms [3]int
  rsplit := regexp.MustCompile("[:.]")  rsplit := regexp.MustCompile("[:.]")
Zeile 987: Zeile 991:
  }  }
  
- fmt.Printf("Spur: %v, Typ: %v, Spieldauer: %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 1010: Zeile 1014:
 Spur: 0, Typ: video, FPS: 25/1 Spur: 0, Typ: video, FPS: 25/1
 Spur: 0, Typ: video, avg FSP: 25/1 Spur: 0, Typ: video, avg FSP: 25/1
-Spur: 0, Typ: video, Spieldauer: 122+Spur: 0, Typ: video, Drehung: 0 Grad 
 +Spur: 0, Typ: video, Spieldauer: 122 Sekunden
 Spur: 1, Typ: audio, Sprache: eng Spur: 1, Typ: audio, Sprache: eng
 Spur: 2, Typ: subtitle, Sprache: eng Spur: 2, Typ: subtitle, Sprache: eng
/home/http/wiki/data/attic/beispiel-programme_in_go.1673907877.txt · Zuletzt geändert: von manfred