Looking for Video FLV conversion and Color Picker

Questions about NeoBook PlugIns

Moderator: Neosoft Support

UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Looking for Video FLV conversion and Color Picker

Post by UltraVox »

Hello all,

I am looking for a possible plugin to convert a video, for example a .avi file (or others) to a .flv file.
It's for use in the excellent PFlashAssist plugin Canvas. If you know of a solution, thank you in advance.

I am also looking for a way to integrate a color picker. I need to display the image below (in smaller, of course) and give the color picker to the user to choose.
https://i.gyazo.com/887be8a075e15324cd7 ... 3cb6eb.jpg
If you know of a solution, thank you in advance.

Cheers,
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Looking for Video FLV conversion and Color Picker

Post by HPW »

You may have a look at hpwImagePickColor (Page 6 sample demo)
Hans-Peter
UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Looking for Video FLV conversion and Color Picker

Post by UltraVox »

I have version 2.60 and this command does not exist in the command-list. I'll get the update.

Thank you.
Tony Kroos
Posts: 419
Joined: Thu Oct 15, 2009 3:43 pm

Re: Looking for Video FLV conversion and Color Picker

Post by Tony Kroos »

A bit outdated and .net framework based, but may be of help
Tony Kroos
Posts: 419
Joined: Thu Oct 15, 2009 3:43 pm

Re: Looking for Video FLV conversion and Color Picker

Post by Tony Kroos »

for video conversion try to get familiar with ffmpeg console tool. Look for compiled releases for Windows.

Code: Select all

ffmpeg -i input.avi -y -ab 56 -ar 44100 -b 200k -r 15 -f flv output.flv
UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Looking for Video FLV conversion and Color Picker

Post by UltraVox »

Tony Kroos wrote:A bit outdated and .net framework based, but may be of help
Used with this : viewtopic.php?p=11222476
It'll be fine. Thank you Tony.

And Hans too, thank you it's great!
Full of new useful features in hpwImage 2.64.
But what is the GDI version ? (forgive my ignorance)

Cheers,
UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Looking for Video FLV conversion and Color Picker

Post by UltraVox »

Tony Kroos wrote:for video conversion try to get familiar with ffmpeg console tool. Look for compiled releases for Windows.

Code: Select all

ffmpeg -i input.avi -y -ab 56 -ar 44100 -b 200k -r 15 -f flv output.flv
Hum, Windows 7 minimum : https://ffmpeg.zeranoe.com/builds/
Is it free and usable in a commercial app. ?

Merci.
Tony Kroos
Posts: 419
Joined: Thu Oct 15, 2009 3:43 pm

Re: Looking for Video FLV conversion and Color Picker

Post by Tony Kroos »

Try to look for older versions XP compatible. And its free under GPL licence. Haven't dealt with ffmpeg for a long time so idk in details.
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Looking for Video FLV conversion and Color Picker

Post by HPW »

But what is the GDI version ? (forgive my ignorance)
Uses the gdi+ lib from Windows for drawing WMF vector files in hpwImage. (smooth antialiasing).
The seperate vesion should only be used when you can be sure to have Access to te gdi+ dll.

Regards
Hans-Peter
UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Looking for Video FLV conversion and Color Picker

Post by UltraVox »

Tony Kroos,

I'm trying to run the dmColorBox plugin in my app., but without success.

With a button...

Code: Select all

SetVar "[ColorBox]" "[PubDir]Data\App\Images\Colors\ColorBox.png"
This is the background image provided in the plugin. I just renamed it.

Code: Select all

dmColorCreate "[ColorBox]" "[LastColors]" "[SaveColors]"
dmColorShow "100" "100"
.NetFramework is installed on my system (W7 Pro 64-bit) :
https://i.gyazo.com/07526a8ed5e467ef473 ... e8c064.png

But nothing happens.
For the moment, I have not set any color in the harray variables.
I'm just trying to display the color palette of the plugin, but without result.

Does it work for you ?

Thank you.
UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Looking for Video FLV conversion and Color Picker

Post by UltraVox »

It's good, I found the problem.
The documentation (almost nonexistent) did not explain the contents of the second variable of the dmColorShow command.

It was enough to insert like this:

Code: Select all

dmColorShow "100,100" "[BgColor]"
and no :

Code: Select all

dmColorShow "100" "100"
Superb, this colorsbox ;) Big thank you!
Tony Kroos
Posts: 419
Joined: Thu Oct 15, 2009 3:43 pm

Re: Looking for Video FLV conversion and Color Picker

Post by Tony Kroos »

The documentation (almost nonexistent) did not explain the contents of the second variable of the dmColorShow command.
Shold be self-explanatory. [ColorSelected] its the variable name to store selected color, you see how it's used to change background color.
See Page->Actions code for comments.
UltraVox
Posts: 469
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Looking for Video FLV conversion and Color Picker

Post by UltraVox »

Tony and HPW,

Yes Tony, the .pub file is very explicit.
I relied on the plugin (in NB, by the mouse over the command)...
He says :
USAGE: dmColorShow "[x],[y]"
[X],[Y]: (required) Screen coordinates of control's top-left corner.
But the usefulness of the second variable is not mentioned. So I thought of a simple mistake in the explanation, and of course, it could not work.

However, that does not solve the initial problem : find a color picker to use it with the image I gave :
https://i.gyazo.com/887be8a075e15324cd7 ... 3cb6eb.jpg

HPW : Sorry, I did not understand how to use the hpwImagePickColor command... For me, a lot of complexity for simple things. But I am aware that you have no choice, unfortunately. In this case, I do not need a camera with the mouse. Just display my image with a pick color. I do not understand how to display my image in the NB rectangle.
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Looking for Video FLV conversion and Color Picker

Post by HPW »

Hello,

In hpwImage are various Option to do similar things.

hpwImagePickColor is a Color picker which is able to pick Color from the whole Desktop (means also outside the own window)

On demo page 1 in Picture1 is the command hpwImageGetPixel which gets the Color from a coordinate of the own window(used with GetMousePos)

On demo page 1 in PushButton46 is the command hpwImageGetColor which gets the Color from a coordinate of the hpwImage object.
I do not understand how to display my image in the NB rectangle.
On demo page 1 the hpwImage object is created in pageaction. Then hpwImageLoadFromFile loads an Image into it.

Regards
Hans-Peter
Tony Kroos
Posts: 419
Joined: Thu Oct 15, 2009 3:43 pm

Re: Looking for Video FLV conversion and Color Picker

Post by Tony Kroos »

However, that does not solve the initial problem : find a color picker to use it with the image I gave :
Sure it cannot work with predefined palette image, but it's similar to system color pickup dialog box (click "More colors" link on the plugin form) so if it's doesnt matter where to choose from, result may be the same.
Locked