Posts

Showing posts with the label Batch

Batch Convert H.265 Mkv To H.264 With Ffmpeg To Make Files Compatible For Re-encoding

Answer : Yes, using ffmpeg . Open a terminal and direct it to the directory containing the H.265 encoded files, assuming you have ffmpeg and the appropriate libraries installed and assuming they are in MKV format copy and paste the following into the terminal window. INPUT="$1" for i in *.mkv ; do ffmpeg -i "$i" -bsf:v h264_mp4toannexb -sn -map 0:0 -map 0:1 -vcodec libx264 "$i.ts" mv "$i.ts" "$i.mpg" sleep 3 done There you have it. This will convert to h.264 in an MPG container in the same directory. Explanation of the command switches: for i in *.mkv ; do ... done This sets up all .mkv files in a directory to be included in the batch process. This may be changed to accommodate the container extension of the files you wish to process. ffmpeg -i "$i" Executes the program ffmpeg and calls for files to be processed. -bsf:v activates the video bit stream filter to be used. h264_mp4toannexb - Is...

Can We Use More Colors In Batch Script?

Image
Answer : Can I use more the 16 colours in a Windows batch file? No, as most most Windows apps only support 16 colours. However, in the Windows 10 Insiders Build #14931 the Windows Console was updated to support 24-bit RGB true color. Unfortunately as mentioned above most Windows apps cannot make use of this enhancement (yet). However, using Windows Subsystem for Linux (WSL), Linux scripts and tools can use the Console's new 24-bit color support: One of the most frequent requests we receive is to increase the number of colors that the Windows Console can support. We love nothing more than to deliver features you ask for! But rather than just add a few more colors, or limit our console to a mere 256 colors, in Windows 10 Insiders Build #14931, we’ve updated the Windows Console to support full, glorious 24-bit RGB true color! This is actually a little tricky to demo since most Windows apps only support 16 colors at most whereas the Linux world has broadly supported 256 col...