Bug#564786: VLC in etch segfaults on attempt to transcode to ogg theora format

jumbophut jumbophut at gmail.com
Mon Jan 11 22:25:12 UTC 2010


Package: vlc
Version: 0.8.6.h-4+lenny2

When I attempt to transcode a video from Quicktime to OGG theora, vlc segfaults.

Command and output follow:

$  vlc -vvv -I dummy MVI_0305.MOV --sout
'#transcode{venc=theora,aenc=vorbis,scale=0.5,channels=2}:std{access=file,mux=ogg,dst="/tmp/lowquality.ogg"}'
vlc://quit

[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file
/home/ct/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: module bank initialized, found 217 modules
[00000001] main private debug: opening config file /home/ct/.vlc/vlcrc
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE FPU
[00000001] main private debug: looking for memcpy module: 1 candidate
[00000001] main private debug: using memcpy module "memcpy"
[00000282] main playlist debug: waiting for thread completion
[00000282] main playlist debug: thread 3072248720 (playlist) created
at priority 0 (playlist/playlist.c:184)
[00000283] main private debug: waiting for thread completion
[00000283] main private debug: thread 3063856016 (preparser) created
at priority 0 (playlist/playlist.c:210)
[00000284] main interface debug: looking for interface module: 1 candidate
[00000284] main interface debug: using interface module "hotkeys"
[00000284] main interface debug: thread 3055463312 (interface) created
at priority 0 (interface/interface.c:231)
[00000286] main interface debug: looking for interface module: 1 candidate
[00000286] main interface debug: using interface module "screensaver"
[00000286] main interface debug: thread 3047070608 (interface) created
at priority 0 (interface/interface.c:231)
[00000282] main playlist debug: adding playlist item `vlc://quit' ( vlc://quit )
[00000282] main playlist debug: adding playlist item `MVI_0305.MOV' (
MVI_0305.MOV )
[00000288] main interface debug: looking for interface module: 6 candidates
[00000288] dummy interface: using the dummy interface module...
[00000288] main interface debug: using interface module "dummy"
[00000288] main interface debug: thread 3038657424 (manager) created
at priority 0 (interface/interface.c:216)
[00000282] main playlist debug: creating new input thread
[00000297] main input debug: waiting for thread completion
[00000297] main input debug: creating statistics handler
[00000299] main stream output debug: stream=`transcode'
[00000300] main private debug: looking for sout stream module: 1 candidate
[00000299] main stream output debug: stream=`std'
[00000303] main private debug: looking for sout stream module: 1 candidate
[00000303] main private debug: set sout option: sout-standard-access to file
[00000303] main private debug: set sout option: sout-standard-mux to ogg
[00000303] main private debug: set sout option: sout-standard-dst to
/tmp/lowquality.ogg
[00000303] stream_out_standard private debug: creating
`file/ogg:///tmp/lowquality.ogg'
[00000303] stream_out_standard private debug: extension is ogg
[00000303] stream_out_standard private debug: extension -> mux=ogg
[00000303] stream_out_standard private debug: using
`file/ogg:///tmp/lowquality.ogg'
[00000305] main private debug: looking for sout access module: 1 candidate
[00000297] main input debug: thread 3030264720 (input) created at
priority 0 (input/input.c:265)
[00000305] access_output_file private debug: file access output opened
(`/tmp/lowquality.ogg')
[00000305] main private debug: using sout access module "access_output_file"
[00000303] stream_out_standard private debug: access opened
[00000307] main private debug: looking for sout mux module: 1 candidate
[00000307] mux_ogg private: Open
[00000307] main private debug: using sout mux module "mux_ogg"
[00000299] main stream output debug: muxer support adding stream at any time
[00000299] main stream output debug: muxer prefers to wait for all ES
before starting to mux
[00000303] stream_out_standard private debug: mux opened
[00000303] main private debug: using sout stream module "stream_out_standard"
[00000300] main private debug: set sout option: sout-transcode-venc to theora
[00000300] main private debug: set sout option: sout-transcode-aenc to vorbis
[00000300] main private debug: set sout option: sout-transcode-scale to 0.5
[00000300] main private debug: set sout option: sout-transcode-channels to 2
[00000300] main private debug: using sout stream module "stream_out_transcode"
[00000297] main input debug: `MVI_0305.MOV' gives access `' demux `'
path `MVI_0305.MOV'
[00000297] main input debug: creating demux: access='' demux=''
path='MVI_0305.MOV'
[00000309] main demuxer debug: looking for access_demux module: 2 candidates
[00000297] main input debug: creating access '' path='MVI_0305.MOV'
[00000312] main access debug: looking for access2 module: 5 candidates
[00000312] vcd access debug: trying .cue file: MVI_0305.cue
[00000312] vcd access debug: could not find .cue file
[00000312] access_file access debug: opening file `MVI_0305.MOV'
[00000312] main access debug: using access2 module "access_file"
[00000318] main private debug: pre-buffering...
[00000318] main private debug: received first data for our buffer
[00000318] main private debug: pre-buffering done 1408981 bytes in 0s
- 95972 kbytes/s
[00000297] main input debug: creating demux: access='' demux=''
path='MVI_0305.MOV'
[00000319] main demuxer debug: looking for demux2 module: 45 candidates
[00000318] mp4 private debug: found Box: ftyp size 24
[00000318] mp4 private debug: found Box: mdat size 20528128
[00000318] mp4 private debug: skip box: "mdat"
[00000318] mp4 private debug: found Box: moov size 4868
[00000318] mp4 private debug: found Box: mvhd size 108
[00000318] mp4 private debug: read box: "mvhd" creation
733704d-46h:40m:03s modification 733704d-46h:40m:03s time scale 3000
duration 694977d-48h:00m:00s rate 1.000000 volume 1.000000 next track
id 3
[00000318] mp4 private debug: found Box: trak size 4194
[00000318] mp4 private debug: found Box: tkhd size 92
[00000318] mp4 private debug: read box: "tkhd" creation
733704d-46h:40m:03s modification 733704d-46h:40m:03s duration
-2107020456d-16h:53m:20s track ID 1 layer 0 volume 0.000000 width
640.000000 height 480.000000
[00000318] mp4 private debug: found Box: mdia size 4094
[00000318] mp4 private debug: found Box: mdhd size 32
[00000318] mp4 private debug: read box: "mdhd" creation
733704d-46h:40m:03s modification 733704d-46h:40m:03s time scale 3000
duration 694977d-00h:13m:20s language ```
[00000318] mp4 private debug: found Box: hdlr size 33
[00000318] mp4 private debug: read box: "hdlr" handler type vide name
[00000318] mp4 private debug: found Box: minf size 4021
[00000318] mp4 private debug: found Box: vmhd size 20
[00000318] mp4 private debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
[00000318] mp4 private debug: found Box: hdlr size 33
[00000318] mp4 private debug: read box: "hdlr" handler type alis name
[00000318] mp4 private debug: found Box: dinf size 36
[00000318] mp4 private debug: found Box: dref size 28
[00000318] mp4 private debug: found Box: alis size 12
[00000318] mp4 private warning: unknown box type alis (incompletely loaded)
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: read box: "dref" entry-count 1
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: found Box: stbl size 3924
[00000318] mp4 private debug: found Box: stsd size 172
[00000318] mp4 private debug: found Box: avc1 size 156
[00000318] mp4 private debug: found Box: colr size 18
[00000318] mp4 private warning: unknown box type colr (incompletely loaded)
[00000318] mp4 private debug: found Box: gama size 12
[00000318] mp4 private warning: unknown box type gama (incompletely loaded)
[00000318] mp4 private debug: found Box: avcC size 36
[00000318] mp4 private debug: read box: "avcC" version=1 profile=0x42
level=0x1f length size=4 sps=1 pps=1
[00000318] mp4 private debug:          - sps[0] length=13
[00000318] mp4 private debug:          - pps[0] length=4
[00000318] mp4 private debug: found an empty box (null size)
[00000318] mp4 private debug: read box: "vide" in stsd 640x480 depth 24
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: read box: "stsd" entry-count 1
[00000318] mp4 private debug: found Box: stts size 24
[00000318] mp4 private debug: read box: "stts" entry-count 1
[00000318] mp4 private debug: found Box: stss size 136
[00000318] mp4 private debug: read box: "stss" entry-count 30
[00000318] mp4 private debug: found Box: stsc size 28
[00000318] mp4 private debug: read box: "stsc" entry-count 1
[00000318] mp4 private debug: found Box: stsz size 1780
[00000318] mp4 private debug: read box: "stsz" sample-size 0 sample-count 440
[00000318] mp4 private debug: found Box: stco size 1776
[00000318] mp4 private debug: read box: "co64" entry-count 440
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: found Box: trak size 526
[00000318] mp4 private debug: found Box: tkhd size 92
[00000318] mp4 private debug: read box: "tkhd" creation
733704d-46h:40m:03s modification 733704d-46h:40m:03s duration
-2107020456d-16h:53m:20s track ID 2 layer 0 volume 1.000000 width
0.000000 height 0.000000
[00000318] mp4 private debug: found Box: mdia size 426
[00000318] mp4 private debug: found Box: mdhd size 32
[00000318] mp4 private debug: read box: "mdhd" creation
733704d-46h:40m:03s modification 733704d-46h:40m:03s time scale 44100
duration 694984d-47h:40m:00s language ```
[00000318] mp4 private debug: found Box: hdlr size 33
[00000318] mp4 private debug: read box: "hdlr" handler type soun name
[00000318] mp4 private debug: found Box: minf size 353
[00000318] mp4 private debug: found Box: smhd size 16
[00000318] mp4 private debug: read box: "smhd" balance 0.000000
[00000318] mp4 private debug: found Box: hdlr size 33
[00000318] mp4 private debug: read box: "hdlr" handler type alis name
[00000318] mp4 private debug: found Box: dinf size 36
[00000318] mp4 private debug: found Box: dref size 28
[00000318] mp4 private debug: found Box: alis size 12
[00000318] mp4 private warning: unknown box type alis (incompletely loaded)
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: read box: "dref" entry-count 1
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: found Box: stbl size 260
[00000318] mp4 private debug: found Box: stsd size 92
[00000318] mp4 private debug: found Box: sowt size 76
[00000318] mp4 private debug: read box: "soun" qt3+ sample/packet=1
bytes/packet=2 bytes/frame=2 bytes/sample=2
[00000318] mp4 private debug: found Box: chan size 24
[00000318] mp4 private warning: unknown box type chan (incompletely loaded)
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: read box: "soun" in stsd channel 1
sample size 16 sample rate 44100.000000
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: read box: "stsd" entry-count 1
[00000318] mp4 private debug: found Box: stts size 24
[00000318] mp4 private debug: read box: "stts" entry-count 1
[00000318] mp4 private debug: found Box: stsc size 40
[00000318] mp4 private debug: read box: "stsc" entry-count 2
[00000318] mp4 private debug: found Box: stsz size 20
[00000318] mp4 private debug: read box: "stsz" sample-size 1 sample-count 646800
[00000318] mp4 private debug: found Box: stco size 76
[00000318] mp4 private debug: read box: "co64" entry-count 15
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: found Box: udta size 32
[00000318] mp4 private debug: found Box: CNCV size 20
[00000318] mp4 private warning: unknown box type CNCV (incompletely loaded)
[00000318] mp4 private warning: cannot read one box
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: out of bound child
[00000318] mp4 private debug: dumping root Box "root"
[00000318] mp4 private debug: |    + ftyp size 24
[00000318] mp4 private debug: |    + mdat size 20528128
[00000318] mp4 private debug: |    + moov size 4868
[00000318] mp4 private debug: |    |    + mvhd size 108
[00000318] mp4 private debug: |    |    + trak size 4194
[00000318] mp4 private debug: |    |    |    + tkhd size 92
[00000318] mp4 private debug: |    |    |    + mdia size 4094
[00000318] mp4 private debug: |    |    |    |    + mdhd size 32
[00000318] mp4 private debug: |    |    |    |    + hdlr size 33
[00000318] mp4 private debug: |    |    |    |    + minf size 4021
[00000318] mp4 private debug: |    |    |    |    |    + vmhd size 20
[00000318] mp4 private debug: |    |    |    |    |    + hdlr size 33
[00000318] mp4 private debug: |    |    |    |    |    + dinf size 36
[00000318] mp4 private debug: |    |    |    |    |    |    + dref size 28
[00000318] mp4 private debug: |    |    |    |    |    |    |    + alis size 12
[00000318] mp4 private debug: |    |    |    |    |    + stbl size 3924
[00000318] mp4 private debug: |    |    |    |    |    |    + stsd size 172
[00000318] mp4 private debug: |    |    |    |    |    |    |    + avc1 size 156
[00000318] mp4 private debug: |    |    |    |    |    |    |    |
+ colr size 18
[00000318] mp4 private debug: |    |    |    |    |    |    |    |
+ gama size 12
[00000318] mp4 private debug: |    |    |    |    |    |    |    |
+ avcC size 36
[00000318] mp4 private debug: |    |    |    |    |    |    + stts size 24
[00000318] mp4 private debug: |    |    |    |    |    |    + stss size 136
[00000318] mp4 private debug: |    |    |    |    |    |    + stsc size 28
[00000318] mp4 private debug: |    |    |    |    |    |    + stsz size 1780
[00000318] mp4 private debug: |    |    |    |    |    |    + stco size 1776
[00000318] mp4 private debug: |    |    + trak size 526
[00000318] mp4 private debug: |    |    |    + tkhd size 92
[00000318] mp4 private debug: |    |    |    + mdia size 426
[00000318] mp4 private debug: |    |    |    |    + mdhd size 32
[00000318] mp4 private debug: |    |    |    |    + hdlr size 33
[00000318] mp4 private debug: |    |    |    |    + minf size 353
[00000318] mp4 private debug: |    |    |    |    |    + smhd size 16
[00000318] mp4 private debug: |    |    |    |    |    + hdlr size 33
[00000318] mp4 private debug: |    |    |    |    |    + dinf size 36
[00000318] mp4 private debug: |    |    |    |    |    |    + dref size 28
[00000318] mp4 private debug: |    |    |    |    |    |    |    + alis size 12
[00000318] mp4 private debug: |    |    |    |    |    + stbl size 260
[00000318] mp4 private debug: |    |    |    |    |    |    + stsd size 92
[00000318] mp4 private debug: |    |    |    |    |    |    |    + sowt size 76
[00000318] mp4 private debug: |    |    |    |    |    |    |    |
+ chan size 24
[00000318] mp4 private debug: |    |    |    |    |    |    + stts size 24
[00000318] mp4 private debug: |    |    |    |    |    |    + stsc size 40
[00000318] mp4 private debug: |    |    |    |    |    |    + stsz size 20
[00000318] mp4 private debug: |    |    |    |    |    |    + stco size 76
[00000318] mp4 private debug: |    |    + udta size 32
[00000318] mp4 private debug: |    |    |    + CNCV size 20
[00000319] mp4 demuxer debug: unrecognized major file specification (qt  ).
[00000319] mp4 demuxer debug: found 2 tracks
[00000319] mp4 demuxer debug: track[Id 0x1] read 440 chunk
[00000319] mp4 demuxer debug: track[Id 0x1] read 440 samples length:14s
[00000297] main input debug: selecting program id=0
[00000319] mp4 demuxer debug: adding track[Id 0x1] video (enable) language undef
[00000319] mp4 demuxer debug: track[Id 0x2] read 15 chunk
[00000319] mp4 demuxer debug: track[Id 0x2] read 646800 samples length:14s
[00000319] mp4 demuxer debug: adding track[Id 0x2] audio (enable) language undef
[00000319] main demuxer debug: using demux2 module "mp4"
[00000319] mp4 demuxer warning: DEMUX_GET_FPS unimplemented !!
[00000297] main input debug: looking for a subtitle file in /tmp/
[00000321] main packetizer debug: looking for packetizer module: 17 candidates
[00000321] packetizer_h264 packetizer debug: found NAL_SPS
[00000321] packetizer_h264 packetizer debug: found NAL_PPS
[00000321] packetizer_h264 packetizer debug: avcC length size=4, sps=1, pps=1
[00000321] main packetizer debug: using packetizer module "packetizer_h264"
[00000297] main input debug: stream out mode -> no decoder thread
[00000342] main packetizer debug: looking for packetizer module: 17 candidates
[00000342] main packetizer debug: using packetizer module "packetizer_copy"
[00000297] main input debug: stream out mode -> no decoder thread
[00000297] main input debug: starting in async mode
[00000297] main input debug: `MVI_0305.MOV' successfully opened
[00000319] mp4 demuxer debug: track[Id 0x1] using Sync Sample Box (stss)
[00000319] mp4 demuxer debug: stts gives 0 --> 0 (sample number)
[00000319] mp4 demuxer debug: track[Id 0x2] does not provide Sync
Sample Box (stss)
[00000299] main stream output debug: adding a new input
[00000300] stream_out_transcode private debug: creating video
transcoding from fcc=`h264' to fcc=`    '
[00000353] main decoder debug: looking for decoder module: 25 candidates
[00000353] ffmpeg decoder debug: libavcodec initialized (interface 3355136 )
[00000353] ffmpeg decoder debug: postprocessing disabled
[00000353] ffmpeg decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part
10)) started
[00000353] main decoder debug: using decoder module "ffmpeg"
[00000354] main encoder debug: looking for encoder module: 1 candidate
[00000354] main encoder debug: using encoder module "theora"
[00000354] main encoder debug: removing module "theora"
[00000300] stream_out_transcode private debug: decoder aspect is 576000:432000
[00000300] stream_out_transcode private debug: source pixel aspect is 1.000000:1
[00000300] stream_out_transcode private debug: scaled pixel aspect is 1.000000:1
[00000300] stream_out_transcode private debug: source 640x480, crop
640x480, destination 320x240, padding 320x240
[00000300] stream_out_transcode private debug: encoder aspect is 576000:432000
[00000354] main encoder debug: looking for encoder module: 1 candidate
[00000354] main encoder debug: using encoder module "theora"
[00000307] main private debug: adding a new input
[00000307] mux_ogg private debug: adding input
[00000307] mux_ogg private debug: theora stream
[00000370] main private debug: looking for crop padd module: 1 candidate
[00000370] ffmpeg private debug: input: 320x240 -> 640x480
[00000370] ffmpeg private debug: input: 640x480 I420 -> 320x240 I420
[00000370] ffmpeg private debug: libavcodec already initialized
[00000370] main private debug: using crop padd module "ffmpeg"
Segmentation fault


Possibly these two lines reveal the problem?

[00000354] main encoder debug: using encoder module "theora"
[00000354] main encoder debug: removing module "theora"

Changing the command by omitting scale=0.5 does not solve the problem.
 VLC appears to be able to deal with the input format, because it will
successfully play the untranscoded QT video. Audio also seems not to
be a problem -- it can extract the audio track and convert to vorbis
with an appropriate command line.

The computer this is running on is quite slow -- Pentium 700MHz, so
one possibility is that it isn't doing the codec initialisation fast
enough (speculating wildly here, with no knowledge of how it actually
works).  Possibly consistent with this, VLC under sarge ran this
command successfully, but for some wierd reason required exactly the
right verbosity (-vvv) switch to work (fewer 'v's would cause it not
to work); using 3 'v's may have slowed things down sufficiently.

This bug may be related to bug #434369, but I cannot tell from the
information provided in that report.

-- 
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')





More information about the pkg-multimedia-maintainers mailing list