Fixing Downloaded Files

Here is a tip for people who want to play Simple DVR recordings with a Roku or Chromecast without aid of a server program.  Install ffmpeg and run this script in the folder with your Simple DVR downloads…

REM Convert from mpeg stream to mp4, move the moov atom, and change the audio for chromecast
for %%i in (*.mp4) do (
move “%%i” tempfile.m4v
ffmpeg -i tempfile.m4v -vcodec copy -bsf:a aac_adtstoasc -acodec copy -movflags faststart “%%i”)
del tempfile.m4v

To run the script, create a text file in the folder with your Simple DVR downloads, paste the above text into the file, save the file, rename the file to fixmpegs.bat, and double click the file.  It will fix the files that can be fixed and delete the rest.

The original script and other helpful information can be found here.

Advertisements
By Len Mullen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s