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

Exclude video #24

Closed
darrepac opened this issue Jul 12, 2022 · 13 comments
Closed

Exclude video #24

darrepac opened this issue Jul 12, 2022 · 13 comments

Comments

@darrepac
Copy link

darrepac commented Jul 12, 2022

Hi,

It seems that I will have to import again my 40k assets library. It is quite slow and particularly due to video files (transcoding).
Is there a way to:

  • exclude video files (in order to speed up first scan) and include it later
  • do not transcode video files. I could want to stream directly my video files instead of having a transcoded version of it (and it would speed up the scan by avoiding ffmpeg transcoding)

thanks

@fuji246
Copy link
Contributor

fuji246 commented Jul 16, 2022

Currently not supported yet, will discuss with team on this.

@fuji246
Copy link
Contributor

fuji246 commented Aug 7, 2022

We will provide cmd line option to skip video transcoding when import.

@fuji246
Copy link
Contributor

fuji246 commented Aug 28, 2022

@darrepac , exclude video is added, you can update lomoc to try again.

+				cli.BoolFlag{
+					Name:  "no-video, nv",
+					Usage: "not scan video files. This is to speed up the first import process",
+				},

@darrepac
Copy link
Author

darrepac commented Aug 29, 2022 via email

@dwebfan
Copy link
Contributor

dwebfan commented Aug 30, 2022

@darrepac sorry to hear that. Can you please describe the problem more? Do you mean restarting container will resume last import automatically?

Importer is a little weak on our side now. It is the top priority now, and will update you shortly.

Regarding this suggestion, just wonder if you use our mobile app to watch video before, and what is your user experience? How is your network speed? and how powerful is your server CPU? Is it enough to download original resolution video? Do you like the idea to do just in time transcoding using ffmpeg while downloading?

  • do not transcode video files. I could want to stream directly my video files instead of having a transcoded version of it (and it would speed up the scan by avoiding ffmpeg transcoding)

@darrepac
Copy link
Author

@darrepac sorry to hear that. Can you please describe the problem more? Do you mean restarting container will resume last import automatically?

Well, I don't really understand what's going on. I just restarted the container to check the logs.
I see:
time="2022-08-30T18:51:48Z" level=info msg="start generate missed preview"
then a lot of message like this (still counting):
time="2022-08-30T18:52:28Z" level=warning msg="[/media/primary/pascal/Photos/master/2018/07/25/20180725_77850.jpg /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850] - /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850_640_0.webp exif analysis got: exiftool analysis /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850_640_0.webp got Error: File not found - /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850_640_0.webp\n 1 files could not be read\n 0 output files created\n: exit status 1"

@darrepac
Copy link
Author

Importer is a little weak on our side now. It is the top priority now, and will update you shortly.

Regarding this suggestion, just wonder if you use our mobile app to watch video before, and what is your user experience? How is your network speed? and how powerful is your server CPU? Is it enough to download original resolution video? Do you like the idea to do just in time transcoding using ffmpeg while downloading?

  • do not transcode video files. I could want to stream directly my video files instead of having a transcoded version of it (and it would speed up the scan by avoiding ffmpeg transcoding)

First:
My server is a dell latitude laptop E6410 (intel Core i5 M560 and ssd for database and cache, the original photos being on an hdd).
Obivously it is not the most powerful machine, but it is not a Raspberry either.

Second:
I did not really get the occasion to well test the lomorage app due to 2 main problems: import is running since weeks (so while it is importing I cannot do much things on the server). Could make sense to lower the priority of the import process by the way in order to let the server run is other tasks well. Second problem was my wan network which is quite weak but I can test on my lan network for the moment (I should get a gigabit fiber internet at home the Sept 9).

My suggestion is may-be not well written and should be more written from user point of view instead of technical point of view: lomorage is too too slow importing video. All other solutions I tested were faster (from not transcoding, like plex) to may-be 1 transcoding but lomorage is doing many resolution transcoding... or may-be ffmpeg is less optimized, I don't know.

Hope it helps :)

@darrepac
Copy link
Author

darrepac commented Sep 2, 2022

@darrepac sorry to hear that. Can you please describe the problem more? Do you mean restarting container will resume last import automatically?

Well, I don't really understand what's going on. I just restarted the container to check the logs. I see: time="2022-08-30T18:51:48Z" level=info msg="start generate missed preview" then a lot of message like this (still counting): time="2022-08-30T18:52:28Z" level=warning msg="[/media/primary/pascal/Photos/master/2018/07/25/20180725_77850.jpg /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850] - /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850_640_0.webp exif analysis got: exiftool analysis /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850_640_0.webp got Error: File not found - /media/primary/pascal/Photos/preview/2018/07/25/20180725_77850_640_0.webp\n 1 files could not be read\n 0 output files created\n: exit status 1"

I stopped the container waiting for your insights cause I am a bit afraid that it is resetting again all the db…

@dwebfan
Copy link
Contributor

dwebfan commented Sep 3, 2022

@darrepac Is it possible to tar all log files under /opt/lomorage/var/log, and send to me dwebfan@gmail.com. I guess it is related with the files deleted at original location, but not so sure, so hope to get more logs to analysis. Thanks again.

@darrepac
Copy link
Author

darrepac commented Sep 3, 2022

There is nothing in /opt/lomorage/var but I sent you by email the log from the app
image

@fuji246
Copy link
Contributor

fuji246 commented Oct 9, 2022

It's already added:

  1. import command line tool use "--no-video" option to skip video import, https://docs.lomorage.com/docs/Usage/lomorage-client/#import-from-one-existing-folders
  2. when running lomod, use --preview-size-video=0 to disable video preview generation , https://github.com/lomorage/lomod#preview-size-video

@darrepac
Copy link
Author

darrepac commented Oct 11, 2022 via email

@fuji246
Copy link
Contributor

fuji246 commented Oct 29, 2022

close it now, feel free to reopen if it still happens.

@fuji246 fuji246 closed this as completed Oct 29, 2022
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

3 participants