[FFmpeg-trac] #1682(undetermined:new): DVD '-target' option affects video filters
FFmpeg
trac at avcodec.org
Sat Aug 25 22:54:06 CEST 2012
#1682: DVD '-target' option affects video filters
-------------------------------------+-------------------------------------
Reporter: intracube | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: dvd target | Blocked By:
preset video filter deinterlace | Reproduced by developer: 0
yadif scale |
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Trying to convert an interlaced video which isn't a valid DVD resolution
(such as 1920x1080i) to either 720x576 at 50i or 720x576 at 25p DVD video using
'-target' stops video filters from working properly.
The -target option looks like it's re-scaling the video *before* the -vf
video filter chain. This messes up the field interleaving and stops de-
interlacers like yadif from working.
Encoding without using '-target' works as expected.
Examples:
**This creates badly de-interlaced video**:
ffmpeg -i 1080i.MTS -vf yadif=0,scale=720:576 -r 25 -target pal-dvd
-aspect 16:9 output1.mpg
(I can paste console output if necessary - but I could see no errors
there)
This creates clean de-interlaced h264 video:
ffmpeg -i 1080i.MTS -vf yadif=0,scale=720:576 -r 25 -c:v libx264 -crf 18
-preset fast -c:a ac3 -ac 2 -b:a 224k -aspect 16:9 output2.mp4
This creates clean de-interlaced mpeg2 video:
ffmpeg -i 1080i.MTS -vf yadif=0,scale=720:576 -r 25 -c:v mpeg2video -b
8000k -c:a ac3 -ac 2 -b:a 224k -aspect 16:9 output3.mpg
- but this isn't compatible with dvdauthor.
dvdauthor errors:
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
...
ERR: SCR moves backwards, remultiplex input: 4563416160 < 4563429486
Repeatable:
Always.
Ffmpeg version:
ffmpeg version N-43891-g65b552c Copyright (c) 2000-2012 the FFmpeg
developers
built on Aug 25 2012 15:54:15 with gcc 4.6 (SUSE Linux)
configuration: --prefix=/home/compile/ffmpeg
--bindir=/home/compile/ffmpeg/bin
--datadir=/home/compile/ffmpeg/share/ffmpeg
--libdir=/home/compile/ffmpeg/lib --shlibdir=/home/compile/ffmpeg/lib
--incdir=/home/compile/ffmpeg/include
--mandir=/home/compile/ffmpeg/share.man --enable-avresample --enable-
x11grab --enable-libdc1394 --enable-libfaac --enable-libmp3lame --enable-
librtmp --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-
libvpx --enable-libx264 --enable-libxvid --enable-gpl --enable-nonfree
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 54.100 / 54. 54.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 13.101 / 3. 13.101
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1682>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list