Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
videometa [2015/06/07 10:41] slackermedia created |
videometa [2015/07/07 06:20] slackermedia |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | video-meta | + | [[{arrowp.png|border:0;background:none;width:0;display:inline-block;position:absolute;top:0;left:0;}videogrep|]] |
- | ------------------------------------------------------------------------------- | + | [[{arrown.png|border:0;background:none;width:0;display:inline-block;position:absolute;top:0;margin-left:2.5em;}vlc|]] |
- | Mike Schilli's perl script to show metadata on a video file is a helpful "video | + | ======video-meta====== |
- | forensics" tool that invokes the Video::FrameGrab module which in turn invokes | + | |
- | mplayer. This tool can quickly help a video artist determine codecs, frame | + | |
- | sizes, bitrates, frame rates and other properties of video clips at a glance. | + | |
- | The installation is easy but unique in that it involves perl, which has its own | + | |
- | way of installing modules. It also depends upon yaml, available from | + | |
- | SlackBuilds.org | + | |
- | 1. Install the video::framegrab perl module with the command: | + | ''Video-meta'' is a Perl script by Mike Schilli that displays attributes of a video file, helpful in "video forensics", when you need to know what codec and frame rate a video was shot in, quickly and easily. ''Video-meta'' invokes the ''Video::FrameGrab'' module, which in turn invokes **mplayer**. |
- | $ su -c "perl -MCPAN -e | + | Video-meta achieves the same results as the ''mediainfo'' tools (''mediainfo'' and **mediainfo-gui**), which are included in the default Slackermedia queue file, so strictly speaking this is doubling up on functionality. You may find it useful, however, since it gives //less// information than other tools, in an easy-to-read format, and tends to favour the most useful and common information rather than every last detail that 90% of the time you will not need. |
- | 'install Video::FrameGrab'" | + | |
+ | ===== Install ===== | ||
- | 2. Install the data::dump perl module with the command: | + | The installation is easy but unique in that it involves Perl, which has its own way of installing modules. It also depends upon ''perl-yaml'', available from [[http://slackBuilds.org]]. |
- | $ su -c "perl -MCPAN -e | + | Once you have yaml installed, install ''video::framegrab'' perl module with the command: |
- | 'install Data::Dump'" | + | |
+ | <code> | ||
+ | $ su -c "perl -MCPAN -e \ | ||
+ | 'install Video::FrameGrab'" | ||
+ | </code> | ||
- | 3. The script video-meta itself requires no installation, although the initial | + | If this is the first time you have used CPAN, you will be prompted to allow perl to setup the CPAN environment. It is safe to answer ''yes''. |
- | line of the script needs modifying so that the script can find perl on the | + | |
- | system. | + | |
- | $ wget | + | When that install process is over, install the ''Data::Dump'' perl module with the command: |
- | ftp://linuxmagazin.de/pub/magazin/2010/01/Perl/video-meta -O video-meta.pl | + | |
- | $ sed "1s#/local##" | + | |
- | video-meta.pl > video-meta | + | |
- | $ chmod +x video-meta | + | |
- | $ su -c 'cp video-meta /usr/local/bin/' | + | |
- | | + | |
+ | <code> | ||
+ | $ su -c "perl -MCPAN -e \ | ||
+ | 'install Data::Dump'" | ||
+ | </code> | ||
- | The script can then be used by simply invoking it before the name of a video | + | The script ''video-meta'' itself requires no installation, although the initial line of the script needs modifying so that the script can find Perl on the system: |
- | file, such as: video-meta foo.avi, which will list all metadata attributes | + | |
- | associated with foo.avi | + | |
- | Mediainfo | + | <code> |
+ | $ wget ftp://linuxmagazin.de/pub/magazin/2010/01/Perl/video-meta \ | ||
+ | -O video-meta.pl | ||
+ | $ sed "1s#/local##" video-meta.pl > video-meta | ||
+ | $ chmod +x video-meta | ||
+ | $ su -c 'cp video-meta /usr/local/bin/' | ||
+ | </code> | ||
- | Providing you with even more information about media is mediainfo and | + | ===== Usage ===== |
- | mediainfo-gui. Obviously one works in the shell and one with a GUI. The amount | + | |
- | of useful information provided by mediainfo is unparalleled, and so it should | + | |
- | be on every multimedia artist's system. | + | |
- | Installation of mediainfo and its dependency libmediainfo can be done easily | + | Invoke ''video-meta'' before the name of a video file: |
- | through slackbuilds.org | + | |
+ | <code> | ||
+ | $ video-meta foo.avi | ||
+ | </code> | ||
+ | The metadata attributes associated with foo.avi are printed in your terminal. | ||
+ | |||
+ | |||
+ | |||
+ | <WRAP tip> | ||
+ | **See Also** \\ | ||
+ | Mediainfo \\ | ||
+ | Ffmpeg | ||
+ | </WRAP> | ||
+ | |||
+ | [[{arrown.png|border:0;background:none;width:0;display:inline-block;float:right;}vlc|]][[{arrowp.png|border:0;background:none;width:0;float:right;}videogrep|]] |