[mythtv-users] How can I tell the native X/Y size of a recorded file?
Steven Adeff
adeffs.mythtv at gmail.com
Mon Apr 7 19:09:06 UTC 2008
On Mon, Apr 7, 2008 at 10:56 AM, Michael T. Dean
<mtdean at thirdcontact.com> wrote:
> On 04/07/2008 10:27 AM, Mark Knecht wrote:
> > Assume I've already recorded some material and the file resides on my
> > backend server. How can I tell what the native X/Y video size of that
> > file is?
> >
>
> mplayer -v -v -v -v -nolirc -nojoystick \
> -vo null -ao null -frames 1 \
> -identify '/path/to/recording.mpg' 2>&1 |
> tee ~/mplayer_identify_output
or...
mplayer -vo null -ao null -frames 0 -identify "$original_name"
2>/dev/null | | sed -e '/ID_VIDEO_WIDTH/s/ID_VIDEO_WIDTH=//'
mplayer -vo null -ao null -frames 0 -identify "$original_name"
2>/dev/null | sed -e '/ID_VIDEO_HEIGHT/s/ID_VIDEO_HEIGHT=//'
you could probably do it with a single sed line, but I'm not that
versed in sed....
--
Steve
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette
More information about the mythtv-users
mailing list