Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508816 - media-plugins/vdr-audiorecorder-0.1.0_pre14-r3 does not append music to ID3 header files
Summary: media-plugins/vdr-audiorecorder-0.1.0_pre14-r3 does not append music to ID3 h...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Deadline: 2017-07-05
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2014-04-26 20:28 UTC by Mark Dominik Bürkle
Modified: 2017-07-05 12:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vdr-audiorecorder-9999.ebuild for local testing (vdr-audiorecorder-9999.ebuild,829 bytes, text/plain)
2014-04-30 14:29 UTC, Joerg Bornkessel (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2014-04-26 20:28:01 UTC
After running vdr-audiorecorder in record mode for some hours, my filesystem filled up with nicely sorted author/song.mp2 files.
However, those files only contained the headers of the files.

Watching the filesystem while recording revealed that several recordings took place at the same time (about four stations were recorded simultaneously) and temporary files with music were created in the audiorecorder base directory, but those were never appended to the header files, they were simply discarded.


Reproducible: Always

Steps to Reproduce:
1. install vdr
2. install vdr-audiorecorder
3. record using audiorecorder via vdr's menu system
Actual Results:  
only .mp2 ID3 header files are created, length up to 1320 Bytes

Expected Results:  
music should be appended to those ID3 header files, so they should be some 3-8 MBytes in size.

video audiorecorder # emerge --info =media-plugins/vdr-audiorecorder-0.1.0_pre14-r3
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.14.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.1-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.2
KiB Mem:     1017924 total,     82704 free
KiB Swap:    4891788 total,   4891788 free
Timestamp of tree: Sat, 19 Apr 2014 11:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/portage /etc/rsyncd.conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://lapmdb-hpl ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://vdr-vb.localnet/portage"
USE="X acl acpi alsa amd64 apache2 bash-completion berkdb bindist browserplugin bzip2 cdr cli cracklib crypt curl cxx dri dvd dvdr dvdread gdbm gnome gtk gtk2 iconv imap ipv6 mmap mmx modules mozilla multilib ncurses nls nptl nptl-only oggvorbis openal openmp pam pcre readline session sse sse2 ssl tcpd theora unicode xml xml2 xmlrpc xv zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-plugins/vdr-audiorecorder-0.1.0_pre14-r3 was built with the following:
USE=""
CFLAGS="-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe -fPIC"
CXXFLAGS="-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS"

video audiorecorder #
Comment 1 Mark Dominik Bürkle 2014-04-26 22:34:35 UTC
rebuilt vdr-audiorecorder with FEATURES=debug. From /var/log/messages, looks more like an "encoder mp2 not found" problem:

Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: decoder initialized (convert.c, init_decoder())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: could not open codec mp2 (convert.c, init_encoder())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (recpath      : /export/vdr/audiorecorder/WDR 2-2014-04-27.00.27.39.tmp.mp2) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (path         : /export/vdr/audiorecorder/Alice Cooper/School's out.mp2) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (recdir       : /export/vdr/audiorecorder/) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (artist       : Alice Cooper) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (title        : School's out) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (file_pattern : 0) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: (upper        : 0) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: dir : Alice Cooper/School's out.mp2 (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: 5 dirpfad : 1 /export/vdr/audiorecorder//Alice Cooper (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: 6 dir : School's out.mp2 (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: start reencoding (/export/vdr/audiorecorder/WDR 2-2014-04-27.00.27.39.tmp.mp2 into /export/vdr/audiorecorder/Alice Cooper/School's out.mp2) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: stop reencoding (/export/vdr/audiorecorder/WDR 2-2014-04-27.00.27.39.tmp.mp2 into /export/vdr/audiorecorder/Alice Cooper/School's out.mp2) (postproc.c, reencode())
Apr 27 00:30:38 video vdr: [6794] [audiorecorder]: tag written (/export/vdr/audiorecorder/Alice Cooper/School's out.mp2) (postproc.c, set_tag())

video audiorecorder-0.1.0-pre14 # l /export/vdr/audiorecorder
insgesamt 14796
drwxr-xr-x 3 vdr vdr    20480 27. Apr 00:30 ./
drwxr-xr-x 5 vdr root    4096 21. Apr 22:03 ../
drwxr-xr-x 2 vdr vdr     4096 27. Apr 00:30 Alice Cooper/
-rw-r--r-- 1 vdr vdr     4477 27. Apr 00:30 cache.xml
-rw-r--r-- 1 vdr vdr  6393600 27. Apr 00:30 PULS-2014-04-27.00.28.02.tmp.mp2
-rw-r--r-- 1 vdr vdr  8717760 27. Apr 00:30 SWR3-2014-04-27.00.27.04.tmp.mp2
video audiorecorder-0.1.0-pre14 # l /export/vdr/audiorecorder/Alice\ Cooper/
insgesamt 28
drwxr-xr-x 2 vdr vdr  4096 27. Apr 00:30 ./
drwxr-xr-x 5 vdr vdr 20480 27. Apr 00:32 ../
-rw-r--r-- 1 vdr vdr  1287 27. Apr 00:30 School's out.mp2
video audiorecorder-0.1.0-pre14 #
Comment 2 Mark Dominik Bürkle 2014-04-26 23:09:21 UTC
installing twolame (with libsndfile + flac) and restarting vdr didn't do the trick. :-(
Comment 3 Mark Dominik Bürkle 2014-04-27 00:07:23 UTC
from strace -s 1000 of postprocessing(?) thread:

...
nanosleep({0, 10000000}, NULL)          = 0
gettid()                                = 9506
sendto(3, "<11>Apr 27 01:57:10 vdr: [9506] [audiorecorder]: decoder initialized (convert.c, init_decoder())", 96, MSG_NOSIGNAL, NULL, 0) = 96
write(2, "\33[0;39m", 7)                = 7
write(2, "\33[0m", 4)                   = 4
write(2, "\33[1;36m", 7)                = 7
write(2, "[mp2 @ 0x7ff1e0013290] ", 23) = 23
write(2, "\33[0m", 4)                   = 4
write(2, "\33[1;31m", 7)                = 7
write(2, "Specified sample_fmt is not supported.\n", 39) = 39
write(2, "\33[0m", 4)                   = 4
gettid()                                = 9506
sendto(3, "<11>Apr 27 01:57:10 vdr: [9506] [audiorecorder]: could not open codec mp2 (convert.c, init_encoder())", 101, MSG_NOSIGNAL, NULL, 0) = 101
open("/export/vdr/audiorecorder/WDR 2-2014-04-27.01.53.13.tmp.mp2", O_RDONLY) = 28
...
Comment 4 Mark Dominik Bürkle 2014-04-27 00:19:45 UTC
Apr 27 02:16:20 video vdr: [9951] [audiorecorder]: your version of libavcodec (ffmpeg) is not compiled with mp3 support (audiorecorder.c, probe_audio_codecs())

I guess that's it, will try...
Comment 5 Mark Dominik Bürkle 2014-04-27 01:08:35 UTC
video audiorecorder # equery uses ffmpeg
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-video/ffmpeg-1.0.8:
 U I
 - - 3dnow                 : Use the 3DNow! instruction set
 - - 3dnowext              : Enable manually-optimised routines using the AMD 3DNow!Ex SIMD instruction set, present in modern AMD CPUs. (Check for 3dnowext in /proc/cpuinfo to know whether your CPU supports
                             it). 
 + + X                     : Add support for X11
 - - aac                   : Enable support for MPEG-4 AAC Audio
 - - aacplus               : AAC+ encoding via media-libs/libaacplus.
 + + alsa                  : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - amr                   : Enables Adaptive Multi-Rate Audio support
 - - avx                   : Adds support for Advanced Vector Extensions instructions (Intel Sandy Bridge, AMD Bulldozer and later chips)
 + + bindist               : Enforces license compatibility constraints via REQUIRED_USE.
 - - bluray                : Enable playback of Blu-ray filesystems
 + + bzip2                 : Use the bzlib compression library
 - - cdio                  : Enables audio CD grabbing with dev-libs/libcdio.
 - - cpudetection          : Enables runtime CPU detection (useful for bindist, compatibility on other CPUs)
 - - debug                 : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc                   : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 + + encode                : Add support for encoding of audio or video files
 - - examples              : Install examples, usually source code
 - - faac                  : Use external faac library for AAC encoding
 - - fdk                   : Use external fdk-aac library for AAC encoding
 + + fftools_aviocat       : cat's a URL to another one, useful for dumping streams.
 + + fftools_cws2fws       : converts cws files (Macromedia Flash, compressed) to fws ones (Macromedia Flash, uncompressed).
 + + fftools_ffeval        : A simple expression evalutor.
 + + fftools_fourcc2pixfmt : Shows the relationships between rawvideo pixel formats and FourCC tags.
 + + fftools_graph2dot     : A tool to convert a libavfilter graph to a dot file.
 + + fftools_ismindex      : A tool for creating smooth streaming manifests.
 + + fftools_pktdumper     : Dumps packets as demuxed by libavformat.
 + + fftools_qt-faststart  : Rearranges a Quicktime file to facilitate network streaming.
 + + fftools_trasher       : Writes burts of random data into a file. Great for testing error robustness/resilience/concealment.
 - - flite                 : Adds a text-to-speech filter based on app-accessibility/flite.
 - - fontconfig            : Support for configuring and customizing font access via media-libs/fontconfig
 - - frei0r                : Enable frei0r wrapping in libavfilter
 - - gnutls                : Add support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
 - - gsm                   : Add support for the gsm lossy speech compression codec
 + + hardcoded-tables      : Use pre-calculated tables rather than calculating them on the fly.
 - - iec61883              : Support for FireWire DV/HDV input device using media-libs/libiec61883.
 - - ieee1394              : Enable FireWire/iLink IEEE1394 support (dv, camera, ...)
 - - jack                  : Add support for the JACK Audio Connection Kit
 - - jpeg2k                : Support for JPEG 2000, a wavelet-based image compression format
 - - libass                : SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support
 - - libcaca               : Add support for colored ASCII-art graphics
 - - libv4l                : Uses media-libs/libv4l for video4linux instead of direct calls. Adds support for more devices via the userspace library.
 + + mmx                   : Use the MMX instruction set
 - - mmxext                : Enables mmx2 support
 - - modplug               : Add libmodplug support for playing SoundTracker-style music files
 + + mp3                   : Add support for reading mp3 files
 + + network               : Enables network streaming support
 + + openal                : Add support for the Open Audio Library
 - - openssl               : Enables dev-libs/openssl support. Adds support for encrypted network protocols (TLS/HTTPS).
 - - opus                  : Adds (decoding) support for the Opus codec via media-libs/opus.
 - - oss                   : Add support for OSS (Open Sound System)
 - - pic                   : Force shared libraries to be built as PIC (this is slower)
 - - pulseaudio            : Add support for PulseAudio sound server
 - - rtmp                  : Enable Real Time Messaging Protocol using librtmp
 - - schroedinger          : Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec).
 - - sdl                   : Add support for Simple Direct Layer (media library)
 - - speex                 : Add support for the speex audio codec (used for speech)
 - - ssse3                 : Faster floating point optimization for SSSE3 capable chips (Intel Core 2 and later chips)
 - - static-libs           : Build static versions of dynamic libraries as well
 - - test                  : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
 + + theora                : Add support for the Theora Video Compression Codec
 - - threads               : Add threads support for various packages. Usually pthreads
 - - truetype              : Add support for FreeType and/or FreeType2 fonts
 - - twolame               : Enables MP2 encoding via media-sound/twolame as an alternative to the internal encoder.
 - - v4l                   : Enable support for video4linux (using linux-headers or userspace libv4l libraries)
 - - vaapi                 : Enables VAAPI (Video Acceleration API) for hardware decoding
 - - vdpau                 : Enable the Video Decode and Presentation API for Unix acceleration interface
 - - vorbis                : Add support for the OggVorbis audio codec
 - - vpx                   : Enables vp8 codec support using libvpx: Decoding vp8 does not require this to be enabled but libvpx can also be used for decoding; encoding vp8 requires this useflag to be enabled
                             though.
 - - x264                  : Enable h264 encoding using x264
 - - xvid                  : Add support for xvid.org's open-source mpeg-4 codec
 + + zlib                  : Add support for zlib (de)compression
video audiorecorder # equery uses virtual/ffmpeg
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for virtual/ffmpeg-0.10.3:
 U I
 + + X        : Add support for X11
 + + encode   : Add support for encoding of audio or video files
 - - gsm      : Add support for the gsm lossy speech compression codec
 - - jpeg2k   : Support for JPEG 2000, a wavelet-based image compression format
 + + mp3      : Add support for reading mp3 files
 - - sdl      : Add support for Simple Direct Layer (media library)
 - - speex    : Add support for the speex audio codec (used for speech)
 + + theora   : Add support for the Theora Video Compression Codec
 - - threads  : Add threads support for various packages. Usually pthreads
 - - truetype : Add support for FreeType and/or FreeType2 fonts
 - - vaapi    : Enables VAAPI (Video Acceleration API) for hardware decoding
 - - vdpau    : Enable the Video Decode and Presentation API for Unix acceleration interface
 - - x264     : Enable h264 encoding using x264
video audiorecorder # 
video audiorecorder-0.1.0-pre14 # ffmpeg -codecs|grep mp[23]
ffmpeg version 1.0.8 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 17 2014 21:33:22 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe' --extra-cflags='-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe' --extra-cxxflags='-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-ffplay --disable-runtime-cpudetect --enable-libmp3lame --enable-libtheora --enable-openal --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack --enable-x11grab --disable-outdev=oss --disable-outdev=sdl --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disable-vis --disable-  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
 DEA.L. mp2                  MP2 (MPEG audio layer 2) (decoders: mp2 mp2float )
 DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )
 D.A.L. mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat )
 D.A.L. mp3on4               MP3onMP4 (decoders: mp3on4 mp3on4float )
video audiorecorder-0.1.0-pre14 # 

mp[23] audio support seems to be available -- ???
Comment 6 Mark Dominik Bürkle 2014-04-27 09:58:34 UTC
(In reply to Mark Dominik Bürkle from comment #4)
> Apr 27 02:16:20 video vdr: [9951] [audiorecorder]: your version of
> libavcodec (ffmpeg) is not compiled with mp3 support (audiorecorder.c,
> probe_audio_codecs())
> 
> I guess that's it, will try...

only virtual/ffmpeg was compiled with "-mp3"; changing package.use and running "emerge -avuND @world" revealed no packages to rebuild.

Rebuild of virtual/ffmpeg anyways done and another restart of vdr: no change.
Comment 7 Mark Dominik Bürkle 2014-04-29 21:59:30 UTC
On Sunday night to monday, I messed a bit around with the source of vdr-audiorecorder and got it to work as expected.
However, there is more to be done in that code and some of the changes I've done were only configuration changes. I'll have to check if these config changes (no fade out, no fade in, target format mp2) are sufficient for the unmodified source to work as expected; I guess a "mkdir" call is missing.

However, a patch can be supplied, if there is demand for it.
Comment 8 Joerg Bornkessel (RETIRED) gentoo-dev 2014-04-30 14:27:29 UTC
a lot of debug lines, thanks for this

i have adapted this plugin and source is available on
http://projects.vdr-developer.org/projects/plg-audiorecorder
i will attach a -9999.ebuild to check out the git repo for your local testing.
the existing author has give up the project any years ago, iam collected all the patches from vdr-portal.de and applied they in the repo.
some cleanups around and new makefile handling etc.

help is always welcome ;)
in the existing ebuild's (in the moment), it is really unclear, what package is needed with which use-flag,
anyway, source and ebuild is quit old and has only low assistance/support

it would be helpfull if you provide some lines in what package/use-flag combination you have running this plugin.
missing dirs, how did you wrote etc.

sorry, iam did not use this plugin for now, but i will give him on weekend a first try ;)
Comment 9 Joerg Bornkessel (RETIRED) gentoo-dev 2014-04-30 14:29:19 UTC
Created attachment 376078 [details]
vdr-audiorecorder-9999.ebuild for local testing

atached vdr-audiorecorder-9999.ebuild for local testing only
Comment 10 Mark Dominik Bürkle 2014-04-30 22:26:31 UTC
I get errors "undefined symbol: _ZTV9TiXmlText" from libvdr-audiorecorder-2.0.0 and the plugin is ignored.


BTW I get buffer overflows since I turned on some setting which I don't remember exactly.
Testing with /etc/vdr/setup.conf_off... kind-of-"bisecting" with setup.conf revealed that

xineliboutput.Remote.Rtp.AlwaysOn = 1

was causing the buffer overflows (and application crashes). (Not the Parameter --local=37890; crashed with --local=none, too.)


video ~ # strace -s 1000 -o /tmp/strace-vdr -ff -F /usr/bin/vdr -u vdr --watchdog=0 --cachedir=/var/cache/vdr --log=3 --video=/export/vdr/video --port=6419 --vfat --record=/usr/share/vdr/bin/vdrrecord-gate.sh --plugin=vompserver --plugin="xineliboutput --local=37890 --remote=37890" --plugin="radio -f /usr/share/vdr/radio -d /var/cache/vdr-radio" --plugin=audiorecorder
vdr-radio: arg files-dir = /usr/share/vdr/radio
vdr-radio: arg data-dir = /var/cache/vdr-radio
vdr: /usr/lib64/vdr/plugins/libvdr-audiorecorder.so.2.0.0: undefined symbol: _ZTV9TiXmlText
*** buffer overflow detected ***: /usr/bin/vdr terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f75c79ffcb7]
/lib64/libc.so.6(+0xfecb0)[0x7f75c79fdcb0]
/lib64/libc.so.6(+0xfe164)[0x7f75c79fd164]
/lib64/libc.so.6(__sprintf_chk+0x7d)[0x7f75c79fd06d]
/usr/lib64/vdr/plugins/libvdr-xineliboutput.so.2.0.0(_ZN13cUdpScheduler9Send_RTCPEv+0x19f)[0x7f75c5e80b1f]
/usr/lib64/vdr/plugins/libvdr-xineliboutput.so.2.0.0(_ZN13cUdpScheduler6ActionEv+0x2bb)[0x7f75c5e8227b]
/usr/bin/vdr(_ZN7cThread11StartThreadEPS_+0x6d)[0x5133ed]
/lib64/libpthread.so.0(+0x8eda)[0x7f75c8fc3eda]
/lib64/libc.so.6(clone+0x6d)[0x7f75c79ea5ad]
======= Memory map: ========
...


Will check again for audiorecorder-9999.ebuild on Friday afternoon.
Comment 11 Mark Dominik Bürkle 2014-04-30 22:52:51 UTC
My settings for audiorecorder (works with unmodified 0.1.0-pre14-r3 version:)

video vdr # grep audiorecorder /etc/vdr/setup.conf
audiorecorder.audio_codec = mp2
audiorecorder.bit_rate = 9
audiorecorder.copies = 0
audiorecorder.default_view = 3
audiorecorder.fade_in = 9
audiorecorder.fade_in_mode = 0
audiorecorder.fade_out = 12
audiorecorder.fade_out_mode = 0
audiorecorder.file_pattern = 0
audiorecorder.max_postproc = 20
audiorecorder.max_receivers = 12
audiorecorder.min_free_space = 50
audiorecorder.pause = 1
audiorecorder.start_type = 0
audiorecorder.upper = 0
video vdr # 

It does not work with fade_in_mode <> 0 or fade_out_mode <> 0.
Comment 12 Joerg Bornkessel (RETIRED) gentoo-dev 2014-11-05 15:00:44 UTC
Marc Dominik,

please could you give vdr-audiorecorder-2.0.0_rc5 a try?

this version will fix some errors, including the false/positiv error

8< snipp >8
Apr 27 02:16:20 video vdr: [9951] [audiorecorder]: your version of libavcodec (ffmpeg) is not compiled with mp3 support (audiorecorder.c, probe_audio_codecs())
8< snapp >8

btw, twolame is wrong, it needs ffmpeg/libav with use-flag mp3 which pulls in
media-sound/lame

on my tests, mp3 files will be encoded with content + mp3 tags
mp2 file will only decoded if the result will not stored in a subdir
i.E author/song.mp2
// need fixing, later...

author-song.mp2 works if you enable it on osd plugin setup

this restricting is not for mp3 results
Comment 13 Mark Dominik Bürkle 2014-11-16 12:37:24 UTC
(In reply to Joerg Bornkessel from comment #12)
> ...
> please could you give vdr-audiorecorder-2.0.0_rc5 a try?
> 
> this version will fix some errors, including the false/positiv error
> 
> 8< snipp >8
> Apr 27 02:16:20 video vdr: [9951] [audiorecorder]: your version of
> libavcodec (ffmpeg) is not compiled with mp3 support (audiorecorder.c,
> probe_audio_codecs())
> 8< snapp >8
> 
> btw, twolame is wrong, it needs ffmpeg/libav with use-flag mp3 which pulls in
> media-sound/lame

I had both installed, uninstalled twolame, updated to vdr-audiorecorder-2.0.0_rc5, changed settings to output:mp3, turned it on and -vuupp- my harddisk is filling with mp3 songs.

Great, works for me!

Kind regards,
mdbuerkle
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-05 17:59:53 UTC
# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
# (on behalf of Treecleaner project)
# Does not support ffmpeg-3. Maintainer is unable to solve that,
# and nobody seems to be interested.
# Removal in 30 days. Bug #575138.
media-plugins/vdr-audiorecorder
Comment 15 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-07-05 12:33:22 UTC
commit 86f99fb2071a4064d17d09154d6beacc729fa975
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Wed Jul 5 14:12:04 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Wed Jul 5 14:25:54 2017

    sys-block/afacli: Remove last-rited pkg, #337473