View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Apr 16, 2006 10:53 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
I'm looking for a command that will return the resolution of the mpeg2 video stream embedded in a ".nuv" file. I want to use this in a script, so I need something that isn't GUI-based. Any pointers you can provided would be appreciated -- thanks!

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 12:36 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
mplayer -identify <some nuv> 2>/dev/null | grep VIDEO:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 12:47 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
You could try something like (unset DISPLAY ; mplayer -identify filename). This will display the info about the file, but when it tries to display it, it will error out because of no display. Just be careful that it is never used on an audio only file because mplayer will happily play an audio file without a valid display.

There may be some way to have it barf when trying to play an audio file to. Look at the man page.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 8:03 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Mac, you approach worked perfectly, thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 11:10 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Greg, I also needed to apply your suggestion of "unset DISPLAY" to prevent mplayer from attempting to play the video. Thanks!

Marc


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu