Oliver Lillie

Results 41 comments of Oliver Lillie

Hmmm. It seems that ffmpeg doesn't re-encode the correct video dimensions once rotated, although it does store the aspect ratio correctly. This is the output from `$video->read()` when inspecting 2.mp4...

Interestingly if you re-encode 2.mp4 using fetch.php to just be 2a.mp4 the aspect ratio is also borked.

created an automatic patch so that PHPVideoToolkit detects this silliness and automatically applies dimension commands when needed. It is in the head of master. I will create a tag shortly....

fixed in fb302e32d4eae6c654524d8c39779e123fe1c3a6

Related tag: https://github.com/buggedcom/phpvideotoolkit-v2/releases/tag/2.1.6-beta

argh. Just read your links. Seems whilst this fix does actually work, the links suggest a better alternative.

Whilst this patch will do what you want, and I will create a further patch, you xould in the mean time just call `$video->setVideoAspectRatio()` yourself?

It could be there is a bug in the aspect ratio setting. By default it should not automatically adjust the width and height to fit the new ratio, however I...

bugs fixed and methods updated in master. Please let me know if it works for you now.

It's todo with Video::setVideoDimensions ``` setVideoDimensions($width, $height=null, $auto_adjust_dimensions_to_optimal=false, $force_aspect_ratio=false) ``` In the previous version the `$auto_adjust_dimensions_to_optimal` placeholder was defaulting to true. Can you check that file to see if it's...