aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor
Commit message (Collapse)AuthorAgeFilesLines
* Expand and escape environment variables correctly in outtmplpukkandan2021-07-292-2/+2
| | | | Fixes: https://www.reddit.com/r/youtubedl/comments/otfmq3/ytdlp_same_parameters_different_results
* Add option `--exec-before-download`pukkandan2021-07-191-1/+2
| | | | Closes #530
* [metadatafromfield] Do not detect numbers as field namespukkandan2021-07-121-2/+2
| | | | Related: https://github.com/yt-dlp/yt-dlp/issues/486#issuecomment-877820394
* [embedthumbnail] Fix `_get_thumbnail_resolution`pukkandan2021-07-112-7/+7
|
* [FFmpegMetadata] Add language of each streampukkandan2021-07-111-28/+40
| | | | and some refactoring
* [utils] Add `variadic`pukkandan2021-07-111-8/+3
|
* [thumbnailsconvertor] Treat `jpeg` as `jpg`pukkandan2021-06-252-1/+3
|
* [websockets] Add `WebSocketFragmentFD` (#399)pukkandan2021-06-212-0/+33
| | | | | | Necessary for #392 Co-authored by: nao20010128nao, pukkandan
* Skip fixup of existing files and add `--fixup force` to force itpukkandan2021-06-201-1/+1
|
* [cleanup] Refactor fixuppukkandan2021-06-201-35/+19
|
* [EmbedThumbnail] Add compat-option `embed-thumbnail-atomicparsley`pukkandan2021-06-161-2/+3
| | | | | | to force use of atomicparsley for embedding thumbnails in mp4 Related: #411
* [postprocessor] Fix `_restrict_to` when a codec is not setpukkandan2021-06-141-2/+2
|
* Fix bug in 8326b00aabc332cad3edec246fe5353bea069cb0pukkandan2021-06-131-1/+1
|
* Allow `images` formatspukkandan2021-06-134-0/+32
| | | | | | | | | | Necessary for #343. * They are identified by `vcodec=acodec='none'` * These formats show as the worst in `-F` * Any postprocessor that expects audio/video will be skipped * `b*` and all related selectors will skip such formats * This commit also does not add any selector for downloading such formats. They have to be explicitly requested by the `format_id`. Implementation of a selector is left for when #389 is resolved
* [utils] Generalize `traverse_dict` to `traverse_obj`pukkandan2021-06-081-2/+2
|
* Fix and refactor `prepare_outtmpl`pukkandan2021-06-062-13/+11
| | | | | | | | | | The following tests would have failed previously: %(id)d %(id)r %(ext)s-%(ext|def)d %(width|)d %(id)r %(height)r %(formats.0)r %s
* [embedthumbnail] Correctly escape filenamepukkandan2021-05-292-13/+6
| | | | | | Closes #352 The approach in [1] is faulty as can be seen in the test cases 1. https://github.com/ytdl-org/youtube-dl/commit/bff857a8af696e701482208617bf0b7564951326
* [embedthumbnail] Embed if any thumbnail was downloaded, not just the bestpukkandan2021-05-292-5/+9
|
* [ard] Allow URLs without `-` before idOliver Freyermuth2021-05-231-1/+1
| | | | | | https://github.com/ytdl-org/youtube-dl/pull/29091 Authored by: olifre
* [embedthumbnail] Embed in `mp4`/`m4a` using mutagenpukkandan2021-05-231-20/+50
| | | | | Code from: https://github.com/ytdl-org/youtube-dl/pull/23525 Co-authored by: tripulse , pukkandan
* [cleanup] Refactor ffmpeg convertorspukkandan2021-05-221-23/+26
|
* [videoconvertor] Generalize with remuxer and allow conditional recodingpukkandan2021-05-221-39/+32
|
* [ThumbnailsConvertor] Support conversion to `png` and make it the default (#333)louie-github2021-05-212-13/+22
| | | | | | PNG, being a lossless format, should be a better default here compared to JPG since we won't be compressing to a lossy format and losing some of the original image data PNG is also supported for embedding in all the formats similar to JPEG Authored by: louie-github
* [cleanup] See descpukkandan2021-05-201-1/+0
| | | | | | * Remove struct from `embedthumbnail` * Use bullet lists in readme where numbered list don't make sense * Fix error introduced in 9c2b75b5616f058c3970e54c664e9543f86b9f0c when `ie_result` is `None`
* [embedthumbnail] Add `flac` support and refactor `mutagen` codepukkandan2021-05-201-24/+42
| | | | | https://github.com/ytdl-org/youtube-dl/pull/28894, https://github.com/ytdl-org/youtube-dl/pull/24310 Authored by: tripulse
* Add field `name` for subtitlespukkandan2021-05-151-3/+6
| | | | | | Co-authored by: pukkandan, tpikonen Based on: #310, https://github.com/ytdl-org/youtube-dl/pull/26112
* Standardize `write_debug`pukkandan2021-05-141-4/+3
|
* Add compat-option `no-attach-infojson`pukkandan2021-05-111-1/+2
|
* Improve output template internal formattingpukkandan2021-05-061-1/+1
| | | | | | | * Allow slicing lists/strings using `field.start:end:step` * A field can also be used as offset like `field1+num+field2` * A default value can be given using `field|default` * Capture all format strings and set it to `None` if invalid. This prevents invalid fields from causing errors
* [embedthumbnail] Fix bug where jpeg thumbnails were converted againpukkandan2021-05-041-1/+1
| | | | Closes #297
* [MetadataFromField] Improve regex and add testspukkandan2021-04-211-4/+5
|
* [Exec] Ensure backward compatibility when the command contains `%`pukkandan2021-04-161-10/+14
|
* [documentation] Improvementspukkandan2021-04-121-3/+3
|
* Add option `--convert-thumbnails`pukkandan2021-04-123-38/+85
| | | | Closes: https://github.com/yt-dlp/yt-dlp/issues/99 https://github.com/yt-dlp/yt-dlp/issues/102
* Allow running some `postprocessors` before actual downloadpukkandan2021-04-122-2/+6
|
* Pass any field to `--exec` using similar syntax to output templatepukkandan2021-04-111-7/+8
| | | | Related: https://github.com/ytdl-org/youtube-dl/issues/28642
* Ability to set a specific field in the file's metadatapukkandan2021-04-032-4/+10
| | | | | Eg: `--parse-metadata "description:(?s)(?P<meta_comment>.+)"` sets the "comment" field using `description`
* Release 2021.03.24pukkandan2021-03-251-1/+0
|
* Parse metadata from multiple fieldspukkandan2021-03-251-18/+21
| | | | Closes #196
* More consistent warning messages (#173)pukkandan2021-03-203-6/+6
| | | | Co-authored by: Damiano Amatruda <damiano.amatruda@outlook.com>
* Embed video URL metadata inside MP4 (#173)pukkandan2021-03-201-2/+2
| | | | | | | | | `mp4` has `comment` and `synopsis`; the synopsis is expected to have the long description So we save the `webpage_url` to `comment` and `description` to `synopsis` Related: https://github.com/ytdl-org/youtube-dl/issues/28478 Co-authored by: Damiano Amatruda <damiano.amatruda@outlook.com>
* [splitchapters] Fix for older ffmpegpukkandan2021-03-201-1/+1
| | | | | Older versions of ffmpeg doesn't allow `-to` as an input option Closes #180
* fix some typos and linterpukkandan2021-03-181-2/+0
|
* [movefiles] Fix bugs and make more robustpukkandan2021-03-183-15/+18
|
* [sponskrub] Pass proxy to sponskrubpukkandan2021-03-151-0/+2
| | | | | | Needs atleast sponskrub version: faissaloo/sponskrub 3.7.0 OR yt-dlp/sponskrub 2021.03.15
* Split video by chapters (#158)pukkandan2021-03-152-0/+40
| | | | | | | | | | | | | | | | | | | | * New options `--split-chapters` and `--no-split-chapters` * The output/path of the split files can be given using the key `chapter` * Additional keys `section_title`, `section_number`, `section_start`, `section_end` are available in the output template * Alias `--split-tracks` for parity with animelover/youtube-dl * `--sponskrub-cut` and `--split-chapter` cannot work together Closes: https://github.com/blackjack4494/yt-dlc/issues/277 https://github.com/ytdl-org/youtube-dl/issues/28438 https://github.com/ytdl-org/youtube-dl/issues/12907 https://github.com/ytdl-org/youtube-dl/issues/6480 https://github.com/ytdl-org/youtube-dl/pull/25005 Rewritten from the implementation by: femaref and Wattux https://github.com/Wattux/youtube-dl/tree/split-at-timestamps https://github.com/ytdl-org/youtube-dl/pull/25005 https://github.com/femaref/youtube-dl/tree/split-track
* [embedthumbnail] Set mtime correctlypukkandan2021-03-141-0/+4
| | | | Related: https://github.com/yt-dlp/yt-dlp/issues/67
* Refactor (See desc)pukkandan2021-03-144-12/+31
| | | | | | * Create `FFmpegPostProcessor.real_run_ffmpeg` that can accept multiple input/output files along with switches for each * Rewrite `cli_configuration_args` and related functions * Create `YoutubeDL._ensure_dir_exists` - this was previously defined in multiple places
* [embedthumbnail] Fix bug with deleting original thumbnail (Closes #113)pukkandan2021-02-251-0/+2
| | | | :ci skip dl
* Completely change project name to yt-dlp (#85)Pccode662021-02-259-0/+1437
* All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan