Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Nick P
Wednesday, February 6th, 2008 at 7:18:07pm UTC 

  1. #!/bin/sh
  2. #
  3. # This is a wrapper around the -identify functionality.
  4. # It is supposed to escape the output properly, so it can be easily
  5. # used in shellscripts by 'eval'ing the output of this script.
  6. #
  7. # Written by Tobias Diedrich <[email protected]>
  8. # Licensed under GNU GPL.
  9.  
  10. if [ -z "$1" ]; then
  11.         echo "Usage: midentify <file> [<file> ...]"
  12.         exit 1
  13. fi
  14.  
  15. mplayer -vo null -ao null -frames 0 -identify "[email protected]" 2>/dev/null |
  16.         sed -ne '/^ID_/ {
  17.                           s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
  18.                         }'

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right