diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-19 17:42:29 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-20 09:34:52 +0530 |
commit | cd9b384cc338da6ce43a66ed392ce995ea73eb35 (patch) | |
tree | 2eea0e25585f9a118797a24e8999c9fbdce274dc | |
parent | 4d971a16b831a45147b6ae7ce53b3e105d204da7 (diff) | |
download | hypervideo-pre-cd9b384cc338da6ce43a66ed392ce995ea73eb35.tar.lz hypervideo-pre-cd9b384cc338da6ce43a66ed392ce995ea73eb35.tar.xz hypervideo-pre-cd9b384cc338da6ce43a66ed392ce995ea73eb35.zip |
Embed video URL metadata inside MP4 (#173)
`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>
-rw-r--r-- | yt_dlp/postprocessor/ffmpeg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index b0b05f4fc..ff06a5c31 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -550,8 +550,8 @@ class FFmpegMetadataPP(FFmpegPostProcessor): add('title', ('track', 'title')) add('date', 'upload_date') - add(('description', 'comment'), 'description') - add('purl', 'webpage_url') + add(('description', 'synopsis'), 'description') + add(('purl', 'comment'), 'webpage_url') add('track', 'track_number') add('artist', ('artist', 'creator', 'uploader', 'uploader_id')) add('genre') |