Blender Git Loki

Git Commits -> Revision 1b18ea5

Revision 1b18ea5 by Peter Schlaile (master)
November 1, 2010, 18:13 (GMT)
== FFMPEG ==

This fixes a rather subtle seeking issue with ffmpeg and Sony
XDCAM-footage.

Problem is: MPEG2 streams within an MP4 container can contain a start
time - at several places. There is a starttime within the video
and audio streams and one within the container.

FFMpeg commandline tool only uses the container starttime and we used
the stream starttime.

The world would be a better place, if those two timestamps always match
up, since in XDCAM-footage those two starttimes differ in 4
frames - and the container has the right one.

We now always use the container start time as ffmpeg commandline tool
does (in the hope, that there is a good explaination for this and this
is the right thing(tm) to do).

I tested this also with HDV footage, which seems to work with the new
code, too.

Additional fix: disabled seek_by_bytes again, since it will only work
correctly, if ffmpeg guessed the HDV bitrate right (which it doesn't).
If you have seeking issues with HDV and have an older version of ffmpeg
installed, please upgrade, newer versions have some fixes in them.

Commit Details:

Full Hash: 1b18ea58239b39538f1947cbc1ee0fba9cd26dd9
SVN Revision: 32815
Parent Commit: 3a8c37b
Lines Changed: +23, -14

2 Modified Paths:

/intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp (+10, -6) (Diff)
/source/blender/imbuf/intern/anim_movie.c (+13, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021