Skip to content

DLNA, Panasonic, Matroska and Madiatomb

Have you got a Panasonic SMART (LCD-LED) TV?

Is it model TX-L32E6E?

Do you want get it read mkv from a dlna server?

Is the dlna server mediatomb?

Then, this is what you need to do.

Edit mediatomb config.xml

In section <extension-mimetype ignore-unknown=”no”> add:

 <map from=”mkv” to=”video/x-matroska”/>

In section <mimetype-contenttype> add:

<treat mimetype=”video/x-matroska” as=”mkv”/>

That is if no mkv are already in the db but if mkv are already in the mediatomb db then it must be update.

A mean is find <dir> -type f -exec touch -a “{}” \;

Click here to read the full source.

Aside

Extract & burn subtitles from / into video (using ffmpeg)

Following this article I got subtitles hard-coded into the video.

Subtitles were extract from source with this command

ffmpeg -i mymovie.mkv -vn -an -codec:s:0.1 srt mymovie.srt

found in  ‘Extracting the subtitles, at last !’ section of this article.

7-zip command line (7za) on OS X

The better solution to get 7-zip *command line* (7za) on an OS X installation
is to grab the p7zip (http://p7zip.sourceforge.net/) sources and compile them on a Mac (maybe Xcode is needed but not sure):

# working directory where p7zip sources are in is ./sources

tar xbfj p7zip_9.20_x86_linux_bin.tar.bz2
cd p7zip_9.20.1
make

If all went fine in  p7zip_9.20.1/bin there will what we need: the executable 7za.

p7zip is a port of 7za.exe for POSIX systems like Unix (Linux, Solaris, OpenBSD, FreeBSD, Cygwin, AIX, …), MacOS X and also for BeOS and Amiga.
7za.exe is the command line version of 7-zip, see http://www.7-zip.org/.

Attache are:
* source code got from http://sourceforge.net/projects/p7zip/
* executable built on OS X 10.8.5 (with both Xcode 4.5.1 and XCode 5.0 installed but – again – not sure whether Xcode is need)

AVCHD video authoring

Problem: get my father’s Panasonic Full HD TX-L32G10 television play videos from Secure Digital card.

I have a Panasonic Full HD camcorder.
My mother does videos with her Canon -a model- photo camera.
My fathers television (see above) can read only either avchd or mpeg videos from a sd card.
Moreover – do not know wheter this is true for mpeg – avchd can be read only if sd structure is a valid avchd strucutre.

After lots of tries I find out this avchd authoring video tool that does the work.

Only to remember when tool outcome is transferred to the sd it must be put under PRIVATE folder otherwise that f*****g tv refuses to read videos.

Get gmail and thunderbird contacts in sync

If you want to get in sync your Mozilla Thunderbird contats with Google Contacts then you have to try this Google Contacts Thunderbird extension.

passwd hashed password

User’s password in a *nix system (like Debian 6 GNU / Linux) are not stored in clear but they are hased.

i.e. if you password is qwerty then it is stored as 123.Qaz/9Xyz. Likely (mathematically) no strings other than qwerty will be hased as 123.Qaz/9Xyz. So when you login the password you enter (qwerty) is hased and the hased version (123.Qaz/9Xyz) is check against the stored one. If you enter Qwerty than you will not login as hash of Qwerty differs from qwerty hash.

Maybe you already know that. But do you know how to generate the has version of a password in the same fashion it is sotred in either the passwd or the shadow file?

Well I do not know whether this is an universl answer, but I think it is valid for most of modern GNU / Linux systems.

For sure it works with Debian 6:

mkpasswd -m <method> –salt <salt> <password>

<method> : Debian 6 as method uses sha-512.

<salt> : It is variable, choose by system when hashing the password

<password> : Your password

<method> and <salt> are stored in either passwd or shadow files toghether with hashed password (shadow file can be read only by root): read more.

The format is $id$salt$hashed-password and, if method is sha-512 then $id$ is $6$.

Example

mkpasswd -m sha512 –salt poiuytre qwerty

prints

$6$poiuytre$xNMEGtGbGLPSFbotpTOD4/vUJYZLbhMR/xXJ4XNu8QWPt.GR.NGb06FyGBb1ex9A./OLIoaiGwXdC8K6jHNOJ.

that is what you would see in either passwd or shadow files if a user will set qwerty password and system chooses poiuytre salt.

 

Video

Juventus – Pescara 2012-2013

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: