Unable To cast to Chromecast specifics videos

Hi all, Hope you are doing great!

I found this issue where I can cast specific videos to my chromecast, the weird thing is that i am able to cast photos and other videos.

After a lot of troubleshooting i tried to cast from VLC the video and, what you know it didn’t work either, but it gave me the error 104 that after googling it, I found out that the codec was not supported in my chromecast, so i transcode it with ffmpeg using this command:

ffmpeg -i in.mp4 -c copy -map 0 -brand mp42 out.mp4

After that I could play the video on the chromecast using VLC but still no luck with Home-assistant, It still appears this error:

Failed to cast media http://172.16.0.22:8123/media/local/Share/{...} from internal_url (http://172.16.0.22:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

I am wondering if someone is facing the same issue, I will continue to troubleshoot this to tried to find an answer…