Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to insert ffmpeg option to QProcess

How to insert ffmpeg option to QProcess

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 943 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mumulalaM Offline
    mumulalaM Offline
    mumulala
    wrote on last edited by mumulala
    #1

    Hi everyone. I have little problem with QProcess.
    i can run basic command,

    QProcess *vconv = new QProcess;
    QString input_file=" /home/gafi/copypastetoroot.avi";
    QStrng output_file="/home/gafi/copypastetoroot.mkv ";
    QString program = "ffmpeg";
    QStringList arguments;
    
    arguments << "-i" << input_file << output_file;
    
    vconv -> start(program, arguments);
    

    but if i add some option i got error "At least one output file must be specified"
    arguments <<"-i" << input_file << "-q:v 1" << output_file;

    i tried in terminal it run normally
    ffmpeg -i /home/gafi/copypastetoroot.avi -q:v 1 /home/gafi/copypastetoroot.mkv

    How to insert the options? thank you.

    mumulalaM 1 Reply Last reply
    0
    • mumulalaM mumulala

      Hi everyone. I have little problem with QProcess.
      i can run basic command,

      QProcess *vconv = new QProcess;
      QString input_file=" /home/gafi/copypastetoroot.avi";
      QStrng output_file="/home/gafi/copypastetoroot.mkv ";
      QString program = "ffmpeg";
      QStringList arguments;
      
      arguments << "-i" << input_file << output_file;
      
      vconv -> start(program, arguments);
      

      but if i add some option i got error "At least one output file must be specified"
      arguments <<"-i" << input_file << "-q:v 1" << output_file;

      i tried in terminal it run normally
      ffmpeg -i /home/gafi/copypastetoroot.avi -q:v 1 /home/gafi/copypastetoroot.mkv

      How to insert the options? thank you.

      mumulalaM Offline
      mumulalaM Offline
      mumulala
      wrote on last edited by
      #2

      solved. i have to split each options and value into single string

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved