Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?] kkr 没有下载全部音频分片 #16

Open
Skimige opened this issue Dec 23, 2021 · 5 comments
Open

[Bug?] kkr 没有下载全部音频分片 #16

Skimige opened this issue Dec 23, 2021 · 5 comments

Comments

@Skimige
Copy link

Skimige commented Dec 23, 2021

Env:
KKR / 1.2.9
Node / v14.18.2
npm / 8.3.0

Command:
kkr -d https://www.youtube.com/watch\?v\=LaNzLijZRBo --keep --cooldown 5000 --threads 1 --debug
(cooldown 懒得删了,本来是 --live 下载的,卡在最后两个分片MPD获取失败手动 ^C 了)

Log (重复信息略去,路径打码):

使用至多 1 线程下载
正在获取视频信息
正在获取播放列表
1 / 1611 or 0.06% finished | ETA: 26s
......
1611 / 1611 or 100.00% finished | ETA: 0s
All finished. Please checkout your files at [/path/to/kkr_download_timestamp/video_download]
All finished. Please checkout your files at [/path/to/kkr_download_timestamp/video_download]
1 / 808 or 0.12% finished | ETA: 3s
......
808 / 808 or 100.00% finished | ETA: 0s
All finished. Please checkout your files at [/path/to/kkr_download_timestamp/audio_download]
All finished. Please checkout your files at [/path/to/kkr_download_timestamp/audio_download]
准备混流输出文件
kkr决定猜一下合并方法
由于本视频为非低延迟视频 kkr觉得应该使用合并模式2
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x131fec00] trun track id unknown, no tfhd was found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x131fec00] error reading header
[concat @ 0x131c33d0] Impossible to open '/path/to/kkr_download_timestamp/video_download/0001'

[concat @ 0x131fec00] Impossible to open '/path/to/kkr_download_timestamp/audio_download/0000'

/path/to/kkr_download_timestamp/audio_files.txt: No such file or directory

Other info (路径打码,ls 结果简化):

➜  kkr_download_timestamp ls
audio_download  audio_files.txt  video_download  video_files.txt
➜  audio_download ls
(000-807)
➜  video_download ls
(0000-1610)
➜  kkr_download_timestamp cat audio_files.txt | tail
file '/path/to/kkr_download_timestamp/audio_download/1601'
file '/path/to/kkr_download_timestamp/audio_download/1602'
file '/path/to/kkr_download_timestamp/audio_download/1603'
file '/path/to/kkr_download_timestamp/audio_download/1604'
file '/path/to/kkr_download_timestamp/audio_download/1605'
file '/path/to/kkr_download_timestamp/audio_download/1606'
file '/path/to/kkr_download_timestamp/audio_download/1607'
file '/path/to/kkr_download_timestamp/audio_download/1608'
file '/path/to/kkr_download_timestamp/audio_download/1609'
file '/path/to/kkr_download_timestamp/audio_download/1610'%
@Last-Order
Copy link
Owner

啊,看到迟了,没有 mpd 文件排查了。你这个最后合并失败好像跟分块数量没关系,你有安装ffmpeg/ffprobe吗,这看起来是合并方式选择错了导致没法合并

@Skimige
Copy link
Author

Skimige commented Dec 26, 2021

我 PATH 添加了 ffmpeg-4.4-arm64-static,ffmpeg 和 ffprobe 是正常工作的

➜  kkr_download_timestamp ffmpeg -v
ffmpeg version 4.4-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzimg
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100

@Last-Order
Copy link
Owner

确实有部分视频目前会有无法合并的问题,正在调查中。请问临时文件还存着吗,可以要一份看看吗

@Skimige
Copy link
Author

Skimige commented Dec 27, 2021

image

看来 ls 的时候少看了点东西,思考

「kkr_download_LaNzLijZRBo.exe」https://www.aliyundrive.com/s/CorYqZN5sAz
阿里云盘凑活一下((

@Last-Order
Copy link
Owner

Last-Order commented Dec 27, 2021

文件表明似乎缺少了一个 init 块导致视频信息无法识别。
我在1.2.10版本中增加了 MPD URL 的 debug 输出,下次遇到这种情况麻烦使用 --debug 选项再运行一次,获得 MPD 文件链接后将 MPD 文件一同提交以便排查,十分感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants