找回密码
 立即注册
搜索
查看: 2544|回复: 14

[其他] 安卓B站客户端缓存怎么导进PC?

[复制链接]
     
发表于 2018-3-10 17:25 | 显示全部楼层 |阅读模式
B站已经删除的一个电影资源,想扔进电脑里,不知道怎么弄比较方便。
回复

使用道具 举报

     
发表于 2018-3-10 17:27 来自手机 | 显示全部楼层
复制

—— 来自 samsung SM-G9650, Android 8.0.0上的 S1Next-鹅版 v1.3.2.1-fix-play
回复

使用道具 举报

     
发表于 2018-3-10 17:29 来自手机 | 显示全部楼层
逼站电脑客户端有导入功能,不过我没试过

—— 来自 Sony G3116, Android 7.0上的 S1Next-鹅版 v1.3.2.1-fix-play
回复

使用道具 举报

     
发表于 2018-3-10 17:33 来自手机 | 显示全部楼层
/storage/emulated/0/Android/data/tv.danmaku.bili/download
默认应该是在这个位置。

----发送自 samsung SM-G9350,Android 7.0
回复

使用道具 举报

     
发表于 2018-3-10 17:34 来自手机 | 显示全部楼层
不过应该是分段的,要自己用FFmpeg合并。

----发送自 samsung SM-G9350,Android 7.0
回复

使用道具 举报

头像被屏蔽
发表于 2018-3-11 12:11 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2018-3-11 12:16 来自手机 | 显示全部楼层
引用第5楼osk666于2018-03-11 12:11发表的  :
引用:downforce 发表于 2018-3-10 17:34不过应该是分段的,要自己用FFmpe......

早就没有了,你要有旧版本b站客户端倒是可以。

----发送自 samsung SM-G9350,Android 7.0
回复

使用道具 举报

     
发表于 2018-3-11 18:22 来自手机 | 显示全部楼层
自己合并然后复制
回复

使用道具 举报

     
发表于 2018-3-11 19:19 来自手机 | 显示全部楼层
用这个app
分享 视频缓存合并: 分享自@酷安网  https://www.coolapk.com/apk/com.lambdax.videojoiner
回复

使用道具 举报

头像被屏蔽
发表于 2018-3-12 09:00 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2018-3-12 10:06 | 显示全部楼层
osk666 发表于 2018-3-12 09:00
为啥取消了,现在离线是直接下载整个文件还是说播放途中不会6分钟卡了?

— from Sony D6653, Android 6 ...

下载的还是分段的,不给合并功能大概是增加版权番被非法传播的难度吧,猜的。本地缓存的分段文件播放起来不会卡6分钟啊。
回复

使用道具 举报

头像被屏蔽
发表于 2018-3-12 10:14 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
 楼主| 发表于 2018-3-12 10:25 | 显示全部楼层
pzy2222 发表于 2018-3-11 19:19
用这个app
分享 视频缓存合并: 分享自@酷安网  https://www.coolapk.com/apk/com.lambdax.videojoiner  ...

用这个搞定了,谢谢楼里的各位热心人。
回复

使用道具 举报

     
发表于 2018-3-12 12:46 | 显示全部楼层
之前缓存大量番剧 写过一个脚本合并

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-

  3. import json
  4. import os
  5. import re
  6. import subprocess

  7. def get_output(output_path):
  8.     result = {}
  9.     for root, dirs, files in os.walk(output_path):
  10.         if not dirs:
  11.             entry_file = os.path.join(os.path.split(root)[0], 'entry.json')
  12.             if os.path.isfile(entry_file):
  13.                 with open(entry_file, 'r', encoding='utf8') as f:
  14.                     flv_json = json.loads(f.read())
  15.                     if 'ep' in flv_json:
  16.                         output = '{}_{}_{}.mp4'.format(
  17.                             flv_json['title'],
  18.                             flv_json['ep']['index'],
  19.                             flv_json['ep']['index_title']
  20.                         )
  21.                     elif 'page_data' in flv_json:
  22.                         output = '{}_{}_{}.mp4'.format(
  23.                             flv_json['title'],
  24.                             flv_json['page_data']['page'],
  25.                             flv_json['page_data']['part']
  26.                         )
  27.                     else:
  28.                         output = flv_json['title'] + '.mp4'
  29.                 output = re.sub(r'[\/:*?"<>:|]', ' ', output)
  30.                 output = os.path.join(output_path, output)
  31.                 flvs = sorted([flv for flv in files if flv.endswith('.blv')],
  32.                               key=lambda a: int(a.split('.')[0]))
  33.                 result[output] = [os.path.join(root, flv) for flv in flvs]
  34.     return result

  35. def create_concat_file(files, output):
  36.     concat_file = output + '.txt'
  37.     with open(concat_file, 'w', encoding='utf8') as f:
  38.         for file in files:
  39.             f.write("file '%s'\n" % file)
  40.     return concat_file

  41. def concat_flv(files, output):
  42.     concat_file = create_concat_file(files, output)
  43.     params = ['ffmpeg', '-f', 'concat', '-safe', '-1',
  44.               '-i', concat_file, '-c', 'copy',
  45.               '-bsf:a', 'aac_adtstoasc', output]
  46.     subprocess.call(params)
  47.     os.remove(concat_file)

  48. def main():
  49.     output_path = os.path.dirname(os.path.realpath(__file__))
  50.     files = get_output(output_path)
  51.     for output, flvs in files.items():
  52.         concat_flv(flvs, output)

  53. if __name__ == '__main__':
  54.     main()
复制代码
回复

使用道具 举报

     
发表于 2018-3-12 14:45 来自手机 | 显示全部楼层
osk666 发表于 2018-3-12 10:14
这样啊,以前会卡的,卡那么半秒

— from Sony D6653, Android 6.0.1 of S1 Next Goose v1.3.2.1-fix-pl ...

在播放设置里面选用系统硬解会卡,现在默认模式往往选用V3播放器,有预载,就不会卡了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|上海互联网违法和不良信息举报中心|网上有害信息举报专区|962110 反电信诈骗|举报电话 021-62035905|Stage1st ( 沪ICP备13020230号-1|沪公网安备 31010702007642号 )

GMT+8, 2025-8-15 11:15 , Processed in 0.050134 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表