Category Archives: Linux

Posts about and around the operating system Linux and all open source stuff I use or write

Raspberry Pi + Dayton DTA-1 + Bluetooth

Raspberry Pi + Dayton DTA-1I have been on the lookout for a way of playing music in our bathroom without a huge installation but with a lot of flexibility. Thanks to a recommendation by XY I bought a Dayton DTA-1 amplifier and a Raspberry Pi.

I installed Raspbian following this tutorial. The bluetooth adapter worked like a charm.

Getting AirPort to work required some tinkering using this tutorial.

The Dayton is really good at playing back the MP3s. The sound quality for 33€ is very good and the case small and light. I did not choose to add a USB DAC as I can’t hear the difference.

Next step: getting it to be controlled with KNX…

Mythbuntu packages with many patches from LVR

The following patches where applied to the first commit to my PPA

Check out the "changes" file on the PPA to see what might have been added since.

0001-MythPlayer-Add-support-for-InteractiveTV-streams.patch.dpatch
0002-freemheg-Add-InteractionChannel-streaming-from-netwo.patch.dpatch
0003-MythPlayer-Improve-low-bit-rate-high-latency-stream-.patch.dpatch
0004-ringbuffer-Adapt-readahead-for-low-bit-rate-high-lat.patch.dpatch
0005-freemheg-Don-t-return-an-object-not-present-error-un.patch.dpatch
0006-ffmpeg-Fix-MacOSX-cross-compilation.patch.dpatch
0007-zoneminder-Compile-for-Windows.patch.dpatch
0008-MediaMonitor-GetMedias-search-for-multile-media-type.patch.dpatch
0009-mytharchive-enable-compilation-for-Windows.patch.dpatch
0010-libmythui-fullscreen-doesn-t-cover-gnome-panel-with-.patch.dpatch
0011-MediaMonitor-doesn-t-handle-Jump-to-plugin-correctly.patch.dpatch
0013-mythshutdown-uses-idleWaitForRecordingTime-instead-o.patch.dpatch
0014-Make-mythgallery-s-thumb-generator-not-auto-detect.patch.dpatch
0015-MythCenter-wide-Fix-OSD-starttime-overwriting-title.patch.dpatch
0016-MythCenter-Wide-Make-TV-program-guide-more-legible-o.patch.dpatch
0017-MythCenter-wide-Theme-Add-program-start-and-end-time.patch.dpatch
0018-MythCenter-theme-Add-channel-name-and-number-to-osd-.patch.dpatch
0019-http-proxy-add-support-for-socks-and-caching-proxies.patch.dpatch
0020-Enable-Windows-release-build-of-mythnetvision-and-my.patch.dpatch
0021-Win32-Direct3D9-accelerated-video-playplack-on-XP-an.patch.dpatch
0023-freemheg-Fix-error-handling-during-Launch.patch.dpatch
0024-freemheg-Support-bitmap-backgrounds-used-by-BBC-Free.patch.dpatch
0025-libmythtv-Correct-test-for-MPEG-TS-continuity-counte.patch.dpatch
0026-dsmcc-Prevent-a-potential-SEGV-by-reading-beyond-end.patch.dpatch
0027-libmythtv-Set-the-modulation-system-for-all-dvb-s2-c.patch.dpatch
0028-mythuibuttonlist-Prevent-reading-beyond-end-of-list.patch.dpatch
0029-mythfrontend-Prevent-writing-to-ProgLister-after-it-.patch.dpatch
0030-libmythtv-Play-encrypted-dvd-s-and-iso-images-from-s.patch.dpatch
0032-libmythtv-channelimporter-add-callout-to-myth_channe.patch.dpatch
0033-mythtv-setup-Add-command-line-channel-scanning-for-d.patch.dpatch
0034-libmythtv-Add-a-mutex-to-the-ChannelScanSM-class.patch.dpatch
0035-mythbackend-Missing-SID-triggers-a-channel-re-scan-w.patch.dpatch
0036-eithelper-Add-fixups-for-UK-Freesat-transponders.patch.dpatch
0037-libmythtv-Improved-letterbox-detection.patch.dpatch
0038-previewgen-Fix-handling-of-infile.patch.dpatch
0039-mythcommflag-Report-an-error-if-rebuilding-the-seek-.patch.dpatch
0040-mythpreviewgen-Can-t-create-local-preview-image-of-a.patch.dpatch
0041-mythpreviewgen-Allow-screengrab-without-seek-table.patch.dpatch
0042-avformatdecoder-Fix-aspect-ratio-calculation-to-use-.patch.dpatch
0043-TV-Automatically-select-a-free-card-when-changing-ch.patch.dpatch
0044-MHEG-Serialise-accesses-to-the-MHEG-engine.patch.dpatch
0045-MHEG-Fix-race-condition-when-restarting-the-DSMCC-af.patch.dpatch
0046-MHEG-Optimise-display-update.patch.dpatch
0047-TV-Fix-race-condition-when-changing-channels-with-br.patch.dpatch
0048-Profile-build-on-Windows-and-MacOSX-don-t-require-Qt.patch.dpatch
0049-mythwelcome-Add-a-wireless-network-setup-dialog.patch.dpatch
0050-mytharchive-Fix-a-race-condition-in-the-creation-of-.patch.dpatch
0051-Don-t-restart-mythbackend-idle-timeout-for-non-speci.patch.dpatch
0052-mythplayer-Avoid-stutters-between-programs-and-when-.patch.dpatch
0054-libmythui-Fix-a-redraw-bug-in-MythUIType.patch.dpatch
0055-libmythui-Workaround-for-fglrx-tearfree-redraw-probl.patch.dpatch
0056-libmyth-Improve-hoghlighting-of-focussed-checkboX-Sl.patch.dpatch
0057-MythCenter-wide-theme-Improve-legibility-of-inactive.patch.dpatch
0059-ffmpeg-Allow-building-with-libx264-0.85.patch.dpatch
0060-Python-bindings-Relax-mysql-Python-binding-version.patch.dpatch
0061-Mytharchive-Catch-StopIteration-exception-in-mythbur.patch.dpatch
0062-limythtv-Add-a-setting-to-control-MHEG-interaction-c.patch.dpatch
0063-MediaMonitor-Delay-after-pmount-to-permit-proc-mount.patch.dpatch
0064-Themes-Fix-font-weight-in-MythCenter-wide-program-in.patch.dpatch
0065-libfreemheg-Add-thread-id-to-log-output.patch.dpatch
0066-libfreemheg-Log-text-contents-when-updated.patch.dpatch
0067-ffmpeg-Dont-discard-PES-sections-split-across-a-TS-p.patch.dpatch
0068-libmyth-Prevent-a-SEGV-in-mythwelcome-when-backend-c.patch.dpatch
0069-libmythui-Prevent-memory-leak-of-MythUIType-children.patch.dpatch
0070-libmythtv-MHEG-ignores-TEXTEXIT-if-no-onscreen-to-al.patch.dpatch
0071-libmythui-Don-t-draw-zero-sized-MythUIType-objects.patch.dpatch
0073-UK-EIT-fixups-Retain-series-and-episode-number-in-de.patch.dpatch
0074-libmyth-Prevent-SEGV-in-avcodec_decode_video2-when-p.patch.dpatch
0075-OSD-Add-a-graphical-display-of-audio-level-to-cut-li.patch.dpatch
0076-libmythtv-Initialise-all-fields-of-struct-passed-to-.patch.dpatch
0077-libmyth-Initialise-ProgramInfo-programflags-in-all-c.patch.dpatch
0078-greedyhdeint-Ensure-filter-context-data-is-all-set-t.patch.dpatch
0079-mythplayer-Don-t-call-DoneDisplayingFrame-for-PiP-un.patch.dpatch
0080-libmythtv-Avoid-a-SEGV-in-PosMapFromEnc-if-the-stari.patch.dpatch
0081-OpenGL-Optimize-writing-packed-images-to-pixel-buffe.patch.dpatch
0082-OpenGL-Reduce-video-playback-overhead.patch.dpatch
0083-libmythtv-Prevent-a-SEGV-in-MpegRecorder-run-when-en.patch.dpatch
0084-MythCenter-wide-theme-use-longdatetext-for-program-g.patch.dpatch
0085-Subtitles-Avoid-changing-subtitle-state-in-the-decod.patch.dpatch

I have been using LVRs patches for a few weeks. They provide some nice features I have been missing, here two examples:

  1. Get preview in files without a seektable: I use my own copy of mythnettv that imports shows from sites like youtube. The preview I used to get was a black first frame, now it works perfectly.
  2. OSD that shows audio levels: check out the screenshot

Many more are also useful, especially for UK users on Freesat.

Today I started posting the Mythbuntu development packages to my PPA with these patches. Check them out here. Be aware that I don’t usually have the time to realy test these packages, so make backups of your database before you use them!

Update: No need to keep the packages as all relevant patches are now in mainline MythTV

mythnettv with YouTube RSS feed support

I have released a small update to the mythnettv code I maintain for myself. Besides some other changes I have made in the last few months the latest addition might be of interest to those who want to import YouTube videos into the MythTV Recodings screen. You can get my copy of mythnettv here and make sure to read the README file as many new exotic dependencies have been added differing from the original code made by Michael.

To sum it up, you can now take a link like "http://www.youtube.com/watch?v=WdU-UtEJEIA" and download it into MythTV. Or you can take a RSS feed like "http://www.youtube.com/rss/user/AtheistFoundation/videos.rss" and subscribe to it.

Neue deutsche HD Sender und MythTV

Bei MythTV Talk wurde die Frage gestellt wie man am besten die neuen HD-Sender in MythTV übernimmt ohne die Sendernummerierung zu verlieren. Hier nochmal zusammengefasst:

  1. Mit “/usr/share/mythtv/mythconverg_backup.pl –verbose” sollte man sich auf alle Fälle erst ein Backup machen
  2. dann diese Datei (channel_numbers_update_de.sql) auf den Server runterladen
  3. über z.B. mythweb sich die jetzige Sendernummerierung in die runter geladene Datei übernehmen oder die dort vorgeschlagene belassen. “channum=1” steht für die Sendernummer.
  4. danach mit “sudo mythtv-setup” einen neuen Senderdrurchlauf starten und “alle Transponder” und “neue Transpoder suchen” auswählen.
  5. jetzt sollten die neuen Sender existieren, aber die Nummern mit keiner Ordnung vorliegen.
  6. der Befehl
    mysql --database=mythconverg --user=mythtv --password=meinpword < channel_numbers_update_de.sql

    ändert dann die Sendernummern. Alles OK.