FFmpeg Video Conversion Optimization
So I'm writing a script that checks my downloaded files for a few different filetypes (.mkv, .avi, .mp4) and converts them into 2 channel mp4 files so that they work with my Roku. The scripting part I can handle but I have no idea what I'm doing with all the different FFmpeg options. If an MKV or AVI come in I convert to MP4 and if it's an MP4 already it checks to see if they're are only 2 channels and if not, converts it to stereo. Are my FFmpeg options ok or are there more efficient, better, less resource intensive, options?
MKV Code:
ffmpeg -i $($OldVideo) -c:v copy -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 $($NewVideo) Code:
ffmpeg -i $($OldVideo) -ac 2 $($NewVideo) Code:
ffmpeg -i $($OldVideo) -ac 2 $($NewVideo) |
the setting are whatever you needs, I do not see any resource intensive options being used.
then the better question is define resource intensive I'd think that you'd give into whatever it takes to get a re sample file to the quality you want it to be. With the understanding you cannot increase quality, only reduce quality from the base it started at. what are you running under the hood? |
8 core AMD FX and 16 Gigs of ram. I'm trying to get everything to mp4's just for standardization purposes and it needs to be able to play on my roku/tv which only has the tv speakers.
|
Quote:
due to you, I've actually went back and looked up how to for Handbrake to resample my movies and resize them so get them smaller in screen size as well as MB/GB size. Using the command line, whereas HandBreak use to have an iuuse with not being able to loop through files. It'd get stuck after the first one, now I've found that is no longer an issue. at full screen the picture is not that degraded for my laptop usage. let me give you what I worked out you might want to see if that will give you the desired results as HandBreak is curtailed to resampling movies. to give you more options for your endeavor. At the moment it is currently in the testing phase right now so I am still waiting for a move to finish so I can view the results. My script is still in the makings and as you should know more custom options can be added. Code:
#!/bin/bash I found this script for HandBrake for roku/tv. Might be worth looking at. https://gist.github.com/donmelton/5734177 |
I'll check it out. Thanks!
|
All times are GMT -5. The time now is 06:14 PM. |