Skip to content

Commit

Permalink
content/video-editing: Update a solution and untabify
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Feb 26, 2024
1 parent 7bacbe3 commit 5cc3c09
Showing 1 changed file with 42 additions and 38 deletions.
80 changes: 42 additions & 38 deletions content/video-editing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ These exercises will take you through the whole sequence.

.. code-block::
whisper --device cuda --output_format srt --initial_prompt="Welcome to CodeRefinery day four." --lang en --condition_on_previous_text False INPUT.mkv
whisper --device cuda --output_format srt --initial_prompt="Welcome to CodeRefinery day four." --lang en --condition_on_previous_text False INPUT.mkv
An initial prompt like this make Whisper more likely to output
full sentences, instead of a stream of words with no
Expand Down Expand Up @@ -124,14 +124,14 @@ These exercises will take you through the whole sequence.
# This is the output from one section. Your result should have two of these sections.
- output: part1.mkv
title: something
description: >-
some long
description of the
segment
editlist:
- start: 10:00 # start timestamp of the section, in *original* video
- end: 20:00 # end timestamp of the section, in the *original* video
title: something
description: >-
some long
description of the
segment
editlist:
- start: 10:00 # start timestamp of the section, in *original* video
- end: 20:00 # end timestamp of the section, in the *original* video
.. solution::

Expand All @@ -140,33 +140,33 @@ These exercises will take you through the whole sequence.

.. code-block:: yaml
- input: day1-obs.mkv
- input: day1-obs.mkv
- output: day1-intro.mkv
title: 1.2 Introduction
description: >-
General introduction to the workshop.
- output: day1-intro.mkv
title: 1.2 Introduction
description: >-
General introduction to the workshop.
https://scicomp.aalto.fi/training/kickstart/intro/
https://scicomp.aalto.fi/training/kickstart/intro/
editlist:
- start: 00:24:10
- end: 00:37:31
editlist:
- start: 00:24:10
- end: 00:37:31
- output: day1-from-data-storage-to-your-science.mkv
title: "1.3 From data storage to your science"
description: >-
Data is how most computational work starts, whether it is
externally collected, simulation code, or generated. And these
days, you can work on data even remotely, and these workflows
aren't obvious. We discuss how data storage choices lead to
computational workflows.
- output: day1-from-data-storage-to-your-science.mkv
title: "1.3 From data storage to your science"
description: >-
Data is how most computational work starts, whether it is
externally collected, simulation code, or generated. And these
days, you can work on data even remotely, and these workflows
aren't obvious. We discuss how data storage choices lead to
computational workflows.
https://hackmd.io/@AaltoSciComp/SciCompIntro
https://hackmd.io/@AaltoSciComp/SciCompIntro
editlist:
- start: 00:37:43
editlist:
- start: 00:37:43
- end: 00:50:05
Expand Down Expand Up @@ -206,7 +206,7 @@ These exercises will take you through the whole sequence.

.. code-block:: console
$ ffmpeg-editlist editlist.yaml .
$ ffmpeg-editlist editlist.yaml .
Just running like this is quick and works, but the stream may be
garbled in the first few seconds (because it's missing a key
Expand Down Expand Up @@ -246,13 +246,13 @@ These exercises will take you through the whole sequence.
.. solution::

* This course actually didn't have chapters for the first day
sessions, but you can `see chapters for day 2 here
<https://github.com/AaltoSciComp/video-editlists-asc/blob/master/kickstart-2023.yaml#L239-L262>`__,
for example.
sessions, but you can `see chapters for day 2 here
<https://github.com/AaltoSciComp/video-editlists-asc/blob/master/kickstart-2023.yaml#L239-L262>`__,
for example.
* `Example of the workshop description for this course
<https://github.com/AaltoSciComp/video-editlists-asc/blob/master/kickstart-2023.yaml#L1-L13>`__
<https://github.com/AaltoSciComp/video-editlists-asc/blob/master/kickstart-2023.yaml#L1-L13>`__
* Example info.txt file for the general introduction to the
course. The part after the ``-----`` is the workshop description.
course. The part after the ``-----`` is the workshop description.

.. code-block::
Expand All @@ -262,6 +262,10 @@ These exercises will take you through the whole sequence.
https://scicomp.aalto.fi/training/kickstart/intro/
00:00 Begin introduction <-- Invented for the exercise demo, not real
03:25 Ways to attend <-- Invented for the exercise demo, not real
07:12 What if you get lost <-- Invented for the exercise demo, not real
-----
This is part of the Aalto Scientific Computing "Getting
Expand Down Expand Up @@ -369,11 +373,11 @@ video.
- input: sample-video-to-edit.raw.mkv
- output: sample-video-to-edit.processed.mkv
description: >
description: >
editlist:
- start: 00:16
- 00:15: demonstration
- 00:20: discussion
- 00:15: demonstration
- 00:20: discussion
- stop: 00:25
.. code:: console
Expand Down

0 comments on commit 5cc3c09

Please sign in to comment.