home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.28k forks source link

Media Browser not showing local mp4 files #116842

Closed Solarflor closed 1 week ago

Solarflor commented 1 week ago

The problem

I'm able to access to my_media but I cannot see the content (MP4 files) image

media is on my Synology NAS image

What version of Home Assistant Core has the issue?

core-2024.5.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

media source

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

mib1185 commented 1 week ago

Hi @Solarflor How did you integrate this media source? Is there anything in your logs? Was it working before? If yes, with which HA version?

Solarflor commented 1 week ago

How did you integrate this media source? I just connected to network storage from the settings menu. image image

Is there anything in your logs? which log I should see? Was it working before? This is the first time I'm trying to use it If yes, with which HA version?

Solarflor commented 1 week ago

When I try to upload a mp4 directly from Media I found the following error

image

under Media I have also Frigare Clips and Recordings and I could see them image image image

mib1185 commented 1 week ago

maybe some permissions issue on the NAS with the user you've used to connect from HA to the network share?

Solarflor commented 1 week ago

But I can access to the folders although I cannot see the content. I will investigate about the permissions anyway.

Solarflor commented 1 week ago

The permission seems ok. it seems the problem is due to the type of files from Apple Music, extension M4P. Is this possible?

mib1185 commented 1 week ago

ahhh ... was confused by the title and the textual description of this issue - it always says mp4 nor m4p. yes, this is the reason, since the mimetype of the file (is guessed based on the filename extension) needs to be one of "audio", "video", "image" - but m4p is not a recognized filenameextension

Solarflor commented 1 week ago

So there is no way to see them?

mib1185 commented 1 week ago

since it is just a name, you can try to change it to MP4 - but be aware that the media player needs to support this format