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.com http://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