This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo OFF | |
| set gs="C:\Program Files\gs\gs10.03.1\bin\gswin64c.exe" | |
| set qpdf="D:\Installer\pdftools\qpdf\qpdf.exe" | |
| set pdftocairo="D:\Downloads\poppler\bin\pdftocairo.exe" | |
| set cpdf="D:\Installer\pdftools\cpdf.exe" | |
| for %%A in (%*) do ( | |
| ::%pdftocairo% -pdf %%A "D:\pdfwork\gen\%~n1.pdf" | |
| ::%qpdf% --empty --optimize-images --object-streams=generate --recompress-flate --compression-level=9 --pages %%A -- "D:\pdfwork\gen\%~n1.pdf" | |
| ::%gs% -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dEmbedAllFonts=true -dCompressFonts=true -dSubsetFonts=true -dDetectDuplicateImages=true -dDownsampleColorImages=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=150 -dDownsampleGrayImages=true -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=150 -dDownsampleMonoImages=true -dMonoImageDownsampleType=/Subsample -dMonoImageResolution=300 -dColorImageDownsampleThreshold=1.0 -dGrayImageDownsampleThreshold=1.0 -dMonoImageDownsampleThreshold=1.0 -sOutputFile="D:\pdfwork\gen\%%~nA.pdf" %%A | |
| %pdftocairo% -pdf -r 150 %%A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2025-12-29T00:00:08.0702300Z Current runner version: '2.330.0' | |
| 2025-12-29T00:00:08.0738188Z ##[group]Runner Image Provisioner | |
| 2025-12-29T00:00:08.0739366Z Hosted Compute Agent | |
| 2025-12-29T00:00:08.0740388Z Version: 20251211.462 | |
| 2025-12-29T00:00:08.0741363Z Commit: 6cbad8c2bb55d58165063d031ccabf57e2d2db61 | |
| 2025-12-29T00:00:08.0742611Z Build Date: 2025-12-11T16:28:49Z | |
| 2025-12-29T00:00:08.0743784Z Worker ID: {0d37c096-8b6b-4106-8a15-13e68da0ab40} | |
| 2025-12-29T00:00:08.0744900Z ##[endgroup] | |
| 2025-12-29T00:00:08.0745820Z ##[group]Operating System | |
| 2025-12-29T00:00:08.0747035Z Ubuntu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Encode HDR video from Samsung: | |
| * Encode and crop 100px from top | |
| ffmpeg.exe -hide_banner -i input -vf scale=-2:480:flags=spline,crop=out_h=in_h-80:y=in_h-80 -an -c:v libx264 -pix_fmt yuv420p -preset veryslow -tune film out.mpv | |
| ffmpeg.exe -hide_banner -i input -vf scale=-2:1080:flags=spline -c:v libx264 -pix_fmt yuv420p -preset veryslow -tune film -crf 18 -c:a aac -b:a 192k out.mp4 | |
| *Test encode first frame pic | |
| ffmpeg.exe -hide_banner -i input.mp4 -vf scale=-1:360:flags=spline,zscale=transfer=linear:npl=100,format=gbrpf32le,zscale=primaries=bt709,tonemap=hable:desat=0,zscale=transfer=bt709:matrix=bt709:range=limited,format=yuv420p -vframes 1 output.png | |
| ffmpeg.exe -hide_banner -i input.mp4 -vf scale=-1:720:flags=spline,zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -map 0 -c copy -c:v libx264 -pix_fmt yuv420p -preset medium -tune film -crf 20 -c:a copy output.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo OFF | |
| set mkvpropedit="D:\mkvtoolnix\mkvpropedit.exe" | |
| for %%A in (%*) do ( | |
| ::%mkvpropedit% "%%~fA" --delete-attachment name:"Impress BT.ttf" | |
| ::%mkvpropedit% "%%~fA" --chapters "%%~nA_chapter.xml" | |
| :: Comment should be placed above. | |
| :: | |
| :: This will select first video/subtitle tracks to rename name and make first subtitle as default. | |
| :: Adding fonts to the mkv. | |
| %mkvpropedit% "%%~fA" --edit track:v1 --set name="[LowPower-Raws]" --set language=jpn ^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git config -l | |
| user.name=shinchiro | |
| user.email=shinchiro@users.noreply.github.com | |
| user.signingkey <ID> | |
| commit.gpgsign=true | |
| core.editor=nano | |
| credential.helper=wincred # works only on git for windows | |
| sendemail.smtpserver=smtp.googlemail.com | |
| sendemail.smtpencryption=tls | |
| sendemail.smtpserverport=587 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /git/mingw-w64 | |
| widl -I./include -I./direct-x/include -DBOOL=WINBOOL -h -o d3d11.h ./direct-x/include/d3d11.idl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo OFF | |
| set PATH=%~dp0\win_tools;%~dp0\win_tools\cmake\bin;%~dp0\win_tools\mercurial;%PATH% | |
| cd "%~dp0\x265" | |
| patch -p1 < %~dp0\patches\watermark.diff | |
| patch -p1 < %~dp0\patches\optimization.diff | |
| mkdir "%~dp0\x265\build\vc14-x86_64" | |
| cd "%~dp0\x265\build\vc14-x86_64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export PATH="/shinchiro/build32/install/bin:$PATH" | |
| export PKG_CONFIG_LIBDIR="/d/MSYS/mega-sdk/build/install/lib/pkgconfig" | |
| export PKG_CONFIG="pkg-config --static" | |
| INSTALL_PATH="/d/MSYS/mega-sdk/build/install" | |
| # LDFLAGS='-static -lpthread' | |
| ./autogen.sh | |
| ./configure --disable-shared --enable-static --disable-silent-rules --without-openssl --with-cryptopp=$INSTALL_PATH --without-sodium --with-zlib=$INSTALL_PATH --with-sqlite=$INSTALL_PATH --without-cares --without-curl --with-winhttp=/d/MSYS/mega-sdk/build --without-freeimage --with-readline=$INSTALL_PATH --with-termcap=$INSTALL_PATH --prefix=$INSTALL_PATH && make -j9 && make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Clone specific branch | |
| git clone --single-branch -b new_branch git_url | |
| 2. Remove/clean git history log | |
| git pull --depth 1 | |
| git gc --aggressive --prune=now | |
| 3. Export commit as patch | |
| git format-patch -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Mapping can also be know selecting in ffmpeg. | |
| # http://stackoverflow.com/a/12943003 | |
| 1. Select only video and audio from mkv .Mux into mp4 | |
| ffmpeg -i input.mkv -map 0:v -map 0:a -c copy test.mp4 |
NewerOlder