twolame_get_version_for_samplerate: 44 is not a legal sample rate
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] 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=
[dvd-slideshow] Locale:
LANG=POSIX
LANGUAGE=
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=
LC_MEASUREMENT=
LC_IDENTIFICATI
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-
configuration: --extra-
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-
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/
[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/
Output Filename: /home/dad/
Input Format: WAV (Microsoft), Signed 16 bit PCM
Input Duration: 42min 25.0sec
Input Library: libsndfile-1.0.20
twolame_
twolame_
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] ERROR during mplex execution!
[dvd-slideshow] see /home/dad/
[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
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
LANGUAGE=en
ProcVersionSign
SourcePackage: dvd-slideshow
Uname: Linux 2.6.31-21-generic i686
XsessionErrors: (polkit-
Related branches
tags: | added: patch |
I had this problem with mp2 audio. This happens because dvd-slideshow provides the sample rate in kHz, but twolame expects it in Hz. dvd-slideshow
Solution is to edit /usr/bin/
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.