ekibun / flutter_ffplay

A video player powered by ffmpeg.

Home Page:https://pub.dev/packages/flutter_ffplay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't play live

Misutesu opened this issue · comments

  • FFmpeg version : 4.4
  • msys2 with MSVC

FFmpeg compile config

CONFIG_ARGS=--enable-static --disable-shared --enable-pic --enable-gpl --enable-nonfree --disable-programs --enable-decoders --enable-encoders --enable-muxers --disable-network --disable-postproc --disable-avdevice --disable-protocols --disable-doc --disable-filters --disable-avfilter --enable-cross-compile --prefix=/c/MyFiles/Develop/Flutter-Project/flutter_ffplay/cxx/build/win32_x86_64/ --toolchain=msvc --disable-optimizations --arch=x86_64 --target-os=win32

- http-flv h264

The same h264 video file , vod can play , after using ffmpeg to push streaming error

ffmpeg push stream command
ffmpeg -re -i 1.mp4 -vcodec copy -acodec aac -f flv $url

[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 5034310
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 10037074
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 15039838
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 20042602
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 25045366
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 30048130
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 35050894
[flv @ 000002BBE5F12000] Concatenated FLV detected, might fail to demux, decode and seek 12235
[flv @ 000002BBE5F12000] Packet mismatch 1179407873 5002764 40053658

- hls h264 | url:http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8

[hls @ 000001D7B3071580] Skip ('#EXT-X-VERSION:3')
[hls @ 000001D7B3071580] Failed to open segment 734432 of playlist 0
[hls @ 000001D7B3071580] Failed to open segment 734433 of playlist 0
[hls @ 000001D7B3071580] Failed to open segment 734434 of playlist 0
[hls @ 000001D7B3071580] Skip ('#EXT-X-VERSION:3')
[hls @ 000001D7B3071580] Failed to open segment 734435 of playlist 0
[hls @ 000001D7B3071580] keepalive request failed for 'http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8' when parsing playlist, retrying with new connection: Protocol not found
[hls @ 000001D7B3071580] Skip ('#EXT-X-VERSION:3')
[hls @ 000001D7B3071580] keepalive request failed for 'http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8' when parsing playlist, retrying with new connection: Protocol not found
[hls @ 000001D7B3071580] Skip ('#EXT-X-VERSION:3')
[hls @ 000001D7B3071580] Failed to open segment 734436 of playlist 0
[hls @ 000001D7B3071580] keepalive request failed for 'http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8' when parsing playlist, retrying with new connection: Protocol not found
[hls @ 000001D7B3071580] Skip ('#EXT-X-VERSION:3')
[hls @ 000001D7B3071580] keepalive request failed for 'http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8' when parsing playlist, retrying with new connection: Protocol not found
[hls @ 000001D7B3071580] Skip ('#EXT-X-VERSION:3')
[hls @ 000001D7B3071580] Failed to open segment 734437 of playlist 0

Thank you for your answer

Live playing is experimental and the example is slow too. Depending on your internet connection, it might take some time to load the video. Please try the new commit and wait a while to allow the video data to load.