[FFmpeg-devel] [PATCH 2/3] presets: specify the codecs.

Clément Bœsch ubitux at gmail.com
Thu May 3 23:11:01 CEST 2012


This allows the following usages:
FFMPEG_DATADIR=presets ./ffmpeg -f lavfi -i testsrc=d=5 -vcodec libx264 -vpre ipod640 -f null -
FFMPEG_DATADIR=presets ./ffmpeg -f lavfi -i testsrc=d=5 -vpre libx264-ipod640 -f null -

The second example was broken even if documented.
---
 presets/libvpx-1080p.ffpreset      |    2 ++
 presets/libvpx-1080p50_60.ffpreset |    2 ++
 presets/libvpx-360p.ffpreset       |    2 ++
 presets/libvpx-720p.ffpreset       |    2 ++
 presets/libvpx-720p50_60.ffpreset  |    2 ++
 presets/libx264-ipod320.ffpreset   |    2 ++
 presets/libx264-ipod640.ffpreset   |    2 ++
 7 files changed, 14 insertions(+)

diff --git a/presets/libvpx-1080p.ffpreset b/presets/libvpx-1080p.ffpreset
index a2accba..cf25932 100644
--- a/presets/libvpx-1080p.ffpreset
+++ b/presets/libvpx-1080p.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libvpx
+
 g=120
 lag-in-frames=16
 deadline=good
diff --git a/presets/libvpx-1080p50_60.ffpreset b/presets/libvpx-1080p50_60.ffpreset
index 3d29f9b..4a88040 100644
--- a/presets/libvpx-1080p50_60.ffpreset
+++ b/presets/libvpx-1080p50_60.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libvpx
+
 g=120
 lag-in-frames=25
 deadline=good
diff --git a/presets/libvpx-360p.ffpreset b/presets/libvpx-360p.ffpreset
index 36fd11a..f9729ba 100644
--- a/presets/libvpx-360p.ffpreset
+++ b/presets/libvpx-360p.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libvpx
+
 g=120
 lag-in-frames=16
 deadline=good
diff --git a/presets/libvpx-720p.ffpreset b/presets/libvpx-720p.ffpreset
index ba7791d..e84cc15 100644
--- a/presets/libvpx-720p.ffpreset
+++ b/presets/libvpx-720p.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libvpx
+
 g=120
 lag-in-frames=16
 deadline=good
diff --git a/presets/libvpx-720p50_60.ffpreset b/presets/libvpx-720p50_60.ffpreset
index b339774..8fce2bf 100644
--- a/presets/libvpx-720p50_60.ffpreset
+++ b/presets/libvpx-720p50_60.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libvpx
+
 g=120
 lag-in-frames=25
 deadline=good
diff --git a/presets/libx264-ipod320.ffpreset b/presets/libx264-ipod320.ffpreset
index 6abacbd..76722bd 100644
--- a/presets/libx264-ipod320.ffpreset
+++ b/presets/libx264-ipod320.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libx264
+
 vprofile=baseline
 level=13
 maxrate=768000
diff --git a/presets/libx264-ipod640.ffpreset b/presets/libx264-ipod640.ffpreset
index cda7c08..51f7564 100644
--- a/presets/libx264-ipod640.ffpreset
+++ b/presets/libx264-ipod640.ffpreset
@@ -1,3 +1,5 @@
+vcodec=libx264
+
 vprofile=baseline
 level=30
 maxrate=10000000
-- 
1.7.10



More information about the ffmpeg-devel mailing list