<div dir="ltr">Hi all,<div><br></div><div>summary: I have a pipeline that writes any video (with audio) to webm format (in which every frame is a keyframe), I want to know the byteoffsets of the (key-)frames of the written file. </div><div><br></div><div>First of all, thanks for the awesome Rust support of GStreamer. I'm quite new to Rust, but it feels very natural to convert a console-command to the Rust equivalent!</div><div>I have the following (simplified) pipeline:</div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"JetBrains Mono",monospace"><span style="color:rgb(98,151,85);font-style:italic">gst-launch-1.0 webmmux name=mux ! filesink location="output.webm" filesrc location="input.mp4" ! decodebin name=demux \<br></span><span style="color:rgb(98,151,85);font-style:italic">demux. ! videoconvert ! videoscale ! videorate ! vp9enc !  mux.video_0 \<br></span><span style="color:rgb(98,151,85);font-style:italic">demux. ! audioconvert ! audioresample ! opusenc ! mux.audio_0</span></pre></div><div><br></div><div>It converts an mp4 file to a webm file (I started with this ffmpeg command: 'ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -g 1 -b:v 0 -b:a 128k -c:a libopus output.webm'). This works great. In my code, I also set the <span style="color:rgb(106,135,89);font-family:"JetBrains Mono",monospace;background-color:rgb(43,43,43)">keyframe-max-dist</span> to 1, which means that every frame is a keyframe (the '-g 1' argument in the ffmpeg command). Now, I'd like to get the byte offsets of the key-frames, so I can directly load the segments from disk. While I can get those offsets using <a href="https://github.com/acolwell/mse-tools">https://github.com/acolwell/mse-tools</a> , I'd like to get them directly while converting an input video to its webm version with only keyframes.</div><div><br></div><div>Thank you in advance! Let me know if something is unclear.</div><div><br></div><div>Sincerely,</div><div>Floris Weers</div></div>