typed-ffmpeg
typed-ffmpeg copied to clipboard
Modern Python FFmpeg wrappers offer comprehensive support for complex filters, complete with detailed typing and documentation.
`ffmpeg.complete("Scale to 800x600 and ...") -> Stream Graph`
Some ffmpeg error are hard to detect, such as https://github.com/livingbio/typed-ffmpeg/issues/299#issuecomment-1958476502
echo "nullsrc,scale=640:360,nullsink" | graph2dot -o graph.tmp dot -Tpng graph.tmp -o graph.png
Switch from subprocess to direct FFmpeg interaction via PyAV. https://www.reddit.com/r/Python/comments/1aw5dqj/typed_ffmpeg_typehinted_python_wrapper_for/
the input node, output node and global node should share the same encoding rules
In FFmpeg, when an output stream is not specified, it automatically selects an output file, which can lead to unpredictable results. To mitigate this behavior, it's advisable to enable warnings.
Hard 簡單的解法是轉成 mutable DAG ,操作完再轉回來 但是似乎蠻多應用的, GQ, 區塊鏈