#6643: Most videos that used to play in MediaPlayer do not play anymore. ----------------------------------------+----------------------------------- Reporter: bga | Owner: stippi Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/MediaPlayer | Version: R1/Development Keywords: | Blocked By: Has a Patch: 0 | Platform: All Blocking: | ----------------------------------------+----------------------------------- I have this demo machine where I collected a series of videos that used to play fine in MediaPlayer but do not anymore. The major problem seems to be that most MPEG files do not play anymore at all, simply crashing MediaPlayer with this probably not very helpful stack trace: {{{ #0 0x01dceb62 in init_vlc_sparse () from /boot/system/add-ons/media/plugins/ffmpeg #1 0x01ec5655 in ff_mpeg12_init_vlcs () from /boot/system/add-ons/media/plugins/ffmpeg #2 0x0266c83a in table.285 () from /boot/system/add- ons/media/plugins/ffmpeg #3 0x00000009 in ?? () #4 0x00000011 in ?? () #5 0x10400238 in ?? () #6 0x00000002 in ?? () #7 0x00000001 in ?? () #8 0x10400237 in ?? () #9 0x00000002 in ?? () #10 0x00000001 in ?? () #11 0x00000000 in ?? () #12 0x00000000 in ?? () #13 0x00000000 in ?? () #14 0x00000004 in ?? () #15 0x01ec54fe in ff_mpeg12_common_init () from /boot/system/add-ons/media/plugins/ffmpeg #16 0x01ec5573 in ff_mpeg12_init_vlcs () from /boot/system/add-ons/media/plugins/ffmpeg #17 0x0237a5f8 in ?? () from /boot/system/add-ons/media/plugins/ffmpeg #18 0x18173ed0 in ?? () #19 0x1812e660 in ?? () ---Type <return> to continue, or q <return> to quit--- #20 0x01ec70c2 in mpeg_decode_init () from /boot/system/add-ons/media/plugins/ffmpeg #21 0x18173ed0 in ?? () #22 0x00000000 in ?? () #23 0x000029fc in ?? () #24 0x01ec70e4 in mpeg_decode_init () from /boot/system/add-ons/media/plugins/ffmpeg #25 0x0237a5f8 in ?? () from /boot/system/add-ons/media/plugins/ffmpeg #26 0x1812e660 in ?? () #27 0x02386940 in done.274 () from /boot/system/add- ons/media/plugins/ffmpeg #28 0x00a146d8 in BPrivate::superblock::superblock () from /boot/system/lib/libroot.so Previous frame inner to this frame (corrupt stack?) }}} The problematic files do play ok in VLC. Here is what its debug output say: {{{ main input : selecting program id=0 main decoder : looking for decoder module: 21 candidates main decoder : using decoder module "mpeg_audio" main decoder : thread 8758 (decoder) created at priority 10 (input/decoder.c:159) main decoder : looking for decoder module: 21 candidates main decoder : using decoder module "libmpeg2" main decoder : thread 8759 (decoder) created at priority 5 (input/decoder.c:159) libmpeg2 decoder : 320x240 (display 320,240), aspect 576000, sar 1:1, 24.000 fps main decoder : no usable vout present, spawning one main video output : window size: 320x240 }}} I have at least one other MPEG file that does not crash media player but it complains that there is no codec to handle it. VLC does play it and has the following to say about it: {{{ main input : selecting program id=0 main decoder : looking for decoder module: 21 candidates main decoder : using decoder module "mpeg_audio" main decoder : thread 8724 (decoder) created at priority 10 (input/decoder.c:159) mpeg_audio decoder : MPGA channels:2 samplerate:44100 bitrate:192 main decoder : no aout present, spawning one main decoder : looking for decoder module: 21 candidates main decoder : using decoder module "libmpeg2" main decoder : thread 8725 (decoder) created at priority 5 (input/decoder.c:159) main audio output : looking for audio output module: 2 candidates main audio output : using audio output module "beos" main audio output : output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes main audio output : mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes main audio output : no need for any filter main audio output : looking for audio mixer module: 3 candidates main audio output : using audio mixer module "trivial_mixer" main audio output : input 'mpga' 44100 Hz Stereo frame=1152 samples/1262 bytes main audio output : filter(s) 'mpga'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo main audio output : looking for audio filter module: 24 candidates main audio output : using audio filter module "mpgatofixed32" main audio output : found a filter for the whole conversion main audio output : filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo main audio output : looking for audio filter module: 24 candidates main audio output : using audio filter module "bandlimited_resampler" main audio output : found a filter for the whole conversion main audio output : PTS is out of range (95443040013), dropping buffer main audio output : PTS is out of range (95443013915), dropping buffer main audio output : PTS is out of range (95442987814), dropping buffer libmpeg2 decoder : 368x240 (display 368,240), aspect 706560, sar 16:15, 25.000 fps main decoder : no usable vout present, spawning one main video output : window size: 392x240 }}} I also have an AVI file that does not play nor crash. MediaPlayer just opens and closes immediately. Running MediaPlayer from a Terminal shows this: {{{ [/boot/home]> MediaPlayer media/video/Check/The\ Matrix\ Trailer.avi MainApp::ArgvReceived media/video/Check/The Matrix Trailer.avi MainApp::ArgvReceived calling RefsReceived MainWin::MessageReceived: B_REFS_RECEIVED open playlist item: The Matrix Trailer.avi asfReader::asfReader asfReader::Sniff asfReader::Sniff: unsupported file type Abort Killed (by death) }}} So it seems it also thinks this is unsupported but does not show the alert for some reason. Here is what VLC has to say about it: {{{ avi input : found Chunk fourcc:46464952 (RIFF) size:18339768 pos:0 avi input : found LIST chunk: 'AVI ' avi input : <list 'AVI '> avi input : found Chunk fourcc:5453494c (LIST) size:8830 pos:12 avi input : found LIST chunk: 'hdrl' avi input : <list 'hdrl'> avi input : found Chunk fourcc:68697661 (avih) size:56 pos:24 avi input : avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED 640x480 avi input : found Chunk fourcc:5453494c (LIST) size:4244 pos:88 avi input : found LIST chunk: 'strl' avi input : <list 'strl'> avi input : found Chunk fourcc:68727473 (strh) size:56 pos:100 avi input : strh: type:vids handler:0x34766964 samplesize:0 23.98fps avi input : found Chunk fourcc:66727473 (strf) size:40 pos:164 avi input : strf: video:DIV3 640x480 planes:1 24bpp avi input : found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 avi input : </list 'strl'> avi input : found Chunk fourcc:5453494c (LIST) size:4234 pos:4340 avi input : found LIST chunk: 'strl' avi input : <list 'strl'> avi input : found Chunk fourcc:68727473 (strh) size:56 pos:4352 avi input : strh: type:auds handler:0x00000000 samplesize:1 11982.00fps avi input : found Chunk fourcc:66727473 (strf) size:30 pos:4416 avi input : strf: audio:0x0055 channels:2 44100Hz 0bits/sample 93kb/s avi input : found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:4454 avi input : </list 'strl'> avi input : found Chunk fourcc:5453494c (LIST) size:260 pos:8582 avi input : found LIST chunk: 'odml' avi input : <list 'odml'> avi input : found Chunk fourcc:686c6d64 (dmlh) size:248 pos:8594 avi input : unknown chunk (not loaded) avi input : </list 'odml'> avi input : </list 'hdrl'> avi input : found Chunk fourcc:4b4e554a (JUNK) size:1382 pos:8850 avi input : found Chunk fourcc:5453494c (LIST) size:18266400 pos:10240 avi input : skipping movi chunk avi input : found Chunk fourcc:31786469 (idx1) size:63120 pos:18276648 avi input : idx1: index entry:3945 avi input : </list 'AVI '> avi input : found Chunk fourcc:4b4e554a (JUNK) size:56 pos:18339776 avi input : * LIST-root size:18339840 pos:0 avi input : + RIFF-AVI size:18339768 pos:0 avi input : | + LIST-hdrl size:8830 pos:12 avi input : | | + avih size:56 pos:24 avi input : | | + LIST-strl size:4244 pos:88 avi input : | | | + strh size:56 pos:100 avi input : | | | + strf size:40 pos:164 avi input : | | | + JUNK size:4120 pos:212 avi input : | | + LIST-strl size:4234 pos:4340 avi input : | | | + strh size:56 pos:4352 avi input : | | | + strf size:30 pos:4416 avi input : | | | + JUNK size:4120 pos:4454 avi input : | | + LIST-odml size:260 pos:8582 avi input : | | | + dmlh size:248 pos:8594 avi input : | + JUNK size:1382 pos:8850 avi input : | + LIST-movi size:18266400 pos:10240 avi input : | + idx1 size:63120 pos:18276648 avi input : + JUNK size:56 pos:18339776 avi input : AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED avi input : stream[0] rate:23976 scale:1000 samplesize:0 avi input : stream[0] video(DIV3) 640x480 24bpp 23.976000fps main input : selecting program id=0 avi input : stream[1] rate:11982 scale:1 samplesize:1 avi input : stream[1] audio(0x55) 2 channels 44100Hz 0bits avi input : stream[0] created 3641 index entries avi input : stream[1] created 304 index entries avi input : stream[0] length:151 (based on index) avi input : stream[1] length:151 (based on index) main input : using demux2 module "avi" main input : looking for a subtitle file in /Data/home/media/video/Check/ main decoder : looking for decoder module: 21 candidates ffmpeg decoder : libavcodec initialized (interface 3349504 ) ffmpeg decoder : postprocessing disabled ffmpeg decoder : using direct rendering ffmpeg decoder : ffmpeg codec (MS MPEG-4 Video v3) started main decoder : using decoder module "ffmpeg" main decoder : thread 8819 (decoder) created at priority 5 (input/decoder.c:159) main decoder : looking for decoder module: 21 candidates main decoder : using decoder module "mpeg_audio" main decoder : thread 8820 (decoder) created at priority 10 (input/decoder.c:159) main input : meta information: main input : - 'Setting' = ' HAS_INDEX IS_INTERLEAVED' main input : `/Data/home/media/video/Check/The Matrix Trailer.avi' successfully opened avi input : old:0 < new 0 mpeg_audio decoder : MPGA channels:2 samplerate:44100 bitrate:96 main decoder : no usable vout present, spawning one main decoder : no aout present, spawning one main audio output : looking for audio output module: 2 candidates main audio output : using audio output module "beos" main audio output : output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes main audio output : mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes main audio output : no need for any filter main audio output : looking for audio mixer module: 3 candidates main audio output : using audio mixer module "trivial_mixer" main audio output : input 'mpga' 44100 Hz Stereo frame=1152 samples/1053 bytes main video output : window size: 640x480 main audio output : filter(s) 'mpga'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo main audio output : looking for audio filter module: 24 candidates main video output : looking for video output module: 2 candidates main video output : using audio filter module "mpgatofixed32" main audio output : found a filter for the whole conversion main audio output : filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo main audio output : looking for audio filter module: 24 candidates main video output : using video output module "beos" main video output : using audio filter module "bandlimited_resampler" main audio output : found a filter for the whole conversion main video output : waiting for thread completion beos video output : no possible overlay main video output : got 3 direct buffer(s) main video output : picture in 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1 main video output : picture user 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1 main video output : picture out 640x480 (0,0,640x480), chroma RV32, ar 4:3, sar 1:1 main video output : looking for chroma module: 9 candidates main video output : using chroma module "i420_rgb_mmx" main video output : indirect render, mapping render pictures 0-7 to system pictures 3-10 main video output : thread 8823 (video output) created at priority 15 (video_output/video_output.c:421) }}} Hope this helps. Let me know if needed and I can provide the actual video files. -- Ticket URL: <http://dev.haiku-os.org/ticket/6643> Haiku <http://dev.haiku-os.org> Haiku - the operating system.