WebChimera icon indicating copy to clipboard operation
WebChimera copied to clipboard

Default aspect ratio wrong

Open silid opened this issue 10 years ago • 9 comments

When playing an mpeg transport stream with 16:9 video the web plugin displays using an odd ratio.

The video plays fine in standalone VLC.

Sample file: https://www.dropbox.com/s/7z5irlkp894gx2q/20150116_090008_000152.ts?dl=0

silid avatar Jan 16 '15 13:01 silid

Yes, It could be due rectangle (i.e. not square) pixel in media. Support of it is not implemented yet.

RSATom avatar Jan 16 '15 15:01 RSATom

You can now set default aspect ratio and crop manually with the latest version of WebChimera Player.

Example using your sample: http://editor.webchimera.org/test_aspect_ratio

Official demo: http://editor.webchimera.org/aspect_ratio_crop

Documentation: http://wiki.webchimera.org/index.php?title=.addPlaylist()

I've found two more plugin or libvlc bugs related to your sample video:

  • vlcPlayer.time is always 0 during playback
  • vlcPlayer.position has a 0.1 delay (starts from 0.1 instead of 0.0 and ends with 1 before playback ends)

jaruba avatar Jan 18 '15 10:01 jaruba

Good Job, Jaruba! Thanks! About bugs you've found - I think it's libvlc's bugs/issues.

RSATom avatar Jan 18 '15 15:01 RSATom

I tried to find the way to setup correct aspect ratio - but with no luck yet.

RSATom avatar Jan 18 '15 15:01 RSATom

The bugs I've found might be isolated to this specific video source, eighter file corruption, improper file header, improper video cutting tool.. I'd also do a test with another ".ts" file, will try to find one.

jaruba avatar Jan 18 '15 16:01 jaruba

I've found another ".ts" file to test with:

http://dveo.com/downloads/TS-sample-files/San_Diego_Clip.ts

I can confirm that the bugs (Aspect Ratio, vlcPlayer.time and vlcPlayer.position) happen to all ".ts" files.

jaruba avatar Jan 18 '15 16:01 jaruba

yes, I'm already met aspect ratio problem with .ts files on FBVLC

RSATom avatar Jan 18 '15 16:01 RSATom

it's defenetely not a bug in video source, it's just has not square pixels... but problem with time/position - should be issue of libvlc...

RSATom avatar Jan 18 '15 16:01 RSATom

Problem is, I can't find the way to get correct pixel aspect ratio from libvlc. I have one Idea - will try it tomorrow.

RSATom avatar Jan 18 '15 16:01 RSATom