Skip to content

Video editing with Python

Fix outdated docstrings and error strings (#1160)

Tom Burrows5c73f5accd99
diff --git a/moviepy/audio/io/ffmpeg_audiowriter.py b/moviepy/audio/io/ffmpeg_audiowriter.py
index 98425cde..94d1a661 100644
--- a/moviepy/audio/io/ffmpeg_audiowriter.py
+++ b/moviepy/audio/io/ffmpeg_audiowriter.py
@@ -110,9 +110,9 @@ class FFMPEG_AudioWriter:
"\n\nThe audio export failed because FFMPEG didn't "
"find the specified codec for audio encoding (%s). "
"Please install this codec or change the codec when "
- "calling to_videofile or to_audiofile. For instance "
+ "calling write_videofile or write_audiofile. For instance "
"for mp3:\n"
- " >>> to_videofile('myvid.mp4', audio_codec='libmp3lame')"
+ " >>> write_videofile('myvid.mp4', audio_codec='libmp3lame')"
) % (self.codec)
elif b"incorrect codec parameters ?" in ffmpeg_error:
@@ -121,7 +121,7 @@ class FFMPEG_AudioWriter:
"\n\nThe audio export failed, possibly because the "
"codec specified for the video (%s) is not compatible"
" with the given extension (%s). Please specify a "
- "valid 'codec' argument in to_videofile. This would "
+ "valid 'codec' argument in write_videofile. This would "
"be 'libmp3lame' for mp3, 'libvorbis' for ogg..."
) % (self.codec, self.ext)
diff --git a/moviepy/audio/io/readers.py b/moviepy/audio/io/readers.py
index 6c1ae3bb..8ca6dab1 100644
--- a/moviepy/audio/io/readers.py
+++ b/moviepy/audio/io/readers.py
@@ -23,7 +23,7 @@ class FFMPEG_AudioReader:
buffersize
The size of the buffer to use. Should be bigger than the buffer
- used by ``to_audiofile``
+ used by ``write_audiofile``
print_infos
Print the ffmpeg infos on the file being read (for debugging)
diff --git a/moviepy/video/compositing/transitions.py b/moviepy/video/compositing/transitions.py
index b80413b4..ba622699 100644
--- a/moviepy/video/compositing/transitions.py
+++ b/moviepy/video/compositing/transitions.py
@@ -104,7 +104,7 @@ def slide_out(clip, duration, side):
>>> slided_clips = [CompositeVideoClip([
clip.fx(transfx.slide_out, duration=1, side='left')])
for clip in clips]
- >>> final_clip = concatenate( slided_clips, padding=-1)
+ >>> final_clip = concatenate_videoclips( slided_clips, padding=-1)
"""