Register
It is currently Fri Oct 31, 2014 5:22 am

mediainfo script


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Sat Dec 20, 2008 8:21 pm   

Joined: Sat Dec 20, 2008 8:19 pm
Posts: 1
Code:
#!/bin/bash
FILE=`echo -n $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`
mediainfo ${FILE} > ${FILE}.txt


Ok the script basicly is run on video files and output is putted into txt file with the same name as video file.
Problem is that with some video files ir works perfectly, with some of them it doesnt...

Maybe anyone knows problem?


Top
 Profile  
 PostPosted: Mon Dec 22, 2008 1:56 am   

Joined: Mon Nov 17, 2008 7:25 am
Posts: 221
Most likely it depends on meta data embedded with the file or file type... this varies depending on the creator and how this person did it.
If they encode in certain formats the information may not be presented to you via the console.

Look at it as ID3 tags for mp3:s.. some encode theirs with full album information and some don't :)
Same goes for using the "file" command, some files can return more or less accurate information and it all depends on the meta header

Best regards
Fredrik Eriksson


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP