[mythtv-users] Can't play x264 encoded video, mythfrontend crash

Taco Mel taco_mel at yahoo.com
Tue Feb 5 07:40:38 UTC 2008


I have transcoded a MPEG-2 recording to H.264+MPEG-4
using mencoder and MP4Box, with a goal of doing the
same to any large MPEG-2 recordings in order to save
disk space.  mplayer can play the resulting file just
fine.  And mythfrontend shows the video preview but
when I click the recording to play, it immediately
dies.

The most interesting part of the backtrace is here:

Thread 14 (Thread -1341162608 (LWP 9929)):
#0  0x00db1402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x05b62986 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#2  0x05b9b8ec in usleep () from /lib/libc.so.6
No symbol table info available.
#3  0x0107a925 in RingBuffer::ReadAheadThread
(this=0x8c7a520) at RingBuffer.cpp:899
        totfree = 3080190
        ret = 65536
        used = 65538
        loops = 0
        lastread = {tv_sec = 1202196698, tv_usec =
145018}
        now = {tv_sec = 1202196698, tv_usec = 145018}
        KB640 = 655360
        readtimeavg = 219
        readinterval = 6
#4  0x0107a995 in RingBuffer::StartReader
(type=0x8c7a520) at RingBuffer.cpp:713
        rbuffer = (RingBuffer *) 0x8c7a520
#5  0x00b7b45b in start_thread () from
/lib/libpthread.so.0
No symbol table info available.
#6  0x05ba224e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 13 (Thread -1330672752 (LWP 9928)):
#0  0x00db1402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x05afcba0 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0x05afe4b1 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x05af61db in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#4  0x0059f3fb in mov_read_header (s=0x907a320,
ap=0x904ee68) at mov.c:1473
        sc = (MOVStreamContext *) 0x852c900
        st = (AVStream *) 0xb4d752a0
        mov = (MOVContext *) 0x907b310
        pb = (ByteIOContext *) 0x907a330
        i = 0
        err = 1
        atom = {type = 0, offset = 0, size = 63458788}
        __PRETTY_FUNCTION__ = "mov_read_header"
#5  0x00561911 in av_open_input_stream
(ic_ptr=0x904ee64, pb=0x0, filename=0x8eb1290
"myth://10.11.78.4:6543/3220_20080204231000.mp4",
fmt=0x5f31c0, ap=0x904ee68) at utils.c:417
        err = 0
        ic = (AVFormatContext *) 0x907a320
        default_ap = {time_base = {num = 151499508,
den = 96433240}, sample_rate = 6229628, channels =
147175512, width = 1065353216, height = 10704, pix_fmt
= 5640150, channel = 151077728, device = 0x76 <Address
0x76 out of bounds>, standard = 0x0, mpeg2ts_raw = 0,
mpeg2ts_compute_pcr = 0, initial_pause = 0,
prealloced_context = 0, video_codec_id = 151495456,
audio_codec_id = CODEC_ID_NONE}
#6  0x00561c76 in av_open_input_file
(ic_ptr=0x904ee64, filename=0x8eb1290
"myth://10.11.78.4:6543/3220_20080204231000.mp4",
fmt=0x5f31c0, buf_size=0, ap=0x904ee68) at utils.c:521
        err = -1330742604
        must_open_file = 0
        file_opened = 0
        probe_size = 147301664
        probe_data = {filename = 0x8eb1290
"myth://10.11.78.4:6543/3220_20080204231000.mp4", buf
= 0x0, buf_size = 0}
        pd = (AVProbeData *) 0xb0ae7a8c
        pb1 = {buffer = 0x5c11120 "", buffer_size =
16, buf_ptr = 0x8000 <Address 0x8000 out of bounds>,
buf_end = 0x18bdce0 "8©°", opaque = 0x907a320,
read_packet = 0x13a187a
<AvFormatDecoder::OpenFile(RingBuffer*, bool, char*,
int)>, write_packet = 0xb0ae7a88, seek = 0x1131b3
<av_malloc+43>, pos = 140737488355344, must_flush = 0,
eof_reached = 5642104, write_flag = 151495456,
is_streamed = 151077760, max_packet_size = 4072,
checksum = 6238656, checksum_ptr = 0x0,
update_checksum = 0x9014380, error = -1330742600}
        pb = (ByteIOContext *) 0x0
#7  0x013a20b7 in AvFormatDecoder::OpenFile
(this=0x904ec70, rbuffer=0x8c7a520, novideo=false,
testbuf=0xb0ae7e44 "", testbufsize=2048) at
avformatdecoder.cpp:847
        fmt = (AVInputFormat *) 0x5f31c0
        filename = 0x8eb1290
"myth://10.11.78.4:6543/3220_20080204231000.mp4"
        probe = {filename = 0x8eb1290
"myth://10.11.78.4:6543/3220_20080204231000.mp4", buf
= 0xb0ae7e44 "", buf_size = 2048}
        err = 0
        ret = 1
#8  0x01353132 in NuppelVideoPlayer::OpenFile
(this=0x90589c8, skipDsp=false, retries=4,
allow_libmpeg2=true) at NuppelVideoPlayer.cpp:1135
        testbuf =
"\000\000\000\030ftypisom\000\000\000\001isomavc1\000\003\222×moov\000\000\000lmvhd\000\000\000\000ÃÌW\221ÃÌW\221\000\000\002X\000\001\020\021\000\001\000\000\001",
'\0' <repeats 12 times>, "\001", '\0' <repeats 15
times>, "\001", '\0' <repeats 14 times>, "@", '\0'
<repeats 30 times>,
"\b\000\000\000\025iods\000\000\000\000\020\a\000Oÿÿ)\025ÿ\000\000\237\vtrak\000\000\000\\tkhd\000\000\000\001ÃÌW\221ÃÌn\027\000\000\000\001\000\000\000\000\000\001\017Õ",
'\0' <repeats 17 times>, "\001", '\0' <repeats 15
times>, "\001", '\0' <repeats 14 times>...
        readsize = 2048
        no_video_decode = false
        ret = 0
#9  0x01357ec3 in NuppelVideoPlayer::StartPlaying
(this=0x90589c8) at NuppelVideoPlayer.cpp:3196
        output_video = 0
        decoder_thread = 5
#10 0x01310975 in SpawnDecode (param=0x90589c8) at
tv_play.cpp:491
        decoder_thread_pool = (void *) 0x0
        nvp = (class NuppelVideoPlayer *) 0x90589c8
#11 0x00b7b45b in start_thread () from
/lib/libpthread.so.0
No symbol table info available.
#12 0x05ba224e in clone () from /lib/libc.so.6
No symbol table info available.

And finally here is what mplayer says when playing
that file:

Playing
/storage/recordings/md1/3220_20080204231000.mp4.
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
[mov] Video stream found, -vid 2
[mov] Audio stream found, -aid 3
[mov] Video stream found, -vid 4
[mov] Video stream found, -vid 5
[mov] Audio stream found, -aid 6
VIDEO:  [avc1]  704x480  24bpp  29.970 fps    0.0 kbps
( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec
codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg
H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced
Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 120.0 kbit/7.81% (ratio:
14994->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC
(MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 704 x 480 (preferred
colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.30:1 - prescaling to correct movie
aspect.

I have compiled myth SVN (15764) with --enable-libx264
and --enable-libfaac.

Hoping that this information is enough for someone to
tell me where I may be going wrong.  Thanks!


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



More information about the mythtv-users mailing list