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. Create movie using binary files
Forum Updated to NodeBB v4.3 + New Features

Create movie using binary files

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 734 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.
  • H Offline
    H Offline
    habbas33
    wrote on last edited by
    #1

    hi. I want to create a movie file from binary files. I am able to read binary files using following code

    @QFile myfile;
    int fnum,
    myfile.setFileName(“c:/file%d.bin”,fnum);
    if(!myfile.open(QIODevice::ReadOnly)) return;
    QDataStream data(&myfile);
    data.setByteOrder(QDataStream::LittleEndian);
    QVector<qint16> result;
    while(!data.atEnd()) { qint16 x; data >> x; result.append(x);
    }
    @

    here fnum is the number of frames and represents a binary file... can anyone share an idea for how to create a movie file from these data.. at the moment I am able read a frame and plot an intensity plot using qwtspectrogram. but I also want to save the complete movie.

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      Hi. You can implement FFmpeg. In this case you can choose the container and then you can insert all frames you want. At the end you will have a normal movie.

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      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