spumux fails applying subtitles

530 views
Skip to first unread message

michael rasmussen

unread,
Jan 2, 2011, 5:10:34 AM1/2/11
to DeVeDe forum
Hi all,

I have a hard time making devede applying subtitles to a DVD project.
No matter whether codepage is iso-8859-1, iso-8859-15 or utf-8 devede
response with an error message complaining about a possible bug in
spumux. If I use the command line shown running devede in debug mode
spumux is given this output:

Command used by devede: spumux -m dvd -s 0 "/var/tmp/
previewfile_sub.xml" < "/var/tmp/previewfile_01_01.mpg" > "/var/tmp/
previewfile_01_01.mpg.sub"

output: DVDAuthor::spumux, version 0.7.0.
Build options: gnugetopt imagemagick iconv freetype fribidi fontconfig
Send bug reports to <dvdauth...@lists.sourceforge.net>

INFO: no default video format, must explicitly specify NTSC or PAL
INFO: Opened iconv descriptor. *UTF-8* <= *UTF-8*
INFO: Detected subtitle file format: subviewer
INFO: Read 1363 subtitles
ERR: cannot determine default video size and frame rate--no video
format specified

Some other info:
devede: DeVeDe 3.16.9
Locale: en_US
Using package-installed files
/home/mir/
Entro en fonts
Salgo de fonts
/home/mir/
Temp Directory is: /var/tmp
home load: /home/mir/.devede
linea: video_format:pal
linea: temp_folder:/var/tmp/
linea: multicore:2
linea: final_folder:/opt/av/dvd
linea: sub_language:DA (DANISH)
linea: sub_codepage:ISO-8859-1

Distribution: Debian Sid
Kernel: 2.6.36-trunk-amd64

Any suggestions?

michael rasmussen

unread,
Jan 2, 2011, 5:31:33 AM1/2/11
to DeVeDe forum


On 2 Jan., 11:10, michael rasmussen <mirtat...@gmail.com> wrote:
> Any suggestions?

I have found the bug which is a bug in devede. The man page of spumux
specifies this syntax for the xml file when using text-based
subtitles:
<subpictures [format="NTSC|PAL"]>
<stream>
<textsub filename="demo1.srt" characterset="UTF-8"
fontsize="28.0" font="arial" fill-color="color-spec"
outline-color="color-spec" outline-thickness="3.0"
shadow-offset="0, 0" shadow-color="color-spec"
horizontal-alignment="left" vertical-alignment="bottom"
left-margin="60" right-margin="60"
top-margin="20" bottom-margin="30" subtitle-fps="fps"
movie-fps="fps"
movie-width="720" movie-height="height" aspect="4:3"
force="yes"
/>
</stream>
</subpictures>

The xml file produced by devede:
<subpictures>
<stream>
<textsub filename="/var/tmp/previewfile_sub_tmp.sub"
font="devedesans.ttf"
characterset="UTF-8"
horizontal-alignment="center"
movie-width="712"
movie-height="568"
left-margin="57"
right-margin="57"
bottom-margin="27"
top-margin="27"
fontsize="20.0"
movie-fps="25"
subtitle-fps="25"
vertical-alignment="bottom" />
</stream>
</subpictures>

if I change the xml file above to this it works:
<subpictures format="PAL">
<stream>
<textsub filename="/var/tmp/previewfile_sub_tmp.sub"
font="devedesans.ttf"
characterset="UTF-8"
horizontal-alignment="center"
movie-width="712"
movie-height="568"
left-margin="57"
right-margin="57"
bottom-margin="27"
top-margin="27"
fontsize="20.0"
movie-fps="25"
subtitle-fps="25"
vertical-alignment="bottom" />
</stream>
</subpictures>

This problem is if the user has not configure any defaults for video
format then the xml file must include the format attribute for video
format in the provided xml file.

michael rasmussen

unread,
Jan 2, 2011, 5:53:40 AM1/2/11
to DeVeDe forum


On 2 Jan., 11:31, michael rasmussen <mirtat...@gmail.com> wrote:
> This problem is if the user has not configure any defaults for video
> format then the xml file must include the format attribute for video
> format in the provided xml file.

According to this http://comments.gmane.org/gmane.comp.multimedia.dvdauthor.user/5453
it seems to be a change in DVDauthor as of version 0.7

There seems to be 4 possible solutions:
System wide configuration: /etc/video_format
Per user configuration: ~/.config/video_format
Environment: VIDEO_FORMAT=pal|ntsc
In the xml file: <subpictures format="PAL">

To me the only solution which is 100% safe for devede would be either
of these two solutions:
1) Specify format in the xml file
2) use this command line: VIDEO_FORMAT=PAL spumux -m dvd ......
Reply all
Reply to author
Forward
0 new messages