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

Execute a custom ffmpeg command #138

Closed
brainunknown opened this issue Oct 9, 2021 · 1 comment
Closed

Execute a custom ffmpeg command #138

brainunknown opened this issue Oct 9, 2021 · 1 comment
Labels
addressed The issue is addressed, will be closed soon if no further reply

Comments

@brainunknown
Copy link

brainunknown commented Oct 9, 2021

First of all congratulations for this great package :) I hope some day I will be able to do something like this.

Since this package has the ffmpeg, can we execute a custom ffmpeg command?

For instance, what I need is to capture a single image of a video. I know, here was recommended the package video_thumbnail, but I don't want to have too many packages installed.

And since video_trimmer already has ffmpeg we could use it instead.

I tried:

    `.saveTrimmedVideo(startValue: _startValue, endValue: _endValue, ffmpegCommand: 'ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2', customVideoFormat: '.jpg')

`

@brainunknown brainunknown changed the title Extract a sin Execute a custom ffmpeg command Oct 9, 2021
@sbis04
Copy link
Owner

sbis04 commented Dec 3, 2021

Yes, you can use a custom FFmpeg command (you can check out the correct way to capture an image from the Docs here) but this is not recommended because in order to use the saveTrimmedVideo() method you should be showing the TrimEditor UI which is suited for only trimming videos.

@sbis04 sbis04 added the addressed The issue is addressed, will be closed soon if no further reply label Dec 3, 2021
@sbis04 sbis04 closed this as completed Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed The issue is addressed, will be closed soon if no further reply
Projects
None yet
Development

No branches or pull requests

2 participants