Reply
Thread Tools
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#1
Searched around but could not find an answer on this.

Is there a way to check what the resolution of a video file is from the N900 itself ?
Using the Details menu option from File Manager doesn't show it.
Maybe another App ?
 
Posts: 123 | Thanked: 99 times | Joined on Sep 2010 @ Russia
#2
Using mplayer and xterminal:
Code:
mplayer -identify file.avi -ao null -vo null -frames 0 2>/dev/null | egrep "(ID_VIDEO_WIDTH|ID_VIDEO_HEIGHT)"
 
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#3
Originally Posted by ForeverYoung View Post
Using mplayer and xterminal:
Code:
mplayer -identify file.avi -ao null -vo null -frames 0 2>/dev/null | egrep "(ID_VIDEO_WIDTH|ID_VIDEO_HEIGHT)"
Might be something wrong with my mplayer install. I get this as the output:

# mplayer -identify tgwtdt.avi -ao null -vo null -frames 0 2>/dev/null

MPlayer SVN-r30099-4.2.1 (C) 2000-2009 MPlayer Team
ID_SIGNAL=11


With no special options I get this:

# mplayer -identify tgwtdt.avi

MPlayer SVN-r30099-4.2.1 (C) 2000-2009 MPlayer Team

MPlayer interrupted by signal 11 in module: unknown
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.

Last edited by Maruzko; 2011-04-17 at 22:25.
 
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#4
Originally Posted by Maruzko View Post
Searched around but could not find an answer on this.

Is there a way to check what the resolution of a video file is from the N900 itself ?
Using the Details menu option from File Manager doesn't show it.
Maybe another App ?
For some formats, the 'file' command will work.
Code:
$ file video.avi
(doesn't work with .mp4 - does with MPG/AVI)
__________________
May the source be with you.
 
Posts: 85 | Thanked: 36 times | Joined on Jun 2010 @ Berlin/Germany
#5
here it works!
I have the same version of mplayer.

But I found out that grepping "VIDEO:" and "AUDIO:" shows more informations!

So I made a little script called identifyVideo.sh with this contents:

#!/bin/sh
mplayer -identify "$1" -frames 0 -ao null -vo null 2>/dev/null | egrep "VIDEO:|AUDIO:"
 

The Following User Says Thank You to bitrocky For This Useful Post:
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#6
Originally Posted by bitrocky View Post
here it works!
I have the same version of mplayer.

But I found out that grepping "VIDEO:" and "AUDIO:" shows more informations!

So I made a little script called identifyVideo.sh with this contents:

#!/bin/sh
mplayer -identify "$1" -frames 0 -ao null -vo null 2>/dev/null | egrep "VIDEO:|AUDIO:"
I think my mplayer install is broken in some way.
That exact command gives me no output at all.
But thanks for trying.
 
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#7
Originally Posted by jedi View Post
For some formats, the 'file' command will work.
Code:
$ file video.avi
(doesn't work with .mp4 - does with MPG/AVI)
Whats the path to the 'file' command ?
I only have filebox and filefrag.
 
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#8
I think you need to 'sudo apt-get install file' first
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#9
Originally Posted by Maruzko View Post
I think my mplayer install is broken in some way.
That exact command gives me no output at all.
Does your mplayer work at all?
Code:
mplayer /path/to/anyvideofile.avi
would play the file and display video/audio info.
 
Maruzko's Avatar
Posts: 145 | Thanked: 44 times | Joined on Jun 2010 @ Sydney
#10
Originally Posted by kureyon View Post
Does your mplayer work at all?
Code:
mplayer /path/to/anyvideofile.avi
would play the file and display video/audio info.
OK, I worked it out. The mplayer command doesnt work when running it as root. Running as normal user shows the video file details.
Silly me.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:30.