Send correct Mimetype? (RaspberryPi, BubbleUPnP, Chromecast)
Posted: Fri May 30, 2014 2:02 am
I'm trying to setup UMS on my RaspberryPi, so I can use BubbleUPnP on my Android devices as the DLNA-client to start the Video's on my Chromecast. Since almost all of my videos are in a Chromecast-compatible format (mkv & mp4) and since the raspberry is way too slow to do any transcoding, UMS should not do any transcoding at all. In the few cases where transcoding is required, this can be done by BubbleUPnP Server on my laptop.
While I have the basics working, I'm struggling with one problem: all videos (avi, mp4, mkv,..) seem to be sent with the incorrect Mimetype 'video/mpeg', as BubbleUPnP show all the video as being of type 'MPEG'. Since BubbleUPnP itself checks the Mimetype for Chromecast compatibilty it refuses to play the videos on the Chromecast (except when I have the BubbleUPnP sever running on my laptop).
If I configure the 'Android.conf' renderer with (as explained here)
Then BubbleUPnP sees all the videos as 'mp4' and succesfully plays them on the Chromecast. However this obviously breaks the transcoding features of BubbleUPnP, as it now basically can't detect incompatible videos anymore as they are all compatible as far as BubbleUPnP is concerned.
So I'm wondering how I can get UMS to send the correct Mimetypes for each videotype so BubbleUPnP can correctly play the compatible files and transcode the incompatible ones?
I have been trying many combinations with the 'Supported =' options in Android.conf, such as:
But those lines seem to be completely ignored by UMS. I'm completely lost as how to accomplish this. It can't be that hard, or such a strange idea, to just send the correct Mimetypes, so any help in what I'm doing wrong is appreciated.
While I have the basics working, I'm struggling with one problem: all videos (avi, mp4, mkv,..) seem to be sent with the incorrect Mimetype 'video/mpeg', as BubbleUPnP show all the video as being of type 'MPEG'. Since BubbleUPnP itself checks the Mimetype for Chromecast compatibilty it refuses to play the videos on the Chromecast (except when I have the BubbleUPnP sever running on my laptop).
If I configure the 'Android.conf' renderer with (as explained here)
Code: Select all
MimeTypesChanges = video/mpeg=video/mp4
So I'm wondering how I can get UMS to send the correct Mimetypes for each videotype so BubbleUPnP can correctly play the compatible files and transcode the incompatible ones?
I have been trying many combinations with the 'Supported =' options in Android.conf, such as:
Code: Select all
MediaInfo = true # (also tried false etc)
Supported = f:mp4 m:video/mp4
Supported = f:mkv m:video/x-matroska