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
Ran into this in the past with ffmpeg, so I figured it may be a good use case for vfilter or something to put as a check so users can see a way to fix it. The error is shown in the std_err where it says width not divisible by 2 (959x720). Fix from https://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2 shows that this works.
library(av)
outfile= tempfile(fileext=".mp4")
xx= av_demo(width=959, output=outfile)
#> Error: FFMPEG error in 'avcodec_open2': Generic error in an external libraryxx#> Error in eval(expr, envir, enclos): object 'xx' not found
file.exists(outfile)
#> [1] FALSExx= av_demo(width=959, output=outfile,
vfilter="scale=trunc(iw/2)*2:trunc(ih/2)*2")
xx#> NULL
file.exists(outfile)
#> [1] TRUE
Ran into this in the past with
ffmpeg
, so I figured it may be a good use case forvfilter
or something to put as a check so users can see a way to fix it. The error is shown in thestd_err
where it sayswidth not divisible by 2 (959x720)
. Fix from https://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2 shows that this works.standard output and standard error
Created on 2018-10-06 by the reprex
package (v0.2.0).
The text was updated successfully, but these errors were encountered: