nystudio107 / craft-transcoder

Transcode video & audio files to various formats, and provide video thumbnails
https://nystudio107.com/plugins/transcoder
Other
43 stars 12 forks source link

Transcoder doesn't create thumbs of videos in portrait orientation #47

Open tyssen opened 3 years ago

tyssen commented 3 years ago

Describe the bug

As the title says, Transcoder doesn't create thumbs of videos in portrait orientation using the code below:

{% set videoURL = "#{imageServerUrl}/reviews/#{productUrl}/#{sampleMoviesDir}/#{row.ReviewSampleMovieFileName}" %}
{% set transVideoThumbUrl = craft.transcoder.getVideoThumbnailUrl(videoURL, {
    "width": 550,
    "height": 367,
    "timeInSecs": 2,
})%}

<img src="{{transVideoThumbUrl}}">

Videos in landscape orientation are fine. I can provide a link to a page that demonstrates the problem but would prefer to share the link privately.

Versions

khalwat commented 3 years ago

Have you tried changing the mode to crop? e.g.:

{% set transVideoThumbUrl = craft.transcoder.getVideoThumbnailUrl(videoURL, {
    "aspectRatio": "crop",
    "width": 550,
    "height": 367,
    "timeInSecs": 2,
})%}
tyssen commented 3 years ago

Doing that results in landscape orientation videos that previously produced thumbs no longer working too.