Jump to content
OceanDad

Changing icon in c4i driver (AV_GEN)

Recommended Posts

I have a modified Pioneer DVD IR driver in a project - I used it as the template to create an IR driver for a Dreamlink T2 IP TV box.  Driver works fine, but of course it shows up with a DVD icon on OSD/apps.  I'd like to modify the icon to something more suitable.

I understand that I will first need to convert it from .c4i to .c4z and then unzip etc.  However, this is an AV_GEN based driver originally, so I can't use Driver Editor 3.0 on it.  I can open it in Driver Editor 2.01, but I'm unsure how to/if it is possible to convert from .c4i to.c4z in DE 2.01.

Can anyone help me out here ?

Share this post


Link to post
Share on other sites

My other thought was to use the Chowmain Android Box IP driver, but this Dreamlink T2 is purely used as a dedicated IPTV box.  Have looked for other drivers for the Dreamlink T2, but to no avail.

Share this post


Link to post
Share on other sites
Understood - but can I convert the .c4i to .c4z with Driver Editor ?
I always use vs code and terminal to save as c4z

Sent from my Pixel 3 using Tapatalk

Share this post


Link to post
Share on other sites

I might be getting over my pay grade here ;)  Perhaps I can find a .c4z DVD driver to use as a start point to create a driver that I can then change the icon on.

Share this post


Link to post
Share on other sites

I have Foxe, and followed along with the video.  Any chance that you can cut and paste your xml code for the changes as shown in the video ?  Will make it much quicker for me ;) 

Share this post


Link to post
Share on other sites

I'll second foxe. Converted my panasonic netflix/youtube drivers for os3 using foxe to edit the code and it worked great. Tedious scaling each icon image by hand but if you have access to the c4z image scaler tool then that automates it

Share this post


Link to post
Share on other sites

No need to resize icons by hand. Use imagemagick.

Run these commands by hand, or create a bat file (if on Windows) or a shell script (if on a *ix OS such a Linux or macOS).

(Assuming imagemagick's executables are in your PATH.)

magick convert deviceicon.png -resize 70x70 70x70.png
magick convert deviceicon.png -resize 90x90 90x90.png
magick convert deviceicon.png -resize 300x300 300x300.png
magick convert deviceicon.png -resize 512x512 512x512.png
magick convert deviceicon.png -resize 1024x1024 1024x1024.png

Example bat file (my first, so not a stellar example, but it gets the job done):

@echo off
SET filename=%1
FOR /F "tokens=2 delims=." %%A IN ("%filename%") DO (set extension=%%A)
FOR %%F IN (70x70,90x90,300x300,512x512,1024x1024) DO (magick convert %filename% -resize %%F %%F.%extension%)

Save, and run as

imageresizer deviceicon.png

Share this post


Link to post
Share on other sites
1 minute ago, msgreenf said:

even better on the mac image resizing is built in the command shell.  So you can do it without any 3rd party utilities 

Cool, didn't know that.

Although the nice thing about multiplatform tools is that you can learn them once and then use them on any system.

(Then again, learning to use native tools has its upsides too.)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...