Giter Club home page Giter Club logo

Comments (9)

bbcallen avatar bbcallen commented on May 18, 2024

看看 libavformat/concatdec.c
内存泄露看看 profile,确认一下有没有调用shutdown并且销毁 view

from ijkplayer.

domingoxx avatar domingoxx commented on May 18, 2024

哎 concat也是一头雾水 不知道是哪里出错了。
内存泄漏问题倒是解决了

from ijkplayer.

domingoxx avatar domingoxx commented on May 18, 2024

请问能给一个concat的示例吗

from ijkplayer.

jgfntu avatar jgfntu commented on May 18, 2024

我有类似的需求,例如30分钟的视频,但是是5分钟一段的mp4,目前做的只是在上层做预加载,一段快结束了,接着放第二段,但是总归会有播放器的重启时间间隔,体验不好。
一直想在ffmpeg的avformat里面仿照HLS的解析写一个,如果我把5分钟一段的MP4写成类似M3U8的列表,然后做类似解析,不知是否可行?或者说与TS的m3u8的区别是什么?毕竟TS都是几秒的分段,并且对于mp4来说做seek之类的操作好像都比较麻烦。
vitamio倒是提供了setDataSegments(String[] uris, String cacheDir)的接口,给若干url,然后vitamio会缓冲一会儿才开始播放(莫非是获取了各段mp4的header信息后才开始播放的),是否有更好的方式来实现这个需求?

from ijkplayer.

bbcallen avatar bbcallen commented on May 18, 2024

http://www.ffmpeg.org/ffmpeg-formats.html#Syntax
m3u8理论上也可以。

from ijkplayer.

domingoxx avatar domingoxx commented on May 18, 2024

昨天终于搞定了concat协议的问题,
问题是: 文件必须要加上 ffconcat version 1.0
然后使用了concat协议导致无法获取时间长度 需要为每个分段设置时长 ‘ duration <时长>’

m3u8还是没解决 不知道是我标签没写对还是怎么 总之现在有解决方案了 = =

from ijkplayer.

jgfntu avatar jgfntu commented on May 18, 2024

我昨天也试过了concat几段mp4的网络视频,可以正常播放,不过有可能是mp4切片的问题,段与段之间还是会有点卡顿一下感觉,可能还要调试一下看看;m3u8的话,还是直接用HLS的吧,挺好的。

from ijkplayer.

simtice avatar simtice commented on May 18, 2024

@jgfntu @DaaarksunWang 我的还是不行
ffconcat version 1.0
file http://cn-gdfs5-dx.acgvideo.com/vg7/2/0e/6546710-1.flv?expires=1460724300&ssig=yqOcE8bCE8ntlgkB1v7rqQ&oi=3070666578&appkey=f3bb208b3d081dc8&or=3074230573&rate=0
duration 267544
file http://cn-gdfs5-dx.acgvideo.com/vg7/2/0e/6546710-2.flv?expires=1460724300&ssig=jJ_iWb08zIhLxU6KICXx4w&oi=3070666578&appkey=f3bb208b3d081dc8&or=3074230573&rate=0
duration 442732
file http://cn-gdfs5-dx.acgvideo.com/vg7/2/0e/6546710-3.flv?expires=1460724300&ssig=T-c2-csCpdmW3xuCdKIHGg&oi=3070666578&appkey=f3bb208b3d081dc8&or=3074230573&rate=0
duration 276423

能否帮忙测试以下

from ijkplayer.

domingoxx avatar domingoxx commented on May 18, 2024

@simtice

时长是秒为单位 然后你可以检查下其中的URL是否能正常播放

只能帮到这里了.

from ijkplayer.

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.