bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.57k stars 8.13k forks source link

help! Invalid data found when processing input #4621

Open shangshu-litao opened 5 years ago

shangshu-litao commented 5 years ago

W/IJKMEDIA: Failed to open segment of playlist 0

HLS request for url 'http://cdn2- youku.jshuajiu.com:8091/20190212/y4V0GZ78/600kb/hls/Nxf9ndh27042280.ts'

E/IJKMEDIA: Error when loading first segment 'http://cdn2-youku.jshuajiu.com:8091/20190212/y4V0GZ78/600kb/hls/Nxf9ndh2704000.ts'

E/IJKMEDIA: http://cdn2-youku.jshuajiu.com:8091/20190212/y4V0GZ78/index.m3u8: Invalid data found when processing input

BruceLing commented 5 years ago

06-17 10:20:56.264 D/IJKMEDIA( 8585): Statistics: 1048576 bytes read, 0 seeks 06-17 10:20:56.264 E/IJKMEDIA( 8585): pipe:51: Invalid data found when processing input 06-17 10:20:56.264 I/IJKMEDIA( 8585): SDL_JNI_DetachThreadEnv: [8783] 06-17 10:20:56.264 D/IJKMEDIA( 8585): FFP_MSG_ERROR: 0 06-17 10:20:56.265 E/tv.danmaku.ijk.media.player.IjkMediaPlayer( 8585): Error (-10000,0) 06-17 10:20:56.265 D/IjkVideoView( 8585): Error: -10000,0 06-17 10:20:56.265 D/ ( 8585): statusChange STATUS_ERROR...

遇到同样的问题,我就传进去一个普通的MP4文件。。。 我怎么传的: path = "android.resource://" + getPackageName() + "/" + R.raw.video;

mVideoView = (IjkVideoView) findViewById(R.id.video_view);

/** 普通播放 start **/
mVideoView.setAspectRatio(IRenderView.AR_ASPECT_FIT_PARENT);
//mVideoView.setVideoURI(Uri.parse(url7));
mVideoView.setVideoPath(path);
mVideoView.start();
/** 普通播放 end **/