ytdlp-nodejs icon indicating copy to clipboard operation
ytdlp-nodejs copied to clipboard

How to get the Video and thumbnail downloaded paths after the download is done

Open aluriDevAnanth opened this issue 5 months ago • 1 comments

How to get the Video and thumbnail downloaded paths after the download is done ,

my config is

const output = await ytDlp.downloadAsync( video.url, { onProgress: async (progress) => { SseEmitter.message(progress) console.log(progress); }, output: "./server/downloads/%(height)sp_%(extractor_key)s___%(title).50s___%(id)s.%(ext)s", restrictFilenames: true, mergeOutputFormat: "mp4", format: { filter: "videoonly", type: 'mp4', quality: 'lowest', }, embedChapters: true, embedInfoJson: true, embedSubs: true, embedMetadata: true, embedThumbnail: true, writeThumbnail: true, } );

console.log("output", output);

the console.log("output", output); is just printing the ytdlp logs

now it is just this:

output [youtube] Extracting URL: https://www.youtube.com/watch?v=5cRaQqQb14Q [youtube] 5cRaQqQb14Q: Downloading webpage [youtube] 5cRaQqQb14Q: Downloading tv client config [youtube] 5cRaQqQb14Q: Downloading tv player API JSON [youtube] 5cRaQqQb14Q: Downloading ios player API JSON [youtube] 5cRaQqQb14Q: Downloading m3u8 information [info] 5cRaQqQb14Q: Downloading 1 format(s): 18 [info] There are no subtitles for the requested languages [info] Downloading video thumbnail 41 ... [info] Writing video thumbnail 41 to: server\downloads\360p_Youtube___4_IoC_and_DI_in_Spring___5cRaQqQb14Q.webp [info] Writing video metadata as JSON to: server\downloads\360p_Youtube___4_IoC_and_DI_in_Spring___5cRaQqQb14Q.info.json [download] Destination: server\downloads\360p_Youtube___4_IoC_and_DI_in_Spring___5cRaQqQb14Q.mp4 bright-{"status":"finished","downloaded":"23503312","total":"23503312","total_estimate":"NA","speed":"746128.6889635694","eta":"NA"} [EmbedSubtitle] There aren't any subtitles to embed [Metadata] The info-json can only be attached to mkv/mka files [Metadata] Adding metadata to "server\downloads\360p_Youtube___4_IoC_and_DI_in_Spring___5cRaQqQb14Q.mp4" [ThumbnailsConvertor] Converting thumbnail "server\downloads\360p_Youtube___4_IoC_and_DI_in_Spring___5cRaQqQb14Q.webp" to png [EmbedThumbnail] mutagen: Adding thumbnail to "server\downloads\360p_Youtube___4_IoC_and_DI_in_Spring___5cRaQqQb14Q.mp4"

aluriDevAnanth avatar Jul 31 '25 15:07 aluriDevAnanth

Working on it

iqbal-rashed avatar Oct 16 '25 17:10 iqbal-rashed