A Problem of streaming MP4 file

源:http://comments.gmane.org/gmane.comp.multimedia.live555.devel/9151



Dear live dev team:
(1)
 I have extended the live555 to support mp4 file.But when playing ,the vlc has no process bar and the total time's  indicator(it's 00:00 at the lower right corner of vlc).  I can't jump to another point to play in the vlc process bar area.what's the reason of this?
 
(2)
when playing,at the first 10 seconds  there are many m osaic on the picture. what can I do to fix this problem?
 
please help me.Thank you very much.
 
    
 
2012-09-10
kingaceck



Re: A Problem of streaming MP4 file

 I have extended the live555 to support mp4 file.But when playing ,the vlc has no process bar and the total time's  indicator(it's 00:00 at the lower right corner of vlc).  I can't jump to another point to play in the vlc process bar area.what's the reason of this?
If you want to support 'seeking' within your file, you need to reimplement the following two virtual functions of your new "ServerMediaSubsession" subclass(es):
virtual float duration() const;
You'll need to redefine this to return the track's duration in seconds (i.e., some value > 0.0)
virtual void seekStream(unsigned clientSessionId, void* streamToken, double& seekNPT, double streamDuration, u_int64_t& numBytes);
This is the function that will do the seeking.

 
(2)
when playing,at the first 10 seconds  there are many m osaic on the picture. what can I do to fix this problem?

This is likely due to unusually large video frame sizes - i.e., too large for VLC's buffer.  VLC automatically compensates for this when it sees it, by increasing its buffer size, but it can't do anything about the first too-large video frame (that got truncated).

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


A correction:  The virtual function to redefine here (assuming that you've defined your own subclass of "OnDemandServerMediaSubsession" is:
virtual void seekStreamSource(FramedSource* inputSource, double& seekNPT, double streamDuration, u_int64_t& numBytes);
This is the function that will do the seeking.  Note that there are several existing examples in the code.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值