zoukankan      html  css  js  c++  java
  • Python执行系统命令并获得输出的几种方法

    [root@a upfc]# ./ffmpeg-linux64-v3.3.1 -i a.mp3
    ffmpeg version N-86111-ga441aa90e8-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 5.4.1 (Debian 5.4.1-8) 20170304
      configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
      libavutil      55. 63.100 / 55. 63.100
      libavcodec     57. 96.101 / 57. 96.101
      libavformat    57. 72.101 / 57. 72.101
      libavdevice    57.  7.100 / 57.  7.100
      libavfilter     6. 89.101 /  6. 89.101
      libswscale      4.  7.101 /  4.  7.101
      libswresample   2.  8.100 /  2.  8.100
      libpostproc    54.  6.100 / 54.  6.100
    [mp3 @ 0x4f60420] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from 'a.mp3':
      Duration: 00:02:00.85, start: 0.000000, bitrate: 16 kb/s
        Stream #0:0: Audio: mp3, 16000 Hz, mono, s16p, 16 kb/s
    At least one output file must be specified
    [root@a upfc]# ./ffmpeg-linux64-v3.3.1 -i a.mp3
    

      

    Python执行系统命令并获得输出的几种方法 - CSDN博客  https://blog.csdn.net/dingyaguang117/article/details/7236296

  • 相关阅读:
    单位根反演
    安卓第十三天笔记-服务(Service)
    安卓第十二天笔记-广播
    安卓第十一天笔记-Intent与inter-filter配置
    安卓第十天笔记-fragment
    安卓第九天笔记-Activity
    安卓第八天笔记--网络编程二
    安卓第七天笔记--网络编程一
    安卓第六天笔记--ListView
    安卓第五天笔记-对话框
  • 原文地址:https://www.cnblogs.com/rsapaper/p/8995438.html
Copyright © 2011-2022 走看看