You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let movie main.sh handle show to open the movie #7455
and then the plot opens up in the default viewer.I learned today via @Esteban82 that ffmpeg is one of many ff tools; the full list is
ffmpeg ffprobe ffplay
So a proposal would be if main.sh ends with gmt end show then once movie assembles the mp4 movie it would call ffplay, or perhaps just "open" like we do for images? Open movie.mp4 works fine on macOS (opens QuickTime player) - how about Windows and Linux?
Activity
Esteban82 commentedon May 9, 2023
ffplayworks to play a mp4 on linux. Should we test the other formats?PaulWessel commentedon May 9, 2023
Sure, but I would expect it to play anything ffmpeg can create, such as webm etc.
Does
open mg4filework on Linux?Esteban82 commentedon May 9, 2023
Ok.
Yes, it works.
PaulWessel commentedon May 9, 2023
And when @joa-quim gets back from eating again, he can tell us if it works on Windows.
BTW, I see that
gmt end showactually ends up passing the file to gmt docs, which is where it ends up calling open.joa-quim commentedon May 9, 2023
Loong dinner. What should I test?
PaulWessel commentedon May 10, 2023
If
open somemovie.mp4
works on windows
joa-quim commentedon May 10, 2023
Sorry, still don't get what to test. Ofc .mp4 movies work on Windows.
PaulWessel commentedon May 10, 2023
Yes of course, but does the CLI command
open somemovie.mp4open your movie viewer like it does on other OS?
joa-quim commentedon May 10, 2023
No.
openis not known. But simply typing the file namesomemovie.mp4does work.PaulWessel commentedon May 10, 2023
Sorry, I should probably have said
gmt docs movie.mp4
since that is what gmt end show does - it knows what "open" applies.
joa-quim commentedon May 10, 2023
Yes, that works.