Page 1 of 1

Apple TV Playback Issues

Posted: 17 Mar 2016 06:21
by Klindel
I just recently got VLC up and running off of a hard drive connected to my Airport Extreme. I'm noticing that avi files have playback issues. They will either play video and no sound or the video will start to load and VLC will skip to the next video after about 1 second of playback.

Is there something with avi files I should avoid? Is there a specific codec I should aim for?

Re: Apple TV Playback Issues

Posted: 18 Mar 2016 10:31
by metaller
agreed, same issues here...

Re: Apple TV Playback Issues

Posted: 22 Mar 2016 15:54
by fkuehne
The issue here is that the AVI format is extremely bad for streaming, which is what we do when playing from Airport Extreme. However, we worked a lot on the SMB code and hope to achieve better performance in subsequent updates.

Re: Apple TV Playback Issues

Posted: 31 Mar 2016 18:00
by shaybc
same here,

I am experiencing allot of lag and voice to video sync problems with simple mp4 streaming from the web (mr and mrs smith) on a macbook pro and on a real Apple TV, when i play them from safari or AVPlayer they are performing well,

the link i am trying to play:
http://streams.videolan.org/streams/mp4 ... 64_aac.mp4

swift code:

Code: Select all

// bridging header: #ifndef BridgeHeader_h #define BridgeHeader_h #endif /* BridgeHeader_h */ #import <TVVLCKit/TVVLCKit.h> // player class: class TVVLCKitPlayer: UIViewController { var movieURL :String = "" let vlcMediaPlayer = VLCMediaPlayer() var appDelegate: AppDelegate! override func viewDidLoad() { appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate } override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) vlcMediaPlayer.drawable = appDelegate.window } func playVideo() { vlcMediaPlayer.media = VLCMedia(URL: NSURL(string: movieURL)) vlcMediaPlayer.play() } } // call the player in the app: ... let movieURL = "http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4" let vlcPlayer: TVVLCKitPlayer = TVVLCKitPlayer() [appDelegate.window?.rootViewController?.presentViewController(vlcPlayer, animated: false, completion: nil)] vlcPlayer.movieURL = movieURL as! String vlcPlayer.playVideo()
hardware:
MacBook Pro (Retina, 13-inch, Early 2015)
2.7 GHz Intel Core i5
8 GB 1867 MHz DDR3
Intel Iris Graphics 6100 1536 MB
128 GB Flash Storage
osx: 10.11.4
Apple TV Hardware: 64G, Wired Network connection
TVOS: tried 9.1 and 9.2 (Simulator) and 9.2 (Real Apple TV)
xcode: 7.3 (7D175)
TVVLCKit build: self compiled from last checkin 2015 (Dec 28 2015) (use as linked framework, 700M file size)
Network: 100M wifi, stable

there is nothing running in the background not on the mac and not on the Apple TV
directions anyone?

Re: Apple TV Playback Issues

Posted: 31 Mar 2016 23:36
by shaybc
i also found that allot of the http protocol will not show video or say vlc can't play the video, or crash the app completely

Re: Apple TV Playback Issues

Posted: 06 Apr 2016 06:49
by shaybc
As i was testing, i got to a realisation that VLCKit will never be able to play correctly everything, more then that, the performence is poor (stream load time and lag or voice to video sync) as compared to apple AVPlayer, what eventually did is used an if statement to detect where the stream is "rtmp/rtmps/mms/mmsh..." -use VLC player, all others wil use AVPlayer, its not the perfect solution i expected, but its the best you can get out of it, and if the streams are good then performence are good, only takes lots of time to load

Re: Apple TV Playback Issues

Posted: 10 Apr 2016 23:30
by ssbmaccom
Well, look at my app in the AppStore "vuplusTV" (it's free, so it is no spam) - well makes no sense, when you do not have a Enigma 2 DVB receiver. Anyway, the App streams Live-TV and recordings (MPEG TS streams up to 1080i) via the OpenWebIF, so via http protocol.

What I just saw, as I was able to build VLCKit yesterday after Felix fixed the issue with contrib/gsm.
I saw in my Xcode project, that libstdc++ was shown as "red", but the app worked with jitter etc.
Then I removed it and used libc++, and all the jitter etc. is gone. Give it a try ;-)

Re: Apple TV Playback Issues

Posted: 18 Apr 2016 21:09
by shaybc
i used libc++ from the start, and i am not complaining on the playback - thats working, but there are allot of simple http streams that crash and will not play with libVLC, and the load time is terrible, it takes about 5-10 seconds to play while with AVPlayer it takes less then a second,

thanks for the reply b.t.w

Re: Apple TV Playback Issues

Posted: 05 May 2016 02:21
by Ricanz1
I am experiencing allot of lag and voice to video sync problems with simple mp4 streaming from the web (mr and mrs smith) on a macbook pro and on a real Apple TV, when i play them from safari or AVPlayer they are performing well,

the link i am trying to play:
http://streams.videolan.org/streams/mp4 ... 64_aac.mp4
I just started using Air Video HD, instead of VLC for streaming to my ATV. It's unclear to me which ATV you are using, but this might work for you. I've noticed very little latency in video or audio. Plus, it's simple to install and setup for Mac OS and TVOS, and it's available for mobile devices remotely.

http://www.inmethod.com/airvideohd/index.html

Re: Apple TV Playback Issues

Posted: 05 May 2016 09:10
by shaybc
Ricanz1, thanks for the answer, but i was talking about DEVELOPING using VLC (ATV4) and not simply using VLC,

but thanks for trying

Re: Apple TV Playback Issues

Posted: 05 May 2016 12:01
by fkuehne
@shaybc: there are allot of simple http streams that crash is extremely vague and will never ever lead to any bug fix. We need reports, crash logs and bug fixes. VLC is open-source, anyone can contribute including you personally if you wish to use our work in your app.

For the record, different C++ standard libraries don't lead to any user-visible functional differences in VLC. This is a perception which is totally unrelated and a false positive. From a developer perspective, the only difference is that libc++ correctly supports asserts and C++11 features, which is why libvlc 3.0 (and any VLCKit version past 2.2) requires it. libstdc++ is no longer compatible or supported.

Re: Apple TV Playback Issues

Posted: 16 Mar 2017 11:05
by Nephele
VLC plays almost any file format on any platform, any time at any place with perfect performance. However, a lot of people have issues with VLC skipping when playing high-definition media streaming over a network. If the MP4 files that you try to play with VLC are HD or even 4K video, you can have a reference at this article: http://www.howtogeek.com/howto/windows/ ... deo-files/