Coder Social home page Coder Social logo

ffmpeg's Introduction

ffmpeg

Tips for converting and ripping

Copy audio, video + subtitles:

ffmpeg \
-i video.mkv \
-sub_charenc CP1250 \
-i sub.srt \
-map 0:0 \
-map 0:1 \
-map 1:0 \
-c:a copy -async 1 \
-c:v copy \
-c:s srt -metadata:s:s:0 language=ces \
-y output.mkv

VOB:

cat VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB VTS_01_4.VOB VTS_01_5.VOB | ffmpeg -i - \
-c:v libx264 \
-map 0:1 \
-b:v 2100k \
-minrate 2100k \
-maxrate 6100k \
-bufsize 1835k \
-c:a copy -map 0:4 -metadata:s:a:0 language=eng \
-c:s copy -map 0:6 -metadata:s:s:0 language=czech \
output.mp4

Deinterlace:

-vf "yadif=0:-1:0"

TS stream h264 native:

ffmpeg -i input.ts \
-c:v copy \
-c:a copy \
-map 0:0 \
-map 0:1 -metadata:s:a:0 language=eng \
output.mp4

example 2:

ffmpeg -i inputs.ts \
map 0:0 -c:v copy \
-map 0:1 -metadata:s:a:0 language=cze \
-c:a copy
output.mp4

TS stream h264 native 1080p scale to 720p

ffmpeg -i input.ts \
-c:v h264 \
-b:v 2100k \
-minrate 2100k \
-maxrate 6100k \
-bufsize 1835k \
-vf scale=-1:720 \
-c:a copy \
-map 0:0 \
-map 0:1 	 \
output.mp4

TS stream crf 20

ffmpeg -i input.ts \
-c:v libx264 \
-preset slow \
-crf 21 \
-tune animation \
-profile:v auto -level 4.2 \
-vf scale=-1:720 \
-c:a copy \
-map 0:0 -map 0:1 \
output.mp4 

ffmpeg's People

Contributors

gulas2vladimir avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.