[Cin] dvdcreate and filempeg patches

Terje J. Hanssen terjejhanssen at gmail.com
Fri Jun 9 17:59:26 CEST 2023




Den 06.06.2023 17:54, skrev Andrew Randrianasulu:
> [snip]
>
>>
>     Here were a lot to sort out:
>
>     The dvd-wide-ffmpeg+mpeg2enc.m2v from here is also scaled or
>     streched too high in vertical direction.
>
>
> may be add "expand" filter after crop, so image dimensions will be 
> back to dvd standard?
>
>
>
>     VLC deinterlaced on playback  (keyboard D) on interlaced m2v gives
>     better quality.
>
>>
>>
>>             In comparision the ffmpeg command line I have used is:
>>             ffmpeg  -i dv01.dv -f dvd -target pal-dvd -aspect 16:9
>>             -vb 8000k -mbd rd -trellis 1 -cmp 0 -subcmp 2 -vf
>>             crop=iw-0-0:ih-106-65:0:
>>             which results in progressive and DAR 16:9, but still not
>>             so good edge quality
>>
>>
>>     May be "progressive" here is error, and ffmpeg still encodes
>>     interlaced-as-progressive, so VLC for example does not enable
>>     deinterlacer at playback automatically?
>
>     VLC Deinterlaced ON playback of Progressive dvd-wide-dv01.mpg
>     results in more coarced jagged or saw-toothed round edges
>
>>
>>     Have you tried to add interlaced flags manually to ffmpeg's
>>     command line?
>     -flags +ilme+ildct  gives interlaced bff
>
>
> Yeah, I just suspect ffmpeg was defaulting to progressive flags in 
> stream and progressive setting for mpeg2 encoder  WITHOUT 
> automatically inserting deinterlacer, so result was plainly wrong.
>
> Metadata copy by default was apparently fixed in 4.4, yet interlace 
> may remain corner case ...
>
> [snip]


I hope this sum up of the 4 variants I get from Cin DVD creating, using 
the current unpatched version:

Input file: PAL DV interlaced 4:3
Output DVD cropped to 16x9

The dvd folder file names below are else descriptive

Deinterlaced checked (di):

1) mediainfo ./dvd_wide_cin_di-ffmpeg_20230608-184940/dvd.mpg | grep Scan
Scan type                                : Progressive

2) mediainfo ./dvd_wide_cin_di_mpeg2enc_20230608-201519/dvd.mpg | grep Scan
Scan type                                : Interlaced
Scan order                               : Top Field First


Non deinterlaced (unchecked):

3) mediainfo ./dvd_wide_cin_ffmpeg_20230608-203740/dvd.mpg | grep Scan
Scan type                                : Progressive

4) mediainfo ./dvd_wide_cin_mpeg2enc_20230608-191936/dvd.mpg | grep Scan
Scan type                                : Interlaced
Scan order                               : Top Field First

Obviously 2) and 3) are wrong
Are they fixed in the patched version?


5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?

I.e some users claims that Bwdif is better than Yadif for ffmpeg.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230609/a825811f/attachment-0001.htm>


More information about the Cin mailing list