Video playback

Report any Hollywood bugs here
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Video playback

Post by djrikki »

Any idea why video playback of the 480P, (the 720P version exhibits the same behaviour) Buck Bunny I downloaded ages from the Blender site is only playing in Grayscale? Works fine in mplayer/other players.

Here is my code function, nothing especially exciting going on the code.

Code: Select all

Function filemanager:PlayVideo(activefile)
    Calendar:ClearInterval()
    HideDisplay()
    CtrlCQuit(False)
    
    ExitOnError(False)
    StopMusic(1)
    CloseMusic(1)
    ExitOnError(True)
        
	OpenVideo(1, activefile)
	SetVideoVolume(1,"100%")
	video.width = GetAttribute(#VIDEO, 1, #ATTRWIDTH)
	video.height = GetAttribute(#VIDEO, 1, #ATTRHEIGHT)
		
	Local d, h, m, s = base:Milliseconds( GetAttribute(#VIDEO,1,#ATTRDURATION) )
	Local duration
	
	d = base:RoundTo(d,0)
	h = base:RoundTo(h,0)
	m = base:RoundTo(m,0)
	s = base:RoundTo(s,0)
	
	If d > 0
	    duration = d .. ":"
	EndIf
	
	If h > 0
	    duration = duration .. h .. ":"
	EndIf
	
	duration = duration .. m .. ":" .. s
	
    CreateDisplay(#VIDEOPLAYBACKWINDOW, {Width = video.width, Height = video.height, Title = activefile .. "   (" .. GetAttribute(#VIDEO,1,#ATTRFORMAT) .. ") Duration: " .. duration, Active = True, nomodeswitch=true, nohide=true, Pubscreen = application.pubscreen})
    SelectDisplay(#VIDEOPLAYBACKWINDOW)
    
    GetVideoFrame(#STARTVIDEOFRAME, 1, 1)

	ExitOnError(False)
	OpenDisplay(#VIDEOPLAYBACKWINDOW)
	If GetLastError() = 0
		ExitOnError(True)
		DisplayBrush(#STARTVIDEOFRAME, 0,0)
		PlayVideo(1)	

    	SetInterval(1, filemanager_VideoMouse,2000)
	
		base:InstallEventHandler(#VIDEOPLAYBACKWINDOW)
	Else
	    ExitOnError(True)
	    base:SystemRequest(locale[688],locale[689],locale[4],#REQICON_WARNING)
		filemanager:CloseVideo()
	EndIf
	
EndFunction
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Video playback

Post by djrikki »

I can confirm with the new attribute, #ATTRLOADER, that indeed 'avcodec' was being selected and used as the Loader.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Video playback

Post by airsoftsoftwair »

Have you tried to play it using the VideoPlayer examples that comes with Hollywood? Is it gray there as well?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Video playback

Post by djrikki »

Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Video playback

Post by airsoftsoftwair »

Tried this one

http://download.blender.org/peach/bigbu ... nd-fix.avi

with the VideoPlayer and it's not gray but in full nice colours with Hollywood 6 on OS4.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Video playback

Post by djrikki »

Well what the devil is going on... :lol:
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Video playback

Post by airsoftsoftwair »

Maybe check that you're using a color monitor ;)
mbrantley
Posts: 10
Joined: Wed Aug 06, 2014 4:50 am

Re: Video playback

Post by mbrantley »

Any headway on this problem? I created a project in Designer more than a year ago that plays an avi video file.... always played in color before. Now it plays in B&W. Of course all my computer monitors are color. ;) Any ideas? Thanks!
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Video playback

Post by airsoftsoftwair »

Is the problem clearly reproducable on your system or does it only happen sometimes? Does the video also play in B/W when using the VideoPlayer example that comes with Hollywood?
mbrantley
Posts: 10
Joined: Wed Aug 06, 2014 4:50 am

Re: Video playback

Post by mbrantley »

In my case the code was generated by Designer and once was color playback as it should be but now is greyscale 100 percent of the time. I will have some time to test it some more tomorrow and try the videoplayer example code you mention. Thanks for your attention.
Post Reply