Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abritopach/nest-ionic-youtube-downloader
Project that allows you to download a youtube video as mp4 or convert the video to mp3.
https://github.com/abritopach/nest-ionic-youtube-downloader
angular ionic mp3 mp4 nestjs typescript youtube-downloader youtube-video youtube-video-downloader
Last synced: 3 months ago
JSON representation
Project that allows you to download a youtube video as mp4 or convert the video to mp3.
- Host: GitHub
- URL: https://github.com/abritopach/nest-ionic-youtube-downloader
- Owner: abritopach
- Created: 2021-05-22T12:35:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T18:24:57.000Z (about 1 year ago)
- Last Synced: 2024-10-31T06:51:33.559Z (3 months ago)
- Topics: angular, ionic, mp3, mp4, nestjs, typescript, youtube-downloader, youtube-video, youtube-video-downloader
- Language: TypeScript
- Homepage: youtube-video-downloader-kappa.vercel.app
- Size: 67.3 MB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nest Ionic Youtube Downloader
**If this project has been useful to you and you want to help me to keep contributing to the open source with projects, examples, plugins,... collaborate and buy me a coffee.**
Project that allows you to download a youtube video as mp4 or convert the video to mp3.
Technologies
* Client side: Angular, Ionic, Typescript.
* Server side: NestJS, Typescript.## Conversion to MP3
In order to convert the youtube video to mp3, two strategies have been followed:
### Conversion in client side
On the one hand, I decided to check if it was feasible to perform the conversion on the client side (making use of the lamejs library). The source code for this conversion has been obtained from the following link:
I have encapsulated this code in an angular service to make it easier to call the method to convert the video to mp3.
The truth is that it works quite well. The only drawback is that there is no support for the lamejs library for typescript and it hasn't been updated for 4 years. It would be necessary to add the types.
### Conversion in server side
To convert YouTube video to mp3 on the server side, ffmpeg and fluent-ffmpeg package are used.
This is the most common way to perform the conversion and the one that is explained/developed in most posts or repositories.
## Client side
The Front end is developed in Angular and Ionic.
Some of the dependencies used in the Front project are rjxs, lamejs, trasloco,...
## FRONT Development server
Run `ionic serve` for a dev server. Navigate to `http://localhost:8100/`. The app will automatically reload if you change any of the source files.
## BACK Development server
Run `npm run start:dev` for a dev server. Navigate to `http://localhost:3000/`.
## Hosting
Currently both Front and Back are deployed in Vercel.
Also Back is deployed to Heroku.