-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
[Bug]: Preview of MP4 Videos failing to generate with ffmpeg/avconf #984
Comments
I'm very confused. The title says you're missing the preview but you say you can see the preview but not the video? Also what codec is this? This happens with HEVC mostly |
What's in your go-vod logs? |
Where do I find those in case of using Nextcloud AIO and the Memories community container? Looked into the nextcloud-aio-memories container but I only see the binary file there at first glance |
Maybe |
@pulsejet does the container print the logs to stdout? |
It only logs the following:
Nothing else |
Is your transcoding configured right? What does the Memories admin panel say? (you need to set the connect address to point to the external container, and turn on the external transcoder)
Yeah, as soon as you play a video. |
|
Try checking both the Nextcloud and the go-vod logs when you play a video. Nothing shows up anywhere? |
Nope neither in the nextcloud-aio-nextcloud container nor in the nextcloud-aio-memories container and also not in the nextcloud protocolls itself in the admin interface. The only thing that happens is that I hear the sound without the video and after a few seconds I get the Transcoding failed message of which I added the screenshot in this issue few comments above. |
Okay then your Nextcloud isn't talking to the transcoder at all. No idea what's going on here. |
This would explain the black screen as well; browsers can't play HEVC (which your file is), so it just plays the audio. Memories would normally transcode the video with go-vod but that's not working either. |
I the video located on external storage or primary object storage? |
Primary object storage. Only using external storage for a folder that connects to my NAS and retrieves my Paperless-NGX archived files. So in general no video files are stored in external storage. Only in the object storage that is set as primary storage. |
Interesting! I didnt know that this is possible with AIO... |
Sure. Just set everything up as a clean install, didn't store any files and then created a bash shell for the nextcloud-aio-nextcloud container. Then in there you can edit the config.php with vi and add your configuration stuff for the Obect Storage as a primary storage. And then on the other hand you just have to save it, get out and restart everything. Done. Basically it's this part:
|
Just as a note: I would disrecommend to actually do this with AIO since it basically kills AIOs backup solution as your data is not backed up in that case because it doesnt exist locally anymore. @br4yd Please read carefully through the discussion in nextcloud/all-in-one#1807 Also this is the reason why the memories container cannot transcode the video because it is not existing on your disk. Correct @pulsejet? |
Hm files are too much for local storage though because in this case I'd need larger disks which would add up to an amount to expensive to run / host. That's why I am using Object Storage. However when I restore from a backup it should still retrieve everything as it will just reconnect to the Object Storage. The only issue I see is that if my backup is created at 4am and I upload a file at 5am that is uploaded to the object storage, When I then restore the backup the file still exists in Object Storage but isn't there for the Nextcloud because the database on the local system doesn't know about the file. The file therefore stays "in limbo" on the object storage and will never be deleted or accessed again. If uploaded from the Nextcloud again it's just there as a duplicate in the Object Storage. But other than that I don't see any issue restoring from the backup or do I oversee something here? |
Addition: the answer in the thread you links says:
Following that link it basically says installing AIO in docker-compose. So using AIO in docker compose and using Object Storage as Primary Storage is supported as far as I understand. This is the case for my setup. I run everything inside Portainer so basically with Docker Compose. |
Yes, see nextcloud/all-in-one#1807 (reply in thread)
|
Meh in this case I guess I have to reinstall the whole server because backups should at least work without loosing any files in case of a drive failure or whatever... |
I reinstalled now and mounted the object storage via s3fs. I also enabled caching of s3fs and mounted the folder to use it as the datadir for Nextcloud AIO. Will try to imrpove this somehow tomorrow to be able to test if the transcoding issue is gone. Not sure how to make the performance better though. |
Hmm yes. Then also the go-vod stuff is active and can be found from the Maybe I'm missing something but at least I don't see why it's still not working and giving me the |
I guess @pulsejet needs to help debuggin from here... |
Hello, did you have any chance of looking at this issue in the meantime @pulsejet ? |
From the error, this seems like a ffmpeg/driver issue. Likely not related to permissions unless you're running the |
Hello, the following issue is a bug I already reported to nextcloud/server. Upon their request I'll also open an issue here because it is either a nextcloud/server bug or pulsejet/memories bug. See the related comment here.
For the original issue at nextcloud/server please see here.
Bug description
Hello,
when trying to watch a video uploaded by any of my Android devices (Samsung Galaxy S21 FE, Google Pixel 2 XL or Google Pixel 8 Pro (running GrapheneOS)) I'm unable to watch the video. In the overview of Memories and Photos or event the files app I get a preview image. However when clicking on it, I only get sound from the playback but no video. Just a black screen. In addition videos uploaded from an iPhone are playable without any issues.
When doing so I also get an error message in the top right corner telling me to check the protocol because the preview failed. Doing so gives me the following error:
This issue makes it impossible for me to use my Nextcloud for my photo and video backup because it's not really usable if I can't watch the videos I've backed up. I hope there's some fix for that.
I also found some related issues that can maybe help to trace this issue.
In nextcloud/server#1475 there was also some solution as it seems to change something up in some PHP file but due to AIO running inside Docker I don't want to fiddle around and change any of the files of Nextcloud inside the Docker installation. My goal is not to break anything and it wouldn't be a reasonable approach for me as an enduser to change something inside the code (as it seems) to try to fix this just on my end.
Steps to reproduce
Expected behavior
Video should just play as normal
Installation method
Official All-in-One appliance
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Mentioned above in my description
Additional info
NONE
The text was updated successfully, but these errors were encountered: