c3tracker:cutting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
c3tracker:cutting [2024/12/28 16:48] hexchenc3tracker:cutting [2025/03/29 16:05] (current) – fully translated to English, restructured/ rewritten jtbx
Line 1: Line 1:
-FIXME **Diese Seite wurde noch nicht vollständig übersetzt. Bitte helfen Sie bei der Übersetzung.**\\ //(diesen Absatz entfernen, wenn die Übersetzung abgeschlossen wurde)//+= Tracker Cutting Howto
  
-== 38c3 +When we talk about "cutting a video", we mean a highly automated process how the intro and outro get added to a recorded lecture using the [[c3tracker:start|]]. 
-read thishttps://pad.c3voc.de/BSFjPsxPQNiTiopjyhGdqA+Cutting in our case bascially only consists of setting the actual start and end of the lecture. 
 +Everything else is an automated process.
  
-= Cutting Howto+This page is meant to describe the steps involved when everything else is already prepared. 
 +See [[projects:intro-outro-generator|]] for a way to generate intros based on a talk schedule and [[c3tracker:setup|]] for the steps to set up a new tracker project (which is usually done by the "VOC event lead/ resposible person").
  
-Preconditions: 
- * Kdenlive (17.x or 18.x) or Shotcut and VLC was installed on own machine 
- * Access to VOC VLAN or ethernet network 
-   * via DHCP or 
-   * fixed IP form [[intern:ip]] configured as secondary ethernet interface 
- * Account on http://tracker.c3voc.de (c.f. [[:c3tracker]]) 
  
 +== Cutting with FUSE
  
-<bootnote>//storage.lan.c3voc.de// is to be read as meta variable for the machine, the FUSE Mounts are created by the mount-for-cut worker. Within the [[:c3tracker#decentralised_aka_no-storage|decentral setup]] this role is often filled by //encoderX.lan.c3voc.de// or //minionX.lan.c3voc.de//</bootnote>+There are two main ways of cutting video: Using the KDEnlive or Shotcut open source video editors or by manually writing frame numbers to obtained from a video player like mpv the inand outframe files.
  
 +General preconditions:
 +  * Access to VOC VLAN or ethernet network
 +    * via DHCP or
 +    * fixed IP configured as secondary ethernet interface
 +  * Account on https://tracker.c3voc.de
 +  * Have VLC installed
 +  * On Linux: Install ''cifs-utils'' (or similar) to mount the SMB share
 +  * On Linux: Install KDEnlive (versino 17.x or 18.x) or Shotcut (version 22.12.21 is known to work)
 +  * On Windows/ macOS: Install Shotcut as described at [[https://shotcut.org/download/|their website]] (Version 22.12.21 is known to work)
  
-== Cutting with FUSE and video editor+=== General Workflow
  
-Preperation: +<bootnote>The following commands will use //storage.lan.c3voc.de// as a placeholder for the machine with the FUSE mounts. Small events may use //encoderX.lan.c3voc.de// or //minionX.lan.c3voc.de// as storage share.</bootnote
-  * Linux: + 
-      * <code>apt-get install cifs-utils</code+First of allyou need to mount the storage device's SMB file share to access the files: 
-      * Schnittprogramm installieren: Entweder KDEnlive oder Shotcut (Version 22.12.21 is known to work)  +  Linux: <code>mkdir -p /video
-      * Mounten der Sharesmanche read-write!  +
-      * <code>mkdir -p /video+
 mount -t cifs -o uid=$USER,password=,ro "//storage.lan.c3voc.de/video" /video mount -t cifs -o uid=$USER,password=,ro "//storage.lan.c3voc.de/video" /video
 mount -t cifs -o uid=$USER,password=,rw "//storage.lan.c3voc.de/tmp" /video/tmp mount -t cifs -o uid=$USER,password=,rw "//storage.lan.c3voc.de/tmp" /video/tmp
 mount -t cifs -o uid=$USER,password=,rw "//storage.lan.c3voc.de/fuse" /video/fuse mount -t cifs -o uid=$USER,password=,rw "//storage.lan.c3voc.de/fuse" /video/fuse
 </code> </code>
-  * macOS: +  * macOS: Open Finder, click "Connect to Server" (cmd+K) in the "Go To" menu and connect to [[smb://voc@storage.lan.c3voc.de/fuse]] 
-     * Shotcut von [[https://shotcut.org/download/|Webseite]] (Version 22.12.21 is known to work) herunterladen und installieren  +  * Windows: Connect to the <nowiki>\\storage.lan.c3voc.de/video/</nowiki> network drive
-     Finder öffnen, "Connect to Server" (cmd+K) [[smb://voc@storage.lan.c3voc.de/fuse]] +
-  * Windows:  +
-     * Shotcut von Webseite herunterladen und installieren +
-     * per GUI mit Netzlaufwerk <nowiki>\\storage.lan.c3voc.de/video/</nowiki> verbinden +
  
-per Lecture: +If you can see files in ''<nowiki>fuse/<EVENT>/<ROOM>/<Talk-ID></nowiki>'', you're ready to go.
-    * Im Tracker Übersicht (Filter "Cutting") zu schneidenden Vortrag suchen +
-    * auf cut Button drücken +
-    * 4-stellige Fahrplan-ID merken +
-    * Ordner ''/video/fuse/<EVENT>/<RAUM>/<Fahrplan-ID>/'' per Nautilus/Finder/Explorer öffnen +
-    * ''uncut.ts'' mit VLC öffnen und schauen ob der Vortrag komplett enthalten ist. +
-      * **ACHTUNG** bei Events mit Übersetzerton: die Schnittprogramme spielen nur die erste Tonspur! Zum Prüfen der Sprachbelegung am Besten VLC verwendender Hotkey für die Audio-Umschaltung ist ''b'' +
-      * Sprache merken +
-    * ''project.kdenlive'' bzw. ''project_shotcut.mlt'' mit Schnittprogramm öffnen +
-      * Anfang und Ende vom Vortrag suchen und festlegen +
-        * Details siehe unten +
-    * Prüfen, ob A/V sync ist +
-      * Delay-Wert aus mpv oder VLC muss mit -1 multipliziert werden +
-    * im Tracker die real gehörte Sprache aus Dropdown auswählen und "Finish" klicken+
  
 +To cut a lecture:
 +  * Open https://tracker.c3voc.de and open an event/ project
 +  * Click "recording task to cut" on the right to get a list of open cutting tickets
 +  * Press the "cut" button and remember the talk ID
 +  * Open ''<nowiki>/video/fuse/<EVENT>/<ROOM>/<Talk-ID>/</nowiki>'' in some file explorer
 +  * Open the ''uncut.ts'' with VLC:
 +    * Check if the start and end are present in the file. If not, go back to the tracker and click "extend timeline"
 +    * If translations are provided at the event: Check which tracks contain audio and which languages are spoken
 +  * Start cutting with KDEnlive, Shotcut or mpv (see below)
 +  * Check if audio and video are in sync
 +  * Go back to the tracker to finish cutting:
 +    * Select language(s) from the drop-down using the right order (audio track 1, 2, 3)
 +    * If there was A/V-delay, enable the corresponding checkbox and set the number (VLC and mpv values need to be inverted)
 +    * click "finish"
  
-=== Kdenlive+=== Notes on Using KDEnlive
  
-Anfang und Ende vom Vortrag suchen +Open the ''project.kdenlive'' project file to start cutting: 
- mit der Maus auf den Rand des "Balkens" (also, des gesamten Clips) gehenes sollte ein grüner Pfeil auftauchen - mit diesem Pfeil den Balken auf die gewünschte Länge zusammenschieben +  Find start and end of the lecture and resize the bar by dragging the start and end with your mouse 
-      es gibt ein Snap am aktuellen Marker +    * When hovering over the endsa green arrow should appear. Use this to change the length. It may snap at your current playback position. 
-      NICHT den Vortrag auf der Timeline verschieben!+    Be careful to not move the video in the timeline 
 +  Save the project file
  
-Ist die Verbindung zum Storage schlechtsollten auf jeden Fall die Video- und Audiothumbnails deaktiviert werden. Die Buttons dafür befinden sich am unteren Rand des Fensters auf der rechten Seite.+If you have a poor connection to the storagedeactivate the video and audio thumbnails using the buttons on the right side of the lower window border.
  
-=== Shotcut+=== Notes on Using Shotcut
  
-Anfang und Ende vom Vortrag suchen +Open the ''project_shotcut.mlt'' project file to start cutting: 
-  * in und out im Clip-Monitor setzen, z.B. durch drücken von ''i'' und ''o'' +  * Skim through the recording (use ''<space>'' for play/pause) 
-  * Wenn alles passt die Projektdatei abspeichern+    * Set start (in-point) with shortcut ''i'' 
 +    * Set end (out-point) with shortcut ''o'' 
 +  * Save the project file
  
-Tastenkürzel Shotcut +More shortcuts: 
-    = Startpunkt (in) setzen +  * ''i'':                          Set start/ in-point 
-    = Endpunkt (out) setzen +  * ''o'':                          Set end/ out-point 
-    <space> play / pause +  * ''<space>'':                    play/ pause 
-    <bild-up> <bild-down> +/- 1 Sekunde springen (mit <Ctrl> bzw <ALT> 2 bzw. Sekunden+  * ''<page-up> <page-down>'':      Jump +/- 1 second (combine <Ctrl> or <ALT> to jump or seconds
-    <ALT><Pfeil-linksSpringe zum Anfang (Intro) +  * ''<ALT>+<arrow-left>'':         Jump to start 
-    <ALT><Pfeil-rechtsSpringe zum Ende (Outro) +  * ''<ALT>+<arrow-right>'':        Jump to end 
-    <Pfeil-linksSpringe 1 Frame zurück +  * ''<arrow-left> <arrow-right>'': Jump frame back/ forwards 
-    <Pfeil-rechtsSpringe Frame vorwärts +  * ''j / l'':                      Fast backforwards (gets fasterif pressed multiple times)
-    j / l  spule zurück vorwärts (je häufiger gedrücktdesto schneller)+
  
-Problem bei Shotcut-Installation+Possible issues at installation
-Fehlermeldung "This application failed to start because it could not find or load the Qt platform plugin "xcb" in [...]" lässt sich per <code>apt-get install libQt5Gui</code> beheben. Siehe z.B. auch http://stackoverflow.com/questions/17106315/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without+  * Error "This application failed to start because it could not find or load the Qt platform plugin "xcb" in [...]"
 +    * <code>apt-get install libQt5Gui</code> (see http://stackoverflow.com/questions/17106315/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without)
  
-=== mpv +=== Notes on Using mpv
- +
-Mit der folgenden config in z.B. ~/.config/mpv/mpv.conf zeigt mpv das aktuell angezeigte Frame während der Wiedergabe an:+
  
 +If you like the command line, you can also configure mpv to show frame numbers by adding these settings in ''~/.config/mpv/mpv.conf'':
 <code> <code>
 osd-level=3 osd-level=3
Line 90: Line 93:
 </code> </code>
  
-Zum Schneiden per mpv müssen das Anfangs- und Endframe des Talks in der ''uncut.ts'' in je die ''inframe'' und ''outframe'' Dateien geschrieben werden. +Open the ''uncut.ts'' in mpv to start cutting: 
-Am besten geht dies schlicht per ''echo <FRAME> > /video/fuse/<EVENT>/<RAUM>/<Fahrplan-ID>/inframe'', da "richtige" Texteditoren gerne +  * Skim through the video to find the start 
-versuchen, temporäre Lock-Dateien anzulegen (was auf dem FUSE-mount nicht geht) und daher nicht richtig funktionieren. +    * Write the frame number to the ''inframe'' file using ''echo <FRAME> > /video/fuse/<EVENT>/<ROOM>/<Talk-ID>/inframe'' 
- +  * Do the same for the end using the ''outframe'' file
-Mehr Tipps zu mpv: https://mpv.io/manual/master/#keyboard-control +
- +
- +
-== Bekannte Probleme und ihre Lösungen +
- +
-Shotcut oder VLC zeigen beim Abspielen des uncut.ts keine Zeit an: +
- Das Recording wurde zu früh gestoppt, oder neu gestartet wodurch es Probleme mit den Timestamps im TS gibt. Siehe [[c3tracker:repair#defekte_timestamps|c3tracker:repair#defekte_timestamps]]. +
- +
-macOS +
-Problem mit OS X 10.11 El Capitan: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821730 +
-   * wenn man mit `smbpasswd -a voc` einen user anlegt kann man sich als user voc anstatt als guest einloggen. +
- +
-Im Videoplayer lässt sich nicht springen / springen ist kaputt +
-* wahrscheinlich sind die Timestamps im ''uncut.ts'' fehlerhaft, siehe [[c3tracker:repair]].+
  
-== Remote Cutting / Schneiden mit Proxy-File+Using "echo" works best since some text editors like to create temporary lock files which isn't allowed on the FUSE file system.
  
-Schneiden von Remote: +Additional keyboard shortcutsSee https://mpv.io/manual/master/#keyboard-control
-  - im Tracker auf cut klicken um das Ticket zu reservieren +
-  - ein low-res proxy file rendern[[::ffmpeg#webcut_lores_mp4]] (Quellfile ist ''/opt/crs/fuse/…/uncut.ts''+
-  - das project file von shotcut oder kdenlive auf den lokalen PC kopieren und mit dem Texteditor das uncut.ts durch das erzeugte proxy file ersetzen, dabei den absoluten Pfad verwenden +
-  - Projekt öffnen und wie immer den Anfang und Ende beschneiden. +
-  - dann das project file auf den Encoder ins eigene Homedir laden und das project file im fuse mount ersetzen. Am besten mit ''cat meinfile.mlt >/opt/crs/fuse/…/project_shotcut.mlt'' +
-  - finished cut klicken. +
-  alles geht weiter wie bisher+
  
  
 +== Known Issues and Solutions
  
 +  * Shotcut or VLC don't show a time during playback:
 +    * The ''uncut.ts'' has broken timestamps because the recording was stopped to early or started to late. See [[c3tracker:repair#defekte_timestamps]].
 +  * Skimming though the video leads to jumps or some parts of the video can't be jumped to:
 +    * The ''uncut.ts'' has broken timestamps because the recording was stopped to early or started to late. See [[c3tracker:repair#defekte_timestamps]].
 +  * SMB connect fails on OS X 10.11 El Capitan: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821730
 +    * Add an SMB password to the ''voc'' user with ''smbpasswd -a voc'' to that one can be used instead of the guest user
  
-== See also  
  
-* [[events:cccamp15:pp]] +== Remote Cutting using a Proxy File
-* [[:cutter-bootimage]]+
  
 +The ''uncut.ts'' can get quite large as we're still recording using the MPEG2 codec.
 +If you need to cut via the VPN, it may be useful to generate smaller low-resolution "proxy" files and cut based on that:
 +  * press "cut" in the tracker to assign the ticket to yourself
 +  * create a proxy file from ''/video/fuse/.../uncut.ts'': [[::ffmpeg#webcut_lores_mp4]]
 +  * copy the KDEnlive or Shotcut project file to your local file system and replace the video URL
 +  * open the project and cut
 +  * upload the project file to the FUSE file system, e.g. by:
 +    * loading the file to your home directory on the storage server/ encoder
 +    * ''cat meinfile.mlt > /video/fuse/.../project_shotcut.mlt'' (or similar for KDEnlive)
 +  * click "finish" in the tracker
  
-  
  • c3tracker/cutting.1735400906.txt.gz
  • Last modified: 2024/12/28 16:48
  • by hexchen