<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 19, 2024 at 1:56 PM Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com">terjejhanssen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <br>
    <br>
    <br>
    <div>Den 19.11.2024 14:53, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Tue, Nov 19, 2024 at
            1:28 PM Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank">terjejhanssen@gmail.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div> <br>
              <br>
              <br>
              <div>Den 19.11.2024 06:58, skrev Andrew Randrianasulu:<br>
              </div>
              <blockquote type="cite">
                <div dir="auto">
                  <div><br>
                    <br>
                    <div class="gmail_quote">
                      <div dir="ltr" class="gmail_attr">вт, 19 нояб.
                        2024 г., 03:47 Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank">terjejhanssen@gmail.com</a>>:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                        <div> <br>
                          <div>Den 18.11.2024 10:52, skrev Andrew
                            Randrianasulu:<br>
                          </div>
                          <blockquote type="cite">
                            <div dir="ltr">
                              <div>It may work or break it completely
                                ...</div>
                              <div><br>
                              </div>
                              <div>apply by normal patch command  from
                                inside thirdparty/ffmpeg (may be "cat
                                pathname | patch  -p1", may be "cat 
                                patchname | patch -p0") or edit
                                libavcodec/qsvenc.c by hand.</div>
                              <div><br>
                              </div>
                              <div>rebuild ffmpeg, do not do make
                                clean, </div>
                              <div>cd ../../</div>
                              <div> so you again in main directory with
                                ./autogen.sh and bin directory with
                                cinelerra. <br>
                              </div>
                              <div><br>
                              </div>
                              <div>touch cinelerra/ffmpeg.C</div>
                              <div>make</div>
                              <div><br>
                              </div>
                              <div>Hopefully this rebuild cin so on next
                                start from bin/cin you will have
                                something to test with tff sources.</div>
                              <div><br>
                              </div>
                              <div>Unfortunately, netBSD does not
                                support hardware virtualization on AMD
                                cpus, so for now I do not have my
                                virtual machines. I also forgot type of 
                                cable from PSU to disks, so now I can
                                only power up one of two sata drives.</div>
                              <div><br>
                              </div>
                              <div>It will be fixed eventually, but for
                                now I hope to live up this netBSD
                                install a bit ...<br>
                              </div>
                            </div>
                          </blockquote>
                          <br>
                          <br>
                          To prepare for tomorrow, because else I am
                          stuck:<br>
                          <br>
                          <blockquote type="cite">apply by normal patch
                            command  from inside thirdparty/ffmpeg (may
                            be "cat pathname | patch  -p1", may be "cat 
                            patchname | patch -p0") or edit
                            libavcodec/qsvenc.c by hand.</blockquote>
                          <br>
                          Should here be a patch attached to be able to
                          use "git am patch"?<br>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                  <div dir="auto"><br>
                  </div>
                  <div dir="auto">I installed Fedora 40 in qemu on
                    NetBSD (thankfully only booting from iso as cdrom
                    was not working on hw virtualization  - 4*3.9 {amd
                    fx4300 } Ghz was barely enough for gnome-based (?)
                    installer to just show up) so hopefully there will
                    be!</div>
                  <div dir="auto"><br>
                  </div>
                  <div dir="auto"><br>
                  </div>
                  <div dir="auto">
                    <div class="gmail_quote">
                      <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                        <div> <br>
                          <font face="Courier New, Courier, monospace">cd
                            /Cin/thirdparty/ffmpeg-7.0 ?<br>
                            <br>
                            may be "cat pathname | patch  -p1", may be
                            "cat  patchname | patch -p0" ?<br>
                            <br>
                            or edit libavcodec/qsvenc.c by hand. -
                            possibly what to edit there?<br>
                          </font><br>
                          <font face="Courier New, Courier, monospace">cd
                            ../../<br>
                            localhost:/Cin # </font><br>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </blockquote>
              <br>
              <font face="Courier New, Courier, monospace">When
                possible, I need more explanation to my questions above
                ..,<br>
              </font></div>
          </blockquote>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>?  If you are not comfortable applying it by hand to
            internal ffmpeg I'll prepare normal git am patch, just wait
            a bit, ok? <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Yes, fine and ok. But I didn't even understand what and how to edit
    libavcodec/qsvenc.c by hand above ;)<br></div></blockquote><div><br></div><div>Normally you just delete lines marked with "-" at very beginning, and replace them with lines marked with "+" sign in patch. Line numbers and line endings extremely important for patch, so sometimes 'innocent' patch editing resulted in no-working patch :(</div><div><br></div><div>for simple patches you can just edit file they normally modify by doing patch's work.</div><div><br></div><div> </div></div></div>