Hello, Thanks a lot for the answer. This looks interesting, I'll give it a try. However, I was asking if it is possible to have the text as the title of the live. For example, my live stream is currently named "Radio Dani (Live 24/7)", and I'd like to know if I can change the title dinamically to "Radio Dani | Artist - Title" or something similar. :)
P.S. I'll send a link to the stream when I set it up with the filter you mentioned. :) ----- Danijela Popović Dani Ambassador of the Cash Reader app Mobile: +381 61 177 96 11 Send me a WhatsApp Message <https://wa.me/381611779611> <https://cashreader.app> www.cashreader.app <https://cashreader.app> El vie., 21 jun. 2019 a las 9:50, Moritz Barsnick (<[email protected]>) escribió: > Hi Danijela, > > On Fri, Jun 21, 2019 at 00:37:02 +0200, Danijela Popović wrote: > > Now I'm wondering if it is possible to set the song title as the title of > > the video in the "Artist - Title" format. > > Sure, but probably not from your stream's metadata[1]. I can give you this > link showing you how insert text on top of your output video stream, > with the text taken from a text file which you can dynamically change, > and ffmpeg will insert the updated text: > > https://stackoverflow.com/a/46759483 > > In other words, insert the filter: > -vf > "drawtext=fontsize=40:textfile='ffmpeg-in.txt':x=(w-text_w)/2:y=(h-text_h)/2:reload=1" > or add it to your existing filter chain. > > You need to rewrite ffmpeg-in.txt separately, though, when the title > changes. > > Feel free to provide a link to the result. ;-) > > Cheers, > Moritz > > [1] AFAIU, the drawtext filter can apply frame metadata, but not stream > metadata, or even ICY metadata. > _______________________________________________ > ffmpeg-user mailing list > [email protected] > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
