RTSP streaming not working properly.
Hello VLC team,
I have followed steps from wiki (https://wiki.videolan.org/VLCKit/) Below steps which I done
- I have cloned git repository form http://code.videolan.org/videolan/VLCKit.git to my PC
- executed ./buildMobileVLCKit.sh command every thing went successfully
I have integrated VLC player in app and it's working fine with bellow VLCMediaPlayer options and configuration.
NSArray *options = @[@"--rtsp-tcp",@"--no-drop-late-frames",@"--no-skip-frames",@"--rtsp-frame-buffer-size=100000",@"--no-sub-autodetect-file",@"--gain=0",@"--no-sout-audio",@"--network-synchronisation"];
_mediaplayer = [[VLCMediaPlayer alloc] initWithOptions:options]; _mediaplayer.libraryInstance.debugLogging = true; _mediaplayer.libraryInstance.debugLoggingLevel = true; _mediaplayer.delegate = self; _mediaplayer.drawable = superInnerView; _mediaplayer.currentAudioTrackIndex = -1;
_mediaplayer.media = [[VLCMedia alloc] initWithURL:[NSURL URLWithString:sUrl]]; _mediaplayer.media.delegate = self; [_mediaplayer.media addOptions:@{@"network-caching" : @300}]; [_mediaplayer.media addOptions:@{@"clock-jitter" : @0}]; [_mediaplayer.media addOptions:@{@"clock-synchro" : @0}]; [_mediaplayer play];
It's working fine with respective RTSP URLs****
but in bellow RTSP URLs it's not(getting only first frame)
We have also tried with bellow options but getting same result
NSArray *options = @[@"--rtsp-tcp",@"--no-drop-late-frames",@"--no-skip-frames",@"--aout=opensles",@"--audio-time-stretch"];
bellow is the log we getting in console
2017-06-12 12:37:36.700608+0530 eConnect[1985:701691] creating player instance with private library as options were given 2017-06-12 12:37:36.726217+0530 eConnect[1985:701691] VLC media player - 3.0.0-git Vetinari 2017-06-12 12:37:36.726328+0530 eConnect[1985:701691] Copyright © 1996-2017 the VideoLAN team 2017-06-12 12:37:36.726431+0530 eConnect[1985:701691] revision 2.2.0-git-12413-g1401f1d 2017-06-12 12:37:36.726521+0530 eConnect[1985:701691] configured with /Users/hb/Desktop/VLC_New_Demo/VLCKit/libvlc/vlc/configure '--prefix=/Users/hb/Desktop/VLC_New_Demo/VLCKit/libvlc/vlc/install-iPhoneOS/arm64' '--host=aarch64-apple-darwin14' '--with-contrib=/Users/hb/Desktop/VLC_New_Demo/VLCKit/libvlc/vlc/contrib/iPhone-aarch64-apple-darwin14-aarch64' '--enable-static' '--disable-debug' '--enable-dvbpsi' '--enable-avcodec' '--disable-vpx' '--enable-neon' '--disable-macosx' '--disable-macosx-qtkit' '--disable-macosx-avfoundation' '--disable-shared' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-sse' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-swscale' '--disable-projectm' '--enable-libass' '--enable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--enable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-screen' '--enable-freetype' '--enable-taglib' '--disable-mmx' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=aarch64-apple-darwin14' 'CC=/Applications/Xcode_8.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-isysroot /Applications/Xcode_8.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'LDFLAGS=-isysroot /Applications/Xcode_8.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Applications/Xcode_8.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/lib -arch arm64 -Wl,-ios_version_min,7.0' 'CPPFLAGS=-isysroot /Applications/Xcode_8.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'CXX=/Applications/Xcode_8.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-isysroot /Applications/Xcode_8.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'OBJC=/Applications/Xcode_8.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-O3 -g' 'CCAS=gas-preprocessor.pl /Applications/Xcode_8.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang'
2017-06-12 12:37:36.763713+0530 eConnect[1985:701691] mediaMetaDataDidChange
2017-06-12 12:37:36.764809+0530 eConnect[1985:701691] mediaMetaDataDidChange
2017-06-12 12:37:36.765954+0530 eConnect[1985:701691] mediaMetaDataDidChange
2017-06-12 12:37:38.180964+0530 eConnect[1985:701768] option quiet does not exist
2017-06-12 12:37:38.191743+0530 eConnect[1985:701768] clock gap, unexpected stream discontinuity
2017-06-12 12:37:38.191876+0530 eConnect[1985:701768] feeding synchro with a new reference point trying to recover from clock gap
2017-06-12 12:37:38.257433+0530 eConnect[1985:701776] option quiet does not exist
2017-06-12 12:37:38.380774+0530 eConnect[1985:701798] libMobileGestalt MobileGestaltSupport.m:153: pid 1985 (eConnect) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-06-12 12:37:38.380845+0530 eConnect[1985:701798] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see rdar://problem/11744455)
2017-06-12 12:37:39.974743+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:39.974961+0530 eConnect[1985:701776] Could not convert timestamp 140903618007 for FFmpeg 2017-06-12 12:37:39.975060+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:39.979283+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:39.979405+0530 eConnect[1985:701776] Could not convert timestamp 140903658018 for FFmpeg 2017-06-12 12:37:39.979492+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:39.981013+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:39.981112+0530 eConnect[1985:701776] Could not convert timestamp 140903698018 for FFmpeg 2017-06-12 12:37:39.981197+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:39.983463+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:39.990377+0530 eConnect[1985:701776] Could not convert timestamp 140903738018 for FFmpeg 2017-06-12 12:37:39.990487+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:39.991854+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:39.991951+0530 eConnect[1985:701776] Could not convert timestamp 140903778029 for FFmpeg 2017-06-12 12:37:39.992036+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.055577+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.055770+0530 eConnect[1985:701776] Could not convert timestamp 140903818029 for FFmpeg 2017-06-12 12:37:40.055867+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.057810+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.057879+0530 eConnect[1985:701776] Could not convert timestamp 140903858040 for FFmpeg 2017-06-12 12:37:40.057936+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.059089+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.059187+0530 eConnect[1985:701776] Could not convert timestamp 140903898040 for FFmpeg 2017-06-12 12:37:40.059249+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.358051+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.358251+0530 eConnect[1985:701776] Could not convert timestamp 140903938040 for FFmpeg 2017-06-12 12:37:40.358350+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.360435+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.360537+0530 eConnect[1985:701776] Could not convert timestamp 140903978051 for FFmpeg 2017-06-12 12:37:40.360631+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.362432+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.362531+0530 eConnect[1985:701776] Could not convert timestamp 1497259414032532 for FFmpeg 2017-06-12 12:37:40.362615+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.365176+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.367601+0530 eConnect[1985:701776] Could not convert timestamp 1497259414072532 for FFmpeg 2017-06-12 12:37:40.367846+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.369678+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.369778+0530 eConnect[1985:701776] Could not convert timestamp 1497259414112532 for FFmpeg 2017-06-12 12:37:40.369838+0530 eConnect[1985:701776] early picture skipped 2017-06-12 12:37:40.370780+0530 eConnect[1985:701776] Timestamp conversion failed (delay 300000, buffering 100000, bound 9000000)
2017-06-12 12:37:40.370856+0530 eConnect[1985:701776] Could not convert timestamp 1497259414152543 for FFmpeg 2017-06-12 12:37:40.371548+0530 eConnect[1985:701776] early picture skipped
Please help me to resolve my issue
Thank you.