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

Xubuntu 15.04 Upgrade Issues

Just upgraded to Xubuntu 15.04, found a few gotchas!

1. Had to recompile ffmpeg because libass4 was replaced by libass5.

2. Thunar no longer by default shows the “Execute” option when right (double) clicking shell scripts.

You have to run this command then restart Thunar

3. EasyMp3Gain has been removed from the repos due to a security flaw.

Recommended to install python-rgain instead:

runs with:

No doubt will find a few more as time goes on.

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.

 

PS2 Eyetoy on Windows 8 64 bit – working !!

A rare foray into the world of Windows, but with a new PC and Windows 8 on board, set about getting the old Eyetoy to work as a webcam.

eyetoy

This issue on Windows 7 64 bit had been resolved by taking the Hercules OmniVision 64 bit driver and tweaking some of the entries. W7 would allow the driver to install, but not so with W8.

So more hacking required. This is achieved by turning off the Driver Enforcement, installing the driver, then when successful, turning Driver Enforcement back on. Continue reading

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

Xubuntu Bluetooth – blueman – automatic device connection (audio+headset)

bluemanThis had me flummoxed for a while, if I wanted my HTC ONE-X or Jabra Clipper to connect to the PC, I always had to go into devices and then select audio sink before it would connect, this is having previously paired and trusted the devices.

A foray into /etc/bluetooth/ showed all the .conf files for bluetooth, including audio.conf.

In there is a setting for auto-connection. All you have to do is remove the comment from the last line of the coda, save out then restart bluetooth, and your devices should automagically connect next time you try

 

This is going to be of great help when using bluetooth headphones on our htpc, and also with my carpc for either connecting the phone to the car, or for other bluetooth uses (yet to be discovered but keyboard or remote possibilities)