wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
199 stars 32 forks source link

伪装成图片的视频无法播放又来了 #186

Open yemin82 opened 12 hours ago

yemin82 commented 12 hours ago
flutter: fvp.FINE: 09:23:06.767: registerVideoPlayerPlatformsWith: {platforms: [ios], video.decoders: [FFmpeg, videotoolbox, VT]}
flutter: fvp.FINE: 09:23:06.782: registerVideoPlayerPlatformsWith: {platforms: [ios], video.decoders: [FFmpeg, videotoolbox, VT]}
flutter: fwfh.HtmlWidget.FINE: 09:23:06.828: Building body...
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.838: Registered ul for UL tag
flutter: fwfh.CoreBuildTree.FINE: 09:23:06.855: Custom styles for UL: {color: rgba(153,153,153,1.0), padding: 0, list-style-type: none, text-decoration: none}
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.860: Registered padding for UL tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.861: Registered margin for UL tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.865: Registered padding for UL tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.866: Registered display: block for UL tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.866: Registered sizing for UL tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.869: Registered li for LI tag
flutter: fwfh.CoreBuildTree.FINE: 09:23:06.869: Custom styles for LI: {color: rgba(153,153,153,1.0), padding: 0, list-style-type: none, text-decoration: none}
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.869: Registered padding for LI tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.870: Registered sizing (min-width=0) for LI tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.871: Registered a[href] for A tag
flutter: fwfh.CoreBuildTree.FINE: 09:23:06.872: Custom styles for A: {color: rgba(153,153,153,1.0), padding: 0, list-style-type: none, text-decoration: none, margin-right: 5px, display: inline-block}
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.873: Registered padding for A tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.873: Registered margin for A tag
flutter: fwfh.CoreBuildTree.FINEST: 09:23:06.874: Registered display: inline-block for A tag

flutter: mdk.WARNING: 09:23:09.090: Failed to create io for url. io: 0x0, open: 0
flutter: mdk.FINE: 09:23:09.090: default 0x10d027860 FrameReader::update MediaStatus 0X2=>0X2
flutter: mdk.FINE: 09:23:09.091: before avformat_open_input. io: 0x0()/pb: 0x0, url: https://yundunm.nowm3.xyz:2083/vtt/hls/xianzaibodadedianhua/1.m3u8
flutter: mdk.FINE: 09:23:09.091: [FFmpeg:tls] Unable to negotiate TLS/SSL session: -9836
flutter: mdk.FINE: 09:23:09.091: Error avrt::avformat_open_input(&fmtctx_, ffmpeg::from_file_uri(in.c_str()), fmt, &dict) @357 /Users/runner/work/mdk-sdk/mdk-sdk/mdk/ffmpeg/plugin/FFmpegPacketIO.cpp: (0xfffffffb) Input/output error
flutter: mdk.FINE: 09:23:09.091: unsupported avformat options:  headers=Referer: https://www.czzyvideo.com/v_play/bXZfMTk4MTUtbm1fMQ==.html
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0
 rtsp_transport=tcp protocol_whitelist=file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile reconnect_delay_max=7 strict=experimental reconnect=1
flutter: mdk.FINE: 09:23:09.091: 0x7000087a6000default 0x10d027860 update @1147: reset status_mask. status: 80000000
flutter: mdk.FINE: 09:23:09.092: default 0x10d027860 FrameReader::update MediaStatus 0X2=>0X80000000
flutter: fvp.FINE: 09:23:09.092: 658369671 player4513174480 onMediaStatus: MediaStatus(+loading) => MediaStatus(+invalid)
flutter: mdk.WARNING: 09:23:09.092: reader open error
flutter: mdk.FINE: 09:23:09.093: 0x7000087a6000default 0x10d027860 update @1147: reset status_mask. status: 80000000
flutter: mdk.FINE: 09:23:09.093: default 0x10d027860 FrameReader::update MediaStatus 0X80000000=>0X80000000
flutter: ++++error
flutter: mdk.FINE: 09:23:09.101: 0x10d027860 unload, current status 0x80000000, invalid: 0x80000000, loading: 0, loaded: 0, buffering: 0, seeking: 0, prepared: 0, EOF: 0
flutter: mdk.FINE: 09:23:09.101: default FrameReader0x10d027860 state: 0=>2=>0, 1
flutter: mdk.SEVERE: 09:23:09.102: state not changed!
flutter: mdk.FINE: 09:23:09.102: read thread finished: mdk.read@0x7000087a6000
flutter: ++++error
flutter: PlatformException(VideoError, Failed to load video: The operation couldn’t be completed. (CoreMediaErrorDomain error -12642.), null, null)
yemin82 commented 12 hours ago

https://yundunm.nowm3.xyz:2083/vtt/hls/xianzaibodadedianhua/1.m3u8 fvp 0.28.0

wang-bin commented 10 hours ago

flutter: mdk.FINE: 09:23:09.091: [FFmpeg:tls] Unable to negotiate TLS/SSL session: -9836

这是tls错误,我macos上测了用系统的ssl会有tls错误,用gnutls能打开。用vlc测了下,他也是用系统的ssl,也是tls错误。以前碰到过类似错误的链接,可能ssl证书有问题,也是只有gnutls可以打开,或许我可以编译个使用gnutls的ffmpeg。

main debug: VLC media player - 4.0.0-dev Otto Chriek
main debug: Copyright © 1996-2024 the VideoLAN team
main debug: revision 4.0.0-dev-32046-ge65b275401
main debug: configured with /Users/videolanci/builds/1RnZy2_zb/0/videolan/vlc/extras/package/macosx/../../../configure  '--prefix=/' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-libass' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-vnc' '--without-x' '--build=aarch64-apple-darwin19' '--host=aarch64-apple-darwin19' '--with-macosx-version-min=10.11' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' '--enable-extra-checks' 'build_alias=aarch64-apple-darwin19' 'host_alias=aarch64-apple-darwin19' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g -arch arm64 -Werror=incompatible-function-pointer-types' 'LDFLAGS=-arch arm64' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g -arch arm64 -Werror=incompatible-function-pointer-types' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g -arch arm64 -Werror=incompatible-function-pointer-types'
main debug: Creating an input for playback'1.m3u8'
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `https://yundunm.nowm3.xyz:2083/vtt/hls/xianzaibodadedianhua/1.m3u8' gives access `https' demux `any' path `yundunm.nowm3.xyz:2083/vtt/hls/xianzaibodadedianhua/1.m3u8'
main debug: creating access: https://yundunm.nowm3.xyz:2083/vtt/hls/xianzaibodadedianhua/1.m3u8
main debug: looking for access module matching "https": 1 candidates
main debug: looking for keystore module matching "any": 1 candidates
main debug: using keystore module "keychain"
keychain debug: Lookup keychain entry for server yundunm.nowm3.xyz
macosx warning: variable deinterlace doesn't exist or isn't handled
macosx warning: variable deinterlace-mode doesn't exist or isn't handled
keychain warning: lookup failed (-25300: '在钥匙串中找不到指定的项。')
securetransport debug: open st client
main debug: resolving 127.0.0.1 ...
securetransport debug: open TLS session for 127.0.0.1
securetransport debug: handshake is blocked, try again later
securetransport debug: found eof
securetransport error: handshake returned error -9806
main error: TLS session handshake error
securetransport debug: close TLS session
main error: connection error: Resource temporarily unavailable
http error: HTTP connection failure
securetransport debug: close secure transport client
main debug: removing "keystore" module "keychain"
main debug: no access modules matched with name https
main debug: destroying input for '1.m3u8'
macosx debug: Playback has been ended
yemin82 commented 10 hours ago

edge打开https://yundunm.nowm3.xyz:2083/没有问题,证书没过期 有没有办法忽略ssl错误

wang-bin commented 10 hours ago

没办法,ssl我不懂,要修也是上报给ffmpeg让他们修。或者就是用gnutls或openssl重新编译ffmpeg

wang-bin commented 10 hours ago

你用默认的avfoundation而不是fvp能不能播?

yemin82 commented 10 hours ago

你用默认的avfoundation而不是fvp能不能播?

都不行,官方不行,fvp的几个解码器都换了也不行

yemin82 commented 10 hours ago

我macos有个恒星播放器可以

wang-bin commented 7 hours ago

恒星用的是openssl