Video Workflow Recources (guides) with Linux (Renomath, 2012)
Even I have mentioned some years ago, I want to repeat and reference to some especial workflow recources by Eric Olson, Renomath, 2012. Though some tools and methods might be some dated, these guides uncover indeed knowledge about several timeless topics (analog Hi8 a/d conversion and transfer to DV, creating DVD, HDV, Blu-ray etc) and video tools we have been and are discussing here (f.x #13, #14, #15 Cinelerra patches, ffmpeg and more). ========= Workflow Resources http://renomath.org/video/linux/ These pages describe workflows for authoring 8mm, Hi8, DV, HDV and AVCHD video source to VCD, SVCD, DivX Ultra, DVD, HD-DVD and Blu-ray media using Linux. Pages hosted at this site include 1. Hi8 Tape to DVD Video Workflow with Linux <http://renomath.org/video/linux/hi8/> 2. DV to DVD Workflow with Linux <http://renomath.org/video/linux/dv/> 3. DV to DVD compliant mpeg2 with Linux <http://renomath.org/video/linux/dv/encdvd.html> 4. HDV to High Definition DVD Workflow with Linux <http://renomath.org/video/linux/hddvd/> 5. HDV to 3xDVD or BD5 with H264 Workflow <http://renomath.org/video/linux/hddvd/264wf.html> 6. AVCHD with Sony DVDarchitect V5.0 <http://renomath.org/video/linux/avchd/dvdarch.html> 7. HDV to DVD Workflow with Linux <http://renomath.org/video/linux/downres/> 8. Outsourcing DVD Duplication <http://renomath.org/video/linux/dupli/> 9. DivX Ultra authoring with Linux <http://renomath.org/video/linux/divx/> 10. MP4 for Flash Player with Linux <http://renomath.org/video/linux/flash/> 11. AVI files for MP4 Players using Linux <http://renomath.org/video/linux/portable/> 12. Converting SVCD to DVD with Linux <http://renomath.org/video/linux/svcdtodvd/> 13. Cinelerra Version 4.x yuv4mpeg Patch <http://renomath.org/video/linux/cinelerra/> 14. Editing Interlaced Video with Cinelerra <http://renomath.org/video/linux/interlace/cinelerra.html> 15. Editing AVCHD with Cinelerra <http://renomath.org/video/linux/avchd/> 16. Editing AVCHD using Lossless Cut and Paste <http://renomath.org/video/linux/avchd/lossless.html> 17. High Definition Slide Shows with Linux <http://renomath.org/video/linux/slideshow/> 18. Slow Motion DV and HDV Video with Linux <http://renomath.org/video/linux/slowmot/> 19. Upsampling DV Chroma by Inpainting <http://renomath.org/video/linux/dv/chroma.html> 20. Making dvdauthor menus using Gimp <http://renomath.org/video/linux/menus/> 21. Help with h264fix the h264info for Linux <http://renomath.org/video/linux/hddvd/h264fix.html> 22. Widescreen from 4:3 Source <http://renomath.org/video/linux/widescreen/> 23. When and How to Deinterlace a Video <http://renomath.org/video/linux/interlace/> 24. Checking Interlacing Flags with Linux <http://renomath.org/video/linux/interlace/check.html> 25. PF24 Pulldown Removal with Linux <http://renomath.org/video/linux/pullup/> 26. How to Archive AVCHD Video <http://renomath.org/video/linux/avchd/backup.html> 27. The Pixel Aspect Ratio of DV <http://renomath.org/video/linux/aspect/> 28. Aquisition and Distribution Formats <http://renomath.org/video/linux/avchd/format.html> 29. Camcorder Depth of Field Calculator <http://renomath.org/video/linux/dof/> 30. Linux Video Cost Analysis <http://renomath.org/video/linux/cost/> 31. Useful and Useless Scripts <http://renomath.org/video/linux/bin/> External references: 1. mir Digital Media Group: Video Library <http://www.mir.com/DMG/vidlib.html> by Matthew Marjanovic 2. Some thoughts on DVD authoring <http://www.tappin.me.uk/Linux/dvd.html> by James Tappin 3. The DV FAQ and More <http://www.adamwilt.com/> by Adam Wilt =============== Terje J. H
So many interesting tutorials on the site you pointed out! Thank you. I'll highlight a few pages. I guess these patches, in CinGG, are useless: http://renomath.org/video/linux/cinelerra/ http://renomath.org/video/linux/interlace/cinelerra.html (color space conversion) http://renomath.org/video/linux/dv/chroma.html There is also a collection of scripts: http://renomath.org/video/linux/bin/
Den 10.12.2021 20:02, skrev Andrea paz:
So many interesting tutorials on the site you pointed out! Thank you. I'll highlight a few pages. I guess these patches, in CinGG, are useless: http://renomath.org/video/linux/cinelerra/ http://renomath.org/video/linux/interlace/cinelerra.html (color space conversion) http://renomath.org/video/linux/dv/chroma.html There is also a collection of scripts: http://renomath.org/video/linux/bin/ =========
The patches were initially written originally for HV4.2 and later updated to HV4.4. However to another user request, Phyllis responded in these 2016 posts: [CinCV TNG] Patches from Eric Olson: https://lists.cinelerra-cv.org/pipermail/cinelerra/2016q3/005251.html
A mod was added today by GG to 5.1 to correctly convert the colorspace for 4:2:0 / mpeg in order to improve potential DVD quality. It is not just a "hack" but a real improvement. But it is doubtful that this code will see much real use. New binaries/packages will be built soon. Below is the short explanation from the Features5 manual.
DvdInterlacedChroma [....]
a plugin was checked into the Git repository for 5.1 after rework and much testing
https://lists.cinelerra-cv.org/pipermail/cinelerra/2016q3/005291.html Maybe Andrew can review and consider if the current Cin-GG w/FFmeg cover up for the rest. ========== I myself was then naturally especially interested in and focused on the section "Capturing the Video" of the first guide, althoug I never bought a capture card for Linux (after my Pinnacle DV500 DVD stayed Windows only): ffmpeg -h | grep dv50 [...] -target type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-") =========== #1. Hi8 Tape to DVD Video Workflow http://renomath.org/video/linux/hi8/
If you have a faster system you may want to consider capturing using the DV50 codec using a 4:2:2 color space. In order to do this, libng from the xawtv project needs to be patched <http://renomath.org/video/linux/hi8/streamer-dv50.patch> to recognize the dv50 codec. Using dv50 as the capture codec really allows the Linux solution to surpass a stand-along DVD recorder.
It is also possible to capture the video using ffmpeg or lavrec.
I was happy to get the above little section deepened in replies 2012/2013 from Eric Olson, and "allow myself to publish" the technical parts as repetition and knowledge information between ===== below. First, "streamer" below was is on openSUSE part of the rpm package "v4l-tools": Summary : Video4linux terminal / command line utilities Description : This package includes a bunch of command line utilities: v4lctl to control video4linux devices; streamer to record movies; fbtv to watch TV on the framebuffer console; ttv to watch tv on any ttv (powered by aalib), webcam for capturing and uploading images, a curses radio application, ... Distribution: SUSE Linux Enterprise 15 SP3 --- man streamer streamer - record audio and/or video ===============
After patching streamer with this patch
http://www.renomath.org/video/linux/hi8/streamer-dv50.patch
then the following command will capture an hour of NTSC video using the DV50 codec
streamer -q -p3 -b64 -iS-Video -nNTSC-M -r29.97 -s720x480 \ -fdv5n -Fstereo -R48000 -t 1:00:00 -c /dev/video0 -o file.mov
This command works and captures 4:2:2 color on the few capture cards I've tried. I have not tried to capture PAL format. I expect the following command will work
streamer -q -p3 -b64 -iS-Video -nPAL -r25 -s720x576 \ -fdv5n -Fstereo -R48000 -t 1:00:00 -c /dev/video0 -o file.mov
The chroma resolution of an Hi8 tape is very low, but 4:2:2 color space still helps while editing. The advantage of DV50 over DV25 may be more significant for PAL because PAL DV25 uses an offset 4:2:0 colorspace rather than 4:1:1 like NTSC DV25.
Some hardware seems to work better than others. Note that the default contrast and brightness settings in the V4L drivers are wrong for most hardware. Thus, it is important to calibrate the driver to correct black levels before capture. I can't recommend any particular hardware because the capture cards I use are old and no longer sold.
The quest for best quality is a frustrating one. Interlaced video combined with 4:2:0 color and buggy software often make even good quality difficult. I strongly believe that eventually people will have the computational resources and know-how to obtain HD quality footage from SD analog source.
It sounds like you have a nice collection of Hi8 tapes that need to be archived. It is difficult to know which digital format to use. In my opinion DV50 is a good archival choice because
1. it's a high-quality intraframe only codec 2. it's supported by almost all editing software 3. it's implemented in pro cameras 4. it won't change in the future
It would be nice to know what solution you settle on for digitizing your tapes. Our of curiosity, what kind of BDROM blanks are you using? Have any of the disks become unreadable over time?
------------
Cinelerra requires a simple patch to edit DV50. Unfortunately the only format Cinelerra can edit without reencoding is mjpeg.
Uncompressed 8-bit 1440x1080 4:2:2 colorspace video is about 90MB/sec. Most HD's can write between 40MB/sec and 100MB/sec. If your computer can transcode HDV to DNxHD faster than real time there is a chance it could compress live video on the fly. In my opinion the main use for this would be low-budget green-screen studio work.
The comments at
http://web.archive.org/web/20080125111318/http://www.humanvalues.net/hdv/#dv...
are for NTSC DV25. PAL DV25 actually uses 4:2:0 chroma subsampling, but the subsampling is different than what is used for DVD and possibly even more difficult to convert. The program y4mscaler does a good job.
http://www.mir.com/DMG/Software/
For interlaced footage DV50 is definitely better.
HDV video is compatible with bluray but not the audio. If you transcode the audio to AC3 or PCM and remultiplex, you should be able to play the resulting files in a bluray player. If I have time, I'll put together a description of this.
That is good news about the BDROMs you made. It would be nice if Linux had a bluray authoring tool similar to dvdauthor. My current scheme is to make the bluray menus using Sony Dvd Architect on Windows, and then replace the video with high quality Linux x264 encodes using tsMuxeR.
The openSUSE package is a "binary" package but you need to "source code" to apply my patch. The source code is part of xawtv version 3 which can be found at
http://git.linuxtv.org/xawtv3.git
Xawtv was used for the development of the video 4 linux drivers, so every capture card supported by v4l and v4l2 should work with streamer.
From my recollection you are wishing to capture 8mm Hi8 video tapes from a S-Video or YPbPr component cables fed through a Videonics TBC. Using a TBC is a good idea and you should get reasonable results.
I'm currently looking at the Blackmagic Hyperdeck Shuttle. This is a stand-alone device that records SD-SDI, HD-SDI and HDMI digital to a SSD using either DNxHD, ProRes or uncompressed. Since the Shuttle only has digital inputs you would also need a A/D video converter to capture from component cables. The main advantage of the Shuttle, however, is that it can also used for high quality live recording direct from the camera. In particular, it is portable and can be attached to most cameras as a high quality external recorder. If I get one, I'll let you know how well it integrates into a Linux workflow.
I have updated my Cinelerra DNxHD, DV50 and YUV frame serving patches to the Version 4.4 of Cinelerra
http://heroinewarrior.com/cinelerra.php
It seems to be working great. In addition to greater stability the new version of Cinelerra has 3-way color correction.
From what I understand the Shuttle records SD uncompressed 4:2:2 about 1 1/2 hours on a 120GB SSD. This could then be converted to DV50 or any other suitable format for long term storage on Linux. I'm mostly interested in using it for live recording attached to the camera, but it would be an added benefit if it could be used with a CPrPb to SDI converter for high quality capture of analog soruces. =============
Terje J. H
Andrea, These were all looked at around July/August 2016 and I know for a fact that: http://renomath.org/video/linux/dv/chroma.html was incorporated as stated in the Release Notes for July 2016:
Chroma bug yuv420p interlace colormodel fix for DVDs via additional option “dvd yuv420.”
Release Notes for August 2016:
Additional plugin, yuv411, that performs interpolation and inpainting for DV source improved chroma upsampling results (courtesy Eric Olson website as pointed out by Igor_Ubuntu). It also has an additional setting called offset which shifts the chroma planes to the right by one or two pixels (set to 0 for DV source downloaded from a camcorder and set to 1 for a DV file encoded by ffmpeg). Works with the YUV-8 Bit or YUVA-8 Bit color models in Cinelerra but not with any of the RGB color models. Improved upsampling of the chroma planes helps with the 4:1:1 to 4:2:0 color space conversion needed to create DVD compliant mpeg2 video streams. You will not get any improvements if the project is being rendered back to DV format.
On Fri, Dec 10, 2021 at 12:02 PM Andrea paz via Cin < [email protected]> wrote:
So many interesting tutorials on the site you pointed out! Thank you. I'll highlight a few pages. I guess these patches, in CinGG, are useless: http://renomath.org/video/linux/cinelerra/ http://renomath.org/video/linux/interlace/cinelerra.html (color space conversion) http://renomath.org/video/linux/dv/chroma.html There is also a collection of scripts: http://renomath.org/video/linux/bin/ -- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
participants (3)
-
Andrea paz -
Phyllis Smith -
Terje J. Hanssen