JiJiDown / Tracker

Bug and issue tracker for JiJiDownCore
3 stars 1 forks source link

有关hi-res的适配和音频单独下载的选项 #3

Open Zhaokugua opened 1 year ago

Zhaokugua commented 1 year ago

描述错误 下载hi-res音频的视频时发现下载完成后文件大小为0,排错后发现是ffmpeg所致,希望可以单独下载音频。

time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: [mp4 @ 000001eda7b67cc0] track 1: codec frame size is not set"time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: [mp4 @ 000001eda7b67cc0] flac in MP4 support is experimental, add '-strict -2' if you want to use it."

软件信息

重现 重现此行为的步骤:

1.解析视频信息 2.选择更多清晰度 3.选择web 流畅360P Avc和web Hi-Res 4.创建下载 5.发现ffmpeg报错和文件大小为0

预期行为 正常下载

附加日志

日志获取方法请参阅 唧唧 2.0 如何 Debug | 调试

日志太长可以使用 pastebin 分享日志

time="2023-03-25 23:52:45" level=debug msg="getWEBQuality url: https://api.bilibili.com/x/player/playurl?avid=225965063&cid=1051952150&fnval=4048&fnver=0&fourk=1&otype=json&qn=127&session=2c5c12e3a30c897c2d70e7d77ebe216e"
time="2023-03-25 23:52:45" level=debug msg="GetVideoTVQuality url: https://api.snm0516.aisee.tv/x/tv/playurl?access_key=7e09c6a0e23b1a482a5321a6b36cd611&build=105700&channel=master&cid=1051952150&device_name=android&fnval=976&fnver=0&fourk=1&mobi_app=android_tv_yst&object_id=225965063&platform=android&playurl_type=1&qn=126"
[流畅 360P]     [HEVC]  [82 kbps]       [3.48 MiB]      upos-sz-mirrorcos.bilivideo.com
[清晰 480P]     [HEVC]  [122 kbps]      [5.17 MiB]      upos-sz-mirrorcos.bilivideo.com
[低音质]                [UNKNOWN]       [45 kbps]       [1.93 MiB]      upos-sz-mirrorhw.bilivideo.com
[标准音质]              [UNKNOWN]       [102 kbps]      [4.34 MiB]      upos-sz-mirrorcos.bilivideo.com
[极高音质]              [UNKNOWN]       [253 kbps]      [10.69 MiB]     upos-sz-mirrorcos.bilivideo.com
[清晰 480P]     [AVC]   [131 kbps]      [5.52 MiB]      upos-sz-mirrorhw.bilivideo.com
[超清 4K]       [HEVC]  [9.33 Mbps]     [392.71 MiB]    upos-sz-mirrorhw.bilivideo.com
[清晰 480P]     [HEVC]  [216 kbps]      [9.10 MiB]      upos-sz-mirrorhw.bilivideo.com
[超清 4K]       [AV1]   [3.32 Mbps]     [139.75 MiB]    upos-sz-mirrorhw.bilivideo.com
[流畅 360P]     [AVC]   [68 kbps]       [2.90 MiB]      upos-sz-mirrorhw.bilivideo.com
[高清 720P]     [AVC]   [273 kbps]      [11.53 MiB]     upos-sz-mirrorhw.bilivideo.com
[高清 1080P+]   [AVC]   [2.19 Mbps]     [92.15 MiB]     upos-sz-mirrorhw.bilivideo.com
[流畅 360P]     [HEVC]  [136 kbps]      [5.75 MiB]      upos-sz-mirrorhw.bilivideo.com
[高清 1080P+]   [HEVC]  [1.38 Mbps]     [57.96 MiB]     upos-sz-mirrorcos.bilivideo.com
[高清 1080P]    [HEVC]  [878 kbps]      [37.01 MiB]     upos-sz-mirrorcos.bilivideo.com
[高清 1080P]    [AVC]   [463 kbps]      [19.52 MiB]     upos-sz-mirrorcos.bilivideo.com
[清晰 480P]     [AV1]   [171 kbps]      [7.24 MiB]      upos-sz-mirrorcos.bilivideo.com
[高清 720P]     [AV1]   [332 kbps]      [14.00 MiB]     upos-sz-mirrorcos.bilivideo.com
[高清 1080P+]   [AV1]   [1.05 Mbps]     [44.06 MiB]     upos-sz-mirrorcos.bilivideo.com
[高清 1080P]    [AV1]   [733 kbps]      [30.88 MiB]     upos-sz-mirrorcos.bilivideo.com
[超清 4K]       [AVC]   [11.57 Mbps]    [487.24 MiB]    upos-sz-mirrorcos.bilivideo.com
[流畅 360P]     [AV1]   [124 kbps]      [5.24 MiB]      upos-sz-mirrorcos.bilivideo.com
[高清 720P]     [HEVC]  [399 kbps]      [16.81 MiB]     upos-sz-mirrorcos.bilivideo.com
[极高音质]              [UNKNOWN]       [253 kbps]      [10.69 MiB]     upos-sz-mirrorcos.bilivideo.com
[低音质]                [UNKNOWN]       [45 kbps]       [1.93 MiB]      upos-sz-mirrorhw.bilivideo.com
[标准音质]              [UNKNOWN]       [102 kbps]      [4.34 MiB]      upos-sz-mirrorcos.bilivideo.com
[Hi-Res]                [UNKNOWN]       [1.66 Mbps]     [69.75 MiB]     upos-sz-mirrorhw.bilivideo.com
time="2023-03-25 23:52:54" level=debug msg="> Received '/jijidown.core.Task/New' RPC"
> Received: os => [Windows 10 22H2 x64], device => [Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz  (4C/8T)]
time="2023-03-25 23:52:54" level=debug msg="PlayurlIn: {false 225965063 BV1J8411F7QG 1051952150 16 30251 AVC WEB false}"time="2023-03-25 23:52:54" level=info msg="New task, task id: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=info msg="add task: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=debug msg="For TaskID: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=debug msg="GetWaitTaskSize => GetDownloadingTaskSize: 1 => 0"
time="2023-03-25 23:52:54" level=info msg="start task: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=info msg="start download: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=debug msg="getVideoDownloadInfoForWEB url: https://api.bilibili.com/x/player/playurl?bvid=BV1J8411F7QG&cid=1051952150&fnval=16&fnver=0&fourk=1&otype=json&qn=16&session=c5cf28d23ad2d8806294f68c59384196"
[流畅 360P]     [AVC]   [68 kbps]       [2.90 MiB]      upos-sz-mirrorhw.bilivideo.com
[Hi-Res]                [UNKNOWN]       [1.66 Mbps]     [69.75 MiB]     upos-sz-mirrorhw.bilivideo.com
time="2023-03-25 23:52:54" level=debug msg="VideoTempFileName: 3fd8ed53acf69693578b508a6e634b79"
time="2023-03-25 23:52:54" level=debug msg="AudioTempFileName: 1087e497977e93014f78d972feb541d8"
time="2023-03-25 23:52:54" level=info msg="JDM: firstRequest.GET: https://upos-sz-mirrorhw.bilivideo.com/upgcxcode/50/21/1051952150/1051952150-1-30251.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1679766773&gen=playurlv2&os=hwbv&oi=0&trid=31d502b99a164777b0f4c43d7d27e10au&mid=27029169&platform=pc&upsig=0823587ffc89b8c76030244460ad1a40&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&bvc=vod&nettype=0&orderid=0,3&buvid=&build=0&agrr=1&bw=207188&logo=80000000"
time="2023-03-25 23:52:54" level=info msg="JDM: firstRequest.GET: https://upos-sz-mirrorhw.bilivideo.com/upgcxcode/50/21/1051952150/1051952150_nb3-1-30016.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1679766773&gen=playurlv2&os=hwbv&oi=0&trid=31d502b99a164777b0f4c43d7d27e10au&mid=27029169&platform=pc&upsig=ecb2f1e9498df5014dcd044dbc5bcbe6&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&bvc=vod&nettype=0&orderid=0,3&buvid=&build=0&agrr=1&bw=8600&logo=80000000"
time="2023-03-25 23:52:54" level=info msg="JDM: HTTP response: 200 OK"
time="2023-03-25 23:52:54" level=debug msg="JDM: guessFilename: 1087e497977e93014f78d972feb541d8"
time="2023-03-25 23:52:54" level=info msg="JDM: HTTP response: 200 OK"
time="2023-03-25 23:52:54" level=debug msg="JDM: guessFilename: 3fd8ed53acf69693578b508a6e634b79"
time="2023-03-25 23:52:54" level=info msg="TrackDownloadProgress: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=error msg="JDM: session: 3fd8ed53acf69693578b508a6e634b79 not ready"
time="2023-03-25 23:52:54" level=error msg="JDM: session: 1087e497977e93014f78d972feb541d8 not ready"
time="2023-03-25 23:52:54" level=debug msg="JDM: JDMTask finish"
time="2023-03-25 23:52:54" level=debug msg="getFFmpegPath: use run directory FFmpeg"
time="2023-03-25 23:52:54" level=debug msg="./ffmpeg [-i C:\\Users\\DELL\\AppData\\Local\\Temp\\JiJiDown\\3fd8ed53acf69693578b508a6e634b79 -i C:\\Users\\DELL\\AppData\\Local\\Temp\\JiJiDown\\1087e497977e93014f78d972feb541d8 -vcodec copy -acodec copy C:\\Users\\DELL\\D1 カナタハルカ(主题曲) (流畅 360P, AVC, Hi-Res, WEB).mp4 -y]"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   built with gcc 10-win32 (GCC) 20220113"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   configuration: --arch=x86 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --enable-small --disable-autodetect --disable-debug --disable-network --disable-pthreads --disable-w32threads --disable-doc --disable-ffplay --disable-ffprobe --disable-decoders --enable-decoder='aac,aac_fixed' --disable-encoders --enable-libmp3lame --enable-encoder=libmp3lame --disable-hwaccels --disable-parsers --disable-demuxers --enable-demuxer=mov --disable-muxers --enable-muxer='mp4,mp3' --disable-protocols --enable-protocol=file --disable-filters --disable-bsfs --disable-indevs --disable-outdevs"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libavutil      57. 28.100 / 57. 28.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libavcodec     59. 37.100 / 59. 37.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libavformat    59. 27.100 / 59. 27.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libavdevice    59.  7.100 / 59.  7.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libavfilter     8. 44.100 /  8. 44.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libswscale      6.  7.100 /  6.  7.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   libswresample   4.  7.100 /  4.  7.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\\Users\\DELL\\AppData\\Local\\Temp\\JiJiDown\\3fd8ed53acf69693578b508a6e634b79':"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Metadata:"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     major_brand     : iso5"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     minor_version   : 1"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     compatible_brands: avc1iso5dsmsmsixdash"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     encoder         : Lavf58.29.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     description     : Bilibili VXCode Swarm Transcoder v0.7.52"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Duration: 00:05:53.08, start: 0.000000, bitrate: 68 kb/s"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), none, 640x360, 0 kb/s, 25 fps, 25 tbr, 16k tbn (default)"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     Metadata:"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:       handler_name    : VideoHandler"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:       vendor_id       : [0][0][0][0]"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: Guessed Channel Layout for Input Stream #1.0 : stereo"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\\Users\\DELL\\AppData\\Local\\Temp\\JiJiDown\\1087e497977e93014f78d972feb541d8':"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Metadata:"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     major_brand     : iso5"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     minor_version   : 1"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     compatible_brands: iso5dsmsmsixdash"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     encoder         : Lavf58.29.100"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     description     : Bilibili XCoder v2.0.2"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Duration: 00:05:53.08, start: 0.000000, bitrate: 1657 kb/s"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Stream #1:0[0x1](und): Audio: flac (fLaC / 0x43614C66), 48000 Hz, stereo, 18 kb/s (default)"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     Metadata:"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:       handler_name    : SoundHandler"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:       vendor_id       : [0][0][0][0]"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: [mp4 @ 000001eda7b67cc0] track 1: codec frame size is not set"time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: [mp4 @ 000001eda7b67cc0] flac in MP4 support is experimental, add '-strict -2' if you want to use it."
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: Error initializing output stream 0:1 -- "
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug: Stream mapping:"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Stream #0:0 -> #0:0 (copy)"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:   Stream #1:0 -> #0:1 (copy)"
time="2023-03-25 23:52:54" level=debug msg="FFmpeg debug:     Last message repeated 1 times"
time="2023-03-25 23:52:54" level=debug msg="ProcessVideoWithffmpeg complete"
time="2023-03-25 23:52:54" level=info msg="TaskComplete: 0e1d448a69be989ebb27ca28c4270fdd"
time="2023-03-25 23:52:54" level=debug msg="GetWaitTaskSize <= GetDownloadingTaskSize: 0 <= 0"
time="2023-03-25 23:52:55" level=debug msg="> Received '/jijidown.core.Task/Status' RPC"
xiahuaijia commented 1 year ago

Hi-Res 功能没有上线, 可期待后续更新