Using VLC to transcode video to H.264/AAC
Posted: Sat Feb 05, 2011 1:39 pm
I've created a simple script that uses VLC to transcode video to H.264/AAC for better quality at lower CPU and bandwidth usage.
It can be considered as a drop-in replacement for the current FFMpeg solution. At 700Kbps it will deliver crisp clear video transcoding e.g. 720p .mkv video stream using a low end Intel Atom processor. Higher resolution will result in video stutter unless you've the CPU power available.
I've only tested the script on Linux (and some changes are needed before it would work in Windows). And it requires VLC is installed on your system.
To use it download and place the vlc.pl script in the transcoding folder (remember execute permission) and replace the transcoding ffmpeg step with:
The NONROOTUSER is needed since VLC will not run as root (you can skip the --username option, if Subsonic isn't running as root).
It can be considered as a drop-in replacement for the current FFMpeg solution. At 700Kbps it will deliver crisp clear video transcoding e.g. 720p .mkv video stream using a low end Intel Atom processor. Higher resolution will result in video stutter unless you've the CPU power available.
I've only tested the script on Linux (and some changes are needed before it would work in Windows). And it requires VLC is installed on your system.
To use it download and place the vlc.pl script in the transcoding folder (remember execute permission) and replace the transcoding ffmpeg step with:
- Code: Select all
vlc.pl -i '%s' --canvas %wx%h --video-bit %b --username NONROOTUSER
The NONROOTUSER is needed since VLC will not run as root (you can skip the --username option, if Subsonic isn't running as root).