Jump to content

Post processing script to convert mpeg2 recordings?


snorkel

Recommended Posts

snorkel

Does anyone have a post processing script that can convert recordings to a friendly format? i.e. all my over the air recordings transcode because the HDHomeRun stores them in the native format of mpeg2.

 

I can't seem to get the new convert option to work.

Link to comment
Share on other sites

tdiguy

It is not ideal, but i use the following script to batch convert files:

#!/bin/bash
DIR="/temp-1/"
cd "$DIR"
for i in *; do
   # ffmpeg -i "$i"  -strict -2 -vf scale=960:480 -threads 2 "/temp-1/out/${i%.*}.mp4"
   # ffmpeg -vaapi_device /dev/dri/renderD128  -i "$i" -vcodec libx265 -strict -2 -vf scale=720:480 -threads 2 -vf 'format=nv12,hwupload' -c:v h264_vaapi -crf 24 "/temp-1/out/${i%.*}.mp4"
     ffmpeg -i "$i" -preset veryfast -threads $1 -strict -2 -vf scale=720:480  "/temp-1/out/${i%.*}.mp4"
done

I also have this resizing recordings to cut down how much room they take up. Its not ideal or automated but its something :) 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...