찾기
내용으로 건너뛰기
추적
•
misuse_lacticarehc4
•
misuse_cupping
•
퀀티페론
•
misuse_celestoneg31
문서의 이전 판을 선택했습니다!
저장하면 이 자료로 새 판을 만듭니다.
미디어 파일
{{tag>libav-tools libavcodec avconv ffmpeg 우분투 리눅스 비디오 변환 mp4 인코딩}} ======Libav-tools====== [[tech:linux|리눅스]]에서 명령어방식으로 동영상을 변환하기 위한 도구이다. {{https://libav.org/static/img/libav-logo-text.png}} https://libav.org/ {{INLINETOC}} Libav는 변환, 조작 및 멀티미디어 형식과 프로토콜의 넓은 범위를 스트리밍하는 크로스 플랫폼 툴과 라이브러리를 제공한다. Libav는 구성 옵션의 선택에 따라 LGPL 또는 GPL 하에서 허가 된 무료 소프트웨어이다. =====설치===== sudo apt-get install libav-tools (설치) h.264로 encoding하기 위해서는 -codec:v libx264를 사용해야 하는데 기본 패키지에는 없고 다른 패키지로 대치해야 한다. 아마도 특허 문제를 피하기 위해서라고 생각한다. 해결 방법은 간단하다. sudo apt-get install libavcodec-extra-53 (추가코덱 설치) 혹시 음성 aac 코덱이 없다고 나오면 설치한다. sudo apt-get install libvo-aacenc-dev 이것은 개발자 버전이므로 ''-strict experimental'' 옵션이 추가로 필요하다. =====정보===== avprobe Game.of.Thrones.S06E01.720p.HDTV.x264-SVA.mp4 =====변환===== ====한개 변환==== avconv -i '두개의 느낌.avi' -c:v libx264 -c:a aac -strict experimental '두개의 느낌.mp4' ==== 다중변환==== <file bash wmv2mp4> # WMV -> MP4 # 비트레이트는 2M # 소리는 aac for f in *.wmv; do avconv -i "$f" -c:v libx264 -c:a aac \ -b:v 2M -strict experimental "${f%.wmv}.mp4"; done </file> rename 's/ /_/g' *;for f in *.wmv; do avconv -i "$f" -c:v libx264 -c:a aac -b:v 2000k -strict experimental "${f%}.mp4"; done (다중 변환.. *.wmv -> *.mp4) rename 's/ /_/g' *;for f in *.avi; do avconv -i "$f" -c:v libx264 -c:a aac -b:v 2000k -strict experimental ${f%}.mp4; done (다중 변환.. *.avi -> *.mp4) rename 's/ /_/g' *;for f in *.mkv; do avconv -i "$f" -c:v libx264 -c:a aac -b:v 2000k -s 1280x720 -strict experimental "${f%}.mp4"; done * 비트레이트 설정 ''-b:v 2000k'' 추가 * 쓰레드 설정 ''-threads 2'' 추가 ((libx264에서 [[https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=631|쓰레드 설정을 안하는 것이 더 빠르다는 글]]이 있다. )) * 크기 설정 ''-s 1280x720'' To have a constant quality (but a variable bitrate), use the option ’-qscale n’ when ’n’ is between 1 (excellent quality) and 31 (worst quality). {{:tech:bitrate_0308015719.png}} |Parameter|Description|Example Value| |b:v|Video Bitrate|150k| |b:a|Audio Bitrate|192k| |ac|Set Number of Audio Channels|2| |crf|Constant Rate Factor|23| |qscale|Constant Quality Scale. {1,30}|20| |prefwidth|Preferred Width|640| |prefheight|Preferred Height|480| |vcodec|Video Codec|libx264| |acodec|Audio Codec|libfaac| |preset|Provides a certain encoding speed to compression ratio|medium| |threads|Set the Thread Count|2| |b|Set Bitrate (Output, Audio, Video)|200k| |vpre|Loads vpre preset file (Legacy)|| |fpre|Loads fpre preset file (Legacy)|| |fps|Desired Output Framerate|30| |ab|Audio Bitrate|192k| |ar|Set Audio Sampling Rate (in Hz)|44100| |setpts|Change the PTS (presentation timestamp) of the input video frames|10| |scaledownonly|Prevents scaling width and height greater than original video size|true| =====참조===== * [[http://libav.org/|libav: Open source audio and video processing tools]] * [[http://www.ffmpeg.org/|FFmpeg]] - The FFmpeg tool and associated libraries (as of Natty, Ubuntu has switched from FFmpeg to the libav fork) is the premier video decoding and encoding system on Linux (and in computing in general). * [[http://ubuntuforums.org/showthread.php?t=2005963|인코딩 배치 문구]] * [[http://usemodj.com/blog/?p=2076|EBS Radio 교육방송 녹음하기위한 쉡스크립트]],[[http://usemodj.com/blog/?p=2080|EBS 라디오 예약 녹음하기(RTMP 프로토콜)]] * [[http://blog.reshout.com/m/post/view/id/2692584|Ubuntu 12.04 LTS에서 ffmpeg으로 아이폰용 동영상 인코딩하기]] * [[http://kerberosj.tistory.com/153|다운로드-변환-업로드 스크립트]] ^ 누구나 수정할 수 있다. [[http://openwiki.kr/syntax|위키 사용법]] 참고하라. ^
2+1?
이 필드는 비어 있도록 유지하세요:
저장
미리 보기
취소
편집 요약
참고: 이 문서를 편집하면 내용은 다음 라이선스에 따라 배포하는 데 동의하는 것으로 간주합니다:
CC Attribution-Noncommercial-Share Alike 4.0 International
연결문서
팟인코더
인코딩(Encoding)
Linux
문서 도구
문서 보기
이전 판
연결문서
맨 위로
다크 모드로 보기
☀️
Toggle Menu
기술
너두 고쳐두 됩니다.
사이트 도구
최근 바뀜
미디어 관리자
사이트맵
사용자 도구
등록
로긴
최근 수정된 문서
amh
prolactin
putty
venv
[macOS / Linux (bash/zsh 등)]
postgresql
bitvise_ssh_client
screen
허니미
만듦
고위험_산모
the_siren_s_deception
[그웨덴 농장]
wegovy
[운동 루틴 (주 4~5회 권장)]
labioplasty
[실제 사례]
cin
cervical_cancer
semen_analysis
[정자 향상을 위한 방법]
misuse_endixg
misuse_celestoneg2