axcore / tartube

A GUI front-end for youtube-dl, partly based on youtube-dl-gui and written in Python 3 / Gtk 3
GNU Lesser General Public License v2.1
2.12k stars 112 forks source link

How do I download and embed a video's description? #583

Closed strunberg closed 1 year ago

strunberg commented 1 year ago

How do I download and embed a video's description?

All I get in the description area is the URL link to the video.

-f bestvideo+bestaudio/best --xattrs --add-metadata --write-info-json --write-description --write-annotation --write-thumbnail --no-check-certificate

axcore commented 1 year ago

The yt-dlp documentation says that --add-metadataonly works on mkv files. So, make sure you have selected that format in download options.

If you're asking "how do I add -add-metadata in Tartube", then you can add it directly in the download options window, in the Additional download options box.

Also, in the same window, you can click the Show advanced download options button if it's visible. Then open the Post-processing > General tab, and select Write metadata to the video file.

strunberg commented 1 year ago

I'm trying to figure out why when a video is done being rendered the only description embeded into the videos is the URL link of the youtube video. This is important as I download tutorial videos that might get one day took down or deleted by the uploader for a petty reason.

axcore commented 1 year ago

Download a suitable video, then show me the yellow text at the top of the Output tab.

strunberg commented 1 year ago

yt-dlp --newline -i --playlist-reverse --hls-prefer-native --cookies E:/videos/cookies.txt --write-sub --all-subs --recode-video mp4 --add-metadata --output E:/videos/video games/Video game fav/%(playlist_index)s- %(channel)s- %(playlist)s- %(title)s.- %(upload_date)s- -f bestvideo+bestaudio/best --xattrs --add-metadata --write-info-json --write-description --write-annotation --write-thumbnail --no-check-certificate --download-archive E:/videos/video games/Video game fav/ytdl-archive.txt https://www.youtube.com/playlist?list=PLuCuz7lAz8pibDECojAvOAoJUwYTnC-qi

strunberg commented 1 year ago

Is there any reason why video description is not being embeded other than the youtube URL link?

axcore commented 1 year ago

You need to remove --recode-video mp4 from your download options. When I remove it, metadata is embedded in the video.

eveonline

strunberg commented 1 year ago

Sorry, but this is what I got still.

2023-08-24 11_00_08-Window

axcore commented 1 year ago

I'm sorry, I don't have any ideas except to remove --recode-video mp4. You could try asking the same question at the yt-dlp issues page, since it does appear to be a yt-dlp problem.

strunberg commented 1 year ago

I'm sorry, I don't have any ideas except to remove --recode-video mp4. You could try asking the same question at the yt-dlp issues page, since it does appear to be a yt-dlp problem.

This is a working configuration. The correct description is now embedded.

`--embed-metadata --parse-metadata "description:(?s)(?P.+)"

-f bestvideo+bestaudio/best --xattrs --add-metadata --write-info-json --write-description --write-annotation --write-thumbnail --no-check-certificate`