VIM1S current situation - console video player

Hello,
For few years i used VIM1’s to work as a digital video player at my project.
I used modified kplayer source code to display MP4 files from framebuffer console - not GUI at all. Main goal was to make it as simple as possible. It worked well.

Now i ordered VIM1S as a next stage (AV1). I thought that migration will be easy.
What i found there is no possibility to use kplayer under VIM1S like i did in VIM1.

What is the purpose? I see that all drivers are loaded, video_ucode.bin also loads well. I have framebuffer driver initialized but kplayer used from VIM3 stals at “PLAYING”.

Can i ask what is the current situation? What is missing?

Hello @Speed666, VIM1, VIM3 and VIM1s are all complete different amlogic platforms, so application based on certain drivers will not work as is if transferred, due to new drivers.

Do you have more details about your modified software, which OS are you running the software on ?

Regards.

I know that they are different. I studied a lot about S905X series. It’s framebuffer drivers, linux drivers etc.
I try to make the same on Ubuntu instalation. I was able to setup regions in CMA for decoder to handle framebuffer decoding but still kplayer from numbqq repo sits on “PLAYING” state with zero movement.

I also preloaded TEE, video firmware and hardware decoding via FFMPEG V4L works well.

In kplayer screen goes just black and nothing shows over HDMI. Btw. they still have bug in HDMI HotPlug Detection like in older drivers :frowning:

@numbqq please check this issue, thank you.

Getting closer…

[ 8432.270730@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.270952@0]  vf_reg_provider Error to notify receiver
[ 8432.271416@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.280129@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.280437@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.281329@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
video codec ok!
[ 8432.310225@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.310458@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.318407@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.318629@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.333250@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.333470@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.344597@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.344827@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.352399@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.352618@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.360238@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.360459@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.368023@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.368237@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.375801@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.376046@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.383646@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.383891@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00
[ 8432.391448@0]  vf_get_receiver_name_inmap:vfm_map:vdec.h264.00
[ 8432.391665@0]  Error: vf_notify_receiver, fail to get receiver of provider vdec.h264.00

Hello @Speed666

Kplayer doesn’t work on VIM1S anymore, you can use gstreamer for hardware decoding.

https://docs.khadas.com/products/sbc/vim1s/applications/hardware-decoding

I fried today my VIMS :frowning: but according to my findings i am able to run kplayer on S905W2 device OEM i have without using ION, just pure AMVIDEO. Do you have source code for libplayer deb package?

I think my approach would work on VIM1S also - i ordered next one.

Your board is electronically damaged ?

Yep. I left it powered on for night and my cat… don’t ask :slight_smile:

If you have access to VIM1S can you check?

Kernel compiled with AMVIDEO, GE2D and FRAMEBUFFER.

Then try to play some h264 mp4 file WITHOUT AUDIO using kplayer or esplayer

I am unable to test at the moment, sorry.

It works. Don’t say that something doesnt work if you don’t check it by yourself.
Proof of concept:

Working actually to make it stable and synchronized with audio. Works on Kahdas VIM1S and other S4 based chips and SC2 also (s905w2)

1 Like

Hello @Speed666

Glad to see that you make it works~

We don’t preinstall the libraries and banaries in the system, so you just used the previous ones?

Took old ones from VIM4. Disassembled Android ones from working devices. Made changes. And it works. Needs some dtb fixes and some code structure fix.

1 Like

According to VIM3S libplayer - you have sources for version 2.0 - can you make it public?

Hello @Speed666

Do you mean this one ?

Yes. It would greatly improve working on this :frowning:

1 Like

Got it working with audio (audio in software, i get wierd null pointer exceptions in codec_init for audio ES stream, like decoder would not set up propertly).

This is screen from htop on VIM1S with 4K video in H264 with AAC being played.

1 Like

Got working H264/HEVC. Now first tries using AV1 - got decoding and image using "/dev/“amstream_dves_av1”

I used decompiled kodi sources from various devices and modified c2play from S905 old 3.14 era to fix it to work with new SC2 and S4 devices.

Interested in further publication? Like vimplayer?

Yes, could you share the player for us the test ?