You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
Describe the bug
I use the code below to decode and encode a video file. The video has 1 fps and contains 4 frames. The first encoding works as expected, but when the processing is called again on the same file (or any other), the first frame of the produced video is black (the rest is fine). As far as I understand, the problem is caused by converting the surface to tensor and back. Without that conversion the problem doesn't occur.
To Reproduce
See the provided code (python3 code.py). Sample mkv: https://1drv.ms/u/s!At82OVPhN7VajIhfttp06Xb4lx-gVw?e=4bpERG
Store the sample mkv in the same folder as the code.py and name it sample.mkv. The output will be stored in the same folder under output.mkv.
Expected behavior
The first frame of the video is encoded correctly.
Desktop (please complete the following information):
OS: Linux (AWS g4dn instance with Tesla T4, 16GB RAM and 4 vCPUs)
Describe the bug
I use the code below to decode and encode a video file. The video has 1 fps and contains 4 frames. The first encoding works as expected, but when the processing is called again on the same file (or any other), the first frame of the produced video is black (the rest is fine). As far as I understand, the problem is caused by converting the surface to tensor and back. Without that conversion the problem doesn't occur.
To Reproduce
See the provided code (
python3 code.py
). Sample mkv: https://1drv.ms/u/s!At82OVPhN7VajIhfttp06Xb4lx-gVw?e=4bpERGStore the sample mkv in the same folder as the
code.py
and name itsample.mkv
. The output will be stored in the same folder underoutput.mkv
.Expected behavior
The first frame of the video is encoded correctly.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: