maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to check Video file resolution ?? (https://talk.maemo.org/showthread.php?t=72246)

Maruzko 2011-04-17 02:06

How to check Video file resolution ??
 
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 ?

ForeverYoung 2011-04-17 05:53

Re: How to check Video file resolution ??
 
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 2011-04-17 09:03

Re: How to check Video file resolution ??
 
Quote:

Originally Posted by ForeverYoung (Post 990314)
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.

jedi 2011-04-18 11:16

Re: How to check Video file resolution ??
 
Quote:

Originally Posted by Maruzko (Post 990265)
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)

bitrocky 2011-04-19 11:46

Re: How to check Video file resolution ??
 
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:"

Maruzko 2011-04-25 10:22

Re: How to check Video file resolution ??
 
Quote:

Originally Posted by bitrocky (Post 991738)
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 2011-04-25 10:23

Re: How to check Video file resolution ??
 
Quote:

Originally Posted by jedi (Post 991016)
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.

jhb 2011-04-25 11:22

Re: How to check Video file resolution ??
 
I think you need to 'sudo apt-get install file' first

kureyon 2011-04-25 15:41

Re: How to check Video file resolution ??
 
Quote:

Originally Posted by Maruzko (Post 994941)
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 2011-04-26 10:37

Re: How to check Video file resolution ??
 
Quote:

Originally Posted by kureyon (Post 995075)
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.


All times are GMT. The time now is 00:56.

vBulletin® Version 3.8.8