google / ExoPlayer

An extensible media player for Android
Apache License 2.0
21.64k stars 6k forks source link

Problem play video h264 dumped from SAT #2182

Closed lefoyer closed 7 years ago

lefoyer commented 7 years ago

ExoPlayer 2.0.4 HW: MXQ Pro 4k (Amlogic S905 Android 5.1.1)

Video converted

    /usr/bin/ffmpeg -threads 8 -thread_type 2 -loglevel error -i 'source' \
        -flags -global_header \
        -map 0:v:0 -c:v copy \
        -map 0:a:0 -c:a:0 libfdk_aac -profile:a aac_he -b:a:0 128k -ac 2 -ar 48000 \
        -start_number 0 -hls_time 10 -hls_flags delete_segments -hls_list_size 2 -hls_allow_cache 0 \
        -f hls /tmp/hls.m3u8

First video

Input #0, mpegts, from 'eurosport1.ts':
  Duration: 00:00:10.56, start: 491.554667, bitrate: 11161 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 124 kb/s

Video https://www.dropbox.com/s/wx9gyaokr22yx71/eurosport1.ts?dl=0 Log from android device https://www.dropbox.com/s/k7ydsmk5e3o7wcb/eurosport.txt?dl=0

Second video

Input #0, mpegts, from 'football1.ts':
  Duration: 00:00:10.23, start: 11.298667, bitrate: 5630 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s

Video https://www.dropbox.com/s/ktqrgic6dp9opdl/football1.ts?dl=0 Log from android device https://www.dropbox.com/s/5u94jea1rs246ed/football.txt?dl=0

AquilesCanta commented 7 years ago

Please see #1894. I think changing the ffmpeg parameters configuration should be enough for you to fix the issue without the need of FLAG_ALLOW_NON_IDR_KEYFRAMES.