Difference between revisions of "Videos5"

From Amahi Wiki
Jump to: navigation, search
Line 39: Line 39:
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
 
mysql -uvideos5 -pvideos5 -e "update settings set value='/path/to/your/videos\n/other_path/to/your/other_videos' where name = 'paths'" videos5
 
mysql -uvideos5 -pvideos5 -e "update settings set value='/path/to/your/videos\n/other_path/to/your/other_videos' where name = 'paths'" videos5
 +
</div>
 +
 +
==Custom Videos Encoding Options==
 +
 +
You can change the default options used to encode videos in the same way you can change paths: by changing a MySQL entry.<br/>
 +
See '''/usr/bin/HandBrakeCLI --help''', or [http://trac.handbrake.fr/wiki/CLIGuide HandBrake CLIGuide] for available options.
 +
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
 +
mysql -uvideos5 -pvideos5 -e "update settings set value='/bin/nice /usr/bin/HandBrakeCLI -L -i \$input -o \$output -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 720 -Y 480 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6' where name = 'encode_command'" videos5
 
</div>
 
</div>

Revision as of 10:51, 7 July 2010

App page: http://www.amahi.org/apps/videos5

Logo: Videos5-logo.png

Screenshot: Videos5-screenshot.png

Description

Stream your videos to your iPhone, iPod Touch, iPad or browser.

Videos5 allows you to stream your MPEG-4 (H.264 only) videos using any HTML5-compliant browser that supports H.264: Safari (on computers and mobile devices) or Chrome (no Firefox / Opera).

To be available for streaming in this app, your video files needs to be MPEG-4 files, with the video stream encoded using the H.264 codec. You'll also want the audio stream to use a codec that your browser supports (most likely AAC). For each file that isn't compatible, Videos5 will allow you to create a new version that can be streamed on all devices.

Custom thumbnails

If your Movies share contain folder.jpg and filename.tbn files (image files used by XBMC for thumbnails), those will be used to display thumbnails for folders and video files. More details about thumbnails can be found on the XBMC wiki.

If you already use XBMC, and indexed all the videos on your Movies share in it, you can export your library using Settings > Video > Library > Export video library. Then indicate you want to export 'separate' files, instead of a 'single file' export, and that you want to export thumbnails and fanart. This will generate filename.tbn files for all your movies, and folder.jpg for all your TV Shows folders.

If you don't use XBMC, you can manually create filename.tbn files (in JPG or PNG format) for your movies, and place folder.jpg files (in JPG or PNG format) in your folders.

You can also use applications that can catalog your videos, and export thumbnails in the proper format. Media Companion and Media Reader are such applications.

Custom Videos Paths

If you store your videos somewhere else than the default /var/hda/files/movies, you'll need to change that path in the Videos5 settings. Execute those two commands, from a terminal:

mysql -uvideos5 -pvideos5 -e "update settings set value='/path/to/your/videos' where name = 'paths'" videos5

/usr/bin/php /var/hda/web-apps/videos5/html/index.php find

If you want to scan multiple directories, separate each by \n in the above mysql command:

mysql -uvideos5 -pvideos5 -e "update settings set value='/path/to/your/videos\n/other_path/to/your/other_videos' where name = 'paths'" videos5

Custom Videos Encoding Options

You can change the default options used to encode videos in the same way you can change paths: by changing a MySQL entry.
See /usr/bin/HandBrakeCLI --help, or HandBrake CLIGuide for available options.

mysql -uvideos5 -pvideos5 -e "update settings set value='/bin/nice /usr/bin/HandBrakeCLI -L -i \$input -o \$output -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 720 -Y 480 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6' where name = 'encode_command'" videos5