File talk:Aufloesung TV2.jpg
Jump to navigation
Jump to search
Das Bild Aufloesung TV2.jpg ist mit folgendem Windows-Script erstellt worden. In Ermangelung eines besseren Ortes in der Wikipedia wurde das Script zu Dokumentationszwecken hier niedergelegt.
Script bitte im Modus "Bearbeiten" entnehmen!
@echo off ::: Scriptfile für Windows (ab Windows 2000) ::: weitere Zutat: geeignetes Bild :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: Quelldatei, sollte von guter Qualität und geeignet sein. Auflösung deutlich größer als %D% ::: Quelldatei wie auch die Zielformatgröße müssen das gleiche Seitenverhältbnis haben, welches auch dem Ausgabegerät angepaßt ist. ::: Hier ist 16:9 ausgewählt worden. set SRC=Quelle.png ::: Zieldateiname ohne Endung set DST=Ziel ::: Größe des (virtuellen) Bildausschnitts (1 = 100%, 2 = 25%, 5 = 4%, 6 = 2,78%, 8 = 1,56%, 10 = 1%) set DIV=10 ::: Weitere Optionen für die Quellkodierung set OPT=-sharpen x0.5 ::: Zielformatgröße (entweder 3840x2160 oder 1920x1080) set DX=3840 set DY=2160 ::: Name der bei der Verarbeitung entstehenden temporären Datei, wird am Ende wieder gelöscht set TMP=~~C~~.PNG :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: so, das war's erst mal hier, eingerückte Zeilen sind nicht zum Editieren bestimmt. set /A "DU=%DX%/%DIV%" set /A "DV=%DY%/%DIV%" set D=%DU%x%DV%! ::: Akkumulator zum Aufsummieren aller Teilbilder set H1= set H2= set H3= :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: Ab hier sind x, y und NAME als Variablen zu setzen. Standard für ::: 4K-Cinema oder Darstellung auf Displays Viewsonic VP2290B, Iiyama AQU5611DTBK, IBM T221, Toshiba ... set x=3840 set y=2160 set NAME="Original bzw. Cinema 4K (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: HDTV und BR mit 1080 Zeilen set x=1920 set y=1080 set NAME="HDTV 1080p (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: High Definition Video set x=1440 set y=1080 set NAME="High Definition Video (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: HDTV und BR mit 720 Zeilen set x=1280 set y=720 set NAME="HDTV 720p (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: Ab hier gehen die SDTV-Modi los ::: SDTV und DVD mit maximaler horizontaler Auflösung von 720 Spalten set x=720 ::: PAL anamorph: Es werden 576 Zeilen benutzt set y=576 set NAME="PAL (best anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: NTSC anamorph: Es werden 480 Zeilen benutzt set y=480 set NAME="NTSC (best anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: PAL nicht-anamorph: Es werden effektiv nur 432 Zeilen für den 16:9-Bildinhalt benutzt. set y=432 set NAME="PAL (best non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: NTSC nicht-anamorph: Es werden effektiv nur 360 Zeilen für den 16:9-Bildinhalt benutzt. set y=360 set NAME="NTSC (best non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: SDTV mit reduzierter horizontaler Auflösung von 544 Spalten , ansonsten das gleiche Spiel! set x=544 set y=576 set NAME="PAL (normal anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=480 set NAME="NTSC (normal anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=432 set NAME="PAL (normal non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=360 set NAME="NTSC (normal non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H2=%H2% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: SDTV bzw. SuperVCD mit weiter reduzierter horizontaler Auflösung von 480 Spalten set x=480 set y=576 set NAME="PAL (normal anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=480 set NAME="NTSC (normal anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=432 set NAME="PAL (normal non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=360 set NAME="NTSC (normal non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: SDTV mit stark reduzierter horizontaler Auflösung von 352 Spalten set x=352 set y=576 set NAME="PAL (low anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=480 set NAME="NTSC (low anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=432 set NAME="PAL (low non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=360 set NAME="NTSC (low non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png ::: SDTV und VCD mit stark reduzierter horizontaler Auflösung von 352 Spalten und zusätzlich halbierter vertikaler Auflösung set x=352 set y=288 set NAME="PAL (lowest anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=240 set NAME="NTSC (lowest anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=216 set NAME="PAL (lowest non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png & set H3=%H3% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png set y=180 set NAME="NTSC (lowest non-anamorph) (%x%x%y%)" set /A "u=%x%/%DIV%" & set /A "v=%y%/%DIV%" & set H1=%H1% %NAME%.png convert %SRC% -resize %u%x%v%! %OPT% %TMP% & convert %TMP% -resize %D% %NAME%.png :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: Konvertierungen abgeschlossen del %TMP% :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: Bilder zusammenfassen ::: Alle set OPT=-label "%%t" -background "#181818" -fill "#FFFFFF" -shadow montage %OPT% -resize %D% -geometry "%D%+6+6>" -tile 4x -pointsize 20 %H1% %DST%1.png montage %OPT% -resize %D% -geometry "%D%+6+6>" -tile 2x -pointsize 20 %H2% %DST%2.png montage %OPT% -resize %D% -geometry "%D%+2+6>" -tile 1x -pointsize 20 %H3% %DST%3.png ::: und alles noch mal nach JPEG konvertieren for %%i in (*.png) do convert "%%i" "%%~ni.jpg"