- Home /
Black MovieTexture with Audio streaming on Mac?
I'm streaming a couple of videos from a website into a Unity presentation. The files have been exported to .ogv with FFMPEG using the following parameters and each have an audio stream:
ffmpeg -i C:\MyMovie.mov -r 30 -acodec libvorbis -ac 2 -vcodec libtheora -b:v 2000k -s 1280x720 MyMovie.ogv
I also have a mechanism that preloads the movie in the background and caches it locally for me. On PCs everything works great in all major browsers: MSIE, Firefox, Chrome, Opera and Safari. On Macs - any generation with either Intel or PPC CPUs - in any major browser - Safari, Chrome or Firefox - the videos are also great on the first playthrough. However if you get a video started and then refresh the browser, the next time around the video is black but the audio channel plays fine. The code that cues the next scene load after the movie is finished works as well; the only problem is that the video channel is black.
Once you restart the browser, it's fine, until you refresh again. It's very consistent on every browser on every Mac and on no browsers on no PCs. Also, when this occurs, all videos in the presentation are affected.
I've tried:
cache busting by appending a random value on the end of the video URL
turning off my own caching system
turning off my preloader
disabling browser cache
re-encoding the video with no audio channel
loading my movie channel additively at the beginning to make sure there isn't any funky destruction going on
disabling the audio source
added a debug console to the presentation to output what is going on with the movie player; according to the output, everything is preloading, caching and playing normally
The player version and engine version I'm using is 4.2.2f2.
I'm testing primarily on:
A) PC
i7-3930k 3.2 GHz CPU Asus Rampage IV Extreme mobo 16 GB 933 MHz DDR3 RAM Dual Radeon HD 6800 Windows 7
B) 15-inch early 2008 MacBook
GHz CPU 4 GB 667 MHz DDR2 RAM nVidia Geforce 8600M GT 512 MB Mac OS X 10.8.3
C) 15-inch late 2008 MacBook
2.93 GHz Intel Core 2 Duo 8 GB 1067 MHz DDR3 RAM nVidia Geforce 9400M GT 256 MB Mac OS X 10.8.3
My client also tested on his PC and verified that issue does not occur on PC.
Any ideas?
Sorry, meant to respond here. I'm having the same issue, did you figure out a way to fix this?
Your answer
Follow this Question
Related Questions
WWW.movie never get ready to play ? 0 Answers
Problem playing audio for streaming video 0 Answers
WWW in Editor getting request with null attributes 1 Answer
Splash videos on android and iOS? 0 Answers
Unity for showing a html stream 0 Answers