<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace"><br>
</font>
<div class="moz-cite-prefix"><font face="monospace">Den 19.12.2021
16:40, skrev Andrew Randrianasulu:<br>
</font></div>
<blockquote type="cite"
cite="mid:CA+rFky7su1xUtwtubcdHGMYaONtuuYXR6urzOyAODL+geO_y_w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font face="monospace"><br>
<br>
On Sunday, December 19, 2021, Terje J. Hanssen <<a
href="mailto:terjejhanssen@gmail.com" moz-do-not-send="true">terjejhanssen@gmail.com</a>>
wrote:<br>
</font>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><font
face="monospace"><br>
</font>
<font face="monospace"><br>
</font><font face="monospace"><br>
Thanks, script testrun executed with attached output here.<br>
Test-run_Intra-frame_key_word<br>
</font>
<font face="monospace"><br>
As seen below from the summary table, all files except the
MPEG-2 generated "SD-MP2-50.mpg" without the ffmpeg -intra
flag set, contains all Intra-frames only:<br>
</font>
<font face="monospace"><br>
------------------------------</font><wbr><font
face="monospace">-------------------------<br>
du -sh SD*.* # key_frame=1 # key_frame=0<br>
(# I-frames) (# non-I-frames)<br>
284M SD-MOV.mov 746 0<br>
205M SD-DV50.dv 745 0<br>
186M SD-MP2I50.mpg 745 0<br>
153M SD-MP2I-.mpg 745 0<br>
186M SD-MP2-50.mpg 63 682<br>
146M SD-MP2I50-an.m2v 745 0</font></blockquote>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">good! </font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">but a bit concerned 746 vs 745 frame
count. Are we losing one frame somewhere? </font></div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="monospace"><br>
</font></blockquote>
</blockquote>
<font face="monospace">To repeat:<br>
1. SD-MOV.mov (ProRes) was the initial record source<br>
<br>
2. SD-DV50.dv was encoded from ProRes using a simple ffmpeg target
(preset)<br>
ffmpeg -i SD-MOV.mov -target pal-dv50 SD-DV50.dv<br>
<br>
3. The SD-MP2* were encoded from SD-DV50.dv using ffmpeg<br>
<br>
All ffmpeg generated files has the same frame counts<br>
<br>
My take:<br>
The single frame difference seems to occure from step 1 - 2, or
the script doesn't count 1 indentical as the ffmpeg generated 2
and 3.<br>
<br>
<br>
<br>
<br>
<br>
</font>
<blockquote type="cite"
cite="mid:CA+rFky7su1xUtwtubcdHGMYaONtuuYXR6urzOyAODL+geO_y_w@mail.gmail.com">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><font
face="monospace">
Counts matched # key_frame=1 (I-frames)<br>
./kfrm.sh SD-MOV.mov | grep -c key_frame=1<br>
</font>
<font face="monospace"><br>
Counts other (unmatched) than key_frame=1<br>
./kfrm.sh SD-MOV.mov | grep -v -c key_frame=1<br>
</font>
<font face="monospace"><br>
------------------------------</font><wbr><font
face="monospace">--------------------------<br>
</font>
<font face="monospace"><br>
</font>
</blockquote>
</blockquote>
<font face="monospace"><br>
</font>
</body>
</html>