This repository was archived by the owner on Dec 10, 2020. It is now read-only.
This repository was archived by the owner on Dec 10, 2020. It is now read-only.
Incorrect aspect ratio with certain FLVs #55
Closed
Description
Originally reported in videojs/video.js#264
The video starts squashed vertically, but if you got to fullscreen it will fix the aspect ratio.
An example file can be found here:
http://s000.tinyupload.com/index.php?file_id=55943255453027470681
Activity
henrydn commentedon Oct 17, 2013
Hi,
I'm experiencing something similar to this. With the flash fallback, any MP4 video I play has the wrong aspect ratio, and is squished up on the right hand of the screen, while 33% of the left side is just black. I'm not using a conventional browser - its a Samsung Smart TV (the TV has no html5 video support, but it does have flash for some reason).
EDIT: looked at the actionscript. the dimensions are correct in _model.metadata, but they are overwritten by the dimensions in _uiVideo.videoWidth and _uiVideo.videoHeigth, back to 100x100. I commented it out, now it works perfectly
heff commentedon Nov 13, 2013
@henrydn Which line did you comment out? Can you link to it?
henrydn commentedon Nov 13, 2013
@heff here you go. You can just ignore the logging stuff I added : henrydn@c3dbf41
heff commentedon Nov 15, 2013
@henrydn thanks! That should help dig into the issue.
heff commentedon Feb 4, 2014
Found a possibly related post.
http://forums.adobe.com/thread/430777
teu commentedon Apr 9, 2014
Hi,
have the same problem, image is squashed in top left, when going to FS and back, everything goes back to normal and video fills player.
garymoon commentedon Mar 19, 2015
Just ran into this problem with FLVs produced by the NGINX RTMP module (#1951). Putting this here in case other users have better Google foo than I.
garymoon commentedon Mar 19, 2015
I've tried the video-js.swf build at https://github.com/henrydn/video-js-swf/blob/master/bin/VideoJS.swf with no luck. I believe @henrydn is experiencing a different issue to @teu and I.
garymoon commentedon Mar 19, 2015
Running the files through ffmpeg with
-codec copy
(copying the streams into a new container) works. It definitely adds an onMetaData marker, and increases the filesize by over 300 bytes (mostly in the header, but five bytes are appended. I plan to read up more on the flv spec (chapter one in this document for those interested) to see what I can do about perhaps modifying the original file inline.40 remaining items