On Friday, December 17, 2021, Terje J. Hanssen <terjejhanssen@gmail.com> wrote:


Den 16.12.2021 20:08, skrev Andrew Randrianasulu:


On Thursday, December 16, 2021, Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org> wrote:

    [......]

    As I already pointed on in another thread, a solution to capture
    Hi8 to SD DV50 in 4:2:2 format was possible already 10 years ago
    https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004308.html
    <https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004308.html>

    In a more recent thread here, Andrew mentioned a hdmi capture card
    (with v4l2)
    https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg02865.html
    <https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg02865.html>
    ===================

    Therefore I wonder if we, CinGG users and devs, are able to setup
    and test a recommended capture solution (w/card and guide) for SD
    and HD video in 4:2:2 colorspace, preferably using free drivers
    and tools like V4L/V4L2 and FFMpeg?
    https://en.wikipedia.org/wiki/Video4Linux
    <https://en.wikipedia.org/wiki/Video4Linux>
    https://www.linuxtv.org/wiki/index.php/V4L_capturing
    <https://www.linuxtv.org/wiki/index.php/V4L_capturing>


I think I personally will be away from my desktop machine for few more months..

Terje, you already subscribed to ffmpeg-users, may be forward your call for testing to this list too?

I was think about one specific Youtuber
https://www.youtube.com/user/renerebe

he does have quite a bit of exotic/non-x86 hw, so may be he will be able to get capture card(s) we talked about and even compile Cin on some non-x86 devices and/or test our BD output on Playstation 3 :-)


Well, I posted a few topics at ffmpeg-users some years ago. Time will tell - this "project" is nor hurry, as we have several other tasks to complete. I had preferably thought this as a possibly updated testcase for video capturing withing CinGG as here in the manual:
https://cinelerra-gg.org/download/CinelerraGG_Manual/Transfer_VHS_DVD_Media_or_V.html

Regardless, as mentioned would part of this be to evaluate more current capture cards with preV4L2 Linux support.

I just googled around and without knowing their actuality or price levels for con-/pro-sumers, one name Gateworks at least seems to promote V4L2 heavily in their product wikies, i.e
http://trac.gateworks.com/wiki/Yocto/Video_In
http://trac.gateworks.com/wiki/linux/v4l2
http://trac.gateworks.com/wiki/ventana#BoardSupportPackagesBSPSoftware


is there possibility they talk about single-board computers and their embedded video chips? (not something you can plug into desktop/laptop..) 


 
===============

I-frame-only 50 Megabit MPEG-2 or comparable DV50 in 4:2:2 as high-end, "visual lossless" intermediate format for archival and suited for editing?

-----------------

Regarding DV50, FFMpeg has a friendly "target dv50" support (similar as "target DVD"). So to get a first look on a DV50 test file, I simply transcoded 422/10bit Video and PCM audio from a MOV file (ProRes 422HQ) to a raw DV50 (422/8bit) file:

    ffmpeg -i SD-MOV.mov -target pal-dv50 SD-DV50.dv

ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (SUSE Linux)
[...]
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SD-MOV.mov':
  Metadata:
    creation_time   : 2016-02-26T02:24:01.000000Z
  Duration: 00:00:29.84, start: 0.000000, bitrate: 79620 kb/s
  Stream #0:0(eng): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt709/unknown/unknown, top coded first (swapped)), 720x576, 61154 kb/s, SAR 59:54 DAR 295:216, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2016-02-26T02:24:01.000000Z
      handler_name    : Apple Video Media Handler
      vendor_id       : appl
      encoder         : Apple ProRes 422 (HQ)
  Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, hexadecagonal, s32 (24 bit), 18432 kb/s (default)
    Metadata:
      creation_time   : 2016-02-26T02:24:01.000000Z
      handler_name    : Apple Sound Media Handler
      vendor_id       : [0][0][0][0]
[....]
Stream mapping:
  Stream #0:0 -> #0:0 (prores (native) -> dvvideo (native))
  Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, dv, to 'SD-DV50.dv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0(eng): Video: dvvideo, yuv422p(tv, bt709/unknown/unknown, top coded first (swapped)), 720x576 [SAR 59:54 DAR 295:216], q=2-31, 200 kb/s, 25 fps, 25 tbn (default)
    Metadata:
      creation_time   : 2016-02-26T02:24:01.000000Z
      handler_name    : Apple Video Media Handler
      vendor_id       : appl
      encoder         : Lavc58.134.100 dvvideo
  Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2016-02-26T02:24:01.000000Z
      handler_name    : Apple Sound Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc58.134.100 pcm_s16le
frame=  746 fps=346 q=-0.0 Lsize=  209531kB time=00:00:29.84 bitrate=57522.8kbits/s speed=13.8x
video:209812kB audio:5595kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

===================

du -sh *mov *dv
284M    SD-MOV.mov (source digitized from Hi8)
205M    SD-DV50.dv (ffmpeg re-encoded/remuxed)

DV50 size is here 72% of MOV (though other ProRes 422 and ProRes 422 LT has even lower bitrates).

-------------------

 284M    SD-MOV.mov (source digitized from Hi8) AV-info:

avprobe SD-MOV.mov
avprobe version 12.3, Copyright (c) 2007-2018 the Libav developers
  built on Mar 26 2018 12:39 with gcc 11 (SUSE Linux)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SD-MOV.mov':
  Metadata:
    creation_time   : 2016-02-26T02:24:01.000000Z
  Duration: 00:00:29.84, start: 0.000000, bitrate: 79620 kb/s
  Stream #0:0(eng): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt709/unknown/unknown, top coded first (swapped)), 720x576, 61154 kb/s, SAR 59:54 DAR 295:216, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2016-02-26T02:24:01.000000Z
      handler_name    : Apple Video Media Handler
      vendor_id       : appl
      encoder         : Apple ProRes 422 (HQ)
  Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32 (24 bit), 18432 kb/s (default)
    Metadata:
      creation_time   : 2016-02-26T02:24:01.000000Z
      handler_name    : Apple Sound Media Handler
      vendor_id       : [0][0][0][0]
# avprobe output
----------------------

205M    SD-DV50.dv (ffmpeg re-encoded/remuxed) AV-info:

avprobe SD-DV50.dv
avprobe version 12.3, Copyright (c) 2007-2018 the Libav developers
  built on Mar 26 2018 12:39 with gcc 11 (SUSE Linux)
[dv @ 0x55cdddb96440] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from 'SD-DV50.dv':
  Metadata:
    timecode        : 00:00:00:00
  Duration: 00:00:29.80, start: 0.000000, bitrate: 57600 kb/s
  Stream #0:0: Video: dvvideo, yuv422p, 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
  Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
  Stream #0:2: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
# avprobe output

===================

As seen above, it looks like ffmpeg produced wrong meta data for the DV50 video bitrate (25 Mb/s=DV25), while the total bitrate 57.6 Mb/s is correct. (Also similar was seen with ffprobe and Mediainfo).

My VLC player or Gnome movieplayer did not playback the DV50 file, while ffplay did (as usual without audio?).

Cin-GG miss a DV50 preset among format setting. However DV50 else loades preliminary OK in Cin-GG (via ffmpeg).

I'll look at dv50 output preset.. 

-----------------

Terje J. H