Bug 21666

Summary: transcode fails to rip titles from commercial dvds from inside or outside of k3b
Product: Mageia Reporter: Len Lawrence <tarazed25>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: marja11, ouaurelien
Version: 6   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: transcode-1.1.7-17.mga6.tainted.src.rpm CVE:
Status comment:
Attachments: gzipped session files

Description Len Lawrence 2017-09-05 12:05:24 CEST
Description of problem:
During recent QA tests of k3b with transcode, transcode failed every time k3b was asked to rip a DVD, any commercial DVD.  Copying was no problem.

When tested in isolation transcode also fails.  It is very possible that some of the failures here are due to ignorance on my part with regard to composing the commands, some of which may not be legitimate.  The first step was to try the example in the man page.

<test 1>
$ transcode -i /dev/dvd/ -x dvd -j 16,0 -B 5,0 -Y 40,8 -s 4.47 -U my_movie -y xvid -w 1618 2> session.man
This hung after generating two .avi files, neither of which could be played by totem.
$ ls -l my*
-rw-r--r-- 1 lcl lcl 2464 Sep  3 11:09 my_movie-ch01.avi
-rw-r--r-- 1 lcl lcl 2056 Sep  3 17:11 my_movie-ch02.avi
$ totem my_movie-ch01.avi => No valid frames decoded before end of stream
$ totem my_movie-ch02.avi => Could not demultiplex stream

Most of the tests ended with the application hanging without producing anything useful.

<test 2>
$ transcode -i /dev/dvd -y ffmpeg,null -o /home/lcl/qa/bugs/lions
.................
[export_ffmpeg.so] You must chose a codec by supplying '-F <codecname>'. A list of supported codecs can be obtained with 'transcode -y ffmpeg -F list'.
[encoder.c] warning: video export module error: init failed
[transcode] critical: failed to init encoder
$ transcode -y ffmpeg -F list
[transcode] critical: no input sources available
$ man transcode_export:
......................
ffmpeg:
                The codec String for the codec you want to encode. Example values are -F mpeg4 or -F
              mpeg1video or -F huffyuv. To get a list of valid codecs, use -F list

<test 3>
$ transcode -i /dev/dvd -o /home/lcl/qa/bugs/lions 2> session.o

<test 4>
$ transcode -i /dev/dvd -F mpeg4 -y ffmpeg,null -o /home/lcl/qa/bugs/lions 2> session.Fy
Segmentation fault (core dumped)

<test 5>
$ transcode -i /dev/dvd -U lions -o /home/lcl/qa/bugs/lions 2> session.U
^C
[transcode] (sighandler) SIGINT received
[decoder.c] sleeping for 1 seconds to cool down
[decoder.c] cancelling the import threads
[transcode] encoded 0 frames (0 dropped, 0 cloned), clip length   0.00 s

<test 6>
$ strace transcode -i /dev/dvd -o /home/lcl/qa/bugs/lions 2> session.trace

$ file lions
lions: RIFF (little-endian) data, AVI, 720 x 576, 25.00 fps, video: DivX 4
$ ls -l lions
-rw-r--r-- 1 lcl lcl 2056 Sep  3 11:04 lions

The simplest possible test was:
$ transcode -i /dev/dvd -o Lions 2> simpletest
which got as far as retrieving the CSS keys and stopped leaving an unplayable lions.avi

When given to k3b it executes:
tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 |
tcdemux -s 0x80 -x mpeg2 -S 0 -M 1 -d 0 |
tcextract -t vob -a 0 -x mpeg2 -d 0 |
tcdecode -x mpeg2 -d 0 -y yuv420p
and produces no output except four ppm images in /tmp.
On 'start ripping' it processes the three titles it finds but transcode fails on each one.
The debug output has many lines like this:
[mpeg4 @ 0x13b2c80] AVFrame.format is not set
[mpeg4 @ 0x13b2c80] AVFrame.width or height is not set


Version-Release number of selected component (if applicable):
transcode-1.1.7-17

How reproducible:
It always fails with any commercial DVD on three different nvidia workstations.

Steps to Reproduce:
1. Insert a commercial DVD
2. Try to rip with k3b or using transcode from commandline
3. Watch the session log in the gui or a terminal
Comment 1 Len Lawrence 2017-09-05 12:10:57 CEST
Created attachment 9655 [details]
gzipped session files

Extracts into ttest directory.
Each terminal session file can be associated with a test by referring to the bug description.
Comment 2 Marja Van Waes 2017-09-05 16:09:24 CEST
Assigning to all packagers collectively, since there is no registered maintainer for this transcode.

CC: (none) => marja11
Assignee: bugsquad => pkg-bugs

Comment 3 Aurelien Oudelet 2020-08-05 16:03:33 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

CC: (none) => ouaurelien
Status: NEW => RESOLVED
Resolution: (none) => OLD