安装错误:没有这样的文件或目录:'ffmpeg':'ffmpeg'

时间:2018-01-16 20:20:57

标签: ffmpeg

有没有办法在没有超级用户权限的情况下安装 ffmpeg ?无法使用git clone ./configure

中的git://source.FFmpeg.org/fFFmpeg.git执行此操作

1 个答案:

答案 0 :(得分:0)

是的,只需抓取Linux here或MacOS here的静态版本。然后打开命令提示符并解压缩您的存档,cd到bin文件夹并生成二进制文件可执行文件:

import java.awt.*;
import javax.swing.*;
import java.awt.event.*; 


public class Scream extends JPanel   {
    private JButton button = new JButton("OK");
    private Color screenColor;
    private JPanel panel = new JPanel(); 
    private JFrame frame;
    private Dimension screenSize;
    private ImageIcon image;
    private JLabel label = new JLabel(image);
    private int x;
    private int y; 
    private boolean mouseClicked;

    public Scream() {

        button.addActionListener(new ActionListener(){
            @Override
            public void actionPerformed(ActionEvent e ) {
                if (e.getSource() == button) {
                    mouseClicked = true; 
                    frame.getContentPane().add(label);
                    frame.setSize(image.getIconWidth(), image.getIconHeight()); 
                    panel.repaint();

                }
            }
        });

        frame = new JFrame ("Existential angst");
        screenColor = new Color(150, 100, 0);
        panel.setBackground( screenColor );
        frame.add(button, BorderLayout.PAGE_END);
        frame.add(panel);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(1300, 700);
        frame.setVisible(true);
    }

    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        image.paintComponent(this, g, 1300, 700);
    } 


    public static void main (String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                Scream scream = new Scream();
            }
        });
    }
}

然后,您可以将可执行文件移动到主目录中,可能位于chmod +x ffmpeg 下,然后从那里执行。