split - Find bytes range of webm video for specified segment -


i have video in webm format (like video.webm duration 60 seconds)
want specified segment of video (i.e split video) http header range (range: 100-200).
in other word :
want section of video (e.g. second 4 12) don't want use converter ffmpeg. want send http request server & specified range of webm file.

can use method (http range header)?

thanks

since source non-live should have cues block. think 1 way fetch start of file metaseek information point cues box.

parsing cues give cuetime, cuetrack, cueclusterposition, cueblocknumber etc. can use information find clusters need.

take @ file mkvinfo in verbose level 3 see how it's organized (mkvinfo -v -v -v input.webm).

example output:

+ cues @ 3441 | + cue point @ 3447 |  + cue time: 0.000s @ 3449 |  + cue track positions @ 3452 |   + cue track: 1 @ 3454 |   + cue cluster position: 3911 @ 3457 | + cue point @ 3461 |  + cue time: 0.600s @ 3463 |  + cue track positions @ 3467 |   + cue track: 1 @ 3469 |   + cue cluster position: 3911 @ 3472 |   + cue block number: 42 @ 3476 | + cue point @ 3480 |  + cue time: 3.520s @ 3482 |  + cue track positions @ 3486 |   + cue track: 1 @ 3488 |   + cue cluster position: 3911 @ 3491 |   + cue block number: 241 @ 3495 

you can find matroska specifications here. webm subset, see specs here.

update: found an example on how use http range request download cluster here. uses media source extension tools dump webm info in json.


Comments

Popular posts from this blog

c# - SharpDX Toolkit models rendering inside out -

c# - ajax - How to receive data both html and json from server? -