bilibili / ijkplayer

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

ijkplayer 播放UDP推流出现花屏 #4483

Open GongKuiJun opened 6 years ago

GongKuiJun commented 6 years ago

你好 我遇到了android能播放编码mpegts,hevc的视频,如下 ffmpeg -re -i movie.mp4 -vcodec copy -f mpegts udp://192.168.0.255:6666 ffmpeg -re -i movie.mp4 -vcodec copy -f hevc udp://192.168.0.255:6666 虽然能播放,但是出现了花屏,请问是参数设置问题还是其它原因。

2956

GongKuiJun commented 6 years ago

调试信息如下: W/IJKMEDIA: PES packet size mismatch E/IJKMEDIA: non-existing PPS 0 referenced E/IJKMEDIA: Invalid NAL unit 0, skipping. Invalid NAL unit 0, skipping. Invalid NAL unit 1, skipping. non-existing PPS 0 referenced decode_slice_header error no frame! E/IJKMEDIA: non-existing PPS 0 referenced Invalid NAL unit 0, skipping. non-existing PPS 0 referenced decode_slice_header error no frame! E/IJKMEDIA: non-existing PPS 0 referenced Invalid NAL unit 0, skipping. non-existing PPS 0 referenced decode_slice_header error no frame! E/IJKMEDIA: non-existing PPS 0 referenced non-existing PPS 0 referenced Invalid NAL unit 0, skipping. non-existing PPS 0 referenced E/IJKMEDIA: decode_slice_header error no frame! Invalid NAL unit 0, skipping. Invalid NAL unit 1, skipping. non-existing PPS 0 referenced decode_slice_header error no frame!

GongKuiJun commented 6 years ago

I/IJKMEDIA: max_analyze_duration 7000000 reached at 15333333 microseconds st:0 decoding for stream 0 failed W/IJKMEDIA: Could not find codec parameters for stream 0 (Video: h264, 1 reference frame ([27][0][0][0] / 0x001B), none(left)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options I/IJKMEDIA: max_frame_duration: 10.000 Input #0, mpegts, from 'udp://127.0.0.1:8888': Duration: N/A , start: 100.743356 , bitrate: N/A Program 1 Metadata: service_name : Big Buck Bunny, Sunflower version service_provider: FFmpeg Stream #0:0 [0x100] : Video: h264, 1 reference frame ([27][0][0][0] / 0x001B), none(left) , 30 tbr, 90k tbn, 180k tbc Stream #0:1 [0x101] (und) : Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 384 kb/s W/IJKMEDIA: No codec could be found with id 86016 I/IJKMEDIA: VideoCodec: avcodec, h264 W/IJKMEDIA: fps: 30.000000 (normal) I/IJKMEDIA: SDL_RunThread: [23211] ff_video_dec