

If you are an FFmpeg expert, you don't need to use ffmpeg at all (but perhaps consider helping to improve this code!). To crop and pan and rotate, to apply effects and transitions and every other form of video processing to your image sequences finish the production outside of R, because that is what makes sense. Ultimately, if you want an incredibly fancy video, do not rely on ffmpeg to splice and merge and overlay and juxtapose all your layers together, That mapmate aims to avoid entangling itself with for the convenience of generating relatively basic video output directly from an R session.

HOW TO USE FFMPEG WITH R FULL
The goal that mapmate attempts to fulfill is strictly that of animation pre-production and it does so by focusing on the generation of still image sequences.Īny animation is expected to be done later by the user via software dedicated to video editing and production.įfmpeg is provided in mapmate as an exception to the rule for users who wish to trade the full control and flexibility over video editing and production See packages like animation if that is more the goal. Keep in mind that the purpose of mapmate is not to generate animations directly from R. While additional uses may be incorporated into ffmpeg in future, the FFmpeg multimedia framework itself provides a far broader suite of tools and functionality than is needed here. Since this function is provided in the context of the mapmate package, it is aimed at assisting with converting still image sequences to video. The ffmpeg R function is primarily useful to users not well versed in the use of the FFmpeg multimedia framework who will be satisfied with the level of flexibility provided. It translates arguments provided by the user in familiar R syntax into a system call to the ffmpeg command line tool, which must be installed on the system.įfmpeg does not provide complete flexibility to allow making every possible valid call to FFmpeg,īut users who are that well versed in the use of FFmpeg can use the command line utility directly or pass their custom calls directly to system from within R. Detailsįfmpeg is a wrapper function around the popular FFmpeg command line multimedia framework. Returns the system call to FFmpeg as a character string. Logical, whether to show FFmpeg output on the R console.
