Opened 15 years ago

Closed 15 years ago

#5831 closed bug (fixed)

mp4 video losing colors

Reported by: khallebal Owned by: dlmcpaul
Priority: normal Milestone: R1
Component: Audio & Video Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description (last modified by dlmcpaul)

when playing an mp4 movie the colors fade to grey and come back again to normal every few seconds til the movie is finnished; but that occurs only when playing with the mediaplayer not with vlc,and the cpu goes 100%. i'm using the R1A2 rc rev:36447.

Interesting, I see 2 things:

  1. Quite a lot of errors from the H264 decoder in the stream.
  2. The preferred output is RGB24_BIG but we reset to RGB32.

So some questions.

  1. Are you able to upload the video or a sample?
  2. Is your screen set to 24bit?

From your description I suspect that the RGB32 is being read as RGB24. Are you able to test this by changing the screen to a true 32 bit?

Attachments (6)

Capture d'écran 1.png (200.4 KB ) - added by khallebal 15 years ago.
listdev (1.3 KB ) - added by khallebal 15 years ago.
mediaplayer output (9.6 KB ) - added by khallebal 15 years ago.
sysinfo (1.5 KB ) - added by khallebal 15 years ago.
mp4_reader.zip (71.7 KB ) - added by dlmcpaul 15 years ago.
mp4_reader plugin
mediaplayer output.2 (147.3 KB ) - added by khallebal 15 years ago.

Download all attachments as: .zip

Change History (17)

comment:1 by anevilyak, 15 years ago

Owner: changed from nobody to dlmcpaul
Status: newassigned

by khallebal, 15 years ago

Attachment: Capture d'écran 1.png added

by khallebal, 15 years ago

Attachment: listdev added

by khallebal, 15 years ago

Attachment: mediaplayer output added

comment:2 by dlmcpaul, 15 years ago

Description: modified (diff)
Status: assignedin-progress

comment:3 by khallebal, 15 years ago

my screen is set to 32bit how do i upload the video or a sample? the file is too big 13MB

in reply to:  3 ; comment:4 by dlmcpaul, 15 years ago

Replying to khallebal:

my screen is set to 32bit how do i upload the video or a sample? the file is too big 13MB

Try using a site like this http://www.filedropper.com/ and send me the link

dlmcpaul AT gmail.com

in reply to:  4 comment:5 by khallebal, 15 years ago

Replying to dlmcpaul:

Replying to khallebal:

my screen is set to 32bit how do i upload the video or a sample? the file is too big 13MB

Try using a site like this http://www.filedropper.com/ and send me the link

dlmcpaul AT gmail.com

update: you might want take a look at ticket #5758 these 2 problems may related even though it's about a different graphics card?

comment:6 by dlmcpaul, 15 years ago

My testing of the file shows the issue occurs when frames are dropped. Looking at your logs it is clear that decoding is not happening fast enough for the video to play.

Out of curiousity what CPU are you using? My Atom CPU is not fast enough but it seems to be faster than yours. Could you attach a sysinfo?

I am working on some changes to the mp4 reader that might help with dropped frames, it should resync on a sync frame

Performance can be increased by using a gfx card with supported overlay but at the moment turning on some of the ffmpeg optimisations is not possible although we might retry with the 0.51 release.

I will keep the file as a test case and see if I can improve it on my Atom CPU

by khallebal, 15 years ago

Attachment: sysinfo added

comment:7 by dlmcpaul, 15 years ago

Cool thanks. Another question sorry.

How much cpu does VLC use decoding that video?

Just want to understand how far behind we are :-|

in reply to:  7 comment:8 by khallebal, 15 years ago

Replying to dlmcpaul:

Cool thanks. Another question sorry.

How much cpu does VLC use decoding that video?

Just want to understand how far behind we are :-|

i lost the file i but tried with another one,so with vlc it goes up between 60- 80% of cpu usage,but if i double the window size it goes up to 100%,and if i try to replay it it takes several seconds to start the video and drops alot of frames and complains about a slow pc.

comment:9 by dlmcpaul, 15 years ago

Can you test with this new mp4_reader?

You may want to save your old mp4_reader plugin.

by dlmcpaul, 15 years ago

Attachment: mp4_reader.zip added

mp4_reader plugin

by khallebal, 15 years ago

Attachment: mediaplayer output.2 added

in reply to:  9 comment:10 by khallebal, 15 years ago

Replying to dlmcpaul:

Can you test with this new mp4_reader?

You may want to save your old mp4_reader plugin.

i tried the mp4-reader,the CPU goes up to 100% and the video is severly stuttering. but the "grey effect" is gone. i've sent you the output.

comment:11 by dlmcpaul, 15 years ago

Resolution: fixed
Status: in-progressclosed

Ok I have implemented the changes I made to the mp4_reader I sent you.

Seeking of video should be better and the issue with the gray output should be fixed (off by 1 frame when seeking)

There were some performance changes done as well but I don't expect them to help with your playback. The h264 decoder still needs more of the ffmpeg performance patches.

Note: See TracTickets for help on using tickets.