Apple Video Foundation (AVF) and .mpg files
Richard Gaskin
ambassador at fourthworld.com
Tue Mar 26 17:38:40 EDT 2019
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
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list