FeilongTang commited on
Commit
616ab57
Β·
1 Parent(s): 5a9b121

Clarify fixed GOP canvas count

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1584,7 +1584,6 @@ with gr.Blocks(**_BLOCK_KW) as demo:
1584
  gop = gr.Radio(
1585
  [
1586
  ("GOP = 4 β€” fixed 4-frame groups", "4"),
1587
- ("GOP = 5 β€” fixed 5-frame groups", "5"),
1588
  ("GOP = 8 β€” fixed 8-frame groups", "8"),
1589
  ("GOP = 16 β€” fixed 16-frame groups", "16"),
1590
  ("Codec-stream: adaptive groups by saliency energy", "dynamic"),
@@ -1595,8 +1594,10 @@ with gr.Blocks(**_BLOCK_KW) as demo:
1595
  "produces exactly one GOP canvas: the group's first "
1596
  "frame stays whole as the I-frame, and each later "
1597
  "frame gets its own P section below it. So GOP=4 "
1598
- "becomes I P P P, GOP=5 becomes I P P P P. With 32 "
1599
- "sampled frames and GOP=8, this yields 4 canvases. "
 
 
1600
  "Codec-stream mode adaptively groups by saliency "
1601
  "energy, targeting roughly 8-64 sampled frames per group.",
1602
  )
@@ -1674,7 +1675,8 @@ with gr.Blocks(**_BLOCK_KW) as demo:
1674
  "<b>I/P structure</b>: the group's first frame is "
1675
  "the <b>I-frame</b> kept whole on top, and each "
1676
  "later frame gets its own packed <b>P-frame</b> "
1677
- "section below in time order.</small>"
 
1678
  )
1679
  canvas_out = gr.Gallery(
1680
  label="", show_label=False,
 
1584
  gop = gr.Radio(
1585
  [
1586
  ("GOP = 4 β€” fixed 4-frame groups", "4"),
 
1587
  ("GOP = 8 β€” fixed 8-frame groups", "8"),
1588
  ("GOP = 16 β€” fixed 16-frame groups", "16"),
1589
  ("Codec-stream: adaptive groups by saliency energy", "dynamic"),
 
1594
  "produces exactly one GOP canvas: the group's first "
1595
  "frame stays whole as the I-frame, and each later "
1596
  "frame gets its own P section below it. So GOP=4 "
1597
+ "means each group is I P P P. For fixed GOP=N, the "
1598
+ "number of packed canvases is ceil(sampled_frames / N). "
1599
+ "Example: 32 sampled frames with GOP=4 gives 8 "
1600
+ "canvases; 32 sampled frames with GOP=8 gives 4. "
1601
  "Codec-stream mode adaptively groups by saliency "
1602
  "energy, targeting roughly 8-64 sampled frames per group.",
1603
  )
 
1675
  "<b>I/P structure</b>: the group's first frame is "
1676
  "the <b>I-frame</b> kept whole on top, and each "
1677
  "later frame gets its own packed <b>P-frame</b> "
1678
+ "section below in time order. Fixed GOP=N means "
1679
+ "<b>one canvas per N sampled frames</b>.</small>"
1680
  )
1681
  canvas_out = gr.Gallery(
1682
  label="", show_label=False,