Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 118049

Python ffmpeg displaying output

$
0
0

I want to run command

ffmpeg -i movie.mp4 -vf scale=224:224 movie_224.mp4

to resize video using python language.

I have code for it:

import subprocess
sys_cmd = ["ffmpeg", "-i", "movie.mp4", "-vf", "scale=224:224", movie_224.mp4]
subprocess.check_call(sys_cmd, stdout=subprocess.DEVNULL)

I don't know why I am getting std output even if I have given the argument subprocess.DEVNULL.


Viewing all articles
Browse latest Browse all 118049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>