AW: Using AVFoundation Player fails in LC 6.7.6

Tiemo Hollmann TB toolbook at kestner.de
Fri Sep 11 08:12:24 EDT 2015


Hello Panos,

yes, you got it.
I was using Sorenson Squeeze to batch compress my videos with the H.264
codec, which is supported by AVFoundation. But unfortunately Sorenson put
its own codec name "Sorenson Video 3" into the file header of the mov
videos. It seems that this name is not accepted by AVFoundation. When
opening such a video directly with a QT-player on a Mac (not inside of LC),
the video first gets "converted" (I have never noticed this conversion,
because inside of LC you don't get a notice of this). Afterwords the codec
name is H.264 in the file header and now also can be played by LC 6.7.6 with
AVFoundation.
That really sucks me, because my software has 19000 videos and I am
delivering updates only for the program without new videos. So in future I
will only be able to update my program with a newer version of LC, when
setting dontuseQT to false. Hope this will still work for some years. 
Thanks for your ideas
Tiemo


-----Ursprüngliche Nachricht-----
Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag
von panagiotis merakos
Gesendet: Freitag, 11. September 2015 13:37
An: How to use LiveCode <use-livecode at lists.runrev.com>
Betreff: Re: Using AVFoundation Player fails in LC 6.7.6

Hi Tiemo,


The command 'start player myPlayer' should work. I just tested with LC
6.7.6, adding a new player and executing "start player 1" from the msg box
works as expected. What is the format/codec of the video file you want to
play? It may be the case that the particular video format or codec is not
supported by AVFoundation. The .mov file format *is* supported, but not for
all codecs. Please see pages 26-29 of the following pdf for some codecs that
*don't* work:


http://devstreaming.apple.com/videos/wwdc/2013/606xdx2xbp31zp28fdov8p0b6d/60
6/606.pdf?dl=1


Currently, if the OS X version >= 10.8 then LiveCode uses AVFoundation
player, thus the global variable "dontUseQT" is set to true. This means that
functions like qtversion(), qteffects() etc will return 0.0 or empty.
However, if you "set the dontUseQT to false" (before creating the player),
then you force LiveCode to use the old QT player even if the OS X version is
>= 10.8. In that way you can still use the QT-related functions.



Hope this helps,

Panos

--

On Fri, Sep 11, 2015 at 11:51 AM, Tiemo Hollmann TB <toolbook at kestner.de>
wrote:

> Hello,
>
> I have a running software with QT videos. Up to now I am working with 
> LC
> 6.5.2
>
> I wanted to migrate to LC 6.7.6 where the QT-player is replaced by the 
> AV-Foundation player. Testing it on a Mac with OS X 10.9.5 Start 
> player
> "MyVideoPlayer": just nothing happens. The result is empty, no error, 
> but no video is played.
>
> I have read the release notes about the new AVFoundation player, but 
> have nothing found if and what has to be changed in code for migration.
>
> Btw. my code askes for the qtversion, which fails with LC 6.7.6 with 
> the result 0.0. What is the recommended way to handle qtversion? 
> Should I restrict this test only on window machines, because I always 
> can rely on older Macs without AVFoundation that they have QT installed?
>
> Any experience or any idea, why playing mov videos fails with LC 6.7.6 
> on 10.9.5?
>
> Thanks
>
> Tiemo
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list