Giter Club home page Giter Club logo

Comments (6)

valbok avatar valbok commented on August 13, 2024

Hi, thanks for the contribution, if you would add the PR, it would be even better *-)

Btw, it looks like related to ffmpeg ver, since never seen this before. What version do you use?

from qtavplayer.

TyrasNistru avatar TyrasNistru commented on August 13, 2024

Hi, thanks for the contribution, if you would add the PR, it would be even better *-)

Btw, it looks like related to ffmpeg ver, since never seen this before. What version do you use?

I didn't "fix" it on a fork, just added to header and tried to build. Will do the proper fork=>pullreq ASAP.

ffmpeg cloned from git. Running the executable generated from it reports:

ffmpeg version N-111790-g7e246a5db5

from qtavplayer.

valbok avatar valbok commented on August 13, 2024

Thanks, I took from there https://github.com/BtbN/FFmpeg-Builds/releases, and it really fails.

from qtavplayer.

valbok avatar valbok commented on August 13, 2024

#396

from qtavplayer.

bobrokrol avatar bobrokrol commented on August 13, 2024

Thanks, I took from there https://github.com/BtbN/FFmpeg-Builds/releases, and it really fails.

I have similar errors with different ffmeg versions and QT
Right now Im using qt 6.5.2
and ffmpeg-n6.0-11-g3980415627-win64-lgpl-shared-6.0, downloaded from BtbN repo.
But the problem was in missed headers I had to include missed headers in QtAVPlayer.pri

PRIVATE_HEADERS += \
    $$PWD/qavcodec_p.h \
    $$PWD/qavcodec_p_p.h \
    $$PWD/qavframecodec_p.h \
    $$PWD/qavaudiocodec_p.h \
    $$PWD/qavvideocodec_p.h \
    $$PWD/qavsubtitlecodec_p.h \
    $$PWD/qavhwdevice_p.h \
    $$PWD/qavdemuxer_p.h \
    $$PWD/qavpacket_p.h \
    $$PWD/qavstreamframe_p.h \
    $$PWD/qavframe_p.h \
    $$PWD/qavpacketqueue_p.h \
    $$PWD/qavvideobuffer_p.h \
    $$PWD/qavvideobuffer_cpu_p.h \
    $$PWD/qavvideobuffer_gpu_p.h \
    $$PWD/qavfilter_p.h \
    $$PWD/qavfilter_p_p.h \
    $$PWD/qavvideofilter_p.h \
    $$PWD/qavaudiofilter_p.h \
    $$PWD/qavfiltergraph_p.h \
    $$PWD/qavinoutfilter_p.h \
    $$PWD/qavinoutfilter_p_p.h \
    $$PWD/qavvideoinputfilter_p.h \
    $$PWD/qavaudioinputfilter_p.h \ 
    $$PWD/qavvideooutputfilter_p.h \
    $$PWD/qavaudiooutputfilter_p.h \
    $$PWD/qaviodevice_p.h \
    $$PWD/qavfilters_p.h \
    $$PWD/qavaudiooutput.h \
    $$PWD/qavandroidsurfacetexture.h

PUBLIC_HEADERS += \
    $$PWD/qavaudioformat.h \
    $$PWD/qavstreamframe.h \
    $$PWD/qavframe.h \
    $$PWD/qavvideoframe.h \
    $$PWD/qavaudioframe.h \
    $$PWD/qavsubtitleframe.h \
    $$PWD/qtavplayerglobal.h \
    $$PWD/qavstream.h \
    $$PWD/qavplayer.h \

SOURCES += \
    $$PWD/qavplayer.cpp \
    $$PWD/qavcodec.cpp \
    $$PWD/qavframecodec.cpp \
    $$PWD/qavaudiocodec.cpp \
    $$PWD/qavvideocodec.cpp \
    $$PWD/qavsubtitlecodec.cpp \
    $$PWD/qavdemuxer.cpp \
    $$PWD/qavpacket.cpp \
    $$PWD/qavframe.cpp \
    $$PWD/qavstreamframe.cpp \
    $$PWD/qavvideoframe.cpp \
    $$PWD/qavaudioframe.cpp \
    $$PWD/qavsubtitleframe.cpp \
    $$PWD/qavvideobuffer_cpu.cpp \
    $$PWD/qavvideobuffer_gpu.cpp \
    $$PWD/qavfilter.cpp \
    $$PWD/qavvideofilter.cpp \
    $$PWD/qavaudiofilter.cpp \
    $$PWD/qavfiltergraph.cpp \
    $$PWD/qavinoutfilter.cpp \
    $$PWD/qavvideoinputfilter.cpp \
    $$PWD/qavaudioinputfilter.cpp \
    $$PWD/qavvideooutputfilter.cpp \
    $$PWD/qavaudiooutputfilter.cpp \
    $$PWD/qaviodevice.cpp \
    $$PWD/qavstream.cpp \
    $$PWD/qavfilters.cpp \
    $$PWD/qavaudiooutput.cpp \
    
and also was some errors about incopatible "<<" overloading in qavhwdevice_d3d11.cpp

so  I had to manually do convertion to QString    

qWarning() << "Failed to obtain resource handle from FFmpeg texture:" << hr << QString::fromStdString(std::system_category().message(hr));

Right now it compiles and runs after I manually copied all .dlls to output folder

from qtavplayer.

valbok avatar valbok commented on August 13, 2024

Thanks, I just tested 6.5.2 and it works, but 6.4 does not, are you sure that you use 6.5?

from qtavplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.