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...