Sign inSign up

swimminghao/you-get

By swimminghao

Updated over 4 years ago

Image
0

214

swimminghao/you-get repository overview

docker run --rm -v ~/TMP/1:/download kmdgeek/you-get -i 'https://www.bilibili.com/video/BV12b411K7Zu?p=1'
运行指令查看视频清晰度
docker run --rm -v ~/TMP/1:/download swimminghao/you-get -i 'https://www.bilibili.com/video/BV12b411K7Zu?p=1'
选择清晰度dash-flv1080或dash-flv720
docker run --rm -v ~/TMP/1:/download swimminghao/you-get --format=dash-flv --playlist 'https://www.bilibili.com/video/BV12b411K7Zu?p=1'

nohup docker run --rm -v ~/TMP/1:/download swimminghao/you-get --format=dash-flv --playlist 'https://www.bilibili.com/video/BV12b411K7Zu?p=1' >1.log 2>&1 &

docker-you-get

This is a docker for you-get (https://github.com/soimort/you-get). Available at https://hub.docker.com/r/kmdgeek/you-get/

Tags
Usage

If you know how to use you-get (see https://github.com/soimort/you-get), you can easily use this docker image.

By default, videos will be saved to /download in the container, so, you should set volume like this:

docker run --rm -v /some/path/to/save/videos:/download kmdgeek/you-get [OPTIONS..] URL
Example

Take this video as an example: https://www.youtube.com/watch?v=EotbKqZmBuY

To get quality and formats:

$ docker run --rm kmdgeek/you-get -i 'https://www.youtube.com/watch?v=EotbKqZmBuY'
site:                YouTube
title:               The Great Wall of China in 4k - DJI Phantom 4
streams:             # Available quality and codecs
    [ DASH ] ____________________________________
    - itag:          313
      container:     webm
      quality:       3840x2160
      size:          645.6 MiB (676945940 bytes)
    # download-with: you-get --itag=313 [URL]

    - itag:          271
      container:     webm
      quality:       2560x1440
      size:          286.9 MiB (300792483 bytes)
    # download-with: you-get --itag=271 [URL]

    - itag:          264
      container:     mp4
      quality:       2560x1440
      size:          257.9 MiB (270429128 bytes)
    # download-with: you-get --itag=264 [URL]

    ...

Download the video in 3840x2160 quality and save to ~/videos:

$ docker run --rm -v ~/videos:/download kmdgeek/you-get --itag=313 'https://www.youtube.com/watch?v=EotbKqZmBuY'
site:                YouTube
title:               The Great Wall of China in 4k - DJI Phantom 4
stream:
    - itag:          313
      container:     webm
      quality:       3840x2160
      size:          645.6 MiB (676945940 bytes)
    # download-with: you-get --itag=313 [URL]

Downloading The Great Wall of China in 4k - DJI Phantom 4.webm ...
 100% (645.6/645.6MB) ├█████████████████████████████████████████┤[2/2]   11 MB/s
Merging video parts... Merged into The Great Wall of China in 4k - DJI Phantom 4.webm

Tag summary

Content type

Image

Digest

Size

43.8 MB

Last updated

over 4 years ago

docker pull swimminghao/you-get