[FFmpeg-user] When capturing rawvideo from camera (avfoundation), ffmpeg adds extra 32 bytes for each frame.
Carl Eugen Hoyos
ceffmpeg at gmail.com
Wed Sep 19 19:05:58 EEST 2018
2018-09-19 15:33 GMT+02:00, Peter Gusev <gpeetonn at gmail.com>:
> Hi!
>
> As a part of figuring out the problem I have with ffplay
> <https://stackoverflow.com/questions/52390694/video-moves-sideways-when-captured-raw-from-camera-and-piped-into-ffplay/52399554#52399554>,
> I noticed, that ffmpeg adds 32 bytes to raw 0rgb frames when capturing from
> a camera (macOS 10.12):
>
> $ ffmpeg -f avfoundation -pixel_format 0rgb -framerate 25 -video_size
> 640x480 -i "0" -map 0:v -c copy -f rawvideo -vframes 1 /tmp/frame.0rgb
> $ wc -c /tmp/frame.0rgb
> 1228832 /tmp/frame.0rgb
Please provide both the complete, uncut console output and one
output frame.
And please confirm if the issue has changed over the last days.
Carl Eugen
More information about the ffmpeg-user
mailing list