beispiel-programme_in_go
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| beispiel-programme_in_go [2023-01-16 22:05:10] – [Verwendung einer Bibliothek] manfred | beispiel-programme_in_go [2023-01-17 00:05:55] (aktuell) – [Verwendung einer Bibliothek] manfred | ||
|---|---|---|---|
| Zeile 951: | Zeile 951: | ||
| } | } | ||
| - | fmt.Printf(" | ||
| // | // | ||
| // | // | ||
| Zeile 958: | Zeile 957: | ||
| codectype := s.CodecType | codectype := s.CodecType | ||
| sprache, _ := s.TagList.GetString(" | sprache, _ := s.TagList.GetString(" | ||
| - | fmt.Printf(" | + | fmt.Printf(" |
| if " | if " | ||
| - | spieldauer | + | fmt.Printf(" |
| - | duration, _ := s.TagList.GetString("DURATION") | + | fmt.Printf(" |
| - | length | + | fmt.Printf("Spur: %v, Typ: %v, PAR: %v\n", i, codectype, data.Streams[i].SampleAspectRatio) |
| + | fmt.Printf(" | ||
| + | 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(" | ||
| + | fmt.Printf(" | ||
| - | // Test | + | drehung := 0 |
| - | //fmt.Printf(" | + | rotation, |
| + | drehlength := len([]rune(rotation)) | ||
| + | if drehlength > 0 { | ||
| + | drehung = string2int(rotation) | ||
| + | } | ||
| + | fmt.Printf(" | ||
| - | fmt.Printf(" | + | spieldauer := 0 |
| - | fmt.Printf(" | + | 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 |
| - | fmt.Printf("%v %v %v\n", i, codectype, data.Streams[i].Level) | + | |
| - | fmt.Printf(" | + | |
| - | fmt.Printf(" | + | |
| - | fmt.Printf(" | + | |
| - | + | ||
| - | if length | + | |
| var hms [3]int | var hms [3]int | ||
| rsplit := regexp.MustCompile(" | rsplit := regexp.MustCompile(" | ||
| Zeile 988: | Zeile 991: | ||
| } | } | ||
| - | fmt.Printf(" | + | fmt.Printf(" |
| // Alle TAGs aus dem Container anzeigen | // Alle TAGs aus dem Container anzeigen | ||
| Zeile 1000: | Zeile 1003: | ||
| < | < | ||
| + | > go build FFprobeTest.go | ||
| > ./ | > ./ | ||
| - | & | + | Spur: 0, Typ: video, Sprache: |
| - | 0 video eng | + | Spur: 0, Typ: video, Width: |
| - | 0 video 720 | + | Spur: 0, Typ: video, Height: |
| - | 0 video 576 | + | Spur: 0, Typ: video, PAR: 16:15 |
| - | 0 video 16:15 | + | Spur: 0, Typ: video, DAR: 4:3 |
| - | 0 video 4:3 | + | Spur: 0, Typ: video, Level: |
| - | 0 video 8 | + | Spur: 0, Typ: video, FieldOrder: |
| - | 0 video tt | + | Spur: 0, Typ: video, FPS: 25/1 |
| - | 0 video 25/1 | + | Spur: 0, Typ: video, avg FSP: 25/1 |
| - | 0 video 25/1 | + | Spur: 0, Typ: video, Drehung: 0 Grad |
| - | 0 video 122 | + | Spur: 0, Typ: video, Spieldauer: |
| - | 1 audio eng | + | Spur: 1, Typ: audio, Sprache: |
| - | 2 subtitle eng | + | Spur: 2, Typ: subtitle, Sprache: |
| - | 3 subtitle ger | + | Spur: 3, Typ: subtitle, Sprache: |
| </ | </ | ||
/home/http/wiki/data/attic/beispiel-programme_in_go.1673906710.txt · Zuletzt geändert: von manfred
