Blender Git Commit Log

Git Commits -> Revision ce649c7

Revision ce649c7 by Sebastian Parborg (master)
May 31, 2021, 09:29 (GMT)
Fix T88623, T87044: Make encoded videos play correctly in VLC

The issue was two fold. We didn't properly:

1. Initialize the codec default values which would lead to VLC
complaining because of garbage/wrong codec settings.

2.Calculate the time base for the video. FFmpeg would happily accept
this but VLC seems to assume the time base value is at least somewhat
correct and couldn't properly display the frames as the internal time
base was huge. We are talking about 90k ticks (tbn) for one second of
video!

This patch initializes all codecs to use their default values and fixes
the time base calculation so it follows the guidelines from ffmpeg.

Reviewed By: Sergey, Richard Antalik

Differential Revision: https://developer.blender.org/D11426

Commit Details:

Full Hash: ce649c73446ea710ffdf7383495b52b0827a5893
Parent Commit: 2534609
Lines Changed: +103, -86

2 Modified Paths:

/source/blender/blenkernel/intern/writeffmpeg.c (+96, -79) (Diff)
/source/blender/imbuf/intern/indexer.c (+7, -7) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021