Re: Crash seeking to chapters in a multi-VTS DVD if title is gt 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



Nico Sabbi a écrit :
Il giorno lun, 29/12/2008 alle 11.25 +0100, Mathieu SCHROETER ha
scritto:
Ilja Sekler a écrit :
On 28.12.2008 19:59, Mathieu SCHROETER wrote:
Ilja Sekler a écrit :

MPlayer crashes reproducibly trying to seek to a chapter in a
multi-VTS DVD if the title provided on the command line is greater
than 1. Seeking to chapters (both using command line and "@" / "!")
in a DVD with a single VTS or playing dvd://1 in a multi-VTS DVD is
fine.
It crashes when the chapter set is greater than the max available. For example, if there are 10 chapters, it crashes if you go to the
11th.
Oh I see, MPlayer hangs if you press "@" key while MPlayer has already
reached the last chapter in the title, but are you sure it were the same
bug? Because this is about VTS making the difference, if a valid value
for -chapter has been provided.
I think that the bug is only related to the behaviour with the property
'chapter' that must be IMHO to 0 for the first chapter and not to 1.
And maybe a test in stream_dvd is provided for values beginning by 0.
But it needs some investigations, I've done only assumptions...

I'm sure only for a thing.. it crashes when the value is greater than
the max.

it crashes only with dvd://, not with dvdnav:// but the behaviour is the same with get_property and set_property.
Thank you for pointing to that. I've built MPlayer for the first time
with --enable-dvdnav (which unfortunately requires --disable-mencoder on
Ubuntu 8.10 with its slightly outdated libdvdnav4) and it behaves
exactly as you described.

You must follow the howto related to dvdnav at this link:
http://www.mplayerhq.hu/DOCS/tech/dvdnav-howto.txt

Regards,
Mathieu SCHROETER


are you sure the bug is present in current svn? I can't reproduce the
bug: set_property chapter never crashes for me, nether with
CHAPTER >= max
nor with CHAPTER < 1


My MPlayer version:
  MPlayer dev-SVN-r28215-4.3.2 (C) 2000-2008 MPlayer Team
  Configuration: --disable-x264 --disable-dvdread-internal
                 --enable-debug --enable-radio --enable-xvmc

libdvdread: r1162
libdvdnav : r1160

Steps to reproduce the freeze:

  $ mplayer -idle -slave -quiet
  loadfile dvd:////dev/scd0
  get_property chapters
  ANS_chapters=38
  get_property chapter
  ANS_chapter=0
  set_property chapter 38
  missing marker bit!
  get_property chapter
  ANS_chapter=37
  set_property chapter 39

And here, MPlayer is frozen, I can't send new command, the movie is
frozen. I must send a SIGINT to get out.


I attached the complete log of mplayer launch with GDB and my
mplayer config file.
DVD used for this test is the first commercial french version of Matrix
and it freezes with others.


Regards,
Mathieu SCHROETER
$ gdb --args mplayer -idle -slave -quiet
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /home/schroeterm/geexbox/mplayer/mplayer-checkout-2007-07-21/mplayer -idle -slave -quiet
[Thread debugging using libthread_db enabled]
MPlayer dev-SVN-r28215-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
loadfile dvd:////dev/scd0

Playing dvd:////dev/scd0.
[New Thread 0x7f9a1bdcd750 (LWP 19621)]
libdvdread: Using libdvdcss version 1.2.10 for DVD access
There are 37 titles on this DVD.
There are 1 angles in this DVD title.

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00055ec0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0005619a
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x000bef8e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x000cce46
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0036377d
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
audio stream: 1 format: ac3 (5.1) language: fr aid: 129.
number of audio channels on disk: 2.
subtitle ( sid ): 0 language: en
subtitle ( sid ): 1 language: fr
subtitle ( sid ): 2 language: it
subtitle ( sid ): 3 language: nl
subtitle ( sid ): 4 language: ar
subtitle ( sid ): 5 language: es
subtitle ( sid ): 6 language: de
number of subtitles on disk: 7
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  6800.0 kbps (850.0 kbyte/s)
[ass] auto-open
Opening video filter: [pp=hb:a/vb:a/dr:a/al:a]
[ass] Init
[ass] Updating font cache.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12  [zoom]
[mpeg2video @ 0xb30360]ac-tex damaged at 29 10
[mpeg2video @ 0xb30360]Warning MVs not available
[mpeg2video @ 0xb30360]concealing 1170 DC, 1170 AC, 1170 MV errors
get_property chapters
ANS_chapters=38
get_property chapter
ANS_chapter=0
set_property chapter 38
missing marker bit!
get_property chapter
ANS_chapter=37
set_property chapter 39
^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7f9a1bdcd750 (LWP 19621)]
0x00007f9a1715127e in DVDReadBlocks () from /usr/local/lib/libdvdread.so.4
(gdb) bt full
#0  0x00007f9a1715127e in DVDReadBlocks () from /usr/local/lib/libdvdread.so.4
No symbol table info available.
#1  0x000000000058e70f in dvd_read_sector (d=0x1859f80, data=0x182cc18 "") at stream/stream_dvd.c:366
No locals.
#2  0x000000000058e98e in fill_buffer (s=0x182cb90, but=<value optimized out>, len=1) at stream/stream_dvd.c:497
        pos = <value optimized out>
#3  0x0000000000583ed2 in stream_fill_buffer (s=0x1859e20) at stream/stream.c:263
        len = <value optimized out>
#4  0x0000000000584039 in stream_seek_long (s=0x182cb90, pos=0) at stream/stream.c:355
        newpos = 850005233500160
#5  0x0000000000552f03 in demux_seek_mpg (demuxer=0x185a9d0, rel_seek_secs=<value optimized out>, audio_delay=<value optimized out>, 
    flags=<value optimized out>) at ./stream/stream.h:271
        d_audio = (demux_stream_t *) 0x185bb70
        d_video = (demux_stream_t *) 0x185bc00
        sh_audio = (sh_audio_t *) 0x185ed50
        sh_video = (sh_video_t *) 0x185bd40
        mpg_d = (mpg_demuxer_t *) 0x185c700
        precision = 1
        oldpts = 799.369751
        oldpos = 5240383501
        newpts = 1.00000077e+09
        newpos = 850005233500160
#6  0x000000000053233f in demux_seek (demuxer=0x185a9d0, rel_seek_secs=1e+09, audio_delay=0, flags=0) at libmpdemux/demuxer.c:1118
        tmp = 0
        pts = 1000007423.36
#7  0x000000000046b084 in seek (mpctx=0xe5cdc0, amount=<value optimized out>, style=-667845121) at mplayer.c:2495
No locals.
#8  0x000000000046ee7d in main (argc=1, argv=<value optimized out>) at mplayer.c:3886
        aq_sleep_time = 0.0261055939
        time_frame = -0.00705240667
        frame_time_remaining = <value optimized out>
        blit_frame = 1
        mem_ptr = <value optimized out>
        opt_exit = <value optimized out>
        i = 0
        last_heartbeat = 0
(gdb) 

[deinterlace]
profile-desc="Profile for picture de-interlacing"
vf-add=pp=fd

[dvd]
profile-desc="Profile for DVD playback"
profile=deinterlace
#cache=8192
dvd-device=/dev/scd1

[lang]
profile-desc="Profile for language"
alang=fr

[protocol.dvd]
profile-desc="Profile for dvd:// streams"
profile=dvd
profile=lang

[protocol.dvdnav]
profile-desc="Profile for dvdnav:// streams"
profile=dvd
profile=lang
nocache=yes

[protocol.cddb]
profile-desc="Profile for cddb:// streams"
cache=8192

[protocol.cdda]
profile-desc="Profile for cdda:// streams"
cache=8192

[protocol.tv]
profile-desc="Profile for tv:// streams"
profile=deinterlace

[extension.mkv]
profile-desc="Profile for Matroska files"
profile=lang

[default]
#vo=xv
ao=alsa:device=hw=Live
mixer-channel=Master
framedrop=yes
vsync=yes
#fs=yes
zoom=yes
double=yes
#fixed-vo=yes
nocolorkey=yes
#cache=4096
#cache-min=2
idx=yes
sub-fuzziness=1
spuaa=4
stop-xscreensaver="yes"
#heartbeat-cmd="gnome-screensaver-command -p"

# Set Post Processing (h deblock, v deblock, dering, auto luminance)
# Consumes CPU power, disabled for low configs, uncomment to enable it.
vf=pp=hb:a/vb:a/dr:a/al:a

# Forces RTSP client's port (usefull for FreeboxTV users in router mode)
# Do _NOT_ uncomment the line without LIVE555 support
#rtsp-port = 31337

# Subtitles properties
ass=yes
embeddedfonts=yes
ass-use-margins=yes
ass-color=FFFFFF00 # plain white (no alpha)
_______________________________________________
MPlayer-users mailing list
MPlayer-users@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux