简体   繁体   中英

R setting of par for saveVideo

I have two stacks of images (each of 256 x 256 and 20 of these images in each stack) and I am making a video file using saveVideo for displaying the images from two stacks side by side, ie 512 x 256.

The images appeared to be squeezed in x-axis. I tried a few different combinations, but can't get the ratio right. Any thoughts, please?

par(mar = c(5, 0.2, 1, 2), mgp = c(3, 1, 0), tcl = -0.3, cex.axis = 1, cex.lab = 1, cex.main = 1)

ani.options(interval = 0.1, nmax = 50, ani.height=1, ani.width=4)

通过为ffmpeg添加“ -vf scale = 512:256”已解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM