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 09:27] – niccolo | doc:appunti:linux:video:ffmpeg_stack_horizontally [2021/10/28 09: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 | ||
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.txt · Last modified: 2021/10/28 09:43 by niccolo