Skip to content
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

关于有些视频有声音没图像的问题 #1961

Closed
itlws opened this issue Sep 8, 2016 · 12 comments
Closed

关于有些视频有声音没图像的问题 #1961

itlws opened this issue Sep 8, 2016 · 12 comments

Comments

@itlws
Copy link

itlws commented Sep 8, 2016

请问0.6.1不是增加了mpeg4支持么,但是视频还是有声音没有图像啊?http://movement.gzstv.com/streams/video_url/835/ 是还需要设置什么么?

@Android4MediaPlayer
Copy link

打开mpeg4支持,重新编ffmpeg

@itlws
Copy link
Author

itlws commented Sep 9, 2016

请问具体该怎么做啊?

@yuazhen
Copy link
Contributor

yuazhen commented Sep 10, 2016

try using config/module-default.sh for test. this will enable ffmpeg mpeg4 support. then,
enable mediacodec and mediacodec_mpeg4 in IjkVideoView.java by following statements:
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec", 1);
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec_mpeg4", 1);

@itlws
Copy link
Author

itlws commented Sep 12, 2016

可以了,谢谢了

@JiangangYang
Copy link

请问@yuazhen 您说的
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec", 1);
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec_mpeg4", 1);
是在哪儿设置的?

@yuazhen
Copy link
Contributor

yuazhen commented Sep 12, 2016

IjkVideoView.java in the ijkplayer-example demo.

@lijie815917
Copy link

请问是选择 config/module-default.sh,编译后按ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec", 1);
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec_mpeg4", 1);设置就可以了吗,为什么我的不行,打开mpeg4支持还需要做什么吗@itlws @yuazhen

@bbcallen
Copy link
Contributor

config/module-default.sh is for mpeg4 decoder and parser.
mediacodec_mpeg4 is for mpeg4 hardware decoder.

@lijie815917
Copy link

can you give more details@bbcallen

@lijie815917
Copy link

ok,it can work now .but https url can not play?

@powyin
Copy link

powyin commented Sep 20, 2017

but https url can not play?

@raymond1012
Copy link
Member

search issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants