优酷 HD iPad 客户端离线视频提取

有朋友问能不能下载到XX电视剧,我看是优酷独播,一般网上都没有地方直接可以下。现在视频客户端一般都是能离线的,那么下载到本地之后只有找到路径就可以导出来了。而且我也有优酷的会员和一个已经越狱的 iOS8 的 iPad。

条件

  • 优酷 HD v6.5.0 build 2977706
  • iPad min2 32G(ME280CH/A) iOS8.3(12F69) jailbreak
  • SSH, FileZilla/WinSCP

find 搜索

网上搜了一圈说优酷视频离线文件的后缀是.ts,那么用文件后缀全盘搜索一下:

1
find / -type f -name "*.ts"

这个搜出来把文件下载下来看了下,是我之前乐视的离线视频。
我们知道APP安装路径是在:

1
/private/var/mobile/Containers/Bundle/Application

看下有没有什么蛛丝马迹,但是缓存文件一般不会存在包下。

1
2
cd /private/var/mobile/Containers/Bundle/Application
find ./ -type f -name "*youku*"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/CommentResource.bundle/ic_youku_doll@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/CommentResource.bundle/ic_youku_doll@3x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/bottom_youku_i5@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/bottom_youku_i6@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/bottom_youku_i6p@3x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/bottom_youku_ix@3x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/youku_corner_ad_close@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/youku_corner_ad_close@3x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/youku_pause_close.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/youku_pause_close@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/MRAID.bundle/youku_pause_close@3x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/XAdHD.bundle/youku_corner_ad_close_hd.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/XAdHD.bundle/youku_corner_ad_close_hd@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/XAdHD.bundle/youku_corner_ad_close_hd@3x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/YKUserSetting.bundle/web/css/youku.css
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/YKZXing.bundle/images/qrCode/youku.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/YKZXing.bundle/images/qrCode/youku@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/YoukuHDHub.bundle/images/safemode/youku_safemode_icon.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/YoukuHDHub.bundle/images/safemode/youku_safemode_icon@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/YoukuHDUpload.bundle/web/css/youku.css
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/givescore.bundle/images/appStoreScoreAndErrors/youku_logo.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/givescore.bundle/images/appStoreScoreAndErrors/youku_logo@2x.png
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/givescore.bundle/web/css/youku.css
./16374F93-1484-4C1C-93F1-D7DE750410C7/YoukuHD-NG.app/searchhomepage.bundle/web/css/youku.css
./CCFE3331-EDBF-411F-B144-E98A4B16A188/LetvIpadClient.app/lesophoneResource.bundle/leso_youku.png
./CCFE3331-EDBF-411F-B144-E98A4B16A188/LetvIpadClient.app/lesophoneResource.bundle/youku.png
./CCFE3331-EDBF-411F-B144-E98A4B16A188/LetvIpadClient.app/lesophoneResource.bundle/youkuNmImage@2x.png
./CCFE3331-EDBF-411F-B144-E98A4B16A188/LetvIpadClient.app/lesophoneResource.bundle/youkuNmImage@3x.png

都找不到只能全盘再搜索下最近修改的文件了:
我们知道还有个Data路径:

1
/private/var/mobile/Containers/Data/Application

但是该目录分文件夹的名称是 UUID, 我们再搜索最近修改的文件

1
2
#返回最近24小时内修改过的文件
find ./ -mtime 0

获得文件列表,发现可疑的文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/1.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/10.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/11.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/12.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/13.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/14.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/15.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/16.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/17.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/18.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/19.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/2.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/3.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/4.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/5.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/6.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/7.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/8.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/9.flv
./2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI2MDU5MDMzNg==/timepoint.txt

下载下来看下,就是他们了。最终找到离线文件路径,每集一个:

1
/private/var/mobile/Containers/Data/Application/2839ED00-A2C6-48ED-94CB-63127FA71739/Documents/XMzI1Mzk2MzQ2OA==

获得文件列表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-rw-r--r-- 1 mobile mobile 50996387 Jan 2 01:50 1.flv
-rw-r--r-- 1 mobile mobile 50557118 Jan 2 01:51 10.flv
-rw-r--r-- 1 mobile mobile 31964544 Jan 2 01:52 11.flv
-rw-r--r-- 1 mobile mobile 38959535 Jan 2 01:52 12.flv
-rw-r--r-- 1 mobile mobile 26168257 Jan 2 01:52 13.flv
-rw-r--r-- 1 mobile mobile 28383904 Jan 2 01:52 14.flv
-rw-r--r-- 1 mobile mobile 30983048 Jan 2 01:52 15.flv
-rw-r--r-- 1 mobile mobile 30042858 Jan 2 01:52 16.flv
-rw-r--r-- 1 mobile mobile 39806205 Jan 2 01:52 17.flv
-rw-r--r-- 1 mobile mobile 28710554 Jan 2 01:52 18.flv
-rw-r--r-- 1 mobile mobile 91044956 Jan 2 01:52 19.flv
-rw-r--r-- 1 mobile mobile 25812459 Jan 2 01:51 2.flv
-rw-r--r-- 1 mobile mobile 48351759 Jan 2 01:51 3.flv
-rw-r--r-- 1 mobile mobile 30857667 Jan 2 01:51 4.flv
-rw-r--r-- 1 mobile mobile 30728530 Jan 2 01:51 5.flv
-rw-r--r-- 1 mobile mobile 38657035 Jan 2 01:51 6.flv
-rw-r--r-- 1 mobile mobile 36931078 Jan 2 01:51 7.flv
-rw-r--r-- 1 mobile mobile 42233820 Jan 2 01:51 8.flv
-rw-r--r-- 1 mobile mobile 47058000 Jan 2 01:51 9.flv
-rw-r--r-- 1 mobile mobile 2005 Jan 2 01:50 timepoint.txt

用 FileZilla 下载文件到本地,使用 ffmpeg 合并视频:

1
ffmpeg -f concat -safe 0 -i ./ffmerge.txt -c copy ./output.mp4

ffmerge.txt文件内容如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
file './1.flv'
file './2.flv'
file './3.flv'
file './4.flv'
file './5.flv'
file './6.flv'
file './7.flv'
file './8.flv'
file './9.flv'
file './10.flv'
file './11.flv'
file './12.flv'
file './13.flv'
file './14.flv'
file './15.flv'
file './16.flv'
file './17.flv'
file './18.flv'
file './19.flv'
file './20.flv'
文章目录
  1. 1. 条件
  2. 2. find 搜索
|