AlexEidt / Vidio

FFmpeg wrapper providing simple, cross-platform Video I/O, GIF Creation, and Webcam Streaming in Go.
https://pkg.go.dev/github.com/AlexEidt/Vidio
MIT License
349 stars 16 forks source link

Getting scrambled frames for portrait videos #10

Closed lgaribaldi closed 8 months ago

lgaribaldi commented 8 months ago

By using the example code to read a video and write the output directly and save the frames, I am getting all frames and the output video scrambled for certain input videos. This seems to only happen in portrait videos as far as I can tell. This is an example frame, as you can see it looks like the stride is off: 1

I'll submit a PR with the fix that I am using