User Tools

Site Tools


doc:appunti:linux:video:ffmpeg

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
doc:appunti:linux:video:ffmpeg [2023/04/18 12:51] – [ffmpeg: leggere la sequenza di VOB da un DVD] niccolodoc:appunti:linux:video:ffmpeg [2023/11/13 11:22] – [Final rendering (re-encoding)] niccolo
Line 262: Line 262:
 ./kenburst-1-make-images "$INPUT_FILE" "$KBURST_GEO" "$DURATION_S" \ ./kenburst-1-make-images "$INPUT_FILE" "$KBURST_GEO" "$DURATION_S" \
     | ./kenburst-2-make-video "$OUTPUT_MP4"     | ./kenburst-2-make-video "$OUTPUT_MP4"
-</code> 
- 
-====== Final rendering (re-encoding) ====== 
- 
-The video stream recorded by the Xiaomi Yi camera is **1920x1080 pixels** at a variable bitrate of **12.0 Mb/s**. Because we watch it on a simple TV set capable only of 1366x768 pixels, we we re-encode it with the following settings: 
- 
-^ Video codec     | MPEG-4 AVC (x264)  | 
-^ Video filter    | swresize, 1366x768, Bilinear  | 
-^ Basic x264      | Preset: **slow** (or less), Tuning: **film**, Profile: **High**, IDC Level: **Auto** | 
-^ Video encoding  | Average Bitrate (Two Pass), Average Bitrate 4096 kb/s (about 1.8 Gb per hour)  | 
-^ Audio codec     | <del>Lame MP3</del> Vorbis  | 
-^ Audio bitrate   | CBR 192 (or higher)  | 
- 
-We can use **Avidemux** to make the final rendering (re-encoding). For a **command line only** solution you can consider **ffmpeg** to perfomr the re-encoding and to make the merge (mux) all into a Matroska container. 
- 
-<code bash> 
-#!/bin/sh 
-TITLE="Balcani, maggio 2022" 
-ffmpeg \ 
-    -i "video-high-quality.mkv" \ 
-    -i 'audio-music.ogg' -i 'audio-live.ogg' \ 
-    -map '0:v:0' -map '1:a:0' -map '2:a:0' \ 
-    -metadata title="$TITLE" -metadata:s:v:0 title="$TITLE" \ 
-    -metadata:s:a:0 title="Accompagnamento musicale" \ 
-    -metadata:s:a:1 title="Audio in presa diretta" \ 
-    -filter:v "scale=1366x768" -aspect "16:9" \ 
-    -vcodec 'libx264' -pix_fmt 'yuvj420p' -preset 'veryslow' -tune 'film' -profile:v 'high' -level:v 5 \ 
-    -acodec copy \ 
-    "2022-05_balcani.mkv" 
 </code> </code>
  
doc/appunti/linux/video/ffmpeg.txt · Last modified: 2023/11/13 11:24 by niccolo