-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
This is a raw ffmpeg command for muxing audio and video
ffmpeg -i temp.mp4 \
-i temp.m4a \
-c:v copy -c:a aac -map 0:v:0 -map 1:a:0 \
output.mp4But I can't find any hint or support in your python API
ffmpeg = (
FFmpeg()
.option("y")
.input(str(temp_video_path))
.input(str(temp_audio_path))
.output(
str(output_path),
{"c:v": "copy", "c:a": "aac", "map 0:v": "0", "map 1:a": "0"},
)
)Error:
Traceback (most recent call last):
File "/projects/python/muxer/.venv/lib/python3.11/site-packages/ffmpeg/asyncio/ffmpeg.py", line 208, in execute
raise FFmpegError.create(message=tasks[2].result(), arguments=self.arguments)
ffmpeg.errors.FFmpegInvalidCommand: Error splitting the argument list: Option not found
Metadata
Metadata
Assignees
Labels
No labels