Advertisement
gyu_

Untitled

Mar 18th, 2023
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.58 KB | Movies | 0 0
  1.  
  2. Muxing commands of Drive to Barley Lake video:
  3.  
  4. - The output from avidemux to speed up to 4*:
  5. $ ffmpeg -i 2023_0311_Barley_Lake_0.mp4 -filter_complex '[0:v]setpts=0.25*PTS[v];[0:a]atempo=4[a]' -map '[v]' -map '[a]' 2023_0311_Barley_Lake_0s4.mp4
  6. - This could've been done in the same step, but I did it separately, since I'm fairly new to ffmpeg cli: Copy the mono channel to the front left and front right, and upscale to 48khz:
  7. $ ffmpeg -i 2023_0311_Barley_Lake_0s4.mp4 -ac 2 -ar 48000 2023_0311_Barley_Lake_0s4ar.mp4
  8. - Mixing the soundtrack audio channel with the original environmental noise:
  9. $ ffmpeg -i 2023_0311_Barley_Lake_0s4ar.mp4 -i apl00.webm -c:v copy -map 0:v:0 -filter_complex "[0:a][1:a]amerge=inputs=2,pan=stereo|c0<c0+c2|c1<c1+c3[a]" -map "[a]" 2023_0311_Barley_Lake_0_final.mp4
  10.  
  11. Muxing commands of Drive home from Barley Lake video:
  12. - The output from avidemux to speed up to 4*:
  13. $ ffmpeg -i 2023_0311_Barley_Lake_1.mp4 -filter_complex '[0:v]setpts=0.25*PTS[v];[0:a]atempo=4[a]' -map '[v]' -map '[a]' 2023_0311_Barley_Lake_1s4.mp4
  14. - This could've been done in the same step, but I did it separately, since I'm fairly new to ffmpeg cli: Copy the mono channel to the front left and front right, and upscale to 48khz:
  15. $ ffmpeg -i 2023_0311_Barley_Lake_1s4.mp4 -ac 2 -ar 48000 2023_0311_Barley_Lake_1s4ar.mp4
  16. - Mixing the soundtrack audio channel with the original environmental noise:
  17. $ ffmpeg -i 2023_0311_Barley_Lake_1s4ar.mp4 -i apl01.webm -c:v copy -map 0:v:0 -filter_complex "[0:a][1:a]amerge=inputs=2,pan=stereo|c0<c0+c2|c1<c1+c3[a]" -map "[a]" 2023_0311_Barley_Lake_1_final.mp4
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement