Digital Slideshow and Clock – Conky / Lua

conkyluaimg1

It is a disgrace really! I have has this running on an ancient laptop for over three years non stop, and not written it up, even failed to write it up on #! Crunchbang forums, where I got all the help from mrpeachy, Sector11, dk75 and others. Time to put that to rights. What is different about this “one”, you ask? Well, we have two conkys running, they are both in the background, so you still have a fully functional PC if you want to use it, you get sexy rounded corners on your image and a nice big digital purple clock.
Continue reading

Encoding for youtube

I can never seem to get it right. These two links offer some respite:

Ffmpeg Wiki

Re-encode the video and stream copy the audio. The output should be a similar quality as the input and will hopefully be a more manageable size.

Same as above, but also re-encode the audio instead of stream copying it:

Create a video with a still image (input.png) and an audio file (audio.ogg):

Jernej Virag

Grab BBC News Videos with a Bash Script

A colleague asked me the other day if I could download a video clip from the BBC News website so that she could use it in her training course (to save having to load up the website and play it “live” from there!)

I said anything is possible 😉  Took me on a little journey but finally found a way without having to resort to any browser plugins or switching to Windows to download a video grabber program. Decided to write a bash script to pull all the elements together too :) Continue reading

ffmpeg encode for Powerpoint Viewer 2010

You setup a powerpoint presentation on your normal work machine, the encodes you did in mp4 worked just fine in the presentation. Save out to a stick and take it to the machine (an all in one touch screen 65″ with powerpoint viewer only) and all you see is a black screen where your video should be.

Scoured the interweb and tried three different encoding solutions, all of which resulted in a black screen.

I then upgraded the powerpoint viewer on the display machine from 2007 to 2010 (or the latest one I could find on the Microsoft pages). Bingo, the video started working.

Here is the encode I used which worked best, allowing proper full screen video, no black bars, etc.

 

Nearly Everything

So new PC, i5 core 4670K, 4gb ram, Nvidia GTX 650, Triple Boot of W8, W7 and Xubuntu 12.04.3

W8 everything works except for DVB Stick

Xubuntu everything works except for Eyetoy webcam and DVB stick sometimes

W7 everything works

Shame as Eyetoy and DVB used to work fine on last system with 12.04

I just flick betwen the three of them depending on what is needed, and a boot to W7 then a reboot to Xubuntu makes the DVB work

Come on everyone!!

Automating Framebuffer Digital Photo Frame

dpf6We have seen in my previous post how I setup the DPF to work against the framebuffer. Now it was time to automate things a bit.

Task List:

  • Autologin on Startup
  • Start gnu screen on Boot
  • Uploading New Images
  • Screen On/Off Timer
  • Reboot Timer
  • Shutdown Timer
  • Unique names/shuffle for file list
  • Cycle Colour Change for Clock ?

Continue reading

Digital Picture Frame & Clock on the Framebuffer!

dpfBeen wanting to have a go at this for a long time, and finally found some time to sit down and hack my way through it. Everyone else on the web seems to have used X to do this, but encouraged by all the work done on the cli and framebuffer by KMandla I felt this could be done. Now I’ve done all the hard work, I am happy to share it with you!

Continue reading

Rough Guide to Bitrate Calulations for Video Encoding

Want a video to be a particular size?

((Size (mb) x 8192) / length of video (secs)) – audio bitrate (k) = video bitrate required

Example in bash with file size of 13.79mb, audio bitrate of 128k and length of 180 seconds:

What to know the size of a video when using a particular bitrate?

((Video bitrate (k) + Audio bitrate (k))  x length (secs)) / 8192 = Size (mb)

Example in bash, with video bitrate of 500, Audio bitrate of 128, length of video 180 seconds:

You can put these into a variable:

ffmpeg – Create Movie from a Single Image and A Sound file

You see these on youtube a lot, and sound file being played back with a fixed image. This is how to create one using ffmpeg

The -shortest option ensures the video is created the same length as the sound file (the shortest of the two inputs, as the image file will loop forever!

The -loop 1 option (which replaces loop_input) ensures the image file is continuously looped.

one can play around with audio codecs, video outputs and aspect ratios until you have what you want (you can always use -t for time in seconds for testing)

Rolling Video Player

Here is a nice little bash script that will keep repeating the same video over and over. I guess with a bit more work you could have more than one. In this case I used test.mp4 as the video, and as it was only 2 minutes long set a sleep time of 90 seconds. Amend these two parameters to suit