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

Can i use "copy" in the slow motion command? Currently getting error "Filtering and streamcopy cannot be used together" #359

Open
passenger-earth opened this issue Jun 25, 2020 · 0 comments

Comments

@passenger-earth
Copy link

Hi,
First of all thank you so much for this great library.

While using the slow motion command , in some cases either the video is getting corrupted or giving a black screen in the output file. I faced the same issue while using the cut video command. I fixed the issue by using the copy command , which instead of re-encoding the video , copies the attributes for the original input video. So, i tried using the same approach for the slow motion command , but in this case i am getting this error "Filtering and streamcopy cannot be used together" . Is there any suggesstion on how i can solve the problem? Can i use the copy command while using "filter_complex" command ?

This is the command which is giving me the error.. Thank You

String[] complexCommand = {"-y", "-i", yourRealPath, "-filter_complex", "[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.5[a]", "-map", "[v]", "-map", "[a]", "-c","copy","-r", "60", filePath};

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

1 participant