Log in

View Full Version : x264 Settings for AVCHD 2.0 compliant file, playback?


Pages : 1 [2]

Bordo32
15th March 2021, 00:33
vbv-buffer size is specified as 3500000 bytes, or 28000 kbits.
I would think that value should be:
--vbv-bufsize 28000

I did the test, setting 28100 results in none compliant file.

Richard1485
15th March 2021, 00:49
Sorry, I misread your previous post. I've edited the post with the settings (again).

Bordo32
18th March 2021, 15:18
I accidentally learned that "Signal hrd" has to be enabled, cbr or vbr set, "--nal-hrd vbr" added to the Command Line, otherwise it results in VBV Buffer size and Max Fill rate values exceeded the ones that are set, and makes none AVCHD 2.0 compliant file.

Using Hybrid and starting with BluRay/AVCHD hardware restrictions, this is added automatically, just need to make sure it stays enabled when setting other x264 parameters.

Richard1485
18th March 2021, 16:20
"--nal-hrd vbr" added to the Command Line

Done.

Bordo32
20th March 2021, 01:12
I did an experiment encoding to AVCHD 2.0 with MeGUI.
Command Line:
--level 4.2 --preset slower --pass 2 --bitrate 25000 --stats ".stats" --keyint 50 --min-keyint 1 --b-pyramid strict --ref 4 --weightp 1 --slices 4 --vbv-bufsize 28000 --vbv-maxrate 25000 --aud --nal-hrd vbr --colorprim bt709 --transfer bt709 --colormatrix bt709 --constrained-intra --sar 1:1

Manually adding "--aud --constrained-intra" to the Command Line.

Encoded file, as TMPGEnc tools show, is AVCHD Progressive compliant, with the Buffer size = 3418KB (the maximum value allowed by spec), Max bitrate 25.0Mbps.

Another experiment: AVCHD 2.0 compliant file (that 1080 50p file was encoded with Hybrid, Buffer Size 27000kbit, Max rate 25000kbps) was authored to BDAV structure and burnt to DVD-R disc.
My BluRay player plays that disc as BDAV BluRay without issues.

Richard1485
20th March 2021, 13:56
was authored to BDAV structure

With TMPGEnc Authoring Works?

My BluRay player plays that disc as BDAV BluRay without issues.

Maybe BDMV created by tsMuxeR would work as well.

Bordo32
20th March 2021, 14:37
With TMPGEnc Authoring Works?



Maybe BDMV created by tsMuxeR would work as well.

Re. Authoring Works. No, only TMPGEnc Smart Rendered authors BDAV.
That is the only one available tool that can author AVCHD 2.0 Progressive files to BDAV (unless Selur will add that to his Hybrid :) ).
(You can try, play with for 30 days their free demo, what is actually a fully functional version).

Authoring Works (for 1080 50p/60p content) can only author AVCHD (with BDMV folder inside) structure for "SD Card/SD Card playable device".
It will play on media players but can't be burnt to disc.

Some years ago I was trying to find what to do with my 1080 60p camcorder footage.
MultiAVCHD does not work properly for that, nor any other commercial SW tools that I know.

I found Smart Renderer, which looks like was specifically developed for that purpose.
It also has a smart rendering function allowing to cut, join files without re-encoding (only files joints).
It has two output options: rendering to file or authoring BDAV by creating/saving file structure and also has a burner function to burn straight to BD-R disc.

Re. tsMuxeR. As I remember it does not work. The BDAV file structure is different, and if you just replace file it does not work either.
multiAVCHD does not work for this as well. BDMV does not support 1080 50p/60p, only BDAV. It has to be authored as BDAV structure, otherwise it will not work.

You can try. A simpe test is to burn BDAV structure to DVD-R disc using ImgBurn and check if it was authored properly (or burn to BD-R) . Not all BluRay players support BluRay structure on DVD-R.
But BDAV burnt on BD-R disc has to play on all BluRay players, as per specs they have to support BDAV.

Richard1485
20th March 2021, 16:36
The BDAV file structure is different

BDMV does not support 1080 50p/60p, only BDAV.

Yes, I know, but I've had tsMuxeR mux things that shouldn't be supported in the past and had them play. Maybe some would find BDAV support in tsMuxeR useful.

Bordo32
20th March 2021, 16:51
Agree, that would be ideal.

SeeMoreDigital
20th March 2021, 17:50
Yes, I know, but I've had tsMuxeR mux things that shouldn't be supported in the past and had them play. Maybe some would find BDAV support in tsMuxeR useful.
Agreed... Especially as TSmuxer GUI offers an dedicated 'AVCHD Folder' option :eek:

Selur
22nd March 2021, 10:00
Hybrid does use '--avchd' when 'Base->Create structure' is set to 'AVCHD', in case tsMuxeR gets a new option for AVCHD2.0/BDAV let me know and I can add it to Hybrid.