wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.99k stars 1.51k forks source link

Raw H264 loaded into memory #1382

Open ktb92677 opened 3 years ago

ktb92677 commented 3 years ago

Hi all! Is there anyway to pipe raw H264 frames loaded up into memory directly into QtAV? I see some examples of how to pipe it in over an HTTP or a TCP stream and I know I could just write the frames to a file and read that file in. But that seems like an odd way to do it. Just curious if it is even possible. Thanks!

Weinbery commented 3 years ago

I also want play Mp4 from memory directly into QtAV, if you had resolved the problem?

ktb92677 commented 3 years ago

Unfortunately I did not resolve this issue. I would recommend not using QtAV if you want to play stuff directly from memory... Unless any one at QtAV is reading these posts and wants to correct me?

Weinbery commented 3 years ago

Thank you for your suggestion. I agree with you, and I will develop my mem-player use original code by SDL2+Qt5+ffmpeg.