transcode crashes

As you know, k3b uses transcode 1.1.5 for ripping the DVDs. However, this util crashes (segfault) after its first pass, on my opensuse 12.3 x86_64. Here is the complete line code, as reported by k3b:

/usr/bin/transcode --nice 19 --log_no_color --progress_meter 2 --progress_rate 818 -i /dev/sr0 -x dvd -T 1,-1,1 -a 2 -j 0,0,0,0 -R 1,/home/sky/tmp/kde-sky/k3b_0.log -y ffmpeg,null -o /dev/null -F mpeg4 -w 1200 -Z 1024x576.

But ok if I choose Xvid as the encoding format. So, the bug seems to be related to ffmpeg. If I add --accel mmx or --accel C (plain code), I get a segfault in libavutil.so.50, that tries to free() an invalid pointer.

For info (in case relevant), link to k3b forum: http://forum.kde.org/viewforum.php?f=153

I can reproduce this.

The (very old, there hasn’t been a new version since 2009) transcode version in Packman is apparently incompatible with libavcodec50 0.7.15.

You should report that on the Packman mailinglist:
http://lists.links2linux.de/cgi-bin/mailman/listinfo/packman

Or even file a bug report upstream:
BerliOS Developer: Browse Bugs By Status: Open
But unforunately, the transcode project looks quite dead…:expressionless:

I will have a look at transcode, maybe I can fix it. (I have fixed a seemingly similar problem in a different application some time ago :wink: )

I have fixed the transcode crash (was quite easy when you know what to look for… :wink: ), and sent a patch to the Packman mailinglist.
Hopefully this will get included into the package soon.

But unfortunately, ripping DVDs with k3b still doesn’t work:

[export_ffmpeg.so] Could not read the complete 2pass log file "/tmp/kde-wolfi/k3b_3.log".
[encoder.c] video export module error: init failed
[transcode] failed to init encoder

I have to investigate this further…

The fixed package is available in the Packman repo now.

But unfortunately, ripping DVDs with k3b still doesn’t work:

[export_ffmpeg.so] Could not read the complete 2pass log file "/tmp/kde-wolfi/k3b_3.log".
[encoder.c] video export module error: init failed
[transcode] failed to init encoder

I have to investigate this further…

Apparently k3b forgets to call transcode for the 1st pass, so the 2nd pass doesn’t find the log file…
This seems to be k3b’s fault, so let’s continue this in the thread in the k3b forums. :wink:

Ok, fine, Thx for the work, but transcode crashes even outside k3b. The command provided above crashes alone.

Yes, I know.
But that’s what I fixed, it doesn’t crash here anymore.

Which version do you have installed?

rpm -qi transcode

The package’s changelog should look like this:

wolfi@amiga:~> rpm -q --changelog transcode | head
* Don Aug 01 2013 Manfred.Tremmel@iiv.de
- included a fix from Wolfgang Bauer for problems .

* Mon Jän 23 2012 reddwarf@opensuse.org
- Add libjpeg-devel, autoconf, automake and libtool BRs to fix
  Factory build.

* Mon Jän 23 2012 reddwarf@opensuse.org
- Add missing libdv-devel BuildRequire.


If it doesn’t, try to run “sudo zypper up”, maybe it finds the update then…

For me, everything seems to work correctly now.
Title 2 from the DVD I tested got ripped without a problem.
transcode (1st pass) just failed on Title 1 because that’s no video but the DVD’s menu…:wink: