<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 3 нояб. 2022 г., 01:58 Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">terjejhanssen@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<br>
<br>
<div>Den 02.11.2022 20:28, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">ср, 2 нояб. 2022 г., 19:19
Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com" rel="noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">randrianasulu@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">ср, 2 нояб. 2022
г., 17:59 Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<font face="Courier New, Courier, monospace">On
Fri Oct 28 02:35:53 CEST 2022, </font><font face="Courier New, Courier, monospace">Andrew
Randrianasulu wrote:</font>
<blockquote type="cite"> <font face="Courier
New, Courier, monospace"><br>
Recorded with Cin-GG :-)<br>
<br>
<a href="https://youtu.be/7pXG5cnjckQ" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://youtu.be/7pXG5cnjckQ</a><br>
5min or so ....</font> </blockquote>
<br>
I put in an extract of section 20.5 of the CinCV
manual here:<br>
<a href="http://cinelerra-cv.wikidot.com/cincv-manual-en:rendering-files" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">http://cinelerra-cv.wikidot.com/cincv-manual-en:rendering-files</a><br>
<blockquote>Most of the time you will want to
bring in the rendered output and fine tune the
timing on the timeline. Also some file formats
like MPEG can not be direct copied. Because of
this, the jobs are left in individual files.<br>
<br>
You can load these by creating a new track and
specifying concatenate to existing tracks in
the load dialog. Files which support direct
copy can be concatenated into a single file by
rendering to the same file format with
renderfarm disabled. Also to get direct copy,
the track dimensions, output dimensions, and
asset dimensions must be equal.<br>
<br>
MPEG files or files which do not support
direct copy have to be concatenated with a
command line utility. MPEG files can be
concatenated with cat.<br>
<br>
</blockquote>
By reading the parallell email thread "[Cin]
fileexr/fileppm direct copy support", I wonder
if this isn't equivalent to some other NLE's
"Smart Rendering" or "by-pass
re-encode/compression when possible"?</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">partially, but sadly not (yet) smart
enough for dealing with non-i-only files ...</div>
<div dir="auto"><br>
</div>
<div dir="auto">there was interesting piece of code
potentially decompressing anything ffmpeg can decode
in fileyuv in CinCV, but this need some encoding
counterpart and also more info passing between
assets, edits and renderer....</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://github.com/cinelerra-cv-team/cinelerra-cv/commit/0ff51f4c53e17ff33701e8cc1096de33a87313b9" rel="noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/cinelerra-cv-team/cinelerra-cv/commit/0ff51f4c53e17ff33701e8cc1096de33a87313b9</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> If so it would be fine to get this dealed
with in the CinGG manual ....?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">CinGG as for now accelerates _image
sequences_ in this way, due to our de/muxer moved from
dedicated libquicktime-based filemov.c into more
complete but complex ffmpeg.c's libavformat de/muxer.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">so, no hdv copy in this mode yet (at
least automatic)</div>
<div dir="auto">May be you can rig avidemux or ffprobe
for noting hdv keyframes and set cuts in cin on those
boundaries, but this is time-consuming....</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
<br>
There is also another program, "VideoCut" Version 2.1.1 - MP2/MP4
Cutter for Linux on base of mpv and ffmpeg. Cutting is lossless, the
target file will not be reencoded.<br>
<a href="https://github.com/kanehekili/VideoCut" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/kanehekili/VideoCut</a><br>
<br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <a href="https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=157600" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=157600</a><br>
<a href="https://www.kevinmonahan.net/?p=88" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://www.kevinmonahan.net/?p=88</a></div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div dir="auto">
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div dir="auto">thanks for links, will look into them.</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
<br>
And maybe also another CinGG theme "HDV on a
Blu-ray without re-encode" as discussed earlier,
is related and needs some manual update? <br>
<a href="https://cinelerra-gg.org/download/CinelerraGG_Manual/HDV_on_Blu_ray_Disc_Without.html" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://cinelerra-gg.org/download/CinelerraGG_Manual/HDV_on_Blu_ray_Disc_Without.html</a></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">this one not dealing with cutting your footage,
just author disk with bdwrite :)</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
<br>
Yeah, I see that.<br>
But as we concluded, the manual section needs update, both on the
HDV definition, and adding the procedures to transcode and remux HDV
mp2 audio into a Bluray compliant format.<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">since those times some progress was made in ffmpeg in bluray pcm audio. Can you try -c:a pcm_bluray in latest ffmpeg 5.1, with some-hdv-file as input ? c:v copy for video, obviously ... and tsmuxer for final mux/author....</div><div dir="auto"><br></div><div dir="auto">biggest problem (for now) is lack of testing hardware, I mean picky hw players ....</div><div dir="auto"><br></div><div dir="auto">Also, may be Phyllis a bit lost in all those threads, so posting separate mail with your suggestions for manual section might help? full ffmpeg/mediainfo output probably not needed but some tricky options or un-intuitive switches better to be documented.</div><div dir="auto"><br></div><div dir="auto">In simplest case it probably will be as simple as ffmpeg -i file.mts -c:v copy -c:a pcm_bluray output.ts</div><div dir="auto"><br></div><div dir="auto">and then using tsmuxer template for cmd line or in gui</div><div dir="auto">for remuxing this ts into bd folder or directly into iso (actually udf)</div><div dir="auto"><br></div><div dir="auto">or try new bdwrite too (exactly like described in manual) and see if it authors disk playable on your hardware.</div><div dir="auto"><br></div><div dir="auto">then we hopefully can update manual text and move into lossless cutting matters )</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<a href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg03521.html" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg03521.html</a><br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">for cutting without reencoding you probably
should test some ideas discussed in</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://github.com/mifi/lossless-cut/pull/13" rel="noreferrer noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/mifi/lossless-cut/pull/13</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">namely order of ffmpeg params and also </div>
<div dir="auto">'-avoid_negative_ts', 'make_zero' params.</div>
<div dir="auto"><br>
</div>
<div dir="auto">So, theory of operation you scan your media with
ffprobe and it produces list of timecodes where you *can* cut
files safely. Then you can probably output your cut-only edit
as edl from Cinelerra and use it as input for ffmpeg-based
script doing cuts, with some math inside considering that
portions you can copy and that need reencoding. </div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://github.com/mifi/lossless-cut/pull/13#issuecomment-279226516" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/mifi/lossless-cut/pull/13#issuecomment-279226516</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">But for this to works ffmpeg-based cutter should
be accurate nearly always ...so testing on real HDV files
(often hours long) very much needed (you can put your source
files on r/o mounted fs just for avoiding bad surprises with
ffmpeg output).</div>
<div dir="auto"><br>
</div>
<div dir="auto">usual bad surprises include blank frames, bad/no
play, sound desynchronysing ....not something you hoped for
while wishing for -lossless- cut.</div>
<div dir="auto"><br>
</div>
<div dir="auto">One can ask why bothering with NLE? well,
timecode display and bidirectional framestepping ....</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
<a href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg03520.html" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg03520.html</a></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">also IgorV recently rediscovered some scripts
from old times, some of them hope to produces avchd disks as
readable by Sony's PS3 for example (they used closed-source
tsmuxer, but i hope opensource version works for now)</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://github.com/IgorVladimirsky/cinelerra-scripts-from-code.google.com/blob/main/mov2m2ts-1080p50.sh" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/IgorVladimirsky/cinelerra-scripts-from-code.google.com/blob/main/mov2m2ts-1080p50.sh</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">those scripts reencode, so not very topical for
cutting but might be interesting evening read anyway.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://github.com/IgorVladimirsky/cinelerra-scripts-from-code.google.com/blob/main/render-1080i50.sh" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/IgorVladimirsky/cinelerra-scripts-from-code.google.com/blob/main/render-1080i50.sh</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">make_m2ts_avchd_dvd function namely<br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">As far as I understand problem for mpeg
like codecs you must re-encode not just frames you
altered, but also frames between your cut and
codec-defined input keyframes, and this kind of info
simply not wired inside cinelerra .... I'll try to
download ffprobe-based I-frames finder as prototyped
by Bill long time ago and play with its output as
guidance for cutting mpeg2 like streams </div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">but just for unexpected side of video
decoding at some time Natron apparently had weird
reordering problem on reading mp4 files, probably due
to in-decoder reordering ...some fun (eh) to code for
...</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://github.com/NatronGitHub/Natron/issues/555" rel="noreferrer noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/NatronGitHub/Natron/issues/555</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div></div></div>