Search this blog ...

Sunday, October 11, 2009

instructions on how to install MediaInfo command line tool on Apple TV

MediaInfo provides technical information and tags for most multimedia files.
Supported formats include:
Video : AVI/OGM/MKV/MPG/VOB/MP4/3GP/...
Audio : MP3/OGG/MKA/MP4/AAC/...

The guys at XBMC require such information when posting an "issue" with a particular movie/video etc.

Obtain MediaInfo cli from http://sourceforge.net/projects/mediainfo/

e.g. MediaInfo_CLI_0.7.22_Mac_Universal.dmg

Upload this file to the Apple TV as user frontrow.

Mount the image :-

$ hdiutil mount MediaInfo_CLI_0.7.22_Mac_Universal.dmg

...
/dev/disk2s2 Apple_HFS /Volumes/MediaInfo CLI
...


$ diskutil list
...
/dev/disk2
#: type name size identifier
0: Apple_partition_scheme *5.0 MB disk2
1: Apple_partition_map 31.5 KB disk2s1
2: Apple_HFS MediaInfo CLI 5.0 MB disk2s2
...


$ mount
...
/dev/disk2s2 on /mnt/Scratch/Volumes/MediaInfo CLI (local, nodev, nosuid, read-only, mounted by frontrow)
...


Change directory to MediaInfo CLI

$ pwd
/Volumes/MediaInfo CLI

$ ls
Contrib License.NoModifications.html MediaInfo CLI.pkg


$ installer -pkginfo -verbose -pkg MediaInfo\ CLI.pkg/

Package information:

Title : MediaInfo CLI
Message : This item is required.
Package : MediaInfo CLI
Must Authenticate : YES
Description :
Size : 6068 KB
Status : Fail
Will Restart : NO



$ sudo -s

# installer -pkg /Volumes/MediaInfo\ CLI/MediaInfo\ CLI.pkg/ -target /
installer: Package name is MediaInfo CLI
installer: Installing onto volume mounted at /.
installer: The install was successful.

# cd /usr/local/bin

# ls -ltr
...
-rwxr-xr-x 1 frontrow frontrow 6212128 Sep 26 01:52 mediainfo
...

# hdiutil detach "/mnt/Scratch/Volumes/MediaInfo CLI"
"disk2" unmounted.
"disk2" ejected.

# exit

$ mediainfo
Usage: "MediaInfo [-Options...] FileName1 [Filename2...]"
"MediaInfo --Help" for displaying more information



$ cd /Volumes/XXX/VIDEO_TS

-bash-2.05b$ ls -laR
total 9032984
dr-xr-xr-x 11 frontrow frontrow 508 Aug 30 2008 .
dr-xr-xr-x 4 frontrow frontrow 136 Aug 30 2008 ..
-r--r--r-- 1 frontrow frontrow 6144 Aug 30 2008 VIDEO_TS.BUP
-r--r--r-- 1 frontrow frontrow 6144 Aug 30 2008 VIDEO_TS.IFO
-r--r--r-- 1 frontrow frontrow 75776 Aug 30 2008 VTS_01_0.BUP
-r--r--r-- 1 frontrow frontrow 75776 Aug 30 2008 VTS_01_0.IFO
-r--r--r-- 1 frontrow frontrow 1073739776 Aug 30 2008 VTS_01_1.VOB
-r--r--r-- 1 frontrow frontrow 1073739776 Aug 30 2008 VTS_01_2.VOB
-r--r--r-- 1 frontrow frontrow 1073739776 Aug 30 2008 VTS_01_3.VOB
-r--r--r-- 1 frontrow frontrow 1073739776 Aug 30 2008 VTS_01_4.VOB
-r--r--r-- 1 frontrow frontrow 329760768 Aug 30 2008 VTS_01_5.VOB

$ mediainfo *

General
Complete name : VIDEO_TS.BUP
Format : DVD Video
Format profile : Menu
File size : 6.00 KiB

Video
ID : 0xE0
Format : MPEG Video
Format version : Version 2
Bit rate mode : Variable
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : PAL

...

No comments:

Post a Comment