![]() |
2011-04-17
, 05:53
|
Posts: 123 |
Thanked: 99 times |
Joined on Sep 2010
@ Russia
|
#2
|
mplayer -identify file.avi -ao null -vo null -frames 0 2>/dev/null | egrep "(ID_VIDEO_WIDTH|ID_VIDEO_HEIGHT)"
![]() |
2011-04-17
, 09:03
|
|
Posts: 145 |
Thanked: 44 times |
Joined on Jun 2010
@ Sydney
|
#3
|
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)"
![]() |
2011-04-18
, 11:16
|
|
Posts: 1,411 |
Thanked: 1,330 times |
Joined on Jan 2010
@ Tatooine
|
#4
|
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 ?
$ file video.avi
![]() |
2011-04-19
, 11:46
|
Posts: 85 |
Thanked: 36 times |
Joined on Jun 2010
@ Berlin/Germany
|
#5
|
The Following User Says Thank You to bitrocky For This Useful Post: | ||
![]() |
2011-04-25
, 10:22
|
|
Posts: 145 |
Thanked: 44 times |
Joined on Jun 2010
@ Sydney
|
#6
|
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:"
![]() |
2011-04-25
, 10:23
|
|
Posts: 145 |
Thanked: 44 times |
Joined on Jun 2010
@ Sydney
|
#7
|
For some formats, the 'file' command will work.
(doesn't work with .mp4 - does with MPG/AVI)Code:$ file video.avi
![]() |
2011-04-25
, 11:22
|
Posts: 31 |
Thanked: 38 times |
Joined on Dec 2010
|
#8
|
![]() |
2011-04-25
, 15:41
|
Posts: 992 |
Thanked: 738 times |
Joined on Jun 2010
@ Low Earth Orbit
|
#9
|
I think my mplayer install is broken in some way.
That exact command gives me no output at all.
mplayer /path/to/anyvideofile.avi
![]() |
2011-04-26
, 10:37
|
|
Posts: 145 |
Thanked: 44 times |
Joined on Jun 2010
@ Sydney
|
#10
|
Does your mplayer work at all?
would play the file and display video/audio info.Code:mplayer /path/to/anyvideofile.avi
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 ?