시놀로지 비디오스테이션 트랜스코딩 ffmpeg - 두번째
for f in /volume4/SERVER_E/_TEMP_PLAY_E/MKV/*.mkv; do [[ -f "${f%.mkv}_MKV2600.mp4" ]] && { echo "skipping "$f" - "${f%.mkv}_MKV2600.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2600k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.mkv}_MKV2600.mp4"; done
for f in /volume4/SERVER_E/_TEMP_PLAY_E/MKV/*.mkv; do [[ -f "${f%.mkv}_MKV2000.mp4" ]] && { echo "skipping "$f" - "${f%.mkv}_MKV2000.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2000k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.mkv}_MKV2000.mp4"; done
for f in /volume4/SERVER_E/_TEMP_PLAY_E/MKV/*.avi; do [[ -f "${f%.avi}_AVI2200.mp4" ]] && { echo "skipping "$f" - "${f%.avi}_AVI2200.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2200k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.avi}_AVI2200.mp4"; done
for f in /volume4/SERVER_E/_TEMP_PLAY_E/*.mp4; do [[ -f "${f%.mp4}_converted.mp4" ]] && { echo "skipping "$f" - "${f%.mp4}_converted.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2400k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.mp4}_converted.mp4"; done
'시놀로지ㆍNAS > 시놀로지 스테이션' 카테고리의 다른 글
시놀로지 MP4 자동 인코딩 스크립트 (Synology MKV to MP4 auto encoding script) (0) | 2021.04.23 |
---|---|
동영상 연속 재생하기 (모바일 어플용) (0) | 2021.04.23 |
동영상 연속 재생하기 (PC 인터넷용) (0) | 2021.04.23 |
DS video 동영상 화질 높이기 (0) | 2021.04.23 |
DS video 썸네일 오류 해결방법 (0) | 2021.04.23 |
댓글