Comments (9)
看看 libavformat/concatdec.c
内存泄露看看 profile,确认一下有没有调用shutdown并且销毁 view
from ijkplayer.
哎 concat也是一头雾水 不知道是哪里出错了。
内存泄漏问题倒是解决了
from ijkplayer.
请问能给一个concat的示例吗
from ijkplayer.
我有类似的需求,例如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.
http://www.ffmpeg.org/ffmpeg-formats.html#Syntax
m3u8理论上也可以。
from ijkplayer.
昨天终于搞定了concat协议的问题,
问题是: 文件必须要加上 ffconcat version 1.0
然后使用了concat协议导致无法获取时间长度 需要为每个分段设置时长 ‘ duration <时长>’
m3u8还是没解决 不知道是我标签没写对还是怎么 总之现在有解决方案了 = =
from ijkplayer.
我昨天也试过了concat几段mp4的网络视频,可以正常播放,不过有可能是mp4切片的问题,段与段之间还是会有点卡顿一下感觉,可能还要调试一下看看;m3u8的话,还是直接用HLS的吧,挺好的。
from ijkplayer.
@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.
时长是秒为单位 然后你可以检查下其中的URL是否能正常播放
只能帮到这里了.
from ijkplayer.
Related Issues (20)
- 怎么编译出Mac版本的库
- 长时间播放RTSP奔溃:Fatal signal 11 (SIGSEGV), code 1,faut addr 0xfc in tid 7962 (RenderThread)
- 屏蔽声音问题
- 按照官方步骤编辑 运行官方demo 报 Showing All Messages Linker command failed with exit code 1 (use -v to see invocation)
- 一直无法播放RTSP视频流
- No accelerated colorspace conversion found from yuv422p to rgba.
- ipcamera 时间校准接口有吗
- ijkplayer 边播边录像。遇到没有音频的视频,录像失败,报sample rate 为0 怎么处理
- iOS k0.8.8 Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found,怎么解决? HOT 5
- 播放视频地址为下载地址,播放不了
- WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail. tools/do-compile-ffmpeg.sh: line 309: 14111 Segmentation fault: 11 make clean 构建出现了这问题,电脑是Apple的M1.. HOT 1
- 进度条拖动快进快退崩溃 HOT 4
- 安卓m3u8是否支持循环播放功能 HOT 1
- format-opts : ijkapplication = -5476376652859717728 format-opts : ijkiomanager = -5476376655277537712
- 连相机rtsp几分钟后卡死在页面 HOT 1
- iOS 播放rtsp后,即使重新初始化播放器也无法播放http视频 HOT 1
- make: *** No rule to make target `install-libs-yes', needed by `install-libs'. HOT 1
- 在编译./compile-openssl.sh all 时报错 Invalid argument,报错信息如下,查看../include/openssl/opensslconf.h 发现文件大小为0,请问哪里出问题了 该如何解决
- 播放器crash HOT 1
- Android,加上参数编译支持pcm_alaw的音频解析,但是还是没有声音
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 ijkplayer.