doc:appunti:linux:video:ffmpeg_stack_horizontally
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:video:ffmpeg_stack_horizontally [2021/10/28 11:26] – niccolo | doc:appunti:linux:video:ffmpeg_stack_horizontally [2021/10/28 11:43] (current) – niccolo | ||
---|---|---|---|
Line 16: | Line 16: | ||
The script can take into account that the videos may be **out of sync**: it is possible to pass **two timestamps** referring at the same instant captured into both videos. The script will **shift the videos presentation time** each-other, so that both will be synced. | The script can take into account that the videos may be **out of sync**: it is possible to pass **two timestamps** referring at the same instant captured into both videos. The script will **shift the videos presentation time** each-other, so that both will be synced. | ||
- | < | + | The script has some constraints. It requires the **Bash shell**, because it uses the **%%((expression))%%** to do arithmetic evaluation. The script requires also the **Python** interpreter, |
- | /bin/bash | + | |
+ | < | ||
+ | #!/bin/bash | ||
# Take the central part of two videos and stack them horizontally. | # Take the central part of two videos and stack them horizontally. | ||
Line 49: | Line 51: | ||
OUTPUT=" | OUTPUT=" | ||
- | if [ -z " | + | if [ -z " |
- | -z " | + | -z " |
- | -z " | + | -z " |
- | -z " | + | |
- | -z " | + | |
- | -z " | + | |
-z " | -z " | ||
echo | echo |
doc/appunti/linux/video/ffmpeg_stack_horizontally.1635413187.txt.gz · Last modified: 2021/10/28 11:26 by niccolo