#1  
05-07-2020, 03:45 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 3,289
Thanked 540 Times in 499 Posts
Is it a good idea to keep 4:2:2 all the way to the final encoded file?

I capture lossless 4:2:2 and de-interlace using QTGMC then encode to H.264, Previously, I use to down sample to 4:2:0 in the encode stage but one of the members told me that I can keep the 4:2:2 in the final file using this commend:

Code:
ffmpeg -i Input.avi -vf "format=yuv422p,setsar=sar=8/9" -c:v libx264 -crf 10 -x264opts colorprim=smpte170m:transfer=smpte170m:colormatrix=smpte170m:force-cfr -c:a aac -b:a 192k Output.mp4
Here are some figures of file sizes:
A lossless sample is 290MB.
After being de-interlaced it yields a file of 1.16GB (This is just a temporary step)
Encoding to H.264/420 gives 65MB
Encoding to H.264/422 gives only 79.6MB, not a big difference.

Now I wonder if it's a good idea to set the audio to 16bit/48Khz from 24bit/48Khz rather than a lossy audio?

What do you guys think?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
05-28-2020, 05:54 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,631
Thanked 2,458 Times in 2,090 Posts
For about 5 years now, I routinely
- capture lossless 4:2:2,
- often encode out a 4:2:2 15mbps+ MPEG-2 archive copy,
- and deinterlace a copy for CRF 15-20 H.264 to 4:2:2

As noted, the difference in file size is small.

Lossless audio really is not needed, just use a high bitrate to encode (160kbps+ AAC 48kHz stereo, 384kbps AC3/MP2 aduio for MPEG). You can encode audio as high as you want, but at some point it's just wasted bits and file bloat. Audio isn't video.

I only leave 4:2:2 for the disc/streaming specs (4:2:0).

Never 4:1:1, far too lossy. (I don't care what theory is, practical application is very definitely lossy, even to non-video laymen.)

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #3  
05-28-2020, 01:51 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 3,289
Thanked 540 Times in 499 Posts
I figured the audio is not going to be a big issue, I'm actually encoding at 192Kbps, I just thought maybe for pre recorded video clips a PCM 16/48 might be a good choice but I was told for H.264 will be some format compatibility issues not file size issues. the SAR is actually 10/11 not 8/9, it was copy/paste mistake.
Reply With Quote
  #4  
05-28-2020, 08:58 PM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,631
Thanked 2,458 Times in 2,090 Posts
H.264 doesn't pair with PCM in MP4/MKV wrappers.

I only have PCM on the lossless masters, for later restoration. By the time it sees H.264 (or often MPEG), it's already been restored (if needed). The main issue is having a high enough bitrate that doesn't alter ambient sounds (hiss, etc) to digital noise. Sometimes, like when hiss is present, I just go insane on the audio bitrate. 448kbps, probably more than double needed, just in case.

But 4:2:2 from start to end? Yep, very sound.

After prodding from sanlyn and some others at VH, I've even started to deinterlace out to 59.94/50fps. Again, it's not a huge file size change. Some years ago, there were reasons to keep 29.97 as deinterlaced 29.97 -- and noting that 29.97 still doesn't really "throw away" much/any data (as the frames are all rebuilt). But with bandwidths and HDDs as they are now, 59.94/50 is maximum SD long with Full D1 720x480 (which is also technically overkill for VHS). It may give better motion at times, maybe, so why not?

You go even more overkill, doing 10-bit SDI processing on a signal that is 6-bit dithered at best.

Crank it to 11.

No reason not to, when not constrained by specs.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #5  
05-28-2020, 10:13 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 3,289
Thanked 540 Times in 499 Posts
Most after capturing apps are not 10bit compatible, I'm forced to capture in 8bit. Don't know why though?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping copy of DVDs RockCassette Copy DVDs, Duplicate, Replicate 1 11-22-2019 10:54 PM
Cut/Edit AVI files and then encode, or encode and then cut/edit? rks84093 Restore, Filter, Improve Quality 4 11-08-2018 01:55 PM
ODD final claim dealine is today! lordsmurf General Discussion 0 08-01-2017 03:20 AM
Encode or re-encode, one progran as good as another? cyber-junkie Encode, Convert for discs 1 08-13-2010 05:05 PM
From Sony MiniDV to final DVD ravid57 Capture, Record, Transfer 29 10-01-2004 11:15 AM

Thread Tools



 
All times are GMT -5. The time now is 07:13 PM