Comments (11)
It's empty frame...
from qtavplayer.
Oh, ok, It works fine now with QGraphicsVideoItem.
Thanks for your support
from qtavplayer.
from qtavplayer.
Thanks for the report.
Does it mean that frame()
returns nullptr there?
Could you test
https://github.com/valbok/QtAVPlayer/blob/master/src/QtAVPlayer/qavhwdevice_d3d11.cpp#L324
if (!frame().frame())
return {};
from qtavplayer.
I tried your test but frame() is not nullptr,
The problem occurred on this line:
return QLatin1String(av_pix_fmt_desc_get(QAVVideoFrame::format())->name);
And I saw that QAVVideoFrame::format() return -1 at that.
I tried 2 simillar samples with QVideoWidget and QGraphicsVideoItem, It both contains a videoSink.
The sample with QVideoWidget worked fine, But the sample with QGraphicsVideoItem crashed on the line above after call to play()
from qtavplayer.
could you qDebug() << frame().frame()->format; ?
Is it -1?
from qtavplayer.
Yes, It prints -1, but with the QVideoWidget, It prints 172.
I think It has some difference between QVideoSink in QVideoWidget and in QGraphicsVideoItem. But I'm not sure
Note: I used the same rtsp link with both case
from qtavplayer.
Forgot to ask, static_cast<bool>(frame())
should be false there?
Meant that the frame is invalid and should be skipped
from qtavplayer.
Sorry, I dont know where is the "static_cast(frame())" you mentioned
I'm using Qt 6.6.2 which has a defined for handling
from qtavplayer.
meant to check like
if (!frame()) qDebug() <<"empty frame";
from qtavplayer.
so could you please just skip it?
if (!frame())
return {};
And check if some correct video frames will be sent? Also could you provide std output? Maybe it could not find a codec...
from qtavplayer.
Related Issues (20)
- Playback on windows uses a lot of CPU when rendering, despite d3d11 hardware decoding HOT 29
- Integration in digiKam (Qt5): some helps required. HOT 83
- Using hardware decoding in videotoolbox_vld FFmpeg: [mpeg4 @ 0x13401b0c0] Failed setup for format videotoolbox_vld: hwaccel initialisation returned error. HOT 3
- SetFilters does not refresh the current frame. HOT 1
- Custom HW accelerated renderer
- Introduce rotation metadata to streams HOT 1
- Error with Qt 6.7 beta 2: no type named 'ReturnType' in 'QtPrivate::Callable' HOT 1
- Drag play window bug HOT 6
- QAVAudioOutput has crackling audio when there are other CPU intensive tasks running on the PC HOT 20
- release
- Possible rare crash in avcodec_send_packet() ? HOT 5
- Slow playback on file_example_AVI_480_750kB.avi
- Erro ao converter QAVVideoFrame para QVideoFrame HOT 5
- Correção do drm/drm_fourcc.h não encontrado HOT 3
- FFmpeg: [swscaler @ 0x7f5454a79e00] deprecated pixel format used, make sure you did set range correctly HOT 1
- BUG - Função Stop HOT 2
- QtAvplayer itself compiles on 6.7.1 but C++ code fails HOT 6
- Memory leak HOT 3
- QAVAudioFrame::data() reinitializes the resampler over and over again
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtavplayer.