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

Debian 10, not able to open any mediafile, with error 'the media you tried to open does not exist'. #937

Closed
Suitear opened this issue Nov 26, 2021 · 8 comments

Comments

@Suitear
Copy link

Suitear commented Nov 26, 2021

In order to make it easier for me to help you, I ask that you please try these things first:

Share information to help me understand

  • If you have an issue cutting a particular file, please also share the file, if possible. (or mail a link to [email protected] if private.) Also please try to cut it with the ffmpeg command line directly.
  • If you have a problem or an unexpected bug or crash, please open developer tools after starting LosslessCut and before doing the failing operation. Then share the output from the javascript Console. (Menu: Tools > Toggle Developer Tools)
  • Please provide the error report if you got one (Menu: Help -> Report an error)

Describe the bug
A clear and concise description of what the bug is.

losslesscut cant find any media files in my home folder and its sub-folders.
when I tryied to drag one mediafile (.mp4) into losslesscut, it says error as follows.
image

I installed losslesscut via snap store.

image

{
"state": {
"filePath": "",
"externalStreamFiles": [],
"mainStreams": [],
"copyStreamIdsByFile": {},
"cutSegments": [
{}
],
"rotation": 360,
"shortestFlag": false
},
"platform": "linux",
"version": "3.40.0"
}

@mifi
Copy link
Owner

mifi commented Jan 11, 2022

Hi. Does it work with the non-snap version from github? Does it work with other versions? can you see if the ffmpeg path in the error message actually exists and try to run it from the command line?

@schwupp
Copy link

schwupp commented Feb 6, 2022

Same issue here. installed 3.42.0 via Ubuntu 21.10 flathub. All files in home directory are not seen in open dialog or error message 'the media you tried to open does not exist' when drag/drop. If i move the file to i.e. ~/Downloads, it works perfectly.

@mifi
Copy link
Owner

mifi commented Feb 13, 2022

Is this an issue only with snap/flathub or the same issue with version downloaded here from github?

@Suitear
Copy link
Author

Suitear commented Feb 17, 2022 via email

@mifi
Copy link
Owner

mifi commented Feb 19, 2022

losslesscut cant find any media files in my home folder and its sub-folders.
when I tryied to drag one mediafile (.mp4) into losslesscut, it says error as follows.

This error message (the media you tried to open does not exist) in the first screenshot is caused by the fs.access method throwing an error. Meaning losslesscut either cannot find or doesn't have access the file. Could you check the developer tools for any error, as well as the path of the file that is being sent to losslesscut?

I installed losslesscut via snap store.

also here if you could check if the file /snap/losslesscut/93/resources/ffmpeg exists?

Neither the LosslessCut-linux.AppImage file on github nor Snap/Flathub

Same error for Image? (the media you tried to open does not exist)

@nekohayo
Copy link

The flathub flatpak package only sandboxes this app to the "Public", "Download" and "Videos" folders by default. I was encountering the same error, but by using flat seal I was able to edit this app's permissions on my system, to add more folders (such as /tmp, or the area where my SD cards get mounted, etc.) to the allowed folders it can access.

That being said, I think the app should detect such situations and show more accurate and helpful error messages. "The file does not exist" is not entirely accurate from the user's point of view, it can rather be assumed that "Lossless Cut does not have permissions to access that file due to sandboxing" or something. It could try to inform the user of which directories the app has access to (if it can actually know that) or that tools like "flat seal" exist.

@mifi
Copy link
Owner

mifi commented Feb 20, 2022

TBH I don't know how to differentiate between the case where the app is sandboxed and cannot access a file vs a file is not accessible because of lacking permissions, because afaik they will give the same error code from the operating system. However I agree that "the file does not exist" is not a very good error and should be improved.

@mifi
Copy link
Owner

mifi commented Feb 20, 2022

have now improved the error so it should say that it doesn't have permission to open the file.

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

No branches or pull requests

4 participants