I need to send a fairly long command using python docker SDK
ffmpeg -f lavfi -re -i smptebars=duration=60:size=1280x720:rate=30 -f lavfi -re -i sine=frequency=1000:duration=60:sample_rate=44100 -pix_fmt yuv420p -c:v libx264 -b:v 1000k -g 30 -keyint_min 120 -profile:v baseline -preset veryfast -f mpegts "srt://127.0.0.1:4200?pkt_size=1316"
I have an example where you ned to wrap each element in double quotes.
container1 = client.containers.run("alpine", ["echo", "hello", "world"],name='autotest', detach=True)
2 Questions
Is there an elegant way to do this? If not how do I handle the bits that already have quotes?