Apple Video Foundation (AVF) and .mpg files
Bryan Anderson
bryan at exnihilo-media.com
Wed Mar 27 01:12:55 EDT 2019
ffmpeg is your friend!
Here’s what you need…
https://www.ffmpeg.org/ffprobe.html <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 <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
More information about the use-livecode
mailing list