Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
介绍个 UC 浏览器视频缓存处理的方法。
Apps Section
1557
views ·
2
replies ·
To
floor
Go
不避风云
deepin
2018-07-15 08:01
Author
阿里宝卡正当时,UC 看视频免流量是个多么大的诱惑。当然一些缓存视频,也是相当不错的。一般都会存在于 ./UCDownloads/videodata 文件夹下。经过百度查询,貌似用下面的方法,可以把缓存给变为 Mp4 格式。
#!/bin/bash
if [ -z $2 ]; then
echo "语法: $0 <输出文件>"
exit 1
fi
if [ -e $2 ]
then
echo "已经存在 $2 文件,请更改输出文件名字!"
exit 1
fi
if [ -e $1 ]
then
cd $1
fi
if [ -e file.txt ]
then
mv file.txt file.txt.bk
fi
for ((i = 0;;i++))
do
if [ ! -e $i ]
then
break
fi
if [ -s $i ]
then
echo "file '$i'" >> file.txt
fi
done
if [ -e $2 ]
then
mv $2 $2.bk
fi
ffmpeg -f concat -i file.txt -c copy $2
rm file.txt
if [ -e file.txt.bk ]
then
mv file.txt.bk file.txt
fi
cd -
mv $1/$2 .
cd $1
if [ -e $2.bk ]
then
mv $2.bk $2
fi
Copy the Code
假设上面保存为 ucvideo 文件,放在了 /usr/local/bin/ucvideo 位置,且能够执行。则用如下方式,可以把缓存变为视频文件。
ucvideo 1531264762532/ output.mp4
Copy the Code
其中 第二项为 缓存目录,最后一个为输出的文件名字。
ucvideo.zip
Reply
Like 0
Favorite
View the author
All Replies
jianguo922
deepin
2018-07-15 17:22
#1
我一直是阿里大鱼卡,相当好用
Reply
Like 0
View the author
不避风云
deepin
2018-11-14 06:18
#2
找个机会更新一波,发现 ls -1v这个神器,能数字排序,完美解决缺空问题。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Taskbar no longer shows popups
Four agent skills for laptop power, sleep, and honest bug reports
Popular Events
More
假设上面保存为 ucvideo 文件,放在了 /usr/local/bin/ucvideo 位置,且能够执行。则用如下方式,可以把缓存变为视频文件。
其中 第二项为 缓存目录,最后一个为输出的文件名字。ucvideo.zip