https://github.com/goshin/yatto
Parse & play online video with danmaku on local player.
https://github.com/goshin/yatto
danmaku
Last synced: 6 months ago
JSON representation
Parse & play online video with danmaku on local player.
- Host: GitHub
- URL: https://github.com/goshin/yatto
- Owner: Goshin
- License: gpl-3.0
- Created: 2015-12-25T14:06:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-08T16:41:17.000Z (over 9 years ago)
- Last Synced: 2025-03-29T16:41:23.358Z (7 months ago)
- Topics: danmaku
- Language: Python
- Homepage:
- Size: 749 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yatto
Parse and play online video with danmaku on local player.
---
## Features
- Merge video segments as a single video file.
- Danmaku supported: Youku, Tudou, Acfun, Bilibili## Requirements
- Python 3
- Mpv Player
- FFmpeg with FFprobe
- [You-Get](https://github.com/soimort/you-get)## Usage
```shell
usage: yatto.py [-h] [-i] [-e EXTRA] URLpositional arguments:
URLoptional arguments:
-h, --help show this help message and exit
-i, --info Show the format and quality information of the video
-e EXTRA, --extra EXTRA
Specify the you-get options, like --extra="--format=hd"
```Examples:
```shell
$ python Yatto.py http://www.xxxxx.com/albumplay/92J2xqpSxWY.html
```To specify the video quality:
```shell
$ python Yatto.py -i http://www.xxxxx.com/albumplay/Lqfme5hSolM/wNMcatvqbWU.html
2016-05-05 20:34:45,789 - INFO - Parsing page...
title: 第678话 真
streams: # Available quality and codecs
[ DEFAULT ] _________________________________
- format: hd3
container: flv
video-profile: 1080P
size: 524.2 MiB (549712642 bytes)
# download-with: you-get --format=hd3 [URL]- format: hd2
container: flv
video-profile: 超清
size: 272.8 MiB (286074050 bytes)
# download-with: you-get --format=hd2 [URL]- format: mp4
container: mp4
video-profile: 高清
size: 144.5 MiB (151558876 bytes)
# download-with: you-get --format=mp4 [URL]- format: flvhd
container: flv
video-profile: 标清
size: 69.9 MiB (73280225 bytes)
# download-with: you-get --format=flvhd [URL]$ python Yatto.py --extra="--format=mp4" http://www.xxxxx.com/albumplay/Lqfme5hSolM/wNMcatvqbWU.html
```## License
The software is released under GNU General Public License.