A possible bug in subtitler filter

Started by ssegvic, July 09, 2012, 06:20:09 PM

Previous topic - Next topic

ssegvic

Hi there,

Today I had a pretty hard time inserting subtitles into my video.
I concluded that there must be a bug in the subtitler filter,
which appears to occur only when there is
a *single* subtitle in the srt file.

Version and platform:
avidemux 2.5.2 at ubuntu 10.04

How to reproduce:

1. Create a srt file with one subtitle:
$ cat mysub.srt
1
00:00:01,000 --> 00:00:05,400
Hello world!

2. invoke avidemux with some video
$ avidemux video.avi

3. Select Video MPEG-4 ASP (lavc)

4. Select Filter, then subtitles, then Subtitler
  - set subtitle file: /path/to/mysub.srt
  - set font: /usr/share/fonts/truetype/freefont/FreeSans.ttf
  - set encoding: UTF-8
  - click OK

5. Click preview
   (there are no subtitles in the output video)

How to fix:
1. Add an additional subtitle:
$ cat mysub.srt
1
00:00:01,000 --> 00:00:05,400
Hello world!

2
00:00:11,000 --> 00:00:15,400
Hello world!

2. Select Filter, then subtitles, then Subtitler
  - click OK

3. Click preview
   (both subtitles are shown in the output video)

Cheers,

SiniÃ...¡a

http://www.zemris.fer.hr/~ssegvic/index_en.html

JCline

Also found that a single subtitle did not work.  However, adding a second blank subtitle also fixes the problem.  I am also using Ubuntu 10.04.

:D