Apple TV Playback Issues

iOS, iPad, iPhone, tvOS specific usage questions
Klindel
New Cone
New Cone
Posts: 1
Joined: 17 Mar 2016 06:10

Apple TV Playback Issues

Postby Klindel » 17 Mar 2016 06:21

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?

metaller
New Cone
New Cone
Posts: 3
Joined: 24 Feb 2016 14:56

Re: Apple TV Playback Issues

Postby metaller » 18 Mar 2016 10:31

agreed, same issues here...

fkuehne
Developer
Developer
Posts: 7241
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Apple TV Playback Issues

Postby fkuehne » 22 Mar 2016 15:54

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: Apple TV Playback Issues

Postby shaybc » 31 Mar 2016 18:00

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?

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: Apple TV Playback Issues

Postby shaybc » 31 Mar 2016 23:36

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

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: Apple TV Playback Issues

Postby shaybc » 06 Apr 2016 06:49

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

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: Apple TV Playback Issues

Postby ssbmaccom » 10 Apr 2016 23:30

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 ;-)

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: Apple TV Playback Issues

Postby shaybc » 18 Apr 2016 21:09

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

Ricanz1
New Cone
New Cone
Posts: 1
Joined: 05 May 2016 02:15

Re: Apple TV Playback Issues

Postby Ricanz1 » 05 May 2016 02:21

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

shaybc
Blank Cone
Blank Cone
Posts: 39
Joined: 27 Mar 2016 13:59

Re: Apple TV Playback Issues

Postby shaybc » 05 May 2016 09:10

Ricanz1, thanks for the answer, but i was talking about DEVELOPING using VLC (ATV4) and not simply using VLC,

but thanks for trying

fkuehne
Developer
Developer
Posts: 7241
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Apple TV Playback Issues

Postby fkuehne » 05 May 2016 12:01

@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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Nephele
Blank Cone
Blank Cone
Posts: 30
Joined: 05 Dec 2014 10:08

Re: Apple TV Playback Issues

Postby Nephele » 16 Mar 2017 11:05

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/


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 6 guests