Coder Social home page Coder Social logo

H264 lag about kxmovie HOT 16 CLOSED

kolyvan avatar kolyvan commented on July 17, 2024
H264 lag

from kxmovie.

Comments (16)

kolyvan avatar kolyvan commented on July 17, 2024

HI, Can you give me more info about video format (like bitrate, frame resolution), please?
You may get such data from the info view or from the output log.
Thanks.

from kxmovie.

nokai avatar nokai commented on July 17, 2024

A few seconds and lag rtmp://aragontvlivefs.fplive.net/aragontvlive-live/stream_normal_abt
& more rtmp://ucaster.eu:1935/live/definst/discoverylacajatv

from kxmovie.

kolyvan avatar kolyvan commented on July 17, 2024

Yes, sometimes it lags due to network latency.
The fast and crude way to fix it's to change NETWORK_BUFFERED_DURATION parameter.
Set it to 3.0 or 4.0.
The right way it's to change the buffering algorithm for remote files.
I have this issue in my TODO list, but I can't say anything about timeline.

Best wishes.

from kxmovie.

nokai avatar nokai commented on July 17, 2024

Ok, thanks, I'll try

from kxmovie.

nokai avatar nokai commented on July 17, 2024

I have been trying to change the NETWORK_BUFFERED_DURATION but does not fix the lag and does not work

Wait your updates.

Thanks

from kxmovie.

sharp avatar sharp commented on July 17, 2024

iPhone 4s and iPhone 5 is ok for me :)

from kxmovie.

nokai avatar nokai commented on July 17, 2024

I've tried these two directions* .... with an ipad2, iphone4 and iphone5 and works much lag, stutters.

rtmp://aragontvlivefs.fplive.net/aragontvlive-live/stream_normal_abt
rtmp://ucaster.eu:1935/live/definst/discoverylacajatv

You have changed anything?

from kxmovie.

itkingdom avatar itkingdom commented on July 17, 2024

Hi,

I tried your streams:
rtmp://ucaster.eu:1935/live/definst/discoverylacajatv
it's OK ok for me.
I think you first try on your PC to confirm you internet connection is fast enough

from kxmovie.

itkingdom avatar itkingdom commented on July 17, 2024

Could anyone try this stream: http://livecdn.megatv.vn/live/VTV3_Cluster_out
The first 15sec is very smooth, after then, lag & stutter : (

My definition
#define NETWORK_BUFFERED_DURATION 4.0

from kxmovie.

sharp avatar sharp commented on July 17, 2024

http://livecdn.megatv.vn/live/VTV3_Cluster_out is ok for me , I have watched half an hour :P

from kxmovie.

itkingdom avatar itkingdom commented on July 17, 2024

Cool! May be internet speed issue, like what @nokai had :-D

from kxmovie.

itkingdom avatar itkingdom commented on July 17, 2024

By the way, what is your NETWORK_BUFFERED_DURATION value?

from kxmovie.

sharp avatar sharp commented on July 17, 2024

I didn't modify anything , I think you can ping your server to check network is ok.

#define DEFAULT_DECODE_DURATION   0.1
#define NETWORK_BUFFERED_DURATION 2.0

To @kolyvan

I hope one feature : It will be good to add reload url api for KxMovieViewController, so I can reload the url to replay if there are some errors when live streaming

from kxmovie.

nokai avatar nokai commented on July 17, 2024

The problem is with ffmpeg

I try with rtmp://ucaster.eu:1935/live/definst/discoverylacajatv

#define DEFAULT_DECODE_DURATION   0.1
#define NETWORK_BUFFERED_DURATION 4.0

in simulator and works well.

but on the iphone 4 with wifi, the same connection (very good). lag imagen & audio

2012-12-27 16:32:39.099 KxMovieExample[3483:6503] desync audio (lags) skip 2.0520 0.0260

in iphone 5

2012-12-27 16:39:38.055 KxMovieExample[3231:6903] desync audio (lags) skip 73.7990 71.7890

:(

from kxmovie.

itkingdom avatar itkingdom commented on July 17, 2024

I think it's buffering issue, not ffmpeg : ) @kolyvan may give us some ideas how to solve

from kxmovie.

kolyvan avatar kolyvan commented on July 17, 2024

Hi All,

I pushed the commit 0ba37a3 to new branch 'network'.
There are small improvements of buffering network-based streams.
Certainly it cannot solve bandwidth issue, but buffering process will a little more clear for user.

Thanks all for feedback.

from kxmovie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.