How do I specify ffmpeg video directory?
I'm sure this is a very basic question so I apologise but I couldn't find it being asked on here before.
I've just downloaded and installed ffmpeg for Mac OSX and the main thing I want to use it for is converting files like AVIs or MP4s into MOVs or reducing the frame rate or resolution.
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
So is there a specific folder I need to put the videos into, like an input directory or is there a way in the command line that I can specify the folder the video is in?
Thanks in advance!
macos video ffmpeg video-conversion
add a comment |
I'm sure this is a very basic question so I apologise but I couldn't find it being asked on here before.
I've just downloaded and installed ffmpeg for Mac OSX and the main thing I want to use it for is converting files like AVIs or MP4s into MOVs or reducing the frame rate or resolution.
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
So is there a specific folder I need to put the videos into, like an input directory or is there a way in the command line that I can specify the folder the video is in?
Thanks in advance!
macos video ffmpeg video-conversion
add a comment |
I'm sure this is a very basic question so I apologise but I couldn't find it being asked on here before.
I've just downloaded and installed ffmpeg for Mac OSX and the main thing I want to use it for is converting files like AVIs or MP4s into MOVs or reducing the frame rate or resolution.
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
So is there a specific folder I need to put the videos into, like an input directory or is there a way in the command line that I can specify the folder the video is in?
Thanks in advance!
macos video ffmpeg video-conversion
I'm sure this is a very basic question so I apologise but I couldn't find it being asked on here before.
I've just downloaded and installed ffmpeg for Mac OSX and the main thing I want to use it for is converting files like AVIs or MP4s into MOVs or reducing the frame rate or resolution.
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
So is there a specific folder I need to put the videos into, like an input directory or is there a way in the command line that I can specify the folder the video is in?
Thanks in advance!
macos video ffmpeg video-conversion
macos video ffmpeg video-conversion
edited Feb 27 at 15:15
bertieb
5,672112542
5,672112542
asked Feb 27 at 14:58
ArronArron
82
82
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can tell ffmpeg where to look for files
If you are launching `ffmpeg from the terminal, you will need to either change directory to the location of the video you would like to work on, or specify the full path.
Getting the file location
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
If Finder, you can hit Cmd+C on the directory you have your movies in, as if you were going to copy it. You can then hit Cmd+V in the terminal to paste that directory's path (where it is found on your Mac).
Then use the cd command to change to that directory:
cd /Users/Arron/Movies/
and redo your ffmpeg command:
ffmpeg -i test.mp4 test.avi
Alternatively, you could specify the full path to both the input and output files:
ffmpeg -i /Users/Arron/Movies/test.mp4 /Users/Arron/Movies/test.avi
It would be worth reading up on the ffmpeg documentation to learn about what the command you are doing does, as it may not be what you expect.
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
1
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
add a comment |
When you open a terminal and you're referring to a file name, the shell looks for the file relative to your working directory.
To see your working directory, enter:
pwd
To change to another working directory, enter cd. So if your file is in the folder ~/Downloads/videos, run:
cd ~/Downloads/videos/
You can also drag the file from your Finder to the terminal, that is, if you type:
ffmpeg -i __
^---- your cursor is here
Then you can drag and drop the file to where your cursor is, and it will automatically add the full path to the file.
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409894%2fhow-do-i-specify-ffmpeg-video-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can tell ffmpeg where to look for files
If you are launching `ffmpeg from the terminal, you will need to either change directory to the location of the video you would like to work on, or specify the full path.
Getting the file location
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
If Finder, you can hit Cmd+C on the directory you have your movies in, as if you were going to copy it. You can then hit Cmd+V in the terminal to paste that directory's path (where it is found on your Mac).
Then use the cd command to change to that directory:
cd /Users/Arron/Movies/
and redo your ffmpeg command:
ffmpeg -i test.mp4 test.avi
Alternatively, you could specify the full path to both the input and output files:
ffmpeg -i /Users/Arron/Movies/test.mp4 /Users/Arron/Movies/test.avi
It would be worth reading up on the ffmpeg documentation to learn about what the command you are doing does, as it may not be what you expect.
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
1
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
add a comment |
You can tell ffmpeg where to look for files
If you are launching `ffmpeg from the terminal, you will need to either change directory to the location of the video you would like to work on, or specify the full path.
Getting the file location
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
If Finder, you can hit Cmd+C on the directory you have your movies in, as if you were going to copy it. You can then hit Cmd+V in the terminal to paste that directory's path (where it is found on your Mac).
Then use the cd command to change to that directory:
cd /Users/Arron/Movies/
and redo your ffmpeg command:
ffmpeg -i test.mp4 test.avi
Alternatively, you could specify the full path to both the input and output files:
ffmpeg -i /Users/Arron/Movies/test.mp4 /Users/Arron/Movies/test.avi
It would be worth reading up on the ffmpeg documentation to learn about what the command you are doing does, as it may not be what you expect.
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
1
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
add a comment |
You can tell ffmpeg where to look for files
If you are launching `ffmpeg from the terminal, you will need to either change directory to the location of the video you would like to work on, or specify the full path.
Getting the file location
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
If Finder, you can hit Cmd+C on the directory you have your movies in, as if you were going to copy it. You can then hit Cmd+V in the terminal to paste that directory's path (where it is found on your Mac).
Then use the cd command to change to that directory:
cd /Users/Arron/Movies/
and redo your ffmpeg command:
ffmpeg -i test.mp4 test.avi
Alternatively, you could specify the full path to both the input and output files:
ffmpeg -i /Users/Arron/Movies/test.mp4 /Users/Arron/Movies/test.avi
It would be worth reading up on the ffmpeg documentation to learn about what the command you are doing does, as it may not be what you expect.
You can tell ffmpeg where to look for files
If you are launching `ffmpeg from the terminal, you will need to either change directory to the location of the video you would like to work on, or specify the full path.
Getting the file location
I have a video in a folder in my movies folder called test.mp4 but when I try to use ffmpeg to convert it by typing 'ffmpeg -i test.mp4 test.avi' it keeps telling me 'No such file or directory' it does the same thing when I try it with other videos. The videos are definitely there though.
If Finder, you can hit Cmd+C on the directory you have your movies in, as if you were going to copy it. You can then hit Cmd+V in the terminal to paste that directory's path (where it is found on your Mac).
Then use the cd command to change to that directory:
cd /Users/Arron/Movies/
and redo your ffmpeg command:
ffmpeg -i test.mp4 test.avi
Alternatively, you could specify the full path to both the input and output files:
ffmpeg -i /Users/Arron/Movies/test.mp4 /Users/Arron/Movies/test.avi
It would be worth reading up on the ffmpeg documentation to learn about what the command you are doing does, as it may not be what you expect.
answered Feb 27 at 15:09
bertiebbertieb
5,672112542
5,672112542
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
1
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
add a comment |
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
1
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
Amazing, thank you for that, now I've told it where to look it's worked straight away. I'll look through the documentation as well though like you say just to make sure I understand what's actually being done. Thanks!
– Arron
Feb 27 at 15:39
1
1
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@bertieb The user can't upvote answers due to the lack of reputation.
– slhck
Feb 27 at 16:36
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
@slhck Oh, I thought you could always comment/vote on As to your own Qs; good to know!
– bertieb
Feb 27 at 16:39
add a comment |
When you open a terminal and you're referring to a file name, the shell looks for the file relative to your working directory.
To see your working directory, enter:
pwd
To change to another working directory, enter cd. So if your file is in the folder ~/Downloads/videos, run:
cd ~/Downloads/videos/
You can also drag the file from your Finder to the terminal, that is, if you type:
ffmpeg -i __
^---- your cursor is here
Then you can drag and drop the file to where your cursor is, and it will automatically add the full path to the file.
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
add a comment |
When you open a terminal and you're referring to a file name, the shell looks for the file relative to your working directory.
To see your working directory, enter:
pwd
To change to another working directory, enter cd. So if your file is in the folder ~/Downloads/videos, run:
cd ~/Downloads/videos/
You can also drag the file from your Finder to the terminal, that is, if you type:
ffmpeg -i __
^---- your cursor is here
Then you can drag and drop the file to where your cursor is, and it will automatically add the full path to the file.
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
add a comment |
When you open a terminal and you're referring to a file name, the shell looks for the file relative to your working directory.
To see your working directory, enter:
pwd
To change to another working directory, enter cd. So if your file is in the folder ~/Downloads/videos, run:
cd ~/Downloads/videos/
You can also drag the file from your Finder to the terminal, that is, if you type:
ffmpeg -i __
^---- your cursor is here
Then you can drag and drop the file to where your cursor is, and it will automatically add the full path to the file.
When you open a terminal and you're referring to a file name, the shell looks for the file relative to your working directory.
To see your working directory, enter:
pwd
To change to another working directory, enter cd. So if your file is in the folder ~/Downloads/videos, run:
cd ~/Downloads/videos/
You can also drag the file from your Finder to the terminal, that is, if you type:
ffmpeg -i __
^---- your cursor is here
Then you can drag and drop the file to where your cursor is, and it will automatically add the full path to the file.
answered Feb 27 at 15:09
slhckslhck
163k47450474
163k47450474
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
add a comment |
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
Thank you for the swift reply, I'm now specifying the full file directory for now but it's good to know how to change the working directory when I need to. thanks!
– Arron
Feb 27 at 15:41
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409894%2fhow-do-i-specify-ffmpeg-video-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
