smallscaledab / small-scale-dab

Code and Issues for Small Scale DAB
1 stars 0 forks source link

mot-encoder should accept a URL for a Slideshow input #3

Open nickpiggottwork opened 9 years ago

nickpiggottwork commented 9 years ago

mot-encoder allows a Directory (-d) to be provided in which .jpg and .png files can be placed. These files are resized to 320px x 240px and reduced in size to a target size using MagickWand. This behaviour can be overridden using the -R (raw) option.

An option should be added to allow a URL to be submitted mot-encoder, pointing to an HTML document which can be rendered into a 320 x 240px virtual web-view and converted to a PNG image. This would allow for easier authoring and maintenance of Slideshows, including dynamic content creating by scripting such as PHP.

mpbraendli commented 9 years ago

Rendering a HTML document into an image doesn't give a lot of control on the image (alignment, readability of text, making sure text doesn't overflow the image, line breaks, etc.), which makes it difficult to create consistent images.

Suggested alternatives:

What tools do the programme originators already have to create slides ?

nickpiggottwork commented 9 years ago

A few broadcasters use HTML to hold their slide templates for quite a few reasons:

Global Radio and the IRT/ARD (I think) use this technique. @magicbadger can probably give some example URLs.

Rendering from HTML -> PNG isn't too hard. I think @magicbadger or Pete Redhead at Global can probably recommend some libraries to do that with.

mpbraendli commented 9 years ago

I stay a bit skeptic, but I agree that given enough care on the web page design, the idea works. And it's not much effort to implement on the encoder side.

The trivial solution would be to write a script to be run on the encoder machine, that fetches the URL, renders into a PNG or JPEG, and writes it to the right place for the mot-encoder to read it.

Looking forward to hearing about possible approaches.