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

how to use the -f and -w flags together #28

Open
hydrargyrum opened this issue Sep 13, 2022 · 3 comments
Open

how to use the -f and -w flags together #28

hydrargyrum opened this issue Sep 13, 2022 · 3 comments
Labels

Comments

@hydrargyrum
Copy link

When trying to use ffcvt with an input file path, it fails:

% ffcvt -w . -f /some/where/file.mp4
2022/09/13 16:45:58 [ffcvt] Error: work directory
		  (/tmp)
		 is the same as the source directory
		  (/tmp).

that's incorrect, source directory is /some/where.

@suntong suntong changed the title can't pass input file properly how to use the -f and -w flags together Sep 13, 2022
@suntong
Copy link
Owner

suntong commented Sep 13, 2022

Oh, sorry about the confusing. Here is a summary of how to use the -f and -w flags.

First of all,

-w work directory that hold output files (FFCVT_W)

i.e., the -w flag is for specifying the output directory. It should better be -o or -d but both of the flags have already been taken when it was added.

Now, the best way to to use the -f and -w flags together is,

  • cd into the source directory
  • use -f with relative path from the current source directory
  • specify the output directory with the -w flag (either relative path or absolute path are OK)

Give it a try.

HTH

@suntong suntong added the wiki label Sep 13, 2022
@hydrargyrum
Copy link
Author

indeed it works better, maybe that could be an improvement on options handling?

@suntong
Copy link
Owner

suntong commented Sep 13, 2022

haha, yeah, that's an option, but I'd like to keep my options handling as dumb as possible ☺️, but keep working on enhancing my document. As you can see from above, once we are on the right track, things are much smoother.

I know my options handling is only covering 10 ~ 20% of the cases, but I don't want to spent my efforts on the rest 80 ~ 90% of something that can be clearly avoided by following a good document.

cheers

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

2 participants