Open olberger opened 4 years ago
A possible workaround can be to set -e FFMPEG_CODEC_ARGS="-vcodec libx264 -preset ultrafast -pix_fmt yuv420p -strict -2 -acodec aac"
Or, as advised by @v0idp in https://github.com/elgalu/docker-selenium/issues/147#issuecomment-623137903, -e FFMPEG_CODEC_ARGS="-vcodec libx265 -preset ultrafast -pix_fmt yuv420p -strict -2 -acodec aac"
Trying to capture VIDEO=true and AUDIO=true, without setting VIDEO_FILE_EXTENSION, I get "Conversion from mkv to mp4 FAILED!".
I think maybe this is related to the fact that in https://github.com/elgalu/docker-selenium/blob/db745c1b872f70270b92d765cd061d5493e4a523/video-rec/bin/fix_videos.sh#L55 the options are FFMPEG_CODEC_ARGS in all cases, even if AUDIO is set, in which case, the original capture was actually done with FFMPEG_CODEC_VA_ARGS, or something alike
I'm not sure the raw audio can be converted to mp4 then. Maybe that's something completely different. (this is a followup to https://github.com/elgalu/docker-selenium/issues/147#issuecomment-623017333)