Doku: 0: scaled d_width/d_height -1: original width/height -2: Calculate w/h using the other dimension and the prescaled aspect ratio. -3: Calculate w/h using the other dimension and the original aspect ratio. -9: see: -1 + round to mod 16 -10: see: -2 + round to mod 16 -11: see: -3 + round to mod 16
Bsp.: => Hier nunr wie ich dies soweit verstanden/interpretiert habe an ein paar 'Beispielen': -vf scale=360:-1 -> resized die Breite auf 360 und lässt die Höhe wie im Input -vf scale=360:-9 -> resized die Breite auf 360 und resized die Höhe so das sie durch 16 teilbar ist -vf scale=360:-2 -> resized die Breite auf 360 und resized die Höhe, so dass das DAR (Breite/Höhe)- Verhältnis das gleiche ist wie beim Input -vf scale=360:-10 -> resized die Breite auf 360 und resized die Höhe, so dass das DAR (Breite/Höhe)- Verhältnis das gleiche ist wie beim Input und die Höhe durch 16 teilbar ist -vf scale=360:-3 -> resized die Breite auf 360 und resized die Höhe, so dass das PAR - Verhältnis das gleiche ist wie beim Input -vf scale=360:-11 -> resized die Breite auf 360 und resized die Höhe, so dass das PAR - Verhältnis möglichst das gleiche ist wie beim Input und durch 16 teilbar ist (die Beispiele bis jetzt kann man auch mit Höhe&Breite vertauscht nutzen) -vf scale=-10:-1 -> lässt die Höhe wie sie im Input ist und resized die Breite entsprechend dem DAR (hochskalieren) -vf scale=-11:-1 -> lässt die Höhe wie sie im Input ist und resized Breite entsprechend dem PAR (hochskalieren auf PAR 1:1) -vf scale=-1:-10 -> lässt die Breite wie sie im Input und resized die Höhe entsprechend dem DAR (runterskalieren) -vf scale=-1:-11 -> lässt die Breite wie sie im Input und resized die Höhe entsprechend dem DAR (runterskalieren auf PAR 1:1) http://forum.gleitz.info/showthread.php?t=38661
Edit: Die oberen Zeilen funktinieren scheinbarn nicht... mencoder ist komisch. Für 4:3 Streams funktioniert das: -oac copy -aid 128 -ovc xvid -xvidencopts bitrate=800:threads=2:aspect=4/3 -vf scale -xy 720 -o Für 16:9 Streams funktioniert das: -oac copy -aid 128 -ovc xvid -xvidencopts bitrate=800:threads=2:aspect=16/9 -vf scale -zoom -xy 720 -o Was noch nicht funktioniert: Automatische Auswahl des "besten" Audiostream, also ac3 mit mehr als 2 Kanälen oder ebem pcm.
Kodi keeps crashing when it is started without connected displays. Sometimes I want to startup my kodi setup for some other reasen and start using kodi later.... then kodi was already closed with some crash log file... :( This script works arround by waiting to start kodi until some hdmi port is connected (modify the grep query to adapt to some other port name). #!/bin/bash # Some programs have issues when run without connected display. E.g. Kodi likes to crash when started without any display connected on my system. # This script starts after some hdmi port is connected. # Depends on xrandr. WARNINGTIMEOUTINSECONDS=840 TIMEOUTINSECONDS=900 POLLINGDURATIONINSECONDS=5 LOGFILE= " $HOME /waitTillHdmiConnected.log" #set start conditions SECONDS=0 triggerTimeoutActions (){ echo ...
Anzahl an fehlerhaften Logins ausgeben: cat /var/logauth.log | grep invalid | wc -l Für einen Server, der in halbes Jahr im Netz läuft finde ich 68350 Versuche. Ein Auszug von /var/logauth.log Jun 3 00:12:02 uhweb69144 sshd[11470]: Invalid user hilary from 201.147.235.91 Jun 3 00:12:02 uhweb69144 sshd[11470]: reverse mapping checking getaddrinfo for static.customer-201-147-235-91.uninet-ide.com.mx failed - POSSIBLE BREAK-IN ATTEMPT! Jun 3 00:12:02 uhweb69144 sshd[11470]: (pam_unix) check pass; user unknown Jun 3 00:12:02 uhweb69144 sshd[11470]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost= 201.147.235.91 Jun 3 00:12:04 uhweb69144 sshd[11470]: Failed password for invalid user hilary from 201.147.235.91 port 49507 ssh2 Jun 3 00:12:09 uhweb69144 sshd[11530]: Invalid user howard from 201.147.235.91 Jun 3 00:12:09 uhweb69144 sshd[11530]: reverse mapping checking getaddrinfo for static.customer-201-147-235-91.uninet-ide.com.mx failed - POSS...
Ok. I built a custom ffmpeg wrapper but it was just a dirty hack. it was not encapsulated clean.... it worked but it was just tooo ugly to develop some extension... wrapping looked something like this: THIS DOES NOT WORK it is refactored to death: class MencoderSharp { public static bool mencoder(System.Uri infovdrpath, string ratio, System.Uri destinationpath, BackgroundWorker worker, bool deleteConverted,string audioparameter, string videoparamter, bool testRun, DoWorkEventArgs e) { int returncode = 0; foreach (string sourcepath in Directory.GetFiles(infovdrpath.ToString().Substring(0, infovdrpath.ToString().Length - 9), "0*.vdr")) { Process p = new Process(); //p.StartInfo.WorkingDirectory = @"C:\whatever"; p.StartInfo.FileName = @"mencoder.exe"; // http://msdn.microsoft.com/de-de/library/system.diagnostics.processstar...
Kommentare