Posts Tagged ‘unix’

DeMuxing and ReMuxing M2TS/MP4/FLV to MKV under –insert-your-preferred-unixoid-os-here–

March 17, 2010 8 comments

Sometimes I get some video files in mp4, flv or even m2ts containers. Since I am a big, big fan of the mkv container format, I usually remux those files. When I first tried to find a solution for this using Linux, Google spit out everything and the kitchen sink, but not the most obvious choices: use ffmpeg or mplayer.

To demux with ffmpeg:

ffmpeg -i input.{mp4,flv,m2ts} -vcodec copy out.{h264,m2v} -acodec copy out.{aac,mp3}

AFAIK mplayer involves two steps to demux video and audio separately:

mplayer -dumpvideo -dumpfile out.{h264,m2v} input.{mp4,flv,m2ts}
mplayer -dumpaudio -dumpfile out.{aac,mp3} input.{mp4,flv,m2ts}

There are probably a gazillion ways more (mencoder comes to mind) to achieve the demuxed material and if the input files contain more than one video and one audio stream, you might have to – personally I never was in such a scenario – dig up ffmpeg’s manual about stream selection. Which actually is pretty easy to do.

Once you got your streams demuxed, use the most excellent mkvtoolnix suite to remux them into a mkv container (note: mmg is your friend here). As you will be most likely adding elementary streams, mkvmerge won’t be able to automatically determine the correct fps. Just manually enter them, ffmpeg or mplayer should have spit them out in the demuxing process. Here you can also add subtitles and w/e your heart desires into the container.

out.{h264,m2v} input.{mp4,flv,m2ts}
Categories: linux, unix Tags: , , ,

Microsoft CoreFonts in OpenSuSE 11.0

For w/e reason they are no longer included in the official repositories – I know, I know… There are replacements around, which I use, but for work purposes you unfortunately just need them.

chmod +x ./


Categories: linux, unix Tags: , , , ,

So I don’t forget it again…

… gosh, I always forget what I do to my font configs on my machines.

KDE: Enable Antialiasing/Subpixel hinting RGB/Style Medium
Fontconfig system wide: Replace Helvetica with something readable in .fonts.conf
Link 10-autohint.conf and 10-sub-pixel-rgb.conf

To be never forgotten again for my fonts to look gorgeous.

Categories: kde, linux, unix Tags: , , ,

Someone could have told me earlier…

… my Sidux has bash-completion enabled for all apt-commands.

apt-get install amarok<tab> simply rocks instead of using apt-cache search everytime.

Categories: unix Tags: , ,

Alsa woes

Note to self: Intel’s HDA chip on my P35 motherboard sucks and doesn’t support hardware mixing. Debian’s libasound2 sucks too since the plug:dmix is broken for w/e reason.

Solution: Reactived my trusty old Creative Audigy2. Sweet piece of hardware and does hardware mixing.

Categories: linux, rants, unix Tags: , ,

Boy, my NSLU2 is slow…

Decided to compile a new version libtorrent and rtorrent since well… I was bored and the new version got DHT support, which is awesome.
7 hours later I realized I forgot to put the proper CXXFLAGS in place … AGAIN! 😦 It’s a known bug when compiling with GCC 4.xx, all goes well until you first fire up the client. Once it starts communicating with outside nodes it will bail out with Unread data won't fit PCBs read buffer
So after two distcleans off the Slug goes again. As much as I love my little NSLU2 – that box really is a Slug. So if you ever want to compile the bittorrent client of awesomeness on your box, remember to
CXXFLAGS="-O2 -mcpu=xscale -mtune=xscale"
before the initial ./configure’s. Will save you lots of time.

Categories: unix Tags: ,

A simple tweak to make your GTK Fonts look nice in KDE

March 27, 2008 10 comments

… at least when using Sidux. 🙂
I was quite annoyed yesterday because my KDE fonts looked simply crispy and marvellous, yet the ones in Pidgin and Iceweasel/Firefox (pretty much the only GTK apps I use) looked like shit. gtk-qt-engine does a good job keeping my fonts the same, but there was simply no anti-aliasing going on in GTK apps which I seriously hate. I am used to AA. I want it everywhere! 🙂
Diving into /etc/fonts it was pretty obvious that I was missing one thing there….

ln -s /etc/fonts/conf.avail/10-autohint.conf /etc/fonts/conf.d/

This turns on the Auto-Hinter systemwide – something which you do for your KDE fonts in Control Center, but usually can’t do without installing a crap ton of GNOME dependencies for GTK apps. This does it. And boy does it make a difference.

Categories: kde, unix Tags: , ,
%d bloggers like this: