_temp.mp4 video quality

Without the change, _temp.mp4 is much noisier than the original encoded video and it can cause errors in deconding.
This commit is contained in:
Wisketchy Dobrov 2020-10-28 21:33:33 +03:00 committed by GitHub
parent deffc3eac8
commit 1c8d436d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def get_bits_from_video(video_filepath):
# get image sequence from video
print('Reading video...')
image_sequence = []
os.system('ffmpeg -i ' + video_filepath + ' -filter:v fps=fps=' + FRAMERATE + ' ' + TEMPVIDEO)
os.system('ffmpeg -i ' + video_filepath + ' -c:v libx264rgb -filter:v fps=fps=' + FRAMERATE + ' ' + TEMPVIDEO)
os.system('ffmpeg -i ' + TEMPVIDEO + ' ./fvid_frames/decoded_frames_%d.png');
os.remove(TEMPVIDEO)
# for filename in glob.glob(f"{FRAMES_DIR}decoded_frames*.png"):