[FFmpeg-user] When capturing rawvideo from camera (avfoundation), ffmpeg adds extra 32 bytes for each frame.
Carl Eugen Hoyos
ceffmpeg at gmail.com
Mon Sep 24 16:49:14 EEST 2018
2018-09-21 17:25 GMT+02:00, Peter Gusev <gpeetonn at gmail.com>:
> The discussion on StackOverflow
> <https://stackoverflow.com/questions/52390694/video-moves-sideways-when-captured-raw-from-camera-and-piped-into-ffplay?noredirect=1#comment91816164_52390694>
> shed
> some light on what's going on and provided one possible solution.
> I one uses `-vsync 2` or `-vsync vfr` option, the frame size would be
> correct:
>
> $ ffmpeg -f avfoundation -pixel_format 0rgb -framerate 25 -video_size
> 1280x720 -i "0" -map 0:v -vsync vfr -f rawvideo -vframes 1 /tmp/frame.0rgb
It seems to me that "-vframes 1" is responsible for the behaviour
change and not "vsync": Am I wrong?
Please do not top-post here, Carl Eugen
More information about the ffmpeg-user
mailing list