hdsdi3g / MyDMAM

Another way of looking a Digital Media Asset Management
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Correct visual bugs for video transcoding (preview) and video image snapshoting #83

Closed hdsdi3g closed 9 years ago

hdsdi3g commented 9 years ago
hdsdi3g commented 9 years ago

Method for set correct width

 -vf scale=w=in_w*sar:h=in_h

Method for get interlacing (analysing):

 ffmpeg -i $inputfile -filter:v idet -frames:v 1000 -an -f rawvideo -y /dev/null

It return:

[lot of garbage]
[Parsed_idet_0 @ 0x7f8509500000] Single frame detection: TFF:769 BFF:0 Progressive:20 Undetermined:184
[Parsed_idet_0 @ 0x7f8509500000] Multi frame detection: TFF:973 BFF:0 Progressive:0 Undetermined:0

for top field first interlacing, or

[lot of garbage]
[Parsed_idet_0 @ 0x7f9b6af02840] Single frame detection: TFF:163 BFF:77 Progressive:574 Undetermined:167
[Parsed_idet_0 @ 0x7f9b6af02840] Multi frame detection: TFF:175 BFF:126 Progressive:680 Undetermined:0

for an mix with interlacing and progressive, or

[lot of garbage]
[Parsed_idet_0 @ 0x7f84b2e00380] Single frame detection: TFF:36 BFF:53 Progressive:114 Undetermined:798
[Parsed_idet_0 @ 0x7f84b2e00380] Multi frame detection: TFF:0 BFF:382 Progressive:619 Undetermined:0

for a strong mix.