Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
systemverwaltung:user_info:howto:videoedit [2015/04/17 16:43]
admin [xmodulo]
systemverwaltung:user_info:howto:videoedit [2021/12/02 11:27] (aktuell)
Zeile 1: Zeile 1:
 ====== Video Editing ====== ====== Video Editing ======
  
 +First you should install some video related packages:
 +  apt-get install libav-tools vlc 
 +  
 +optional:
 +  apt-get install mediainfo
 ===== Convert ===== ===== Convert =====
  
-Convert MTS files with AVCHD to MP4 Format+Some Cameras divide the recording in several pieces. 
 +Then you first should concatenate with  
 +''cat FILE1.MTS FILE2.MTS FILEx.MTS > OUTPUT.MTS'' 
 +Convert MTS files with AVCHD video format and ac3 sound format  
 +to MP4 and aac format.
  
-==== Handbrake ====+<code bash> 
 +#!/bin/bash 
 +# put here original size of movie: 
 +SIZE=1920x1080 
 +avconv-copy() { 
 +   avconv -i ${1}.MTS -c:a copy -c:v copy ${1}.mp4 
 +
 +case "$1" in 
 +(avconv) 
 +   avconv-copy $2 
 +   ;; 
 +(avconv-resize) 
 +   avconv -i ${2}.mp4 -s $SIZE -strict experimental ${2}_$SIZE.mp4 
 +   ;; 
 +(avconv-full) 
 +   avconv-copy $2 
 +   avconv -i ${2}.mp4 -s $SIZE -strict experimental ${2}_$SIZE.mp4 
 +   ;; 
 +(*) 
 +   echo "Usage: $0 avconv|avconv-resize|avconv-full <file> # ohne Endung .MTS angeben " 
 +   ;; 
 +esac 
 +</code> 
 +====== Handbrake ======
  
 Tool in ubuntu packages from [[https://handbrake.fr/]] Tool in ubuntu packages from [[https://handbrake.fr/]]
 +Intermediate format on Linux is MKV because this is the most free video package
  
-==== xmodulo ====+====== xmodulo ======
  
 .... ....
  
-==== CLI Tools: avconv, mp4box, ffmpeg ===+====== CLI Tools: avconv, mp4box, ffmpeg ======
- +
-=== avconv ===+
  
 +===== avconv =====
  
 <code bash> <code bash>
Zeile 32: Zeile 64:
  winff - graphical video and audio batch converter using ffmpeg or avconv  winff - graphical video and audio batch converter using ffmpeg or avconv
  
-=== mp4box ===+===== mp4box =====
  
  apt-get install gpac  apt-get install gpac
Zeile 47: Zeile 79:
 </code> </code>
  
-=== ffmpeg ===+===== ffmpeg ===== 
 + 
 +//obsolete// use avconv instead 
 + 
 +This package is very common but discontinued.
  
 <code bash> <code bash>
Zeile 76: Zeile 112:
 http://stackoverflow.com/questions/24720063/how-can-i-convert-mts-file-avchd-to-mp4-by-ffmpeg-without-re-encoding-h264-v http://stackoverflow.com/questions/24720063/how-can-i-convert-mts-file-avchd-to-mp4-by-ffmpeg-without-re-encoding-h264-v
  
-=== mencoder ===+===== mencoder =====
  
 Question: How to convert AVCHD (MTS/M2TS) to MP4 __losslessly__. Question: How to convert AVCHD (MTS/M2TS) to MP4 __losslessly__.
  
 I'll start with the end: I'll start with the end:
 +
 <code bash> <code bash>
 mencoder infile.mts -demuxer lavf -oac copy -ovc copy -of lavf=mp4 -o outfile.mp4 mencoder infile.mts -demuxer lavf -oac copy -ovc copy -of lavf=mp4 -o outfile.mp4
 </code> </code>
 +
 and now to explain myself: and now to explain myself:
  
Zeile 196: Zeile 234:
     Stream size                      : 1.71 MiB (3%)     Stream size                      : 1.71 MiB (3%)
 </code> </code>
 +
 Note that the final video will still be interlaced. __Removing the interlacing requires re-encoding.__ Note that the final video will still be interlaced. __Removing the interlacing requires re-encoding.__
 (This was tested on 10.04 with the VDPAU team's cutting-edge-multimedia PPA installed.) (This was tested on 10.04 with the VDPAU team's cutting-edge-multimedia PPA installed.)
Zeile 325: Zeile 364:
 >> Re: How to convert AVCHD (MTS/M2TS) to MP4 losslessly.>Y >> Re: How to convert AVCHD (MTS/M2TS) to MP4 losslessly.>Y
 >> Unknown encoder 'libmp3lame' >> Unknown encoder 'libmp3lame'
->> Looks like your copy of FFmpeg has not been compiled for mp3 encoding, have a look here for the fix:+>> Looks like your copy of FFmpeg has not been compiled for mp3 encoding,  
 +>> have a look here for the fix:
 >> HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoders in FFmpeg >> HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoders in FFmpeg
 >> http://ubuntuforums.org/showthread.php?t=1117283 >> http://ubuntuforums.org/showthread.php?t=1117283
  

QR-Code
QR-Code systemverwaltung:user_info:howto:videoedit (erstellt für aktuelle Seite)