ffmpeg: File not found, but obviously is accessible
Either I'm doing some very stupid mistake, or I've stumbled upon a very strange bug here. I'm in bash, and I want to convert a .flac to a .mp3 using ffmpeg. Running
ffmpeg -i 3 - Thirty Seconds to Mars - Rescue Me.flac 3 - Thirty Seconds to Mars - Rescue Me.mp3
results in 3 - Thirty Seconds to Mars - Rescue Me.flac: No such file or directory
, although stat
and ls
both show the file with read permissions for the current user, and I can even view its contents using less
.
I suspected a problem with the filename, so I renamed the file to asdf.flac
, which worked, but ffmpeg -i asdf.flac asdf.mp3
still gives me asdf.flac: No such file or directory
.
To exclude permission issues, I already did chmod -R 777 .
to make the directory and all files world-readable and world-writable, still no chance.
Any ideas what could cause ffmpeg to not find the file, although it's obviously there?
linux bash ffmpeg filesystems file-permissions
add a comment |
Either I'm doing some very stupid mistake, or I've stumbled upon a very strange bug here. I'm in bash, and I want to convert a .flac to a .mp3 using ffmpeg. Running
ffmpeg -i 3 - Thirty Seconds to Mars - Rescue Me.flac 3 - Thirty Seconds to Mars - Rescue Me.mp3
results in 3 - Thirty Seconds to Mars - Rescue Me.flac: No such file or directory
, although stat
and ls
both show the file with read permissions for the current user, and I can even view its contents using less
.
I suspected a problem with the filename, so I renamed the file to asdf.flac
, which worked, but ffmpeg -i asdf.flac asdf.mp3
still gives me asdf.flac: No such file or directory
.
To exclude permission issues, I already did chmod -R 777 .
to make the directory and all files world-readable and world-writable, still no chance.
Any ideas what could cause ffmpeg to not find the file, although it's obviously there?
linux bash ffmpeg filesystems file-permissions
1
What is the output oftype ffmpeg
? If it returns a path, what is the output offile /the/path/to/ffmpeg
? Is there something quirky about the filesystem? (e.g. FUSE).
– Kamil Maciorowski
Jan 22 at 11:13
The only way I can think that this would occur is ifffmpeg
has the set user/group ID permission. What doesls -l $(which ffmpeg)
report?
– AFH
Jan 22 at 18:19
Maybe it's something weird in the filename. Can you rename the source to something simple and try operating on that?
– wef
Jan 22 at 22:25
@wef Please re-read the question: "I suspected a problem with the filename, so I renamed the file to asdf.flac, which worked, but ffmpeg -i asdf.flac asdf.mp3 still gives me asdf.flac: No such file or directory."
– slhck
Jan 23 at 12:26
Whoops - seriously didn't notice that. Apologies.
– wef
Jan 23 at 23:22
add a comment |
Either I'm doing some very stupid mistake, or I've stumbled upon a very strange bug here. I'm in bash, and I want to convert a .flac to a .mp3 using ffmpeg. Running
ffmpeg -i 3 - Thirty Seconds to Mars - Rescue Me.flac 3 - Thirty Seconds to Mars - Rescue Me.mp3
results in 3 - Thirty Seconds to Mars - Rescue Me.flac: No such file or directory
, although stat
and ls
both show the file with read permissions for the current user, and I can even view its contents using less
.
I suspected a problem with the filename, so I renamed the file to asdf.flac
, which worked, but ffmpeg -i asdf.flac asdf.mp3
still gives me asdf.flac: No such file or directory
.
To exclude permission issues, I already did chmod -R 777 .
to make the directory and all files world-readable and world-writable, still no chance.
Any ideas what could cause ffmpeg to not find the file, although it's obviously there?
linux bash ffmpeg filesystems file-permissions
Either I'm doing some very stupid mistake, or I've stumbled upon a very strange bug here. I'm in bash, and I want to convert a .flac to a .mp3 using ffmpeg. Running
ffmpeg -i 3 - Thirty Seconds to Mars - Rescue Me.flac 3 - Thirty Seconds to Mars - Rescue Me.mp3
results in 3 - Thirty Seconds to Mars - Rescue Me.flac: No such file or directory
, although stat
and ls
both show the file with read permissions for the current user, and I can even view its contents using less
.
I suspected a problem with the filename, so I renamed the file to asdf.flac
, which worked, but ffmpeg -i asdf.flac asdf.mp3
still gives me asdf.flac: No such file or directory
.
To exclude permission issues, I already did chmod -R 777 .
to make the directory and all files world-readable and world-writable, still no chance.
Any ideas what could cause ffmpeg to not find the file, although it's obviously there?
linux bash ffmpeg filesystems file-permissions
linux bash ffmpeg filesystems file-permissions
asked Jan 22 at 11:04
LukeLRLukeLR
8031419
8031419
1
What is the output oftype ffmpeg
? If it returns a path, what is the output offile /the/path/to/ffmpeg
? Is there something quirky about the filesystem? (e.g. FUSE).
– Kamil Maciorowski
Jan 22 at 11:13
The only way I can think that this would occur is ifffmpeg
has the set user/group ID permission. What doesls -l $(which ffmpeg)
report?
– AFH
Jan 22 at 18:19
Maybe it's something weird in the filename. Can you rename the source to something simple and try operating on that?
– wef
Jan 22 at 22:25
@wef Please re-read the question: "I suspected a problem with the filename, so I renamed the file to asdf.flac, which worked, but ffmpeg -i asdf.flac asdf.mp3 still gives me asdf.flac: No such file or directory."
– slhck
Jan 23 at 12:26
Whoops - seriously didn't notice that. Apologies.
– wef
Jan 23 at 23:22
add a comment |
1
What is the output oftype ffmpeg
? If it returns a path, what is the output offile /the/path/to/ffmpeg
? Is there something quirky about the filesystem? (e.g. FUSE).
– Kamil Maciorowski
Jan 22 at 11:13
The only way I can think that this would occur is ifffmpeg
has the set user/group ID permission. What doesls -l $(which ffmpeg)
report?
– AFH
Jan 22 at 18:19
Maybe it's something weird in the filename. Can you rename the source to something simple and try operating on that?
– wef
Jan 22 at 22:25
@wef Please re-read the question: "I suspected a problem with the filename, so I renamed the file to asdf.flac, which worked, but ffmpeg -i asdf.flac asdf.mp3 still gives me asdf.flac: No such file or directory."
– slhck
Jan 23 at 12:26
Whoops - seriously didn't notice that. Apologies.
– wef
Jan 23 at 23:22
1
1
What is the output of
type ffmpeg
? If it returns a path, what is the output of file /the/path/to/ffmpeg
? Is there something quirky about the filesystem? (e.g. FUSE).– Kamil Maciorowski
Jan 22 at 11:13
What is the output of
type ffmpeg
? If it returns a path, what is the output of file /the/path/to/ffmpeg
? Is there something quirky about the filesystem? (e.g. FUSE).– Kamil Maciorowski
Jan 22 at 11:13
The only way I can think that this would occur is if
ffmpeg
has the set user/group ID permission. What does ls -l $(which ffmpeg)
report?– AFH
Jan 22 at 18:19
The only way I can think that this would occur is if
ffmpeg
has the set user/group ID permission. What does ls -l $(which ffmpeg)
report?– AFH
Jan 22 at 18:19
Maybe it's something weird in the filename. Can you rename the source to something simple and try operating on that?
– wef
Jan 22 at 22:25
Maybe it's something weird in the filename. Can you rename the source to something simple and try operating on that?
– wef
Jan 22 at 22:25
@wef Please re-read the question: "I suspected a problem with the filename, so I renamed the file to asdf.flac, which worked, but ffmpeg -i asdf.flac asdf.mp3 still gives me asdf.flac: No such file or directory."
– slhck
Jan 23 at 12:26
@wef Please re-read the question: "I suspected a problem with the filename, so I renamed the file to asdf.flac, which worked, but ffmpeg -i asdf.flac asdf.mp3 still gives me asdf.flac: No such file or directory."
– slhck
Jan 23 at 12:26
Whoops - seriously didn't notice that. Apologies.
– wef
Jan 23 at 23:22
Whoops - seriously didn't notice that. Apologies.
– wef
Jan 23 at 23:22
add a comment |
1 Answer
1
active
oldest
votes
@kamil-maciorowski pointed me to the right direction.
lukas@Server:~$ type ffmpeg
ffmpeg ist /usr/local/bin/ffmpeg
Which reminded me of a firejail
setup.
lukas@Server:~$ file /usr/local/bin/ffmpeg
/usr/local/bin/ffmpeg: symbolic link to /usr/bin/firejail
Confirmed this. So apparently ffmpeg
is running in a jail. Didn't know that I had firejail
set up on that machine, but running /usr/bin/ffmpeg
directly worked. So there is a restriction of the jail present, that doesn't whitelist input files.
add a comment |
Your Answer
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%2f1396972%2fffmpeg-file-not-found-but-obviously-is-accessible%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
@kamil-maciorowski pointed me to the right direction.
lukas@Server:~$ type ffmpeg
ffmpeg ist /usr/local/bin/ffmpeg
Which reminded me of a firejail
setup.
lukas@Server:~$ file /usr/local/bin/ffmpeg
/usr/local/bin/ffmpeg: symbolic link to /usr/bin/firejail
Confirmed this. So apparently ffmpeg
is running in a jail. Didn't know that I had firejail
set up on that machine, but running /usr/bin/ffmpeg
directly worked. So there is a restriction of the jail present, that doesn't whitelist input files.
add a comment |
@kamil-maciorowski pointed me to the right direction.
lukas@Server:~$ type ffmpeg
ffmpeg ist /usr/local/bin/ffmpeg
Which reminded me of a firejail
setup.
lukas@Server:~$ file /usr/local/bin/ffmpeg
/usr/local/bin/ffmpeg: symbolic link to /usr/bin/firejail
Confirmed this. So apparently ffmpeg
is running in a jail. Didn't know that I had firejail
set up on that machine, but running /usr/bin/ffmpeg
directly worked. So there is a restriction of the jail present, that doesn't whitelist input files.
add a comment |
@kamil-maciorowski pointed me to the right direction.
lukas@Server:~$ type ffmpeg
ffmpeg ist /usr/local/bin/ffmpeg
Which reminded me of a firejail
setup.
lukas@Server:~$ file /usr/local/bin/ffmpeg
/usr/local/bin/ffmpeg: symbolic link to /usr/bin/firejail
Confirmed this. So apparently ffmpeg
is running in a jail. Didn't know that I had firejail
set up on that machine, but running /usr/bin/ffmpeg
directly worked. So there is a restriction of the jail present, that doesn't whitelist input files.
@kamil-maciorowski pointed me to the right direction.
lukas@Server:~$ type ffmpeg
ffmpeg ist /usr/local/bin/ffmpeg
Which reminded me of a firejail
setup.
lukas@Server:~$ file /usr/local/bin/ffmpeg
/usr/local/bin/ffmpeg: symbolic link to /usr/bin/firejail
Confirmed this. So apparently ffmpeg
is running in a jail. Didn't know that I had firejail
set up on that machine, but running /usr/bin/ffmpeg
directly worked. So there is a restriction of the jail present, that doesn't whitelist input files.
answered Jan 23 at 13:45
LukeLRLukeLR
8031419
8031419
add a comment |
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%2f1396972%2fffmpeg-file-not-found-but-obviously-is-accessible%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
1
What is the output of
type ffmpeg
? If it returns a path, what is the output offile /the/path/to/ffmpeg
? Is there something quirky about the filesystem? (e.g. FUSE).– Kamil Maciorowski
Jan 22 at 11:13
The only way I can think that this would occur is if
ffmpeg
has the set user/group ID permission. What doesls -l $(which ffmpeg)
report?– AFH
Jan 22 at 18:19
Maybe it's something weird in the filename. Can you rename the source to something simple and try operating on that?
– wef
Jan 22 at 22:25
@wef Please re-read the question: "I suspected a problem with the filename, so I renamed the file to asdf.flac, which worked, but ffmpeg -i asdf.flac asdf.mp3 still gives me asdf.flac: No such file or directory."
– slhck
Jan 23 at 12:26
Whoops - seriously didn't notice that. Apologies.
– wef
Jan 23 at 23:22