Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Bryan Anderson via use-livecode
ffmpeg is your friend!

Here’s what you need…
https://www.ffmpeg.org/ffprobe.html  

ffprobe -show_format filename.mpg 
...will give you human readable output with lots of useful information 
including the codec used.

If you want to drill down further…
ffprobe -show_entries stream=format_name filename.mpg
… will give you a line that will look something like…
Stream #0:0: Video: mpeg1video, yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 320 
kb/s, 29.97 fps, 29.97 tbr, 1200k tbn, 29.97 tbc


If the video file you want LiveCode to work with is not supported, you can use 
ffmpeg to convert it to something else with ffmpeg
https://www.ffmpeg.org/ffmpeg.html 

You can convert just about anything to anything else. It’s really powerful.
ffmpeg has a -progess switch that can be used to give a nice progress bar in 
LiveCode during conversion. 

Bryan
Exnihilo Media




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread JB via use-livecode
On OS X 10.11 you can use the shell command with afinfo

JB:desktop JB$ afinfo /Users/JB/Desktop/myFile.mp3
File:   /Users/JB/Desktop/myFile.mp3
File type ID:   MPG3
Num Tracks: 1

Data format: 2 ch,  44100 Hz, '.mp3' (0x) 0 bits/channel, 0 
bytes/packet, 1152 frames/packet, 0 byte
s/frame
no channel layout.
estimated duration: 244.166500 sec
audio bytes: 5859996
audio packets: 9347
bit rate: 192000 bits per second
packet size upper bound: 1052
maximum packet size: 627
audio data file offset: 39692
optimized
——

The above info was returned from a mp3 file using the terminal.

JB


> On Mar 26, 2019, at 1:32 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player object 
> under OSX.
> AVF supports MPEG-1 video but not MPEG-2 video.
> Both MPEG-1 and MPEG-2 use the .mpg file extenstion.
> 
> Question for any media geniuses on this list: Is there a way in LiveCode to 
> tell a MPEG-1 .mpg file from a MPEG-2.mpg file?
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Off topic: Thoughts on the Apple keynote and new push to services?

2019-03-26 Thread Mark Rauterkus via use-livecode
Hi All,

So, Apple is going further into media.

Any interesting thoughts from you to share?

Mark Rautekus
-- 
-- 
Ta.


Mark Rauterkus   mark.rauter...@gmail.com
Swimming and Water Polo Coach, Schenley High School, Pittsburgh, PA
http://CLOH.wikia.com
412 298 3432 = cell
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread JB via use-livecode
If you use a shell with linux and maybe mac os since it is unix
and a lot of linux commands work you can try the solutions
on this site;

https://superuser.com/questions/595177/how-to-retrieve-video-file-information-from-command-line-under-linux

The above solutions will show you all kinds of info about the file 
including file type and data rate.

JB


> On Mar 26, 2019, at 1:32 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player object 
> under OSX.
> AVF supports MPEG-1 video but not MPEG-2 video.
> Both MPEG-1 and MPEG-2 use the .mpg file extenstion.
> 
> Question for any media geniuses on this list: Is there a way in LiveCode to 
> tell a MPEG-1 .mpg file from a MPEG-2.mpg file?
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: acceleratedRendering bugs

2019-03-26 Thread J. Landman Gay via use-livecode
I'm sending years worth of gratitude and appreciation. You aren't the only 
one who was bothered by this bug.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 26, 2019 5:11:23 PM Monte Goulding via use-livecode 
 wrote:


Aha! This one has vexed me for a while now. I thought I had it previously 
but the issue turned out to be somewhere completely different to where I 
was looking!


On 27 Mar 2019, at 4:23 am, JJS via use-livecode 
 wrote:


BUG 10881 seems solved now for the accelerated rendering, it solves the 
pushed up screen of a stack after the keyboard popped up


Thanks Monte!

Very Nice!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Paul Dupuis via use-livecode

Thank you

On 3/26/2019 6:37 PM, Richmond via use-livecode wrote:
Looking at "Get Info" for the 2 movie files at the top of the page I 
referenced in my earlier message:


http://hubblesource.stsci.edu/sources/video/clips/details/images/centaur_1.mpg 



http://hubblesource.stsci.edu/sources/video/clips/details/images/centaur_2.mpg 



the two codecs are listed there.

So: the BIG question is where that sort of INFO is stored in a file 
and how LiveCode can access it and read it.


What is odd, in LiveCode 9.0.3 at least, is that if those 2 clips are 
imported into a stack neither the
Project Browser or the Application Overview will show a Property 
Inspector for either clip.


LiveCode 7.1.4 will open a proeprty inspector for both of these clips 
but offers no helpful information.


The $60,000 question has to be: can LiveCode read a file's metadata?

Richmonds-Mac-mini:~ richmond$ mdls 
/Users/richmond/Desktop/videoFormats/centaur_1.mpg

kMDItemCodecs  = (
    "MPEG-1 Video"
)

Richmonds-Mac-mini:~ richmond$ mdls 
/Users/richmond/Desktop/videoFormats/centaur_2.mpg

kMDItemCodecs  = (
    "MPEG-2 Video"
)

Richmond.

On 26.03.19 23:28, Paul Dupuis via use-livecode wrote:

Richmond,

I good suggestion. Thank you. However, looking at an identical video 
clip encoded as MPEG-1 and as MPEG-2 in a test editor shows lots of 
gibberish and no obvious text tags to tell the encoding.


Unfortunately, I don't have time to research byte level binary 
encoding differences between MPEG-1 and MPEG-2, which is why I was 
hoping some LiveCode media guru had already done this and would share.


It was a good idea to try though.



On 3/26/2019 5:17 PM, Richmond via use-livecode wrote:

I suppose if you open an .mpg file as a TEXT file it should
contain standard markers as to whether it is encoded as MPEG-1 or 
MPEG-2.


Useful samples here: http://hubblesource.stsci.edu/sources/video/clips/

Richmond.

On 26.03.19 22:32, Paul Dupuis via use-livecode wrote:
Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player 
object under OSX.

AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in 
LiveCode to tell a MPEG-1 .mpg file from a MPEG-2.mpg file?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Pi Digital via use-livecode
Hi

If you break up the file into hex blocks you will find a stat block code 
somewhere. This will help:

https://en.m.wikipedia.org/wiki/Elementary_stream

0x01B5 is pretty unique to mpeg2. The 0x01B3 start code can also be 
found in mpeg1 but is unlikely to contain the 01B5 code. 

SideNote: MP4 is completely different as it is not a packetised elementary 
stream (PES) as mpeg1/2 are. MPEG4 Part 14, as it is known, is a ‘Digital Media 
Container Format’ and can hold various stream types in one file or container, 
commonly a h264/h265 encoded video stream and an mp3 or AAC encoded audio 
stream (and other streams where required, like captions, etc) held in sync with 
each other. MP4 Part 12 is essentially the same as the old QuickTime format. 
I hope this helps. 

Sean Cole
Pi Digital Prod Ltd

> On 26 Mar 2019, at 21:38, Richard Gaskin via use-livecode 
>  wrote:
> 
> Paul Dupuis wrote:
> 
> > My specific interest is: Is there a way to tell a MPEG-1 file from an
> > MPEG-2 file with the same .mpg extension?
> >
> > For example, does someone know a technique or have code to read the
> > first X bytes of the file and determine encoding from that OR use some
> > shell wizardry to tell the encoding?
> 
> IIRC both MPEG-1 and MPEG-2, and their variants (streaming vs non-streaming, 
> etc.) use the same magic number. :(
> 
> Depending on which components may be installed in each target platform, a 
> shell call may be the better bet.
> 
> If lower-level APIs are needed there's always LC Builder.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Richmond via use-livecode

This:

on mouseUp
   get the metadata of object ID 1003
   put it into fld "f1"
end mouseUp

and this:

on mouseUp
   get the metadata of videoClip "centaur_1.mpg"
   put it into fld "f1"
end mouseUp

don't work.

Richmond.

On 27.03.19 0:37, Richmond wrote:
Looking at "Get Info" for the 2 movie files at the top of the page I 
referenced in my earlier message:


http://hubblesource.stsci.edu/sources/video/clips/details/images/centaur_1.mpg

http://hubblesource.stsci.edu/sources/video/clips/details/images/centaur_2.mpg

the two codecs are listed there.

So: the BIG question is where that sort of INFO is stored in a file 
and how LiveCode can access it and read it.


What is odd, in LiveCode 9.0.3 at least, is that if those 2 clips are 
imported into a stack neither the
Project Browser or the Application Overview will show a Property 
Inspector for either clip.


LiveCode 7.1.4 will open a proeprty inspector for both of these clips 
but offers no helpful information.


The $60,000 question has to be: can LiveCode read a file's metadata?

Richmonds-Mac-mini:~ richmond$ mdls 
/Users/richmond/Desktop/videoFormats/centaur_1.mpg

kMDItemCodecs  = (
    "MPEG-1 Video"
)

Richmonds-Mac-mini:~ richmond$ mdls 
/Users/richmond/Desktop/videoFormats/centaur_2.mpg

kMDItemCodecs  = (
    "MPEG-2 Video"
)

Richmond.

On 26.03.19 23:28, Paul Dupuis via use-livecode wrote:

Richmond,

I good suggestion. Thank you. However, looking at an identical video 
clip encoded as MPEG-1 and as MPEG-2 in a test editor shows lots of 
gibberish and no obvious text tags to tell the encoding.


Unfortunately, I don't have time to research byte level binary 
encoding differences between MPEG-1 and MPEG-2, which is why I was 
hoping some LiveCode media guru had already done this and would share.


It was a good idea to try though.



On 3/26/2019 5:17 PM, Richmond via use-livecode wrote:

I suppose if you open an .mpg file as a TEXT file it should
contain standard markers as to whether it is encoded as MPEG-1 or 
MPEG-2.


Useful samples here: http://hubblesource.stsci.edu/sources/video/clips/

Richmond.

On 26.03.19 22:32, Paul Dupuis via use-livecode wrote:
Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player 
object under OSX.

AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in 
LiveCode to tell a MPEG-1 .mpg file from a MPEG-2.mpg file?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Richmond via use-livecode
Looking at "Get Info" for the 2 movie files at the top of the page I 
referenced in my earlier message:


http://hubblesource.stsci.edu/sources/video/clips/details/images/centaur_1.mpg

http://hubblesource.stsci.edu/sources/video/clips/details/images/centaur_2.mpg

the two codecs are listed there.

So: the BIG question is where that sort of INFO is stored in a file and 
how LiveCode can access it and read it.


What is odd, in LiveCode 9.0.3 at least, is that if those 2 clips are 
imported into a stack neither the
Project Browser or the Application Overview will show a Property 
Inspector for either clip.


LiveCode 7.1.4 will open a proeprty inspector for both of these clips 
but offers no helpful information.


The $60,000 question has to be: can LiveCode read a file's metadata?

Richmonds-Mac-mini:~ richmond$ mdls 
/Users/richmond/Desktop/videoFormats/centaur_1.mpg

kMDItemCodecs  = (
    "MPEG-1 Video"
)

Richmonds-Mac-mini:~ richmond$ mdls 
/Users/richmond/Desktop/videoFormats/centaur_2.mpg

kMDItemCodecs  = (
    "MPEG-2 Video"
)

Richmond.

On 26.03.19 23:28, Paul Dupuis via use-livecode wrote:

Richmond,

I good suggestion. Thank you. However, looking at an identical video 
clip encoded as MPEG-1 and as MPEG-2 in a test editor shows lots of 
gibberish and no obvious text tags to tell the encoding.


Unfortunately, I don't have time to research byte level binary 
encoding differences between MPEG-1 and MPEG-2, which is why I was 
hoping some LiveCode media guru had already done this and would share.


It was a good idea to try though.



On 3/26/2019 5:17 PM, Richmond via use-livecode wrote:

I suppose if you open an .mpg file as a TEXT file it should
contain standard markers as to whether it is encoded as MPEG-1 or 
MPEG-2.


Useful samples here: http://hubblesource.stsci.edu/sources/video/clips/

Richmond.

On 26.03.19 22:32, Paul Dupuis via use-livecode wrote:
Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player 
object under OSX.

AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in 
LiveCode to tell a MPEG-1 .mpg file from a MPEG-2.mpg file?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: acceleratedRendering bugs

2019-03-26 Thread Monte Goulding via use-livecode
Aha! This one has vexed me for a while now. I thought I had it previously but 
the issue turned out to be somewhere completely different to where I was 
looking!

> On 27 Mar 2019, at 4:23 am, JJS via use-livecode 
>  wrote:
> 
> BUG 10881 seems solved now for the accelerated rendering, it solves the 
> pushed up screen of a stack after the keyboard popped up
> 
> Thanks Monte!
> 
> Very Nice!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Richard Gaskin via use-livecode

Paul Dupuis wrote:

> My specific interest is: Is there a way to tell a MPEG-1 file from an
> MPEG-2 file with the same .mpg extension?
>
> For example, does someone know a technique or have code to read the
> first X bytes of the file and determine encoding from that OR use some
> shell wizardry to tell the encoding?

IIRC both MPEG-1 and MPEG-2, and their variants (streaming vs 
non-streaming, etc.) use the same magic number. :(


Depending on which components may be installed in each target platform, 
a shell call may be the better bet.


If lower-level APIs are needed there's always LC Builder.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Paul Dupuis via use-livecode

Richmond,

I good suggestion. Thank you. However, looking at an identical video 
clip encoded as MPEG-1 and as MPEG-2 in a test editor shows lots of 
gibberish and no obvious text tags to tell the encoding.


Unfortunately, I don't have time to research byte level binary encoding 
differences between MPEG-1 and MPEG-2, which is why I was hoping some 
LiveCode media guru had already done this and would share.


It was a good idea to try though.



On 3/26/2019 5:17 PM, Richmond via use-livecode wrote:

I suppose if you open an .mpg file as a TEXT file it should
contain standard markers as to whether it is encoded as MPEG-1 or MPEG-2.

Useful samples here: http://hubblesource.stsci.edu/sources/video/clips/

Richmond.

On 26.03.19 22:32, Paul Dupuis via use-livecode wrote:
Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player 
object under OSX.

AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in 
LiveCode to tell a MPEG-1 .mpg file from a MPEG-2.mpg file?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Paul Dupuis via use-livecode

I have a list of all the formats AVF supports and doesn't support.

My specific interest is: Is there a way to tell a MPEG-1 file from an 
MPEG-2 file with the same .mpg extension?


For example, does someone know a technique or have code to read the 
first X bytes of the file and determine encoding from that OR use some 
shell wizardry to tell the encoding?



On 3/26/2019 5:05 PM, Rick Harrison via use-livecode wrote:

I also supports .mp4 which is MPEG-4 if that helps.

Rick


On Mar 26, 2019, at 4:32 PM, Paul Dupuis via use-livecode 
 wrote:

Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player object under 
OSX.
AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in LiveCode to 
tell a MPEG-1 .mpg file from a MPEG-2.mpg file?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Richmond via use-livecode

I suppose if you open an .mpg file as a TEXT file it should
contain standard markers as to whether it is encoded as MPEG-1 or MPEG-2.

Useful samples here: http://hubblesource.stsci.edu/sources/video/clips/

Richmond.

On 26.03.19 22:32, Paul Dupuis via use-livecode wrote:
Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player 
object under OSX.

AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in 
LiveCode to tell a MPEG-1 .mpg file from a MPEG-2.mpg file?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Rick Harrison via use-livecode
I also supports .mp4 which is MPEG-4 if that helps.

Rick

> On Mar 26, 2019, at 4:32 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player object 
> under OSX.
> AVF supports MPEG-1 video but not MPEG-2 video.
> Both MPEG-1 and MPEG-2 use the .mpg file extenstion.
> 
> Question for any media geniuses on this list: Is there a way in LiveCode to 
> tell a MPEG-1 .mpg file from a MPEG-2.mpg file?
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread Paul Dupuis via use-livecode
Livecode 9.x.x uses Apple Video Foundation (AVF) for the LC Player 
object under OSX.

AVF supports MPEG-1 video but not MPEG-2 video.
Both MPEG-1 and MPEG-2 use the .mpg file extenstion.

Question for any media geniuses on this list: Is there a way in LiveCode 
to tell a MPEG-1 .mpg file from a MPEG-2.mpg file?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: password protected stack and passkey

2019-03-26 Thread J. Landman Gay via use-livecode

On 3/26/19 9:06 AM, Ralph DiMola via use-livecode wrote:

I just tested and this problem(feature?) seems to have gone
away in v9.0.3. I tested with v8.1.10 and the problem was still there. The
message box displayed "put someHandler" and it also failed silently.


That's how it starts, the message box can't find what you're asking for 
and just repeats the command name. I haven't noticed the behavior is 
limited to password-protected stacks (mine aren't) but maybe you've 
found another trigger for the issue. It might at least be a lead.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: acceleratedRendering bugs

2019-03-26 Thread JJS via use-livecode
BUG 10881 seems solved now for the accelerated rendering, it solves the 
pushed up screen of a stack after the keyboard popped up


Thanks Monte!

Very Nice!

Op 12-3-2019 om 14:00 schreef Sphere via use-livecode:

Thanks for your reply Randy.
Nice app you made.

I noticed it is sensitve and that the DG2 group with images and text 
got even slower.
So i have to play some more to get it more smoother as it looked more 
cloggy when scrolling.
i can try the max and see if it will have some effect. I also tried it 
on BlueStacks after i saw the hint from Richmond.
That should be very fast, as we have to wait on 9.1 before we can use 
the fast x86 emulator.

But even in BlueStacks the DG is slow and cloggy.

Randy Hengst via use-livecode schreef op 2019-03-12 11:38:

My work is only with  iOS. So, no comments about Android…

But, I found while working a recent iPad app (with many moving
controls) that I needed to adjust the layerMode to dynamic and back to
static after the move.

I also increased the compositorCacheLimit as you noted… only I went up
to 256*1024*1024.
I made this adjustment in the startUp handler.

I even needed to up the compositorCacheLimit while working in the IDE.
I made that adjustment in the message box.

I didn’t make any changes relative to compositorTileSize or 
compositorType.


The app I was developing when I first started making these adjustments
is free (if that will help understand my context) ….
here is the Apple App Preview page:
https://itunes.apple.com/us/app/begotten/id1431461736?mt=8


be well,
randy
www.classroomFocusedSoftware.com


On Mar 11, 2019, at 4:13 PM, JJS via use-livecode 
 wrote:


i was playing a bit with the separate command you can use instead of 
acceleratedrendering (on Android mobile)


compositorTileSize,layerMode,compositorType,compositorCacheLimit

and noticed that setting compositorType to opengl for android causes 
the black out screen


i'm not sure yet about compositorTileSize what it does on speed

the compositorCacheLimit needs to be big like 64*1024*1024 for 64MB 
according calculation in the dictionary, if you set it small it gets 
slow updated


now i'm not sure if i need the separate commands to be set empty in 
the closecard (to prevent upshifting on other cards when using 
keyboard) or that setting the acceleratedrendering to false would be 
enough.


till now i set the accelerated rendering on and off depending if i 
need keyboard on the card



anyone else have experience with these commands?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [off]sublimeText update

2019-03-26 Thread Trevor DeVore via use-livecode
On Tue, Mar 26, 2019 at 11:08 AM Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The watcher would also be a nice addition to the fileBrowser
> dataViewTree...
>

Indeed it would!

It would be great it someone could wrap fswatch up in an LCB extension that
people could easily install and include with their projects. It would be
useful in a number of cases.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [off]sublimeText update

2019-03-26 Thread Mike Kerner via use-livecode
The watcher would also be a nice addition to the fileBrowser dataViewTree...

On Tue, Mar 26, 2019 at 10:25 AM Ralf Bitter via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Trevor, this looks very promising. Thanks
> for looking into it.
>
> Ralf
>
>
> > On 26. Mar 2019, at 15:05, Trevor DeVore via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On Tue, Mar 26, 2019 at 8:28 AM Ralf Bitter via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >>
> >>> On 13. Mar 2019, at 15:17, Mike Kerner via use-livecode <
> >> use-livecode@lists.runrev.com >
> wrote:
> >>>
> >>> The ST kluge works great for updating scripts live in
> >>> LC, except when it doesn't, and I don't think we have a way to do it
> with
> >>> Atom, yet.
> >>
> >> There are definitely ways to do it in Atom too.
> >> Here is how I managed to send notifications to
> >> a Levure application running in the LiveCode IDE
> >> using Atom:
> >>
> >>  ...
> >>
> >
> > Thanks for sharing this Ralf!
> >
> > As I read over this thread it reminded me that ideally the LiveCode IDE
> > would be watching files/folders rather than having to be notified by the
> > text editor. One of these days I want to investigate using something like
> > fswatch  https://github.com/emcrisostomo/fswatch>> to monitor for changes
> > and then reload them in the LiveCode IDE. Since a Levure app knows where
> > all of the project files are stored there is a straight forward way of
> > knowing which folders to monitor.
> >
> > --
> > Trevor DeVore
> > ScreenSteps
> > www.screensteps.com 
> > 
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [off]sublimeText update

2019-03-26 Thread Ralf Bitter via use-livecode
Trevor, this looks very promising. Thanks
for looking into it.

Ralf


> On 26. Mar 2019, at 15:05, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Tue, Mar 26, 2019 at 8:28 AM Ralf Bitter via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> 
>>> On 13. Mar 2019, at 15:17, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com > wrote:
>>> 
>>> The ST kluge works great for updating scripts live in
>>> LC, except when it doesn't, and I don't think we have a way to do it with
>>> Atom, yet.
>> 
>> There are definitely ways to do it in Atom too.
>> Here is how I managed to send notifications to
>> a Levure application running in the LiveCode IDE
>> using Atom:
>> 
>>  ...
>> 
> 
> Thanks for sharing this Ralf!
> 
> As I read over this thread it reminded me that ideally the LiveCode IDE
> would be watching files/folders rather than having to be notified by the
> text editor. One of these days I want to investigate using something like
> fswatch  > to monitor for changes
> and then reload them in the LiveCode IDE. Since a Levure app knows where
> all of the project files are stored there is a straight forward way of
> knowing which folders to monitor.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com 
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: password protected stack and passkey

2019-03-26 Thread Ralph DiMola via use-livecode
The issue was accessing handlers in a password protected library stack from
the message box. I just tested and this problem(feature?) seems to have gone
away in v9.0.3. I tested with v8.1.10 and the problem was still there. The
message box displayed "put someHandler" and it also failed silently. So...
Sorry for the red-herring. Nothing to see here in v9.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Tuesday, March 26, 2019 1:15 AM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: password protected stack and passkey

It may have been the problem where the message box stops finding things. It
started in LC 9 for me and happened again today. The message box couldn't
find a handler in the only card that was open, then couldn't even find the
card. Keyboard shortcuts stopped working and "edit script of this card" did
nothing. When that sort of thing starts happening you're about to crash, and
two minutes later I did. There's no recipe except that debugging seems to
set it off.


The point being, maybe the fault wasn't that any features have changed but
rather something else got very confused.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |
http://www.hyperactivesw.com On March 25, 2019 9:30:41 PM Richard Gaskin via
use-livecode  wrote:

> Ralph DiMola wrote:
>
> > FYI: If the stack is password protected(no line count in PB) you 
> > can't access any of the stack's handlers from the message box. I 
> > find this annoying but I guess it's safety mechanism. This changed 
> > in 8.x I think? In previous versions you could access handlers in a 
> > password protected stack from the message box.
>
> I can't reproduce that (just tested in v9.0.3), which is a good thing 
> because it would definitely be a bug.
>
> The Message Box is just a stack with scripts, not a compiled engine 
> component as with HC's Message Box.  If LC's Message Box can't call 
> routines in a password-protected stack, neither could anything else.
> That would break a lot of projects, and make protected libraries 
> instantly useless.
>
> What else might be going on with what you saw?  Got a recipe I can try?
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web  
> 
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [off]sublimeText update

2019-03-26 Thread Trevor DeVore via use-livecode
On Tue, Mar 26, 2019 at 8:28 AM Ralf Bitter via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > On 13. Mar 2019, at 15:17, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > The ST kluge works great for updating scripts live in
> > LC, except when it doesn't, and I don't think we have a way to do it with
> > Atom, yet.
>
>  There are definitely ways to do it in Atom too.
>  Here is how I managed to send notifications to
>  a Levure application running in the LiveCode IDE
>  using Atom:
>
>   ...
>

Thanks for sharing this Ralf!

As I read over this thread it reminded me that ideally the LiveCode IDE
would be watching files/folders rather than having to be notified by the
text editor. One of these days I want to investigate using something like
fswatch  to monitor for changes
and then reload them in the LiveCode IDE. Since a Levure app knows where
all of the project files are stored there is a straight forward way of
knowing which folders to monitor.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [off]sublimeText update

2019-03-26 Thread Ralf Bitter via use-livecode



> On 13. Mar 2019, at 15:17, Mike Kerner via use-livecode 
>  wrote:
> 
> The ST kluge works great for updating scripts live in
> LC, except when it doesn't, and I don't think we have a way to do it with
> Atom, yet.

 There are definitely ways to do it in Atom too.
 Here is how I managed to send notifications to
 a Levure application running in the LiveCode IDE
 using Atom:
 
 - Installed the atom-shell-commands package.
 This is needed to call a shell script every time you
 save a .livecodescript file in Atom.
 
 - Wrote a LC script which is called by the atom-shell-commands
 package. This script writes to the socket the Levure
 script external_editor_server.livecodescript listens to.
 
 - Configured atom-shell-commands (added arguments, a keymap
 and the path to the shell script).
 
 - That's it, works like a charm.
 
 Note: Of course, you could use a modified version of the Python
 script notify_levure_app_of_save.py included in Trevor's LC
 Sublime Text package. But as I know nothing about Python I chose
 the LC route and as a variant the PHP route.
 
 You can find scripts and a configuration example here:
 
 https://gist.github.com/revig
 
 Note: There is a PHP version and a LC version. I you prefer to
 use the LC shell script version you need the modified version of
 external_editor_server.livecodescript.
 This is because the LC version uses UDP sockets as there is an
 issue with writing to sockets on LC server.
 
 
 Ralf
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode