Thank you.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!SDK
/*****************************************************************************
* VLCKit: MobileVLCKit
*****************************************************************************
* Copyright (C) 2010-2013 Pierre d'Herbemont and VideoLAN
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
* Felix Paul Kühne <fkuehne # videolan.org
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!CODE
UIView *videoView = [[UIView alloc] initWithFrame:CGRectMake(0, 50, self.bounds.size.width, 200)];
[self addSubview:videoView];
VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithOptions:@[@"-vvvv"]];
self.player = player;
self.player.drawable = videoView;
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"mp4"];
self.player.media = [VLCMedia mediaWithPath:filePath];
[self.player play];
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Frame
AudioToolbox.framework
VideoToolbox.framework
CoreMedia.framework
CoreVideo.framework
CoreAudio.framework
AVFoundation.framework
MediaPlayer.framework
libstdc++.6.0.9.tbd
libiconv.2.tbd
libc++.1.tbd
libz.1.tbd
libbz2.1.0.tbd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Crash
0x10e30e90e <+3598>: je 0x10e30e91f ; <+3615> at utils.c:1663
0x10e30e910 <+3600>: movq 0x10(%rsp), %rdx
0x10e30e915 <+3605>: movq (%rdx), %rdx
0x10e30e918 <+3608>: cmpq $0x0, 0x48(%rdx)
0x10e30e91d <+3613>: je 0x10e30e932 ; <+3634> [inlined] av_codec_is_encoder at utils.c:1672
0x10e30e91f <+3615>: movq %r14, %rdi
0x10e30e922 <+3618>: callq *%rcx
0x10e30e924 <+3620>: movl %eax, %ebp -------------------------------Thread 9: EXC_BAD_ACCESS (code=1, address=0x100000002);avcodec_open2
0x10e30e926 <+3622>: testl %ebp, %ebp
0x10e30e928 <+3624>: js 0x10e30dc5b ; <+347> at utils.c:1755
0x10e30e92e <+3630>: movq 0x10(%r14), %rax
0x10e30e932 <+3634>: testq %rax, %rax
0x10e30e935 <+3637>: je 0x10e30ec7a ; <+4474> at utils.c:1739
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!LOG
[00007f993952be48] mp4 demux debug: - [0] duration=34760ms media time=0ms) rate=1.0
[00007f993952be48] mp4 demux debug: track[Id 0x1] read 87 chunk
[00007f993952be48] mp4 demux warning: STTS table of 1 entries
[00007f993952be48] mp4 demux warning: CTTS table of 456 entries
[00007f993952be48] mp4 demux debug: track[Id 0x1] read 869 samples length:34s
[00006040001cfce8] core input debug: selecting program id=0
[00007f993952be48] mp4 demux debug: adding track[Id 0x1] video (enable) language eng
[00007f993952be48] mp4 demux warning: elst box found
[00007f993952be48] mp4 demux debug: - [0] duration=34760ms media time=0ms) rate=1.0
[00007f993952be48] mp4 demux debug: track[Id 0x2] read 87 chunk
[00007f993952be48] mp4 demux warning: STTS table of 1 entries
[00007f993952be48] mp4 demux debug: track[Id 0x2] read 1633 samples length:34s
[00007f993952be48] mp4 demux debug: adding track[Id 0x2] audio (enable) language eng
[00007f993952be48] mp4 demux debug: fragment offset 24, data 24709<->26386061, duration 0
[00007f993952be48] core demux debug: using demux module "mp4"
[00006040001cfce8] core input debug: looking for a subtitle file in /Users/wangyaoyao/Library/Developer/CoreSimulator/Devices/5BC6CBDF-1D67-471C-A96C-1F347BF4953A/data/Containers/Bundle/Application/9D32EB55-FF9F-40C1-B085-2A8DD7E07455/NurseFuel.app/
[00007f993b0220b8] core decoder debug: looking for decoder module matching "any": 32 candidates
[00007f993b0220b8] avcodec decoder debug: CPU flags: 0x00000000
[00007f993b0220b8] avcodec decoder debug: trying to use direct rendering
[00007f993b0220b8] avcodec decoder debug: allowing 4 thread(s) for decoding
[00007f993b0220b8] avcodec decoder debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started
[00007f993b0220b8] avcodec decoder warning: using unknown thread mode with 0 threads
[00007f993b0220b8] core decoder debug: using decoder module "avcodec"
[00007f993b009ab8] core decoder debug: looking for decoder module matching "any": 32 candidates
[00007f993b009ab8] avcodec decoder debug: CPU flags: 0x00000000