본문 바로가기
시놀로지ㆍNAS/시놀로지 스테이션

시놀로지 비디오스테이션 트랜스코딩 ffmpeg - 두번째

by #XTRM 2021. 4. 23.
반응형

시놀로지 비디오스테이션 트랜스코딩 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

 

 

반응형

댓글