mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 05:52:34 +08:00
SingleVariableCostFunction in nn/part2
This commit is contained in:
@ -59,7 +59,8 @@ class Transform(Animation):
|
||||
Animation.clean_up(self, surrounding_scene)
|
||||
if self.replace_mobject_with_target_in_scene and surrounding_scene is not None:
|
||||
surrounding_scene.remove(self.mobject)
|
||||
surrounding_scene.add(self.original_target_mobject)
|
||||
if not self.remover:
|
||||
surrounding_scene.add(self.original_target_mobject)
|
||||
|
||||
class ReplacementTransform(Transform):
|
||||
CONFIG = {
|
||||
|
1021
nn/part2.py
1021
nn/part2.py
File diff suppressed because it is too large
Load Diff
4248
nn/scenes.py
4248
nn/scenes.py
File diff suppressed because it is too large
Load Diff
@ -479,14 +479,14 @@ class Scene(object):
|
||||
|
||||
command = [
|
||||
FFMPEG_BIN,
|
||||
'-y', # overwrite output file if it exists
|
||||
'-y', # overwrite output file if it exists
|
||||
'-f', 'rawvideo',
|
||||
'-vcodec','rawvideo',
|
||||
'-s', '%dx%d'%(width, height), # size of one frame
|
||||
'-pix_fmt', 'rgba',
|
||||
'-r', str(fps), # frames per second
|
||||
'-i', '-', # The imput comes from a pipe
|
||||
'-an', # Tells FFMPEG not to expect any audio
|
||||
'-i', '-', # The imput comes from a pipe
|
||||
'-an', # Tells FFMPEG not to expect any audio
|
||||
'-vcodec', 'mpeg',
|
||||
'-c:v', 'libx264',
|
||||
'-pix_fmt', 'yuv420p',
|
||||
|
Reference in New Issue
Block a user