Name | songs-to-youtube JSON |
Version |
0.13.1
JSON |
| download |
home_page | None |
Summary | Application to upload songs to YouTube |
upload_time | 2024-08-24 22:15:50 |
maintainer | None |
docs_url | None |
author | 7x11x13 |
requires_python | <3.12,>=3.10 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<img align="left" width="100" height="100" src="https://raw.githubusercontent.com/7x11x13/songs-to-youtube/master/songs_to_youtube/image/icon.ico" alt="icon">
# songs-to-youtube
Convert audio files to videos and upload them to YouTube automatically.
![Example](https://github.com/7x11x13/songs-to-youtube/blob/master/docs/example.png?raw=true)
## Features
- Extracts album covers from audio files
- Extracts other metadata which can be used in template strings for the video title/description etc.
- Can concatenate songs to upload an album as a single video
- Can upload an album as a playlist of multiple videos
- Does not use official YouTube API; can upload up to 50-100 videos per day
- Does not re-encode audio before uploading
## Pre-installation
- [FFmpeg](https://ffmpeg.org/download.html) **version 6.1+** is required to convert songs into videos
- [Firefox](https://www.mozilla.org/firefox/new/) and [geckodriver](https://github.com/mozilla/geckodriver/releases) (or Chrome and Chromedriver) are required to upload to YouTube
- Make sure FFmpeg and geckodriver/chromedriver are both in your PATH environment variable
- If you have a package manager you can install through that instead. e.g. with [Scoop](https://scoop.sh/):
```
scoop install ffmpeg
scoop install geckodriver
```
## Installation
### PyInstaller binary
Download the latest release for your platform [here](https://github.com/7x11x13/songs-to-youtube/releases), unzip the archive, and run the songs-to-youtube executable.
### Install from PyPI
```bash
$ pip install songs-to-youtube
$ songs-to-youtube
```
### Run from source
1. Have Python version 3.10-3.11 installed, and [poetry](https://python-poetry.org/)
2. Download the source code
3. Install required Python modules with `poetry install`
4. Run the program with `poetry run songs-to-youtube`
### Installing certificates
On your first run you may get an error which says `Was not able to load https://youtube.com. Have you installed the certificate at {cert_path} ?`.
If this happens you should follow the instructions at https://docs.mitmproxy.org/stable/concepts-certificates/#installing-the-mitmproxy-ca-certificate-manually
to install the certificate at the given path.
## Notes
- Before you upload any videos, you must sign in to a YouTube account (File > Settings > Add new user)
- You can drag and drop songs on the main window to add them to the queue. The order in which they are uploaded goes from top to bottom
- You can also drag and drop images onto a song's current album art to change it
- Make sure the output file extension stays as .mkv
- The characters < and > will be replaced with fullwidth versions in titles and descriptions, as YouTube does not allow these symbols
- Video titles and descriptions longer than YouTube allows will be truncated (100, and 5000 characters respectively)
### Template strings
Write `~{key}` in any text field and it will be replaced with an appropriate value. If no value exists for that key, it will not be replaced. To see the available keys, right click on an album or song and select "View metadata."
Here are some useful values:
#### Song metadata
- `~{song_dir}` - directory of the input audio file
- `~{song_file}` - file name of the input audio
- `~{album}`
- `~{artist}`
- `~{title}`
- `~{date}`
- `~{comment}`
- `~{description}`
#### Album metadata
- `~{album_dir}` - directory of the album
- `~{timestamps}` - special key that generates timestamps based on song lengths. they will only be generated when concatenating songs into a single video
- `~{song.albumartist}` - name of the album's artist (usually)
The first song of an album can have its keys accessed by the album by prefixing the key with `song.`
#### Operators
##### Optional keys / preference ordering
A template string of the form `~{a|b|c}` will be replaced with the value of `a` if it exists, otherwise the value of `b` if it exists, and so on. Keys may not contain the character `|`
##### String literals
A template string of the form `~{a|"hello"}` will be replaced with the value for `a` if it exists, otherwise it will be replaced with `hello`. String literals may not contain the character `|`. They may contain `"` though, e.g. `~{""hello""}` will be replaced with `"hello"`
##### Safe filenames
Any key can be surrounded by `<` and `>` and the value of that key will be made safe to use as a filename. e.g. `~{<song.album>}.mkv` where `song.album` is `~{:¬Þ}` will be replaced with `____Þ_.mkv`
Raw data
{
"_id": null,
"home_page": null,
"name": "songs-to-youtube",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.12,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "7x11x13",
"author_email": "x7x11x13@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3f/00/a3915aaad2aa1cc485f2a821c79c0823e98484f976da395a8bfa23457006/songs_to_youtube-0.13.1.tar.gz",
"platform": null,
"description": "<img align=\"left\" width=\"100\" height=\"100\" src=\"https://raw.githubusercontent.com/7x11x13/songs-to-youtube/master/songs_to_youtube/image/icon.ico\" alt=\"icon\">\n\n# songs-to-youtube\n\nConvert audio files to videos and upload them to YouTube automatically.\n\n![Example](https://github.com/7x11x13/songs-to-youtube/blob/master/docs/example.png?raw=true)\n\n## Features\n- Extracts album covers from audio files\n- Extracts other metadata which can be used in template strings for the video title/description etc.\n- Can concatenate songs to upload an album as a single video\n- Can upload an album as a playlist of multiple videos\n- Does not use official YouTube API; can upload up to 50-100 videos per day\n- Does not re-encode audio before uploading\n\n## Pre-installation\n- [FFmpeg](https://ffmpeg.org/download.html) **version 6.1+** is required to convert songs into videos \n- [Firefox](https://www.mozilla.org/firefox/new/) and [geckodriver](https://github.com/mozilla/geckodriver/releases) (or Chrome and Chromedriver) are required to upload to YouTube\n- Make sure FFmpeg and geckodriver/chromedriver are both in your PATH environment variable\n- If you have a package manager you can install through that instead. e.g. with [Scoop](https://scoop.sh/):\n```\nscoop install ffmpeg\nscoop install geckodriver\n```\n\n## Installation\n\n### PyInstaller binary\n\nDownload the latest release for your platform [here](https://github.com/7x11x13/songs-to-youtube/releases), unzip the archive, and run the songs-to-youtube executable.\n\n### Install from PyPI\n\n```bash\n$ pip install songs-to-youtube\n$ songs-to-youtube\n```\n\n### Run from source\n\n1. Have Python version 3.10-3.11 installed, and [poetry](https://python-poetry.org/)\n2. Download the source code\n3. Install required Python modules with `poetry install`\n4. Run the program with `poetry run songs-to-youtube`\n\n### Installing certificates\n\nOn your first run you may get an error which says `Was not able to load https://youtube.com. Have you installed the certificate at {cert_path} ?`.\nIf this happens you should follow the instructions at https://docs.mitmproxy.org/stable/concepts-certificates/#installing-the-mitmproxy-ca-certificate-manually\nto install the certificate at the given path.\n\n## Notes\n- Before you upload any videos, you must sign in to a YouTube account (File > Settings > Add new user)\n- You can drag and drop songs on the main window to add them to the queue. The order in which they are uploaded goes from top to bottom\n- You can also drag and drop images onto a song's current album art to change it\n- Make sure the output file extension stays as .mkv\n- The characters < and > will be replaced with fullwidth versions in titles and descriptions, as YouTube does not allow these symbols\n- Video titles and descriptions longer than YouTube allows will be truncated (100, and 5000 characters respectively)\n\n### Template strings\nWrite `~{key}` in any text field and it will be replaced with an appropriate value. If no value exists for that key, it will not be replaced. To see the available keys, right click on an album or song and select \"View metadata.\"\nHere are some useful values:\n#### Song metadata\n- `~{song_dir}` - directory of the input audio file\n- `~{song_file}` - file name of the input audio\n- `~{album}`\n- `~{artist}`\n- `~{title}`\n- `~{date}`\n- `~{comment}`\n- `~{description}`\n#### Album metadata\n- `~{album_dir}` - directory of the album\n- `~{timestamps}` - special key that generates timestamps based on song lengths. they will only be generated when concatenating songs into a single video\n- `~{song.albumartist}` - name of the album's artist (usually)\nThe first song of an album can have its keys accessed by the album by prefixing the key with `song.`\n#### Operators\n##### Optional keys / preference ordering\nA template string of the form `~{a|b|c}` will be replaced with the value of `a` if it exists, otherwise the value of `b` if it exists, and so on. Keys may not contain the character `|`\n##### String literals\nA template string of the form `~{a|\"hello\"}` will be replaced with the value for `a` if it exists, otherwise it will be replaced with `hello`. String literals may not contain the character `|`. They may contain `\"` though, e.g. `~{\"\"hello\"\"}` will be replaced with `\"hello\"`\n##### Safe filenames\nAny key can be surrounded by `<` and `>` and the value of that key will be made safe to use as a filename. e.g. `~{<song.album>}.mkv` where `song.album` is `~{:\u00ac\u00de}` will be replaced with `____\u00de_.mkv`\n",
"bugtrack_url": null,
"license": null,
"summary": "Application to upload songs to YouTube",
"version": "0.13.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4efaf3358644e99ad3627f2fc0da27c420e20c7c857330b7f65415a88c81f2c0",
"md5": "3c7be3621a84117495ee6a7be3519288",
"sha256": "3a865ee86e65a4961ee2a002b277e55a270fef38b141ebb5e1b0866626345693"
},
"downloads": -1,
"filename": "songs_to_youtube-0.13.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3c7be3621a84117495ee6a7be3519288",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.12,>=3.10",
"size": 108963,
"upload_time": "2024-08-24T22:15:49",
"upload_time_iso_8601": "2024-08-24T22:15:49.222092Z",
"url": "https://files.pythonhosted.org/packages/4e/fa/f3358644e99ad3627f2fc0da27c420e20c7c857330b7f65415a88c81f2c0/songs_to_youtube-0.13.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3f00a3915aaad2aa1cc485f2a821c79c0823e98484f976da395a8bfa23457006",
"md5": "c06580d3a9b552dfc665afc0df518ee0",
"sha256": "c9e9757d5e2ffe0f64c6f76dc16b05fa00c9736faaffd260e90ca41f5916a852"
},
"downloads": -1,
"filename": "songs_to_youtube-0.13.1.tar.gz",
"has_sig": false,
"md5_digest": "c06580d3a9b552dfc665afc0df518ee0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.10",
"size": 99726,
"upload_time": "2024-08-24T22:15:50",
"upload_time_iso_8601": "2024-08-24T22:15:50.847037Z",
"url": "https://files.pythonhosted.org/packages/3f/00/a3915aaad2aa1cc485f2a821c79c0823e98484f976da395a8bfa23457006/songs_to_youtube-0.13.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-24 22:15:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "songs-to-youtube"
}