How to fix corrupt packet error for with rsync for large files

In order to have local copies of my web pages hosted on VPS I have configured rsync cronjob to sync everything during the night to my local box.

Sometimes with larger files you can encounter errors like these:

Received disconnect from [YOUR_IP]: 2: Packet corrupt
rsync: [sender] write error: Broken pipe (32)
rsync error: unexplained error (code 255) at io.c(820) [sender=3.1.1]

Continue reading “How to fix corrupt packet error for with rsync for large files”

Prevent kernel out of memory manager to kill processes on Raspberry Pi 2

I am using Raspberry Pi 2 with Xbian installed as my primary always on media-player device. Beside usual Kodi and few other services I also have MySQL, pihole, lighttpd, rtorrent, samba and few other.

Lately I am faced with kernel oops when trying to copy larger files, over 500MB. Rapsberry Pi becomes unresponsive, I can ping it but no longer connect to it. Continue reading “Prevent kernel out of memory manager to kill processes on Raspberry Pi 2”

How to additionally clean-up Kodi MySQL database from unwanted entries

If you are like me using Kodi (XBMC) library to manage all your multimedia files you are probably used to updating and cleaning your library after adding or deleting new files.

My library at the moment consists of 15121 files total, but after examining it in PHPMyAdmin I have noticed that files table contains also some entries that point to non-existing idPath from path table and other files that are pointing to a path that is non-local (HTTP or plugin instead of regular system path). Continue reading “How to additionally clean-up Kodi MySQL database from unwanted entries”

Join several video files with VLC without transcoding

I was looking for most simple way to join several video clips into one larger clip without installing additional packages on my Debian laptop.

Most simple way I found was using command like this:

vlc 18M00S.mp4 19M00S.mp4 20M00S.mp4 21M00S.mp4 --sout "#gather:std{access=file,dst=all.mp4}" --sout-keep

Where “18M00S.mp4“, “19M00S.mp4“, “20M00S.mp4” and “21M00S.mp4” are my clips that will be joined in a file “all.mp4” in the same folder.

You can change output filetype with adding for example “mux=ts” in –sout “#gather:std{access=file,mux=ts,dst=all.mp4}“, but this was not needed in my case.