[FFmpeg-user] adjust DAR while using -c:v copy
Dave Rice
dave at dericed.com
Mon Dec 17 18:42:11 CET 2012
Hi,
I'd have a QuickTime file that is 720x480 with a 3/2 DAR and 1/1 SAR. I would like to convert this to a 4/3 DAR QuickTime without transcoding. I've tried using -aspect 4/3 before and after the input and also tried using -vf setdar options but all of these seem to be ignored when I am using the -c:v copy command.
Here is my output when using all options mentioned. The output is still 3/2. Is is possible to use ffmpeg to change DAR without transcoding.
ffmpeg -aspect 4/3 -i in.mov -c copy -aspect 4/3 -vf setdar=4/3 -y out.mov
ffmpeg version 1.0.git-ffmpeg4archivists Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 29 2012 11:38:09 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/Users/digitilization/github/ffmpeg4archivists/ffmpeg --as=yasm --extra-version=ffmpeg4archivists --extra-libs=-L/Users/digitilization/github/ffmpeg4archivists/libs --disable-shared --enable-static --disable-ffserver --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-libvpx --enable-libopus --enable-filters --enable-runtime-cpudetect --disable-debug --enable-libfreetype --enable-libopenjpeg --cc=/usr/bin/gcc-4.2
libavutil 52. 9.102 / 52. 9.102
libavcodec 54. 77.100 / 54. 77.100
libavformat 54. 39.100 / 54. 39.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.104 / 3. 23.104
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.101 / 0. 17.101
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
encoder : Lavf54.39.100
Duration: 00:00:05.00, start: 0.000000, bitrate: 66 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 62 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
Metadata:
handler_name : DataHandler
Output #0, mov, to 'out.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
encoder : Lavf54.39.100
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x480 [SAR 1:1 DAR 3:2], q=2-31, 62 kb/s, 25 fps, 12800 tbn, 12800 tbc
Metadata:
handler_name : DataHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 125 fps=0.0 q=-1.0 Lsize= 40kB time=00:00:04.88 bitrate= 67.8kbits/s
video:38kB audio:0kB subtitle:0 global headers:0kB muxing overhead 5.889577%
Dave
More information about the ffmpeg-user
mailing list