Not happy with MCI video commands - Forum

Forum Navigation
You need to log in to create posts and topics.

Not happy with MCI video commands

Not happy with MCI video commands? Try ffplay in a NEO Win rectangle.

ffmpeg is a standard utility for processing AVI and MP4 audio/video

FFmpeg.exe
ffplay.exe
ffprobe.exe

This script uses an "Init" speed-up rectangle that is not visible (or placed offscreen) to ""preload" videos without sound (-an) partially into RAM before running the player in Rectangle1.

-------------------------------------

FocusObject "RectangleInit"
Delay "100"
SendKeys "[ffplayRectangleInit]" "{Esc}"
Delay "100"
SendKeys "[ffplayRectangleInit]" "{Esc}"
Delay "100"
FocusObject "RectangleInit"
Delay "100"
RunInRectangle "RectangleInit" "[PubDir]ffmpeg\bin\ffplay.exe" "-an [#34][LoadedVideo][#34]" "" "" "[ffplayRectangleInit]"
Delay "100"
FocusObject "RectangleInit"
Delay "100"
SendKeys "[ffplayRectangleInit]" "{Esc}"
Delay "100"
SendKeys "[ffplayRectangleInit]" "{Esc}"
Delay "100"
FocusObject "Rectangle1"
Delay "100"
SendKeys "[ffplayRectangle1]" "{Esc}"
Delay "100"
SendKeys "[ffplayRectangle1]" "{Esc}"
Delay "100"
FocusObject "Rectangle1"
Delay "100"
RunInRectangle "Rectangle1" "[PubDir]ffmpeg\bin\ffplay.exe" "[#34][LoadedVideo][#34]" "" "" "[ffplayRectangle1]"
Delay "100"

----------------------------------

It can also use SendKeys to start and stop the player

SendKeys "[ffplayRectangle1]" "P"
SendKeys "[ffplayRectangle1]" "m"
SendKeys "[ffplayRectangle1]" "{PgDn}"

.

 

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and CN_Iceman have reacted to this post.
luishpVadimCN_Iceman

It's a very good idea.
I have used it in some applications to convert audio and/or video files.
If you want to download the latest version in 32 or 64 bits you can use this link: https://ffmpeg.zeranoe.com/builds/

fkapnist has reacted to this post.
fkapnist
Quote from CN_Iceman on July 30, 2020, 3:41 pm

It's a very good idea.
I have used it in some applications to convert audio and/or video files.
If you want to download the latest version in 32 or 64 bits you can use this link: https://ffmpeg.zeranoe.com/builds/

I discovered that mpv player performs much better than ffplay in a rectangle and it takes the same command lines

mpv.io

luishp, Vadim and CN_Iceman have reacted to this post.
luishpVadimCN_Iceman

Thanks for the info @fkapnist

I will try with mpv.io

fkapnist has reacted to this post.
fkapnist