# How to boost the speed of the videos imported from youtube to peertube

**URL:** <https://eijil.com/t/how-to-boost-the-speed-of-the-videos-imported-from-youtube-to-peertube/376>\
**Category:** 其它\
**Created:** [August 9, 2022, 2:11pm UTC](https://eijil.com/t/how-to-boost-the-speed-of-the-videos-imported-from-youtube-to-peertube/376 "2022-08-09T14:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tristan](https://eijil.com/user_avatar/eijil.com/tristan/32/986_2.png) [@Tristan](https://eijil.com/u/Tristan)\
**Post date:** [August 9, 2022, 2:11pm UTC](https://eijil.com/t/how-to-boost-the-speed-of-the-videos-imported-from-youtube-to-peertube/376/1 "2022-08-09T14:11:46Z")

</div>

```bash
cd /var/www/peertube/storage/bin
rm youtube-dl
wget https://github.com/yt-dlp/yt-dlp/releases/download/2022.08.08/yt-dlpversion yourself
mv yt-dlp youtube-dl

```

you need to find the latest version of yt-dlp yourself by visiting [Releases · yt-dlp/yt-dlp · GitHub](https://github.com/yt-dlp/yt-dlp/releases)

This can boost the import speed significantly

By default the resolution of the videos imported from youtube is 720p, but you can change it to 1080p by editing:

```auto
/var/www/peertube/versions/peertube-v4.2.2/dist/server/helpers/youtube-dl/youtube-dl-cli.js

```

find 720 and change it to 1080, I guess you have to change it manually everytime when you upgrade the peertube to a new version.
