YouTube stream titles

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

YouTube stream titles

Danijela Popović
Hi all,
I am restreaming my online radio to YouTube with a static image as the
visual part, and it works fine.
Now I'm wondering if it is possible to set the song title as the title of
the video in the "Artist - Title" format.
Thanks in advance for any idea.

-----
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>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: YouTube stream titles

Moritz Barsnick
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: YouTube stream titles

Danijela Popović
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 (<[hidden email]>)
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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: YouTube stream titles

Moritz Barsnick
On Fri, Jun 21, 2019 at 11:08:06 +0200, Danijela Popović wrote:
> However, I was asking if it is possible to have the text as the title of
> the live.

Ah, okay, so the actual YouTube title.

I believe the control of that it totally outside the video stream. I
guess you need to change it from the web interface, or there may be a
remote API and tools to achieve this. But it won't take the title from
the stream (as ffmpeg provides it), IIUC.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".