mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
SingleVariableCostFunction in nn/part2
This commit is contained in:
@ -59,7 +59,8 @@ class Transform(Animation):
|
|||||||
Animation.clean_up(self, surrounding_scene)
|
Animation.clean_up(self, surrounding_scene)
|
||||||
if self.replace_mobject_with_target_in_scene and surrounding_scene is not None:
|
if self.replace_mobject_with_target_in_scene and surrounding_scene is not None:
|
||||||
surrounding_scene.remove(self.mobject)
|
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):
|
class ReplacementTransform(Transform):
|
||||||
CONFIG = {
|
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 = [
|
command = [
|
||||||
FFMPEG_BIN,
|
FFMPEG_BIN,
|
||||||
'-y', # overwrite output file if it exists
|
'-y', # overwrite output file if it exists
|
||||||
'-f', 'rawvideo',
|
'-f', 'rawvideo',
|
||||||
'-vcodec','rawvideo',
|
'-vcodec','rawvideo',
|
||||||
'-s', '%dx%d'%(width, height), # size of one frame
|
'-s', '%dx%d'%(width, height), # size of one frame
|
||||||
'-pix_fmt', 'rgba',
|
'-pix_fmt', 'rgba',
|
||||||
'-r', str(fps), # frames per second
|
'-r', str(fps), # frames per second
|
||||||
'-i', '-', # The imput comes from a pipe
|
'-i', '-', # The imput comes from a pipe
|
||||||
'-an', # Tells FFMPEG not to expect any audio
|
'-an', # Tells FFMPEG not to expect any audio
|
||||||
'-vcodec', 'mpeg',
|
'-vcodec', 'mpeg',
|
||||||
'-c:v', 'libx264',
|
'-c:v', 'libx264',
|
||||||
'-pix_fmt', 'yuv420p',
|
'-pix_fmt', 'yuv420p',
|
||||||
|
Reference in New Issue
Block a user