Hi Sotaro san, thanks for sharing this information. Libstagefright supports mpeg2ts over rtsp starting from jb4.2. Once the mine type is detected as "video/mp2ts"<http://androidxref.com/4.3_r2.1/xref/frameworks/av/media/libstagefright/MediaDefs.cpp#49> , ATSParser<http://androidxref.com/4.3_r2.1/s?defs=ATSParser&project=frameworks> is used to parse the mpeg2ts stream received through RTP protocol. The encoded audio/video data is then accumulated as accessunit and pass to the decoder. I'll consider to merge the code to the patch and support mpeg2ts over rtsp. But as you said, rtsp is nothing to do with HLS for Youtube. Let go back and focus on how to support HLS on FFOS.
Many Thanks, Vincent Chang, Software Engineer of Mozilla Taiwan 2013/8/2 Sotaro Ikeda <[email protected]> > > >Sorry, I am a little bit confuse. > >We can said that StageFright support MPEG2TS playback, but supporting > MPEG2TS playback in RTSP is one thing, while supporting MPEG2TS playback > in HLS is another one. > >I can see no reason that the problem in HLS can be resolved by turning on > MPEG2S playback in RTSP. Do I miss anything? > > For me, RTSP and HLS have no relationship. HLS might be necessary because > Youtube live use it. > > I mentioned about RTSP is just response to Vincent Chang's mail. > Current B2G's rtsp patches does not suport mpeg2ts and > recent android support mpeg2ts over rtsp. > By just updating the source code to newer one. > mpeg2ts over rtsp can be supported also on b2g. > > Sotaro > ----- Original Message ----- > From: "CJ Ku" <[email protected]> > To: "Sotaro Ikeda" <[email protected]> > Cc: "Vincent Chang(張藝馨)" <[email protected]>, "Chris Pearce" < > [email protected]>, "Chris Double" <[email protected]>, "Mozilla B2G > mailing list" <[email protected]>, "Andreas Gal" <[email protected]>, > [email protected], "Matthew Gregan" <[email protected]> > Sent: Friday, August 2, 2013 11:22:49 AM > Subject: Re: [b2g] Youtube Live Support on B2G > > Sorry, I am a little bit confuse. > We can said that StageFright support MPEG2TS playback, but supporting > MPEG2TS playback in RTSP is one thing, while supporting MPEG2TS playback > in HLS is another one. > I can see no reason that the problem in HLS can be resolved by turning on > MPEG2S playback in RTSP. Do I miss anything? > > ----- Original Message ----- > > From: "Sotaro Ikeda" <[email protected]> > > To: "Vincent Chang(張藝馨)" <[email protected]> > > Cc: "Chris Pearce" <[email protected]>, "Chris Double" < > [email protected]>, "Mozilla B2G mailing list" > > <[email protected]>, "Andreas Gal" <[email protected]>, > [email protected], "Matthew Gregan" > > <[email protected]> > > Sent: Friday, August 2, 2013 10:55:59 PM > > Subject: Re: [b2g] Youtube Live Support on B2G > > > > > > But iirc, stageright implement Mpeg2Ts for HLS support by AwesomePlayer > at > > first. > > Stagefright can playback local mpeg2ts. I think it is just a side effect > of > > HLS support. Just simple mpeg2ts can not support seek efficiently. > > Current JB support mpeg2ts on RTSP as AMPEG2TSAssembler. It is better to > > reuse it like other ***Assembler. > > JB playbacks RTSP by NuPlayer not by AwesomePlayer. AwesomePlayer have a > > problem of synchronous decoding API. > > It seems that NuPlayer is made to solve this problem. NuPlayer handles > > decoding asynchronously. > > By this NuPlayer can handle seek correctly in streaming video playback, > but > > AwesomePlayer can not handle it correctly. > > > > Sotaro > > > > ----- Original Message ----- > > From: "Vincent Chang(張藝馨)" <[email protected]> > > To: [email protected] > > Cc: "Andreas Gal" <[email protected]>, "Chris Pearce" <[email protected] > >, > > "Chris Double" <[email protected]>, "Mozilla B2G mailing list" > > <[email protected]>, "Sotaro Ikeda" <[email protected]>, > "Matthew > > Gregan" <[email protected]> > > Sent: Friday, August 2, 2013 12:18:29 AM > > Subject: Re: [b2g] Youtube Live Support on B2G > > > > Android's stageflight supports MPEG2TS and MPEG2PS extractor. But it is > > used for local file right now. > > To support MPEG2TS through RTSP, we need to support sdp parser > > for video/mp2ts (video 0 RTP/AVP 33) > > and feed the data to the extractor. > > Current RTSP implementation in FFOS is reviewing in Bug 831645. We hope > to > > fix it as soon as we can. > > > > > > Many Thanks, > > Vincent Chang, > > Software Engineer of Mozilla Taiwan > > > > > > > > 2013/8/2 Robert O'Callahan <[email protected]> > > > > > [I'm not on dev.b2g...] > > > > > > [Browser support for DASH isn't quite dead; IE11 has it apparently. But > > > that won't help us here.] > > > > > > I don't know anything about MPEG2TS or what it would take for HLS to be > > > implementable in JS via Media Source. Matthew or Chris D/P might know. > Note > > > that even if we supported MPEG2TS in Media Source, Youtube would still > have > > > to hook up JS support for HLS for us. > > > > > > I'm pretty sure the long term plan for Youtube is WebM or Fragmented > MP4 > > > over MSE for Chrome/Web. Whether we should wait for that to save us, I > > > don't know. > > > > > > Rob > > > -- > > > Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny > eovni > > > le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids > teoa > > > stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg > iyvoeunr, > > > 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt > uIp > > > waanndt wyeonut thoo mken.o w * > > > * > > > _______________________________________________ > > > dev-b2g mailing list > > > [email protected] > > > https://lists.mozilla.org/listinfo/dev-b2g > > > > > _______________________________________________ > > dev-b2g mailing list > > [email protected] > > https://lists.mozilla.org/listinfo/dev-b2g > > > _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
