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

Question: Parsing Instructions for ffmpeg Unlock Test #630

Open
CoffeeandTV opened this issue Mar 29, 2023 · 2 comments
Open

Question: Parsing Instructions for ffmpeg Unlock Test #630

CoffeeandTV opened this issue Mar 29, 2023 · 2 comments
Labels

Comments

@CoffeeandTV
Copy link

Hello,

The suggested test script for windows here seems to be missing parsing instructions as copy and pasting it into CMD or running as a .bat results in the following:

Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn Option hwaccel (use HW accelerated decoding) cannot be applied to output url ^ -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to. Error parsing options for output file ^. Error opening output files: Invalid argument

Using ffmpeg archive linked to in the instructions.

@OMEGARAZER
Copy link
Contributor

Unsure of the exact cause of it not working for you but it seems to be related to the ^ characters from this cannot be applied to output url ^.

To test it you can try to run the command as a single line, this is the one in the wiki as a single line:

ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 -vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 4M -f null - -vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 1M -f null - -vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 8M -f null - -vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 6M -f null - -vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 5M -f null - -vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 7M -f null -

@Umgak
Copy link
Contributor

Umgak commented Apr 14, 2023

If you're using Powershell, you need to use the backtick (`) character as the extension instead of carat (^).

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

No branches or pull requests

3 participants