Android build with DTV Support

example:

The directory ‘device-khadas’

  • Copy the file ‘0001-DVB-add-support-for-DVB.patch’ to the directory ‘device/khadas’
  # copy device-khadas/0001-DVB-add-support-for-DVB.patch ~/$PROJECT/device/khadas
  • Copy the file ‘0002-DVB-add-build-config-for-VTV-application-KVIM2.patch’ to the directory ‘device/khadas’
  # copy device-khadas/0002-DVB-add-build-config-for-VTV-application-KVIM2.patch ~/$PROJECT/device/khadas
  • Go to the directory ‘device/khadas’
  # cd ~/$PROJECT/device/khadas
  • Apply the patch
  # git am 0001-DVB-add-support-for-DVB.patch
  # git am 0002-DVB-add-build-config-for-VTV-application-KVIM2.patch
1 Like

This patch fails:

device/khadas/0001-DVB-add-support-for-DVB.patch

All other patches succeed.

Problem is that device/khadas/0001-DVB-add-support-for-DVB.patch is not corresponding to kvim/init.amlogic.board.rc file that is on GitHub.

Used DVB_Patch uploaded on 2017-10-10.

1 Like

You can modify this file manually.
I will verify it tommorow because I’m not at office now.

Modified manually, but stuck on build error:

Update:

This error is shown when patches were applied on never built sources. Make sure to build kvim2, then apply patches and rebuild again - then it succeeds.

It doesn’t matter about DVB patch. Maybe you need to check your PC host environment.

This is how I solved:

  1. Download sources
  2. Build kvim2 as usual
  3. Apply patches
  4. Build again

If patches were applied on sources that were not built yet, build fails on mpeg part. If it was built before applying the patch, it worked.

Anyway, I have another issue - VTV app fails channel search - whether it’s automatic or manual, as soon as it is initated it stops and comes back to start window of app. The same happens with VIM2_Nougat_vTV_V170930 firmware.

I have tried with DVB-T (Lithuania) antenna plugged in.

And one more thing - can I make VTV app not autostart when Android boots up? I want to launch it myself when wanted.

I didn’t find the issue from built error message provided by you.
The amffmpeg don’t matter about DVB Patch. Maybe you need to provide more build error message for me.
Thanks.

@Frank.DTV Can you answer this question? Thanks very much.

hi Gytis

Anyway, I have another issue - VTV app fails channel search - whether it’s automatic or manual, as soon as it is initated it stops and comes back to start window of app. The same happens with VIM2_Nougat_vTV_V170930 firmware.

I have tried with DVB-T (Lithuania) antenna plugged in.

---- I will check and give you reply soon

And one more thing - can I make VTV app not autostart when Android boots up? I want to launch it myself when wanted.

----- I will add one setting option to let user can choose auto start or not for next version release.

1 Like

Sorry for that. You can download fixup_dvb.7z to fixup it on VIM2_Nougat_vTV_V170930. The instruction file ReadMe is inclued in fixup_dvb.7z
Also I have updated the DVB_Patch for it.

1 Like

Thanks, applying current version of DVB_Patch (or to be specific - 0003-DVB-fixup-application-quit-abnormal-while-DVB-T-T2-C.patch) solves the issue :+1:

I was able to build Nougat with Google Apps, SuperSU and VTV :wink: I ran DVB-T scan in Lithuania, got the channels found and it works. Also tried recording broadcast - all smooth.

However:

We really need a way to add AC3 support for audio stream. Otherwise there is not so much use having S/PDIF port :neutral_face:

As I understand this will be solved. When can we expect new version? Any plans to open source it?

As yet we don’t have sources of VTV app probably there is no way how to integrate OSCam, Ccam or any other software based (CONAX-like) decoder? I have USB smart card reader which I would like to use for decoding DVB-C stream.

Along with other nice ARM-based devices I do have X Solo mini3 set-top box which runs on OpenPLI. Under this Linux-based system extensions are available (like OpenWebif interface) and one very valuable is softcams - OSCam can be added and it works very nice :smiley: Can we have something similar with VTV app?

I saw there is Android build of OSCam (sources on GitHub) - this might be useful.

1 Like

dear gytis
oscam is supportted already
please goto menu --> Installation --> DVB/S/S2. And then Input “999999” by remote control
it will open a hiden menu, then you will see CCCam, BISS there.

2 Likes

Thanks, I can access menu :slightly_smiling_face: Now I need to figure the way how to add my cable provider keys from smart card. I’ll maybe have OSCam server running on my OpenPLI powered device and will try to get Khadas VTV’s CCam connecting to it.

Another issue DVB-C scan did not find any channels… Is it expected if all channels are encrypted? Shouldn’t they be found anyway? Channel scan set to All.

@Gytis
you can access oscam by internet browser : http://aaa.bbb.ccc.ddd:8888/ (aaa.bbb.ccc.ddd is your VIM2 ip address)

for DVB-C scan , can you give me more information, if you turn on scan type to ALL, it should found all channels (include scrambled channels).

1 Like

I did turn on scanning for any channels and any type (radio or tv) but search found no channels :neutral_face: Can DVB-C be somehow disabled by default in software?

I will try to find technical specification of my DVB-C cable provider.

@Frank.DTV any idea on open sourcing the VTV app code and the library code…?

1 Like

@Ganesh
Sorry, but we don’t have plan to open the source code of the VTV app. Because we have also other OTT+DVB settop box using similar software struct or code.

@Gytis
image
-----1. Did you check other mode of the signal, e.g DVB S/S or DVB T/T2, were they working (Scan channels, Watching)?

-----2. The software will not disable DVB-C function.
Did the transponder locked while you do DVB-C scanning?

I did check with DVB-T - it finds channels and shows broadcasts as expected.

While DVB-C scan runs through until 100% but no channels are found - neither free nor scrambled. Is there any check I could perform on DVB-C specifically?

@Gytis

image
Can you take a small video while you scan DVB-C channels?

Note : DVB-C use the same antenna input port as DVB-T.

Yes, I plugged DVB-C table into the same port as previously tried DVB-T (which worked).

Here is the video of DVB-C channel scan: https://www.youtube.com/watch?v=GWIzGBCLsSI