Re: pixel aspect ratio being reset on video loop
Kevin DeKorte <[email protected]> Mon, 29 Oct 2007 16:22:09 -0600
| Newsgroups | gmane.comp.mozilla.mplayerplug-in |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian Knudson wrote: > > 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. Sounds like that video has some problems... since mplayer is doing the playback, what it says, it what is should be. > > 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). > For one the offset should be 16 and not 12, so that should help some. > 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'? No idea, would need to see debug info, it is possible that there are no xv ports available on the second run, just to many things to guess at with out seeing a log. > > 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. No, the scaling of the window size is what controls that. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHJl0R6w2kMH0L1dERAsVSAJ9VX0taZkig12PxAuSB2E3eBW9PVgCdHwMM FJnGYEiUibfKVP6vOAbyKv8= =8NSD -----END PGP SIGNATURE----- ------------------------------------------------------------------------- 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/