twolame_get_version_for_samplerate: 44 is not a legal sample rate

Bug #601580 reported by Kent Tong
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dvd-slideshow (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: dvd-slideshow

When I run dvd-slideshow, it fails with the error shown below at the end, when interweaving the audio:

[dvd-slideshow] Sun Jul 4 18:47:58 HKT 2010
[dvd-slideshow] Command line was:
[dvd-slideshow] /usr/bin/dvd-slideshow -n dad -f s.txt -vcd
[dvd-slideshow] dvd-slideshow version 0.8.2
[dvd-slideshow] Linux dragon.ttdev 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24 07:28:56 UTC 2010 i686 GNU/Linux
[dvd-slideshow] Output directory=/home/dad/圖片
[dvd-slideshow] Locale:
LANG=POSIX
LANGUAGE=zh_HK:zh_TW:zh
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
[dvd-slideshow] Using /bin/bash version GNU bash, version 4.0.33(1)-release (i486-pc-linux-gnu)
[dvd-slideshow] Found mjpegtools version 1.9.0
[dvd-slideshow] Using mjpegtools subsampling -S 420mpeg2
[dvd-slideshow] Found sox version v14.3.0
[dvd-slideshow] Found ImageMagick version 6.5.1-0
[dvd-slideshow] Found dvdauthor version 0.6.14.
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu2.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 0 / 52.20. 0
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Apr 23 2010 15:05:49, gcc: 4.4.1
FFmpeg SVN-r19352-4:0.5+svn20090706-2ubuntu2.2
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
[dvd-slideshow] ####################################
[dvd-slideshow] Parsing input file s.txt
[dvd-slideshow]############################################################
...
[dvd-slideshow] mpeg2enc process=8456
[dvd-slideshow] output from ps:
  PID TTY STAT TIME COMMAND
 8456 pts/5 S+ 4:15 ffmpeg -f yuv4mpegpipe -i /home/dad/<E5>??<E7>??/dvd-slideshow_temp_1864/dvdss-pipe-1864 -target ntsc-vcd -r 29.97 -an -aspect 4:3 -s 352x240 -y -bf 2 -f mpeg2video /home/dad/<E5>??<E7>??/dvd-slideshow_temp_1864/video.mpg
[dvd-slideshow] waiting for encoder to finish...
[dvd-slideshow]#####################################
[dvd-slideshow] No audio files passed. Using 0:42:25.000 silence.
[dvd-slideshow] Working on track 1 audio file 1
[dvd-slideshow] silence
[dvd-slideshow] Creating silence audio file for 0:42:25.000
[dvd-slideshow] This audio plays in slideshow from 0:0:0.000 to 0:42:25.000
[dvd-slideshow] ###############
[dvd-slideshow] Concatenating all track 1 audio files...
[dvd-slideshow] Creating mp2 audio using twolame 0.3.12...
---------------------------------------------------------
Input Filename: /home/dad/圖片/dvd-slideshow_temp_1864/audio1.wav
Output Filename: /home/dad/圖片/dvd-slideshow_temp_1864/audio1.mp2
Input Format: WAV (Microsoft), Signed 16 bit PCM
Input Duration: 42min 25.0sec
Input Library: libsndfile-1.0.20
twolame_get_version_for_samplerate: 44 is not a legal sample rate
twolame_get_samplerate_index: 44 is not a legal sample rate
Error: configuring libtwolame encoder failed.
Not a valid samplerate: 44
[dvd-slideshow]############################################################
[dvd-slideshow] Multiplexing audio and video...
[dvd-slideshow] Some sequence marker warnings here are normal
**ERROR: [mplex] Unable to read from /home/dad/圖片/dvd-slideshow_temp_1864/audio1.mp2.
[dvd-slideshow] ERROR during mplex execution!
[dvd-slideshow] see /home/dad/圖片/dad.log for details
[dvd-slideshow] cleanup...

ProblemType: Bug
Architecture: i386
Date: Sun Jul 4 19:09:21 2010
DistroRelease: Ubuntu 9.10
Package: dvd-slideshow 0.8.2-0.1ubuntu2
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=en
ProcVersionSignature: Ubuntu 2.6.31-21.59-generic
SourcePackage: dvd-slideshow
Uname: Linux 2.6.31-21-generic i686
XsessionErrors: (polkit-gnome-authentication-agent-1:2306): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
Kent Tong (kent-tong) wrote :
Revision history for this message
Pelládi Gábor (pelladigabor) wrote :

I had this problem with mp2 audio. This happens because dvd-slideshow provides the sample rate in kHz, but twolame expects it in Hz.
Solution is to edit /usr/bin/dvd-slideshow
Search for "twolame -s" in the file, and replace "twolame -s 44.1" with "twolame -s 44100", and replace "twolame -s 48" with "twolame -s 48000". Both appear 3 times. After this modification it worked for me.

Revision history for this message
Pelládi Gábor (pelladigabor) wrote :
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dvd-slideshow - 0.8.2-0.1ubuntu3

---------------
dvd-slideshow (0.8.2-0.1ubuntu3) oneiric; urgency=low

  * Tweak 03-toolame.diff to include syntax update for twolame as per
    hint by Pelládi Gábor. Thanks! (LP: #601580)
 -- Daniel T Chen <email address hidden> Mon, 08 Aug 2011 22:26:32 -0400

Changed in dvd-slideshow (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.