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. FFPLAY in Qmainwindow
Qt 6.11 is out! See what's new in the release blog

FFPLAY in Qmainwindow

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    satyanarayana143
    wrote on last edited by satyanarayana143
    #1

    Hi friends,

    I am trying to embed ffplay in Qmainwindow but it displaying outside Qmainwindow can anybody help how to embed inside Qmainwindow.

    QString source ("E:\Yazmi_Multicast_Player_Source\ffmpeg-20170718-012620a-win64-static\ffmpeg-20180412-a26c9fd-win64-static\bin\JanathaGarage720P.ts");

    QProcess *mInputPlayProcess = new QProcess(this);
    QString program = "E:/Yazmi_Multicast_Player_Source/ffmpeg-20170718-012620a-win64-static/ffmpeg-20180412-a26c9fd-win64-static/bin/ffplay.exe";
    QStringList arguments;
    arguments << source;

    mInputPlayProcess->start(program, arguments);
    

    I am using vlc activex control to embed vlc player in widget i have wrote following code but file is not playing can anybody give solution
    // //string is class ID for VLC Media Player

     ui->axWidget->setControl( "{9BE31822-FDAD-461B-AD51-BE1D1C159921}");
    ui->axWidget->setProperty("mrl", source);
    ui->axWidget->setProperty("autoplay", true);
     ui->axWidget->setProperty("autoloop", true);
    ui->axWidget->setProperty("visible", true);
    
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Did you escape the source ?
      you have to have 2 \ pr part.
      also, its not possible to embed anything you call with QProcess inside mainwindow.
      ( there are exceptions on linux but..)

      Also this thread might be interessting
      https://forum.qt.io/topic/64930/dumpdoc-on-64bit-vlc-activex-doesn-t-work

      1 Reply Last reply
      1

      • Login

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