Code Monkey home page Code Monkey logo

Comments (9)

swltown avatar swltown commented on June 2, 2024

调试堆栈停在sdl_audio_callback,不知道时sdl库的问题,还是什么的问题

请问你是怎么配置成功的啊,我配置好久都跑不起来

from playerdemo.

1031507008 avatar 1031507008 commented on June 2, 2024

那得先说说你是怎么配置的。。其实具体SDL 和 ffmpeg的配置过程,网上有好多教程

from playerdemo.

lickysw avatar lickysw commented on June 2, 2024

楼主解决了吗,我也是这个问题一模一样,而且视频播放完也会闪退

from playerdemo.

1031507008 avatar 1031507008 commented on June 2, 2024

楼主解决了吗,我也是这个问题一模一样,而且视频播放完也会闪退

解决了,记得是关闭音频设备时函数调用错了,对照原版的ffplay看一下就能找到

from playerdemo.

yuyansheng avatar yuyansheng commented on June 2, 2024

楼主解决了吗,我也是这个问题一模一样,而且视频播放完也会闪退

解决了,记得是关闭音频设备时函数调用错了,对照原版的ffplay看一下就能找到

可以请问一下楼主具体是如何解决的吗,是哪里的函数有问题?

from playerdemo.

yuyansheng avatar yuyansheng commented on June 2, 2024

找到问题了本人解决方式如下:
VideoCtl::OnStop()
函数内加上
SDL_PauseAudioDevice(audio_dev,1);
还有一个问题双击切换其他文件播放时也会出现相同的崩溃 可以尝试在
Show::OnPlay(QString strFile)
函数内加上一句
emit VideoCtl::GetInstance()->SigStop();
但是本人也不理解为什么希望可以有人帮忙解答一下

from playerdemo.

1031507008 avatar 1031507008 commented on June 2, 2024

楼主解决了吗,我也是这个问题一模一样,而且视频播放完也会闪退

解决了,记得是关闭音频设备时函数调用错了,对照原版的ffplay看一下就能找到

可以请问一下楼主具体是如何解决的吗,是哪里的函数有问题?

在videoctl类,stream_compnent_close中SDL_CloseAudio();替换为SDL_CloseAudioDevice(audio_dev);

from playerdemo.

yuyansheng avatar yuyansheng commented on June 2, 2024

在videoctl类,stream_compnent_close中SDL_CloseAudio();替换为SDL_CloseAudioDevice(audio_dev);

谢谢大佬

from playerdemo.

swltown avatar swltown commented on June 2, 2024

那得先说说你是怎么配置的。。其实具体SDL 和 ffmpeg的配置过程,网上有好多教程

是这样的,我运行的时候出现了没有SDL2.dll文件的异常。我的文件结构是这样的
$$PWD
--lib
--SDL2
--lib
--libSDL2.a
--libSDL2.dll.a
--libSDL2main.a
--libSDL2_test.a
--SDL2.dll

from playerdemo.

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.