Create movie using binary files



  • 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.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.