Closed vitalogy closed 8 years ago
Hi Michael,
I have no hardware acceleration when running xbmc on my cubietruck. The following error appears in the xbmc.log every time the cubietruck should play a video (remote: ERROR: A10: open failed. (-4) Playing videos falls back to software acceleration ...
This is a known issue on the A20. By default we are trying to use the newer AllWinner blobs. These require a certain kernel driver, which is not present in sunxi-3.4. I tried to add it (backport from orginal 3.3, not included at the moment), but I could not yet get it to work in the first place. AFAIK, nobody ever has. I would not go so far to say that it isn't possible at all, but I did not find the time and the mood to do further research in this area. The best I got was some colourful pixel noise...
If you take a look at:
https://github.com/OpenBricks/openbricks/tree/master/packages/multimedia/libcedarx/build
you can see the difference between the A20 and the A10 (on which hardware acceleration at least partially works). You can try to use the A10 blob (api_version=""). I did only a very brief test on that approach and ISTR that it did not work either. But as stated: I simply did not invest so much time into this to say that it's not doable.
Any help is welcome...
Ruediger "Rudi" Ihle
Hi Rudi,
ok with your suggestion i get it working ... hmmm, partialy
Big_Buck_Bunny.720p.surround.avi - plays well, cpu @ 20%, but with fast-forward/jump forward the picture is then jerking, sounds plays further without failure
13:50:43 T:3046084608 NOTICE: DVDPlayer: Opening: /videos/Big_Buck_Bunny.720p.surround.avi 13:50:43 T:3046084608 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED 13:50:43 T:2976863328 NOTICE: Thread DVDPlayer start, auto delete: false 13:50:43 T:2976863328 NOTICE: Creating InputStream 13:50:43 T:2976863328 NOTICE: Creating Demuxer 13:50:43 T:2976863328 NOTICE: Opening video stream: 0 source: 256 13:50:43 T:2976863328 NOTICE: Creating video codec with codec id: 13 13:50:43 T:2976863328 NOTICE: A10: using hardware rendering. 13:50:43 T:2976863328 NOTICE: A10: CEDARV_FORMAT: 2 13:50:43 T:2976863328 NOTICE: A10: CEDARV_SUBFORMAT: 3 13:50:43 T:2976863328 NOTICE: A10: CEDARV_CONTAINERFORMAT: 0 13:50:43 T:2976863328 NOTICE: Creating video thread 13:50:43 T:2866320480 NOTICE: Thread DVDPlayerVideo start, auto delete: false 13:50:43 T:2866320480 NOTICE: running thread: video_thread 13:50:43 T:2976863328 NOTICE: Opening audio stream: 1 source: 256 13:50:43 T:2976863328 NOTICE: Finding audio codec for: 86019 13:50:43 T:2976863328 NOTICE: Creating audio thread 13:50:43 T:2857931872 NOTICE: Thread DVDPlayerAudio start, auto delete: false 13:50:43 T:2857931872 NOTICE: running thread: CDVDPlayerAudio::Process() 13:50:43 T:2857931872 NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through) 13:50:43 T:2866320480 NOTICE: fps: 24.000000, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720 13:50:43 T:2866320480 NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (16) 13:50:43 T:3046084608 NOTICE: Using GL_TEXTURE_2D 13:50:43 T:3046084608 NOTICE: CLinuxRendererA10: Using A10 render method 13:50:44 T:2866320480 NOTICE: A10: no frames. free queue.
Sintel.2010.1080p.mkv - no picture, cpu @ 30%-40% - sounds play
14:03:26 T:3046084608 NOTICE: DVDPlayer: Opening: /videos/Sintel.2010.1080p.mkv 14:03:26 T:3046084608 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED 14:03:26 T:2857931872 NOTICE: Thread DVDPlayer start, auto delete: false 14:03:26 T:2857931872 NOTICE: Creating InputStream 14:03:26 T:2857931872 NOTICE: Creating Demuxer 14:03:27 T:2857931872 NOTICE: Opening video stream: 0 source: 256 14:03:27 T:2857931872 NOTICE: Creating video codec with codec id: 28 14:03:27 T:2857931872 NOTICE: A10: using hardware rendering. 14:03:27 T:2857931872 NOTICE: A10: CEDARV_FORMAT: 4 14:03:27 T:2857931872 NOTICE: A10: CEDARV_SUBFORMAT: 0 14:03:27 T:2857931872 NOTICE: A10: CEDARV_CONTAINERFORMAT: 0 14:03:27 T:2857931872 NOTICE: Creating video thread 14:03:27 T:2926621792 NOTICE: Thread DVDPlayerVideo start, auto delete: false 14:03:27 T:2926621792 NOTICE: running thread: video_thread 14:03:27 T:2857931872 NOTICE: Opening audio stream: 1 source: 256 14:03:27 T:2857931872 NOTICE: Finding audio codec for: 86019 14:03:27 T:2857931872 NOTICE: Creating audio thread 14:03:27 T:2976863328 NOTICE: Thread DVDPlayerAudio start, auto delete: false 14:03:27 T:2976863328 NOTICE: running thread: CDVDPlayerAudio::Process() 14:03:27 T:2857931872 NOTICE: Opening Subtitle stream: 2 source: 256 14:03:27 T:2976863328 NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through) 14:03:27 T:2926621792 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
Now, i must go to work. Will test with debug in xbmc later.
Grüsse MichaeL
There are known issues with certain MPEG4 files. These have been for a long time and AFAIK any attempt to get AllWinner fix their blobs failed. There was even a hack to use the Android versions of these files on Linux, which at least on the A10 partly worked. There was hope that the newer blobs provided with the A20 would improve things, but I think nobody has got them to work at all. There were several attempts to reverse engineer the CedarX libs but I think none of them reached a fully functional state.
BTW, I did a short test last week and it looks like we have a regression. Some videos showed a strange stuttering (i.e. repeated frames) which I did not notice before. Maybe this is related to my kernel changes in order to improve HDMI video mode detection / switching.
I also noticed a noise burst when switching back from AC3 passthrough to PCM audio. Looking a the kernel driver revealed that the is no proper handling of the channel status bits (i.e. IEC958 mixer control) implemented :(
Closing, no more activity ;)
I have no hardware acceleration when running xbmc on my cubietruck. The following error appears in the xbmc.log every time the cubietruck should play a video (remote: ERROR: A10: open failed. (-4) Playing videos falls back to software acceleration ... the video is sometimes jerking by at near 100% cpu usage.
here ist a debug log playing big buck bunny from sdcard:
ls -l /dev/{ump,disp,cedar_dev,mali}
regards MichaeL