Closed s2g090123 closed 1 year ago
You may want to try to use the "main" profile instead of "baseline" as pointed out by @vonabe at issue https://github.com/bytedeco/javacv/issues/1885#issuecomment-1241019473.
Sorry, I didn't understand what you said.
Replace FF_PROFILE_H264_CONSTRAINED_BASELINE
with FF_PROFILE_H264_MAIN
in video_c.profile(AVCodecContext.FF_PROFILE_H264_CONSTRAINED_BASELINE)
?
Actually, there is no need to add anything to JavaCV to get this working. I've confirmed that, for example, calling setVideoOption("profile", "main")
before start()
does set the profile to "main", see https://trac.ffmpeg.org/wiki/Encode/H.264#Profile.
I am trying to create video via FFmpegFrameRecorder. The video size is 1920x1440 but it doesn't play on Samsung devices. The file type is not supported. I have tried 1920x1080 and 1024x768, both work. Or what codec should I set?
Below is my sample code
Thank you so much!