How to update vlc?Update VLC.
Code: Select all
/*****************************************************************************
* mac.c: Screen capture module for the Mac.
*****************************************************************************
* Copyright (C) 2004 - 2013 VLC authors and VideoLAN
* $Id: 09dd7b1e5e7c3364f5f133b4ecb9fad69075c1b8 $
*
* Authors: FUJISAWA Tooru <arai_a@mac.com>
* Derk-Jan Hartman <hartman at videolan dot org>
* 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.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import <vlc_common.h>
#import <vlc_block.h>
#import "screen.h"
int screen_InitCapture(demux_t *p_demux)
{
return VLC_SUCCESS;
}
int screen_CloseCapture(demux_t *p_demux)
{
return VLC_SUCCESS;
}
block_t *screen_Capture(demux_t *p_demux)
{
return NULL;
}
Code: Select all
2013-02-27 10:08:11.165 VLC[5896:907] Scanning /var/mobile/Applications/1DB75C23-E923-4EEC-B843-C2963B4EDDC1/Documents
[[32;1m0x131a7d0[0m] main libvlc debug: [0mVLC media player - 2.1.0-git Rincewind[0m
[[32;1m0x131a7d0[0m] main libvlc debug: [0mCopyright © 1996-2013 the VideoLAN team[0m
[[32;1m0x131a7d0[0m] main libvlc debug: [0mrevision 1.3.0-git-5707-g371c9d5[0m
[[32;1m0x131a7d0[0m] main libvlc debug: [0mconfigured with /sources/vlc.2013/ios/ImportedSources/vlc/configure '--prefix=/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7' '--host=arm-apple-darwin11' '--disable-debug' '--enable-static' '--disable-macosx' '--disable-macosx-vout' '--disable-macosx-dialog-provider' '--disable-macosx-qtkit' '--disable-macosx-eyetv' '--disable-macosx-vlc-app' '--enable-audioqueue' '--enable-ios-vout' '--disable-shared' '--disable-macosx-quartztext' '--enable-avcodec' '--enable-mkv' '--enable-opus' '--enable-mad' '--disable-a52' '--disable-fribidi' '--disable-macosx-audio' '--disable-qt' '--disable-skins2' '--disable-libgcrypt' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-glx' '--disable-sse' '--enable-neon' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-dvbpsi' '--enable-swscale' '--disable-projectm' '--disable-libass' '--disable-sqlite' '--disable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--disable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-sout' '--disable-faad' '--disable-lua' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-freetype' '--disable-taglib' '--disable-mmx' 'host_alias=arm-apple-darwin11' 'CC=xcrun clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'LDFLAGS=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=5.1' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'CPP=xcrun cc -E' 'CXX=xcrun clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'OBJC=xcrun clang' 'OBJCFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'CCAS=/sources/vlc.2013/ios/ImportedSources/vlc/extras/tools/gas/gas-preprocessor.pl xcrun clang' 'CXXCPP=xcrun c++ -E' 'DVBPSI_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/include ' 'DVBPSI_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/lib ' 'AVCODEC_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/include ' 'AVCODEC_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/lib -lavcodec -lavutil -lz' 'AVFORMAT_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/include' 'AVFORMAT_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/lib -lavcodec -lz -lavutil -lavformat' 'SWSCALE_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/include ' 'SWSCALE_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/lib '[0m
[[32;1m0x131a7d0[0m] main libvlc debug: [0mplug-ins loaded: 1 modules[0m
vlc: unknown option or missing mandatory argument `--avcodec-fast'
Try `vlc --help' for more information.
2013-02-27 10:08:11.319 VLC[5896:907] *** Assertion failure in -[VLCLibrary init], /Sources/VLC.2013/ios/ImportedSources/VLCKit/Sources/VLCLibrary.m:87
2013-02-27 10:08:11.321 VLC[5896:907] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'libvlc failed to initialize'
*** First throw call stack:
(0x322733e7 0x39f64963 0x3227329d 0x32b49fa3 0x17f75 0x17c4b 0x1813b 0x183c9 0x181c5 0x1c5dd5 0x32b8b4a1 0x322488f7 0x322481f3 0x32246f2f 0x321ba23d 0x321ba0c9 0x35d9833b 0x340d62b9 0x2487 0x2420)
libc++abi.dylib: terminate called throwing an exception
(lldb)
Code: Select all
local extra="ARCHS="
Code: Select all
local extra="ARCHS=armv7"
Code: Select all
if HAVE_DARWIN
libscreen_plugin_la_SOURCES += screen/mac.c
libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
libvlc_LTLIBRARIES += libscreen_plugin.la
endif
Code: Select all
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// This will mark crashy files
[[MLMediaLibrary sharedMediaLibrary] applicationWillStart];
[_window addSubview:self.navigationController.view];
[_window setRootViewController:self.navigationController];
[_window makeKeyAndVisible];
NSURL * urlToOpen = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
// **************** I add a value here *******************
urlToOpen = [NSURL URLWithString: @"rtsp://my/video/url"];
if (urlToOpen != nil) {
// We were started to open a given URL
MVLCLog(@"Opening URL %@", urlToOpen);
MVLCMovieViewController * movieViewController = [[MVLCMovieViewController alloc] init];
movieViewController.url = urlToOpen;
[self.navigationController presentViewController:movieViewController animated:YES completion:NULL];
[movieViewController release];
}
return YES;
}
Code: Select all
VLC[29061:c07] Opening URL rtsp://my/video/url
VLC[29061:c07] Warning: Attempt to present <MVLCMovieViewController: 0x9b0e9f0> on <UINavigationController: 0x9d23250> whose view is not in the window hierarchy!
That's what vlc for iOS does currently: allows you to download movies through iTunes to vlc, and view them.it launched successful but on the screen it writes
"Connect to iTunes You currently don't have any video in your VLC library......",
I can do no operation except just watching these words,
can anyone tell me where the problem is? How can I play a movie on an iPhone simulator?
thanks
Don't present a modal view controller before viewDidAppear.after running the app, the consule showed me the message:it really perplexed meCode: Select all
VLC[29061:c07] Opening URL rtsp://my/video/url VLC[29061:c07] Warning: Attempt to present <MVLCMovieViewController: 0x9b0e9f0> on <UINavigationController: 0x9d23250> whose view is not in the window hierarchy!
Code: Select all
[0x14917e0] main input debug: Creating an input for 'udp://224.1.1.1:1234'
[0x14917e0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x14917e0] main input debug: `udp://@224.1.1.1:1234' gives access `udp' demux `' path `@224.1.1.1:1234'
[0x14917e0] main input debug: creating demux: access='udp' demux='' location='@224.1.1.1:1234' file='(null)'
[0x296d760] main demux debug: looking for access_demux module matching "udp": 3 candidates
[0x296d760] main demux debug: no access_demux modules matched
[0x14917e0] main input debug: creating access 'udp' location='@224.1.1.1:1234', path='(null)'
[0x2997f80] main access debug: looking for access module matching "udp": 13 candidates
[0x2997f80] access_udp access debug: opening server=:0 local=224.1.1.1:1234
[0x2997f80] main access debug: net: opening 224.1.1.1 datagram port 1234
2013-03-04 12:57:30.992 VLC[1561:907] opening
[0x2997f80] main access debug: using access module "access_udp"
[0x296d760] main stream debug: Using block method for AStream*
[0x296d760] main stream debug: starting pre-buffering
Code: Select all
[0x2997f80] main access debug: waitpipe: object killed
[0x2997f80] main access debug: socket 5 polling interrupted
[0x296d760] main stream debug: prebuffering done 0 bytes in 178s - 0 KiB/s
[0x296d760] main stream error: cannot pre fill buffer
[0x14917e0] main input warning: cannot create a stream_t from access
[0x2997f80] main access debug: removing module "access_udp"
Code: Select all
#define PIERRE_LE_GROS_CRADE 1
#if TARGET_IPHONE_SIMULATOR && PIERRE_LE_GROS_CRADE
NSString *directoryPath = @"/Users/YOU/your/path";
#else
Thanks, any idea on what could be the reason of this ? I didn't modify / alter anything else than what I've posted.2Ferretizer
According to your log file you build is incomplete - there is only one module loaded
Code: Select all
2013-03-11 18:08:47.015 VLC[3365:707] init with rtp://@224.1.1.1:1234
[0x14da700] main input debug: Creating an input for 'rtp://224.1.1.1:1234'
[0x14da700] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x14da700] main input debug: `rtp://@224.1.1.1:1234' gives access `rtp' demux `' path `@224.1.1.1:1234'
[0x14da700] main input debug: creating demux: access='rtp' demux='' location='@224.1.1.1:1234' file='(null)'
[0x133a700] main demux debug: looking for access_demux module matching "rtp": 3 candidates
[0x133a700] main demux debug: net: opening 224.1.1.1 datagram port 1234
[0x133a700] main demux debug: using access_demux module "rtp"
[0x14c56b0] main demux meta debug: looking for meta reader module matching "any": 0 candidates
[0x14c56b0] main demux meta debug: no meta reader modules
[0x14da700] main input debug: `rtp://@224.1.1.1:1234' successfully opened
2013-03-11 18:08:47.101 VLC[3365:707] opening
Code: Select all
x tar-1.26/gnu/inttypes.in.h: (Empty error message)
tar: Error exit delayed from previous errors.
make: *** [tar] Error 1
[info] Building contrib for iOS in '/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/iPhoneOS-armv7'
[info] LD FLAGS SELECTED = '-L/Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1'
/Users/rinku.dahiya/ios/ImportedSources/vlc
clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk'
clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk'
clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk'
clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk'
cd libdvbpsi && CC="xcrun clang" CXX="xcrun clang++" LD="xcrun ld" AR="xcrun ar" RANLIB="xcrun ranlib" STRIP="xcrun strip" PATH="/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/extras/tools/build/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/extras/tools/build/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/extras/package/ios/resources" CPPFLAGS="-isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include" CFLAGS="-isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g" CXXFLAGS="-isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g" LDFLAGS="-L/Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1 -arch armv7 -Wl,-syslibroot,/Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -L/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/lib" ./configure --prefix="/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11" --build="i686-apple-darwin10" --host="arm-apple-darwin11" --target="arm-apple-darwin11" --program-prefix="" --enable-static --disable-shared --disable-dependency-tracking --with-pic
checking build system type... i686-apple-darwin10
checking host system type... arm-apple-darwin11
checking target system type... arm-apple-darwin11
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin11-strip... xcrun strip
checking for a thread-safe mkdir -p... .auto/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for arm-apple-darwin11-gcc... xcrun clang
checking whether the C compiler works... no
configure: error: in `/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/iPhoneOS-armv7/libdvbpsi':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [.dvbpsi] Error 77
Code: Select all
[info] Building tools
yasm not found
tar doesn't support xz (J option)
ragel not found
rm -f -R yasm && tar xvzf yasm-1.2.0.tar.gz
rm -f -R tar && tar xvjf tar-1.26.tar.bz2
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
make: *** [yasm] Error 1
make: *** Waiting for unfinished jobs....
InputFile.cpp:84:10: error: use of undeclared identifier 'fseeko'; did you mean
'fseek'?
return fseeko(fid, (off_t)(offset), whence);
^~~~~~
fseek
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/stdio.h:259:6: note:
'fseek' declared here
int fseek(FILE *, long, int);
^
InputFile.cpp:100:10: error: use of undeclared identifier 'ftello'; did you mean
'ftell'?
return ftello(fid);
^~~~~~
ftell
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/stdio.h:261:7: note:
'ftell' declared here
long ftell(FILE *);
^
2 errors generated.
make[1]: *** [InputFile.o] Error 1
make: *** [.live555] Error 2
[info] Building MobileVLCKit (Aggregate static plugins, Release)
[info] Building MobileVLCKit (MobileVLCKit, Release)
** BUILD FAILED **
Return to “VLC for iOS, iPadOS and Apple TV”
Users browsing this forum: No registered users and 5 guests