# HG changeset patch
# User gpoirier
# Date 1126042408 0
# Node ID 17aad1da6c1d384911ee35551661658bdb737509
# Parent 0d860b6d64e68d5f2b707925db60a9b393edd6d1
New section about sync and remuxing issues.
Also tell that AVI and MPEG are only natively supported containers while more can be supported through libavformat
diff -r 0d860b6d64e6 -r 17aad1da6c1d DOCS/xml/en/encoding-guide.xml
--- a/DOCS/xml/en/encoding-guide.xml Tue Sep 06 21:14:55 2005 +0000
+++ b/DOCS/xml/en/encoding-guide.xml Tue Sep 06 21:33:28 2005 +0000
@@ -1440,7 +1440,7 @@
Now that you have encoded your video, you will most likely want
to mux it with one or more audio tracks into a movie container, such
as AVI, MPEG, Matroska or NUT.
- MEncoder is currently only able to output
+ MEncoder is currently only able to natively output
audio and video into MPEG and AVI container formats.
for example:
mencoder -oac copy -ovc copy -o output_movie.avi -audiofile input_audio.mp2input_video.avi
@@ -1467,6 +1467,43 @@
means that a pre-packaged binary version will not work in most cases).
+
+
+Improving muxing and A/V sync reliability
+
+ You may experience some serious A/V sync problems while trying to mux
+ your video and some audio tracks, where no matter how you adjust the
+ audio delay, you will never get proper sync.
+ That may happen when you use some video filters that will drop or
+ duplicate some frames, like the inverse telecine filters.
+ It is strongly encouraged to append the video
+ filter at the end of the filter chain to avoid this kind of problem.
+
+
+
+ Without , if MEncoder
+ wants to duplicate a frame, it relies on the muxer to put a mark on the
+ container so that the last frame will be displayed again to maintain
+ sync while writing no actual frame.
+ With , MEncoder
+ will instead just push the last frame displayed again into the filter
+ chain.
+ This means that the encoder receives the exact
+ same frame twice, and compresses it.
+ This will result in a slightly bigger file, but will not cause problems
+ when demuxing or remuxing into other container formats.
+
+
+
+ You may also have no choice but to use with
+ container formats that are not too tightly linked with
+ MEncoder such as the ones supported through
+ libavformat, which may not
+ support frame duplication at the container level.
+
+
+
+
Limitations of the AVI container