-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有些mp4文件无法播放 #11
Comments
那我上传视频的时候应该传什么样的参数的,才能够识别,求大神支持 |
至少pixel format要是有的,类似第一张图片的yuv420p这种。你是用什么拍的?系统拍的应该是H264编码,ffmpeg的应该是有–pix_fmt yuv420p 。 |
recorder = new FFmpegFrameRecorder(new File(videoFile), outputWidth, outputHeight, 1); |
recorder.setFormat(recorderParameters.getVideoOutputFormat()); //H264 |
https://github.com/bytedeco/javacv |
你先试试看有没有 PixelFormat.PIX_FMT_YUV420P 哟~我QQ 359369982 先加我吧,我晚上有时间看看哈~~ |
Chrome浏览器不能放,safarl可以放,我自己手机播放也是黑屏,ios手机可以播放这个地址,
![image](https://cloud.githubusercontent.com/assets/18901958/20828718/cd053fc6-b8b3-11e6-8188-b2005e9c0288.png)
这是地址:http://panzi.hqdemo.cn/Uploads/Microblog/attach/201612/584138b384974.mp4
有时间看看能不能处理一下呗
The text was updated successfully, but these errors were encountered: