![]() If ('r_frame_rate' in _metadataĪnd convert_str_to_float(_metadata) > MAX_FRAME_RATE):ĭef push_encode_audio_args_to_command(self, cmd: List) -> None: (f"Video.prepare_ffmpeg_command() -> "])ĭef push_change_frame_rate_args_to_command(self, cmd: List) -> None: Self.push_encode_audio_args_to_command(cmd)Ĭmd.extend() # 'y' arg overwrites output files without asking. Self.push_change_frame_rate_args_to_command(cmd) Self.push_encode_video_args_to_command(cmd) ![]() Is this correct or have I placed one of this instructions in the wrong place?Ĭontext def prepare_ffmpeg_command(self) -> List:Ĭmd = ["ffmpeg", "-progress", "pipe:1", "-i", str(self.path), Like defining the audio codec, because if I don't it doesn't choose the one it already has but a default vorbis audio codec. I've placed some instructions, like the one to change frame rate, inside the conditionals but others outside because I think they are needed always. I want to change the current code so that it works even when the video already is hevc but it's above the MAX_HEIGHT or above the MAX_BITRATE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |