Comments (6)
已改,还没测试,你有空可以测试一下,我到晚上才能测试
from 24h-raspberry-live-on-bilibili.
另外我的测试,结果和你的不一样:
C:\Users\Administrator>you-get -i https://www.bilibili.com/video/av14554845
site: Bilibili
title: 【鏡音リン &鏡音レン】病名为爱【Neru】
streams: # Available quality and codecs
[ DEFAULT ] _________________________________
- format: mp4
container: mp4
size: 29.3 MiB (30732667 bytes)
# download-with: you-get --format=mp4 [URL]
from 24h-raspberry-live-on-bilibili.
@chenxuuu 你的you-get版本是多少呢?我的是0.4.1011。
root@a:~/24h-raspberry-live-on-bilibili# pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
chardet (2.3.0)
command-not-found (0.3)
cryptography (1.7.1)
distro-info (0.14build1)
idna (2.2)
keyring (10.3.1)
keyrings.alt (2.2)
language-selector (0.1)
mutagen (1.39)
pip (9.0.1)
pyasn1 (0.1.9)
pycrypto (2.6.1)
pygobject (3.22.0)
python-apt (1.4.0b2)
python-debian (0.1.30)
pyxdg (0.25)
PyYAML (3.12)
requests (2.10.0)
SecretStorage (2.3.1)
setuptools (33.1.1)
six (1.10.0)
ssh-import-id (5.6)
ufw (0.35)
urllib3 (1.15.1)
wheel (0.29.0)
you-get (0.4.1011)
from 24h-raspberry-live-on-bilibili.
@chenxuuu ,刚刚测试了一下,程序可以下载av14554845了,但它下载的是format
是mp4
的视频。
我在其他文件夹分别下载了format
为flv720
和mp4
的视频,分别用FFmpeg查看了一下视频属性。
首先看的是flv720
的,它是720P的。
root@a:~# ffmpeg -i *Neru*.flv
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-12ubuntu2) 20170406
configuration: --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-libass --enable-libfreetype --arch=x86_64
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, flv, from '【鏡音リン &鏡音レン】病名为爱【Neru】.flv':
Metadata:
description : Packed by Bilibili XCoder v1.0(fixed_gap:False)
metadatacreator : Yet Another Metadata Injector for FLV - Version 1.9
hasKeyframes : true
hasVideo : true
hasAudio : true
hasMetadata : true
canSeekToEnd : true
datasize : 59184915
videosize : 53473942
audiosize : 5645169
lasttimestamp : 232
lastkeyframetimestamp: 232
lastkeyframelocation: 59186579
Duration: 00:03:52.19, start: 0.083000, bitrate: 2039 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1840 kb/s, 24 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 190 kb/s
At least one output file must be specified
再看mp4
的,它是360P的。
root@zyvps:~# ffmpeg -i *Neru*.mp4
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-12ubuntu2) 20170406
configuration: --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-libass --enable-libfreetype --arch=x86_64
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '【鏡音リン &鏡音レン】病名为爱【Neru】.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.71.100
description : Packed by Bilibili XCoder v1.0(fixed_gap:False)
Duration: 00:03:52.30, start: 0.000000, bitrate: 1058 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 921 kb/s, 20 fps, 20 tbr, 16k tbn, 40 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
handler_name : SoundHandler
At least one output file must be specified
建议让程序自动选择画质最高的源视频来下载。用360P的视频渲染成720P的视频总感觉有点别扭。
from 24h-raspberry-live-on-bilibili.
好了,你看看现在的代码
from 24h-raspberry-live-on-bilibili.
成功,程序可以下载到flv720
的视频了。
from 24h-raspberry-live-on-bilibili.
Related Issues (20)
- **已删除**
- 运行时报Illegal Instruction,怎么解决啊 HOT 6
- 似乎会错误地连续跳过点播列表里的歌 HOT 17
- 获取音乐下载地址的php貌似挂了
- cookies无法获取 HOT 2
- 点歌的时候不会选择最适合的那一首 HOT 2
- 无cookies值 HOT 1
- [error]send dm error 'msg' HOT 5
- 弹幕发送失败 HOT 3
- 支持树莓派4b吗 HOT 2
- 发不出弹幕 HOT 3
- 本项目将会重写 HOT 1
- 运行python3 play.py和python3 bilibiliClient.py命令时报错 HOT 9
- 运行python3 play.py和screen python3 bilibiliClient.py之后直播间没有反应 HOT 3
- 直播时的几个问题 HOT 5
- 按照教材安装moviepy的时候遇到了困难 HOT 7
- 海外vps是不是不能用 HOT 3
- 不能点歌了 HOT 2
- 执行python3 play.py时出错
- 关于切歌闪断问题的解决办法猜想
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 24h-raspberry-live-on-bilibili.