IRC log of webcodecs on 2019-09-18
Timestamps are in UTC.
- 01:48:30 [RRSAgent]
- RRSAgent has joined #webcodecs
- 01:48:30 [RRSAgent]
- logging to https://www.w3.org/2019/09/18-webcodecs-irc
- 01:48:32 [koalie]
- RRSAgent, make logs public
- 01:48:35 [koalie]
- koalie has changed the topic to: https://w3c.github.io/tpac-breakouts/sessions.html
- 01:48:37 [koalie]
- koalie has left #webcodecs
- 07:20:51 [RRSAgent]
- RRSAgent has joined #webcodecs
- 07:20:51 [RRSAgent]
- logging to https://www.w3.org/2019/09/18-webcodecs-irc
- 07:20:57 [tidoust]
- RRSAgent, make logs public
- 07:21:28 [tidoust]
- Meeting: WebCodecs breakout session
- 07:21:33 [tidoust]
- Chair: Peter Thatcher
- 07:30:15 [ericc]
- ericc has joined #webcodecs
- 07:30:49 [nakakura]
- nakakura has joined #webcodecs
- 07:30:59 [HeWenli]
- HeWenli has joined #webcodecs
- 07:31:45 [horiuchi]
- horiuchi has joined #webcodecs
- 07:31:52 [tidoust_]
- tidoust_ has joined #webcodecs
- 07:31:55 [takio]
- takio has joined #webcodecs
- 07:31:57 [cpn_]
- cpn_ has joined #webcodecs
- 07:31:58 [steveanton]
- steveanton has joined #webcodecs
- 07:32:11 [richw]
- richw has joined #webcodecs
- 07:32:12 [cpn_]
- present+
- 07:32:15 [lizheming]
- lizheming has joined #webcodecs
- 07:32:25 [tidoust_]
- scribe: tidoust
- 07:32:27 [tidoust_]
- peter: The spec for Streams has examples of potential transform streams with a video decoder. That's great, we'd also want encoder.
- 07:32:30 [tidoust_]
- We want live streaming, faster-than-realtime encoding, RTC, media tools, gaming.
- 07:32:32 [tidoust_]
- [showing a diagram]
- 07:32:34 [yos]
- yos has joined #webcodecs
- 07:32:54 [tidoust_]
- scribe+ tidoust_
- 07:33:32 [tidoust_]
- peter: There needs to be a conversion from a track to a stream of objects that represent audio and video. Can be frames, but terminology can be problematic as term is overloaded.
- 07:33:56 [tidoust_]
- ... Chunk comes out encoded.
- 07:35:10 [tidoust_]
- alex: Trying to fit the current WebRTC on top of that. Feedback mechanism from transport to decoder for packet loss for instance. How would that fit there?
- 07:35:38 [tidoust_]
- SteveAnton: It's part of the "change settings"
- 07:36:00 [tidoust_]
- alex: The application would capture that feedback and would call change setting on the encoder
- 07:36:04 [tidoust_]
- peter: Correct.
- 07:36:27 [tidoust_]
- ?: What kind of controls are you thinking about? Many of them.
- 07:36:38 [tidoust_]
- peter: I can show you when we have the IDL.
- 07:36:44 [tidoust_]
- ... We're thinking pretty low-level
- 07:37:00 [tidoust_]
- youenn: real-time vs. non real-time for settings?
- 07:37:08 [tidoust_]
- peter: Yes, we'd like this to work for both.
- 07:37:33 [NJ]
- NJ has joined #webcodecs
- 07:37:54 [tidoust]
- youenn: For real-time encoding, you're also thinking of cases where pipe is too slow.
- 07:38:10 [tidoust]
- ... 60fps per pipe can only support 50fps.
- 07:38:21 [tidoust]
- peter: You'd be able to detect that, but you'd have to adjust
- 07:38:41 [tidoust]
- paul: Because this is using Streams, you can take benefit of the backpressure mechanism.
- 07:39:08 [tidoust]
- ... Depending on what you're doing, you may want to drop or buffer.
- 07:39:15 [tidoust]
- youenn: The JS would implement that?
- 07:39:24 [tidoust]
- paul: Yes, the JS can have the signal here.
- 07:39:41 [tidoust]
- ... Not clear whether there are going to be common use cases built on that.
- 07:40:10 [tidoust]
- peter: The JS would be fully in control of the buffer that gets passed to the decoder.
- 07:40:20 [jeff]
- jeff has joined #webcodecs
- 07:40:32 [ChrisLi13]
- ChrisLi13 has joined #webcodecs
- 07:41:21 [tidoust]
- [discussion on execution on main thread and/or off the main thread]
- 07:41:39 [lizheming]
- lizheming has joined #webcodecs
- 07:41:59 [tidoust]
- youenn: usually media is main thread only.
- 07:42:11 [tidoust]
- SteveAnton: transform stream would be transferrable.
- 07:42:25 [ken_]
- ken_ has joined #webcodecs
- 07:42:36 [tidoust]
- peter: If the Stream that comes back out of the back is transferable, then that should work.
- 07:42:48 [cyril]
- cyril has joined #webcodecs
- 07:43:07 [cyril]
- rrsagent, pointer
- 07:43:07 [RRSAgent]
- See https://www.w3.org/2019/09/18-webcodecs-irc#T07-43-07
- 07:44:20 [tidoust]
- ?: [question on B-frames configuration. Middle-way implementation can support everything]
- 07:44:42 [tidoust]
- [pointing at github issue on timestamp]
- 07:45:03 [tidoust]
- peter: Example of decode for live streaming or RTC.
- 07:45:45 [tidoust]
- ... First thing to do is to convert stream that goes out of the decoder into a pipe.
- 07:45:57 [tidoust]
- ... [showing the pipeline]
- 07:47:08 [tidoust]
- Richard: The codec type, how do you differentiate? Capabilities?
- 07:47:21 [tidoust]
- peter: We're going to need some type of capability.
- 07:47:38 [tidoust]
- ... We don't want separate capabilities for this, the video stack, and so on.
- 07:47:54 [tidoust]
- ... We would a way to specify hardware/software decoding here, but not clear how to expose that here.
- 07:48:54 [tidoust]
- ... Going into a decoder, you just have a byte array, and maybe a timestamp.
- 07:49:47 [tidoust]
- markw: You could imagine feeding stuff that don't have timestamps
- 07:50:05 [tidoust]
- ... and get a sequence of frames.
- 07:50:24 [tidoust]
- peter: Right now, in the IDL it's a byte array with a timestamp.
- 07:50:48 [tidoust]
- ... What comes out of the decoder, originally was an opaque data, but we changed it recently.
- 07:51:40 [tidoust]
- ... You can render without looking at image data. Needed for funny hats and so on, but not for other scenarios.
- 07:51:57 [tidoust_]
- tidoust_ has joined #webcodecs
- 07:52:03 [tidoust_]
- SteveAnton: We don't really want to solve raw media processing in WebCodecs
- 07:52:53 [tidoust_]
- markf: In the common implementation where you have a hardware decoder, how do you model the semantics?
- 07:53:12 [tidoust_]
- peter: What the web app sees would be the same whether it's hardware or software
- 07:53:27 [tidoust_]
- cyril: Clarification about the output.
- 07:53:39 [tidoust_]
- ... Where would the packaging be done?
- 07:53:47 [tidoust_]
- SteveAnton: Done by the application.
- 07:54:38 [tidoust_]
- youenn: More general comment that it is exposing more stuff to the Web. Analysis in terms of security and privacy?
- 07:54:47 [tidoust_]
- SteveAnton: No section for now. Anything you're thinking about?
- 07:55:40 [tidoust_]
- youenn: You would expose settings for decoders/encoders. That's new capabilities exposed. Also exposing timing information, which is not easy to get now.
- 07:56:12 [tidoust_]
- JakeA: Raw processing not in scope. If I get a video with 100 frames, do I get 100 frames out?
- 07:56:38 [tidoust_]
- SteveAnton: There are a lot of use cases. You can render the video.
- 07:56:59 [tidoust_]
- Paul: You can draw to a canvas, and get an image data in the end.
- 07:57:08 [tidoust_]
- ... You can take it as a texture in WebGL.
- 07:59:56 [tidoust]
- tidoust has joined #webcodecs
- 07:59:58 [jianjunz]
- jianjunz has joined #webcodecs
- 08:00:06 [jeff_]
- jeff_ has joined #webcodecs
- 08:00:17 [tidoust]
- JakeA: I think you mean ImageBitmap which is the opaque one.
- 08:00:19 [tidoust]
- Paul: Maybe.
- 08:00:23 [tidoust]
- ... Allows "I'd like the frame to never leave the GPU if the decoding happens on the GPU", which is very common.
- 08:00:48 [takio_]
- takio_ has joined #webcodecs
- 08:01:28 [tidoust]
- ... This works for the playback case and you know where it plays back. The Web browser makes the decision as in the normal case. It's very important to have this level of indirection and not manipulate the frame as an image as if it were an image on the CPU.
- 08:01:48 [steveanton_]
- steveanton_ has joined #webcodecs
- 08:02:24 [tidoust]
- ... Either you decode in software, or it's already in hardware, and texture conversion will happen as usual.
- 08:02:45 [tidoust]
- ... Connecting to audio is going to need a number of steps.
- 08:02:46 [yos_]
- yos_ has joined #webcodecs
- 08:03:04 [tidoust]
- ... You might need to do asynchronous sample conversion.
- 08:03:56 [tidoust]
- ... [and other steps]
- 08:04:11 [tidoust]
- Richard: Can you do something similar with echo cancellation?
- 08:04:23 [tidoust]
- Paul: already done by the Web browser
- 08:05:20 [tidoust]
- alex: echo cancellation may be hard, [example of same output and work on Chrome to make things work]
- 08:05:58 [tidoust]
- jan-ivar: where does the initial encodedAudio, encodedVideo come from?
- 08:06:02 [tidoust]
- peter: From anywhere
- 08:06:29 [tidoust]
- ... Another example of encode/decode together
- 08:07:08 [tidoust]
- ... [going through example on slide]
- 08:07:27 [tidoust]
- ... One of the settings is bitsPerSecond.
- 08:07:55 [tidoust]
- ... Example of getting some input that is containerized to different audio/video.
- 08:08:37 [tidoust]
- SteveAnton: There are lots of settings for codecs.
- 08:08:45 [sangwhan]
- sangwhan has joined #webcodecs
- 08:09:15 [tidoust]
- peter: Compared to MediaRecorder. Cannot give you faster-than-realtime, and gives you less control
- 08:09:31 [tidoust]
- ... Compared to MSE, it's much more lower level.
- 08:09:49 [tidoust]
- ... and gives you complete control over buffers
- 08:10:29 [tidoust]
- ... Compared to WebRTC, again lower-level. Decouple encoding/decoding from transport.
- 08:11:02 [tidoust]
- ... Compared to WebAssembly, it gives access to hardware encoders/decoders.
- 08:11:22 [tidoust]
- Richard: Big power difference in particular.
- 08:11:51 [ChrisLilley]
- ChrisLilley has joined #webcodecs
- 08:12:33 [tidoust]
- peter: one of the questions is injecting codecs into existing APIs. These same pieces would allow to inject WASM codecs in that way.
- 08:12:47 [tidoust]
- Richard: What about image encoding/decoding?
- 08:13:12 [tidoust]
- peter: Currently not in scope. But then lots of new image formats are just video keyframes, so you could use this here.
- 08:13:30 [tidoust]
- ... Assuming there's an AV1 encoder/decoder, WebCodecs could be used.
- 08:13:50 [tidoust]
- ... People are interested in using GIF this way, but that's not designed for that.
- 08:14:26 [tidoust]
- Mike: The one piece is when you define the codec for reader/writer, it would be nice to associate some meeaning to that string.
- 08:14:54 [tidoust]
- SteveAnton: I see what you mean but there aren't standard names.
- 08:16:07 [tidoust]
- chcunningam: I saw H.264 streams in examples. In practice it's not that but more HEVC1 followed by profiles, etc. Have you considered this?
- 08:16:48 [tidoust]
- peter: Tomorrow we have some WICG time to discuss some issues.
- 08:17:48 [tidoust]
- youenn: People might want to start with decode. Maybe the decode path may be simpler in some cases. It might be worth experimenting this first and see whether this is working or not.
- 08:17:59 [tidoust]
- peter: That's an interesting question.
- 08:18:13 [tidoust]
- ... Live streaming stuff is just encode.
- 08:18:28 [tidoust]
- ... Configuration of a decoder is much simpler than encoder.
- 08:19:02 [tidoust]
- ... If you want more info, there's a proposal, an explainer, and a WebIDL text file that captures what we're thinking about.
- 08:19:16 [tidoust]
- ... Any final comment or question?
- 08:19:21 [tidoust]
- Richard: I think that is needed.
- 08:19:43 [tidoust]
- harald: Having this capability and the shape of the API defined would make a lot of other cases easier to address.
- 08:19:48 [tidoust]
- RRSAgent, draft minutes
- 08:19:48 [RRSAgent]
- I have made the request to generate https://www.w3.org/2019/09/18-webcodecs-minutes.html tidoust
- 08:20:49 [tidoust]
- i/peter: The spec for Streams has examples/scribe: tidoust, tidoust_
- 08:20:50 [tidoust]
- RRSAgent, draft minutes
- 08:20:50 [RRSAgent]
- I have made the request to generate https://www.w3.org/2019/09/18-webcodecs-minutes.html tidoust
- 08:20:58 [jianjunz]
- jianjunz has joined #webcodecs
- 08:21:47 [tidoust]
- RRSAgent, draft minutes v2
- 08:21:47 [RRSAgent]
- I have made the request to generate https://www.w3.org/2019/09/18-webcodecs-minutes.html tidoust
- 08:23:31 [horiuchi]
- horiuchi has joined #webcodecs
- 08:31:17 [jeff__]
- jeff__ has joined #webcodecs
- 08:31:24 [tidoust]
- tidoust has joined #webcodecs
- 08:34:40 [ericc]
- ericc has joined #webcodecs
- 08:38:03 [jeff_]
- jeff_ has joined #webcodecs
- 09:21:38 [hyojin]
- hyojin has left #webcodecs
- 09:22:15 [ChrisLi18]
- ChrisLi18 has joined #webcodecs
- 09:26:13 [idcc_]
- idcc_ has joined #webcodecs
- 09:29:06 [ChrisLilley]
- ChrisLilley has joined #webcodecs
- 09:34:16 [horiuchi]
- horiuchi has joined #webcodecs
- 09:43:01 [ChrisLilley]
- ChrisLilley has joined #webcodecs
- 11:55:32 [tidoust]
- tidoust has joined #webcodecs
- 12:13:05 [ChrisLilley]
- ChrisLilley has joined #webcodecs
- 12:13:43 [ChrisLi63]
- ChrisLi63 has joined #webcodecs
- 12:15:39 [ChrisLi32]
- ChrisLi32 has joined #webcodecs
- 12:22:03 [ChrisLilley]
- ChrisLilley has joined #webcodecs
- 12:31:03 [ChrisLi86]
- ChrisLi86 has joined #webcodecs
- 12:32:23 [ChrisLilley]
- ChrisLilley has joined #webcodecs
- 12:35:10 [ChrisLi59]
- ChrisLi59 has joined #webcodecs
- 16:34:40 [ChrisLilley]
- ChrisLilley has joined #webcodecs