Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumb URL perview as Video URL not image, File Extension not updated #227

Open
ghost opened this issue Jul 19, 2023 · 0 comments
Open

Thumb URL perview as Video URL not image, File Extension not updated #227

ghost opened this issue Jul 19, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 19, 2023

gem 'carrierwave'
gem 'streamio-ffmpeg'
Rails 7 Ruby 3
Failed to update the extensions

, [2023-07-19] INFO -- : Running transcoding...
["/usr/bin/ffmpeg", "-y", "-i", "1689766990-977250766eeee392977-0025-7931/thumb/SampleVideo_1280x720_1mb.mp4", "-ss", "2", "-s", "640x360", "-q:v", "2", "-vframes", "1", "-f", "image2", "-aspect", "1.7777777777777777", tmp/1689766990-977250766392977-0025-7931/thumb/thumb.jpg"]

I, [2023-07-19] INFO -- : Transcoding of tmp/1689766990-977250766392977-0025-7931/thumb/SampleVideo_1280x720_1mb.mp4 to tmp/1689766990-977250766392ss4444444977-0025-7931/thumb/thumb.jpg succeeded

In preview the URL work as VideoURL not as Image_URL.
File Extension: is not updated

version :thumb do
process generate_thumb: [:thumb, format: 'jpg']
end

def generate_thumb(*args)
FFMPEG::Movie.new(file.path)
reset of code
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants