leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
9.82k stars 941 forks source link

decode MPEG2-TS buffer from socket #51

Open AhmedX6 opened 4 years ago

AhmedX6 commented 4 years ago

Hello,

Thanks for the tutorial. I would like to decode frame buffer encoded in MPEG2-TS. (H.264/AAC data) This buffer is received from socket. And I would like to get an transform it as an RGB buffer. How to achieve this with avformat ?

void FrameDecoder::onFrameReceived(const QByteArray &frame) {
    qDebug() << "Ready to decode the frame " << frame;

}

Thanks for help.