pixel aspect ratio being reset on video loop

Brian Knudson <[email protected]> Mon, 29 Oct 2007 15:04:54 -0700
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>

Hello all,

I have a video (actually lots of videos) with non square pixels.

if I ffmpeg -i, the frame size shows 640x486
if I tcprobe -i, the frame size shows 720x486
if I play the video with mplayer, it plays at about 767x486.
The actaul video size, AFAIK is 720x486.

If I view the video with mplayer-plugin through a browser, I see
this:

with embed set to 640x498 (498 = 486+12 to make room for the controls
bar), I see the video at proper aspect with part of the frame clipped
(as I expect).

with embed set to 720x498 (or 767x498), the first run through looks
great - the entire frame in the embeded area, but then when the video
loops (loop is set to true in the embed), the video gets stretches
such that the same amount of the frame is clipped as with the 640
embed... you can also see that the image is noticeably stretched
after loop.

Questions:
1. Why is this happening? ... and ... should loop be set to something
other than 'true'?

2. Is there a way to get/set the pixel aspect ratio either in the
embed or with some sort of javascript event?  The idea here being
that the video look the same on all machines using mplayer plugin -
not relying on the config files on that particular machine.

Thanks,
-Brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/