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

ffmpeg.ps1 causes issues #2611

Closed
arnabanimesh opened this issue Aug 30, 2021 · 7 comments · Fixed by #3014
Closed

ffmpeg.ps1 causes issues #2611

arnabanimesh opened this issue Aug 30, 2021 · 7 comments · Fixed by #3014
Labels
bug Something isn't working

Comments

@arnabanimesh
Copy link

Calling ffmpeg.exe shim doesn't cause any issue, but calling ffmpeg.ps1 (default behaviour when calling from PowerShell 7) causes issues.

Running the following in PowerShell: ffmpeg -i i.avi -bsf:v mpeg4_unpack_bframes -codec copy o.avi causes this error:

[NULL @ 00000235ef2ebd00] Unable to find a suitable output format for 'mpeg4_unpack_bframes'
mpeg4_unpack_bframes: Invalid argument

I need to explicitly call ffmpeg.exe from PowerShell to avoid issues.

Check this link for more detailed discussion: https://trac.ffmpeg.org/ticket/9398

@arnabanimesh
Copy link
Author

If ffmpeg.ps1 is not intended for use, then it shouldn't exist in the first place.

An end user won't know.

@HUMORCE
Copy link
Member

HUMORCE commented Aug 31, 2021

the parameter contains symbols : which causes this problem.

Add the bin directory to PATH can solve this problem, but you cannot switch between different versions. (scoop reset ffmpeg/ffmpeg-shared/...)

OR just delete ffmpeg.ps1 after installing ffmpeg.

@arnabanimesh
Copy link
Author

Deleting ps1 file is a temporary issue as it will reappear after update.

I'll add the bin directory in the path, but it may cause issues in some other apps also using incompatible characters, and hence it needs to be addressed in order to make it robust.

@akirayamamoto
Copy link
Contributor

I can reproduce the issue. I am not sure when this ffmpeg.ps1 is created though.

@arnabanimesh
Copy link
Author

I can reproduce the issue. I am not sure when this ffmpeg.ps1 is created though.

ffmpeg.ps1 is created using this: https://raw.githubusercontent.com/lukesampson/psutils/3290c04d7653ea8183a5e11d3d5a4e46716035d1/shim.ps1
You can find it in this code: https://github.com/ScoopInstaller/Main/blob/3d8c2e1c5eb8adc8fc9627165d0e796cad846876/bucket/shim.json

@stale
Copy link

stale bot commented Oct 27, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@akirayamamoto @HUMORCE @arnabanimesh and others