[Red5] H264 stream seeking problem

Daniel Rossi electroteque at gmail.com
Wed Jun 17 03:36:10 PDT 2009


On 17/06/2009, at 8:24 PM, Walter Tak wrote:

> I've seen those MP4Reader warnings as well and I assume there aren't  
> always full keyframes at the spot you want to seek to. Either the  
> MP4Reader should
> start from the nearest keyframe or, like FMS does it, read from the  
> nearest keyframe, then start processing towards the exact spot  
> (frame) you want to seek to,
> process the data using a/the server-sided codec (h.264 in this case)  
> and then start spitting out the correct videopackets for the player.
>
> However, I doubt that's ever going to be in the code since we don't  
> really require near-second-precision for seeks.

It will move to the next available keyframe. My guess is there is some  
messages that need to be sent and are required by flash but are not  
being sent, to get mp4 working some things were removed like surgery  
from the seek method ;). The seeking is still not quite right. I tried  
to track down how the other servers do it and what messages they send  
and it seems they modeled it from Red5 and no such changes for mp4  
they just call a file read seek,  so need to figure it out what is its  
problem. There is also buffering issues just after seeking which is  
still a problem I see ?

>
>> Hello,
>>
>> I upgraded Red5 to latest svn-version righ after this list said h. 
>> 264 support is merged. We have been waiting for this.
>>
>> Otherwise it is working flawlesly, but i cant get seeking to work.
>> When seeked, audio gets out of sync, movie is jumping everywhere,  
>> and if it finds correct time again, audio will not come back to sync.
>>
>> Tried many h.264.sources with no differences.
>>
>> In console there is always:
>>
>> org.red5.io.mp4.impl.MP4Reader - Frame position was not found for  
>> timestamp: 57791
>>
>> Any ideas?
>>
>>
>> -pasi
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>>
>> -- 
>> Internal Virus Database is out-of-date.
>> Checked by AVG. Version: 7.5.560 / Virus Database: 270.12.26/2116 -  
>> Release Date: 15-05-09 06:16
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org




More information about the Red5 mailing list