Skip to content
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
@heff

Description

@heff
Member

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

henrydn commented on Oct 17, 2013

@henrydn

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

heff commented on Nov 13, 2013

@heff
MemberAuthor

@henrydn Which line did you comment out? Can you link to it?

henrydn

henrydn commented on Nov 13, 2013

@henrydn

@heff here you go. You can just ignore the logging stuff I added : henrydn@c3dbf41

heff

heff commented on Nov 15, 2013

@heff
MemberAuthor

@henrydn thanks! That should help dig into the issue.

heff

heff commented on Feb 4, 2014

@heff
MemberAuthor

Found a possibly related post.
http://forums.adobe.com/thread/430777

teu

teu commented on Apr 9, 2014

@teu

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

garymoon commented on Mar 19, 2015

@garymoon

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

garymoon commented on Mar 19, 2015

@garymoon

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

garymoon commented on Mar 19, 2015

@garymoon

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @heff@virtualfunction@jdavidbakr@moltar@gkatsev

        Issue actions

          Incorrect aspect ratio with certain FLVs · Issue #55 · videojs/video-js-swf