Last active
November 8, 2017 21:36
-
-
Save MaZderMind/8fa80eb24d8d60333ef4ba826be95745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ffmpeg -y -v info -i /video/intros/SM//1337.ts -analyzeduration 20000000 -ss 64.04 -t 657.36 -i /video/fuse//play/3OG/1337/uncut.ts -analyzeduration 20000000 -i /video/intros/SM/outro.ts -filter_complex '[0:v:0] [0:v:0] [0:a:0] [1:v:0] [1:v:1] [1:a:0] [2:v:0] [2:v:0] [2:a:0] concat=n=3:v=2:a=1 [vd0] [vd1] [audio0_mix]; [vd0] hqdn3d [v0]; [vd1] hqdn3d [v1]' -analyzeduration 20000000 -map '[v0]' -map '[v1]' -c:v libx264 -pix_fmt:v yuv420p -crf:v 23 -profile:v high -level:v 4.1 -map '[audio0_mix]' -c:a:0 libfdk_aac -b:a:0 192k -ar:a:0 48000 -aspect 16:9 -movflags faststart -f mp4 /video/tmp/SM//1337-hd.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ffmpeg -v verbose -y -analyzeduration 100000 \ | |
-thread_queue_size 512 -i tcp://localhost:11000?timeout=30000 \ | |
-thread_queue_size 512 -i tcp://localhost:13001?timeout=30000 \ | |
-aspect 16:9 \ | |
-map 0:v -c:v:0 mpeg2video -pix_fmt:v:0 yuv422p -qscale:v:0 2 -qmin:v:0 2 -qmax:v:0 7 -keyint_min 0 -bf:0 0 -g:0 0 -intra:0 -maxrate:0 90M \ | |
-map 1:v -c:v:1 mpeg2video -pix_fmt:v:1 yuv422p -qscale:v:1 2 -qmin:v:1 2 -qmax:v:1 7 -keyint_min 0 -bf:1 0 -g:1 0 -intra:1 -maxrate:1 90M \ | |
-c:a mp2 -b:a 192k -ac:a 1 -ar:a 48000 \ | |
-map 0:a -filter:a:0 pan=mono:c0=FL \ | |
-map 0:a -filter:a:1 pan=mono:c0=FR \ | |
-flags +global_header -flags +ilme+ildct \ | |
-f segment -segment_time 180 -segment_format mpegts /video/capture/SM-dual/3og-%t-%05d.ts | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ffmpeg -v verbose -y -analyzeduration 100000 \ | |
-thread_queue_size 512 -i tcp://localhost:11000?timeout=30000 \ | |
-thread_queue_size 512 -i tcp://localhost:13001?timeout=30000 \ | |
-aspect 16:9 \ | |
-map 0:v -c:v:0 mpeg2video -pix_fmt:v:0 yuv422p -qscale:v:0 2 -qmin:v:0 2 -qmax:v:0 7 -keyint_min:0 0 -bf:0 0 -g:0 0 -intra:0 -maxrate:0 90M \ | |
-map 1:v -c:v:1 mpeg2video -pix_fmt:v:1 yuv422p -qscale:v:1 2 -qmin:v:1 2 -qmax:v:1 7 -keyint_min:1 0 -bf:1 0 -g:1 5 -me_method dia -maxrate:1 90M \ | |
-c:a mp2 -b:a 192k -ac:a 1 -ar:a 48000 \ | |
-map 0:a -filter:a:0 pan=mono:c0=FL \ | |
-map 0:a -filter:a:1 pan=mono:c0=FR \ | |
-flags +global_header -flags +ilme+ildct \ | |
-f segment -segment_time 180 -segment_format mpegts /video/capture/SM-dual/3og-%t-%05d.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment