5959# .. _frame_mappings_creation:
6060#
6161# Creating custom frame mappings with ffprobe
62- # --------------------------------------------
62+ # -------------------------------------------
6363#
6464# The key to using custom frame mappings is preprocessing your videos to extract
6565# frame timing information, and whether or not a frame is a keyframe information.
9191# .. _perf_creation:
9292#
9393# Performance: ``VideoDecoder`` creation with custom frame mappings
94- # ------------------------------------------------------------------
94+ # -----------------------------------------------------------------
9595#
9696# Let's define a benchmarking function to measure performance. Note that when using
9797# file-like objects for custom_frame_mappings, we need to seek back to the beginning
@@ -139,7 +139,7 @@ def bench(f, file_like=False, average_over=50, warmup=2, **f_kwargs):
139139
140140# %%
141141# Performance: Frame decoding with custom frame mappings
142- # --------------------------------------------------------
142+ # ------------------------------------------------------
143143#
144144# The performance benefits extend to frame decoding operations as well, since
145145# each decoding workflow typically involves creating a VideoDecoder instance.
@@ -166,7 +166,7 @@ def decode_frames(video_path, seek_mode = "exact", custom_frame_mappings = None)
166166
167167# %%
168168# Accuracy: High accuracy frame seeking with custom frame mappings
169- # -----------------------------------------------------------
169+ # ----------------------------------------------------------------
170170#
171171# The main advantage of using custom frame mappings over approximate mode is that
172172# frame seeking accuracy is as high as exact mode.
@@ -204,7 +204,7 @@ def decode_frames(video_path, seek_mode = "exact", custom_frame_mappings = None)
204204# accuracy benefits.
205205#
206206# Which approach should I use?
207- # -----------------------------
207+ # ----------------------------
208208#
209209# - For fastest decoding, "approximate" mode is strongly recommended.
210210#
0 commit comments