Working Video Formats' Best Parameters

If you need any help with XBMC4XBOX, such as installing or using the software, please post it in here.
Post Reply
miigotu
Posts: 3
Joined: Fri Jul 04, 2014 2:02 am

Working Video Formats' Best Parameters

Post by miigotu »

Hi, I've been working on a script to process my library for files which my xbox cannot play effectively, and transcode them if necessary. It is very annoying when you go to play a movie and it doesn't work and have to transcode them before you watch it, when you have a large existing library with many files that don't work.

Yes I know it would be easy to simply transcode every file with the following code from this post

Code: Select all

ffmpeg -i some_1080p_infile.mkv -scodec copy -acodec copy -vcodec mpeg4 -b:v 3000k -maxrate 5000k -bufsize 4096k -s 1280x720 -f matroska -y outfile.mkv
The issue with such a blanket conversion is you increase file sizes of media that works perfectly fine with xbmc without modification, and also waste processing time in doing so. My script works fairly well but I am still ironing out the code which determines whether a file should be transcoded or skipped. It was originally using ffprobe to get things like width, height, and codec but I have just switched it to use mediainfo to get more detailed information.

I also plan to add override arguments to the script such as whether to upscale (defaulting to false), force output codec/container, over-ride options or parameters. It will also be able to process a single file so that it can be used for more efficient on demand transcoding with the method BuZz describes here.

I have found this table but it seems not to be up to date. Can someone please update that table, or provide me with detailed information about maximum working parameters for each codec variation?
Post Reply