Search found 774 matches

by chris319
Fri Aug 14, 2020 9:19 pm
Forum: Coding Questions
Topic: ButtonImage with Word Wrap
Replies: 2
Views: 790

ButtonImage with Word Wrap

What's the easiest way to add word-wrapped text to a ButtonImage gadget?

Thank you.
by chris319
Sat Aug 01, 2020 3:14 am
Forum: Coding Questions
Topic: Trouble With RunProgram()
Replies: 12
Views: 1903

Re: Trouble With RunProgram()

infratec wrote:
chris319 wrote: I am using the static builds from Zeranoe.
The static build needs no dlls :wink:
Sorry to contradict you, but ffprobe does. It won't run without them and will run with them.
by chris319
Fri Jul 31, 2020 6:01 pm
Forum: Coding Questions
Topic: Trouble With RunProgram()
Replies: 12
Views: 1903

Re: Trouble With RunProgram()

ffprobe requres several .dll files in order to run. Once found, it works.
by chris319
Thu Jul 30, 2020 6:56 am
Forum: Coding Questions
Topic: Trouble With RunProgram()
Replies: 12
Views: 1903

Re: Trouble With RunProgram()

I tried RunProgram() on ffprobe in my copy of Shotcut and it worked. Bizarre.
by chris319
Wed Jul 29, 2020 6:04 pm
Forum: Coding Questions
Topic: Trouble With RunProgram()
Replies: 12
Views: 1903

Re: Trouble With RunProgram()

Here is the line of code: result = RunProgram("ffprobe.exe","","",#PB_Program_Open|#PB_Program_Read) : Debug result It makes no difference if I include the file extension or not. This code runs ffmpeg and returns 1, whether I do or do not include the file extension: res...
by chris319
Wed Jul 29, 2020 7:42 am
Forum: Coding Questions
Topic: Trouble With RunProgram()
Replies: 12
Views: 1903

Re: Trouble With RunProgram()

Sorry, I tried adding these flags and it still returns 0:

Code: Select all

#PB_Program_Open|#PB_Program_Read
I can run ffmpeg.exe without any flags, just the name of the executable name without the file extension, and it returns 1, which means it successfully ran.
by chris319
Tue Jul 28, 2020 6:00 pm
Forum: Coding Questions
Topic: Trouble With RunProgram()
Replies: 12
Views: 1903

Trouble With RunProgram()

I'm having trouble running a program called "ffprobe.exe". RunProgram() returns 0. I've checked permissions and none are set to "deny".

I'm able to run another program in the same folder called "ffmpeg.exe" RunProgram() returns 1.

Any ideas why?

OS is Windows 10.
by chris319
Fri Jun 19, 2020 4:24 am
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Re: Playing Movies

Sorry, it fails at this line:

Code: Select all

Define Inst = libvlc_new(0, 0)
by chris319
Thu Jun 18, 2020 5:37 pm
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Re: Playing Movies

LAV Filters has an option to leave video levels "untouched", which I like, rather than forcing them to 16-235 or 0 - 255.
by chris319
Wed Jun 17, 2020 6:11 pm
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Re: Playing Movies

A standalone player such as WMP, VLC or PotPlayer works fine.

I uninstalled K-Lite and reinstalled LAV Filters.

PureBasic and now HTML5 in a browser only play .mp4. No mkv, mxf, mpg, mov or avi.

Something in my machine is hosed. Registry?
by chris319
Wed Jun 17, 2020 2:37 pm
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Re: Playing Movies

What about this tip (from a thread you participated in) -> viewtopic.php?p=555699#p555699 Does that fix it? Nope. I uninstalled the LAV filters and reinstalled the K-Lite "mega" codec pack, restarting the machine in between and after installations. Now all it plays is .avi. No more .mp4.
by chris319
Wed Jun 17, 2020 3:57 am
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Re: Playing Movies

Did you download K-Lite Codec Pack from the official website? Yes I did. It seemed to have video range "full" and "limited' reversed. I am using ffplay and WMP as my references for video levels. Both ffplay and WMP give me the same levels. I also could not play XDCAM files exported b...
by chris319
Tue Jun 16, 2020 6:13 pm
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Re: Playing Movies

Unfortunately, the K-Lite codec pack caused problems with my system which disappeared when I uninstalled it.
by chris319
Tue Jun 16, 2020 5:00 pm
Forum: Coding Questions
Topic: Playing Movies
Replies: 17
Views: 3740

Playing Movies

How can I play movies other than .mp4 using PureBasic, i.e. .mov, .avi, .mkv, .mpg, .mxf movies?

Is such a thing even possible in PB?

Thank you.
by chris319
Tue Jun 16, 2020 8:22 am
Forum: Coding Questions
Topic: playmovie drives me crazy :'(
Replies: 7
Views: 2370

Re: playmovie drives me crazy :'(

It seems to help if ResizeMovie() is called after the window is opened and after PlayMovie() is called.

Don't forget to call FreeMovie() when finished.