Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
8th June 2017, 08:41 | #381 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Source and target are different. If you target Blu-Ray, you can use open-gop (needs bluray-compat but you've put it, so it's fine), it doesn't matter what source has, this parameter is for the target only.
And as it's HD 1920x1080, the sar is 1:1 and color is BT.709. For me, your command line is good. About deinterlace and the remark about the sar and color, it's probably because he thought it was 576i. |
8th June 2017, 09:35 | #382 | Link | |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Quote:
I would remove "--videoformat PAL" and "--overscan show", I'm not sure they are allowed or appropriate. (And maybe --opencl if you're targeting production. The minor speedup might not be worth the additional stability risks.) |
|
8th June 2017, 11:51 | #383 | Link |
Registered User
Join Date: May 2006
Posts: 3,997
|
"If something CAN be made complicated, it WILL..." (Murphy).
Why not follow the instructions for blu-ray compliant encoding given in the first post of this thread, and the links to the examples with commandlines provided at the end of the first post of this sticky ... |
8th June 2017, 15:39 | #384 | Link | ||
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
|
Quote:
Quote:
Thank you, everyone! |
||
8th June 2017, 19:47 | #385 | Link | |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
Everything can be summarized as:
Quote:
NOTE: In your command line you've switched the values of bufsize and maxrate. Bufsize needs to be 30 Mbps max, while maxrate can be up to 40 Mbps. With your values, you'll get out of specs discs. Depending by the authoring software, you can get your file rejected or accepted but with buffer overflows problems during multiplexing or verification process. Also, can't understand why you're normalizing your audio by peak (that can create weird results). I guess you know there are EBU standards and normalizing by peak will likely alter the audio in a not-standard way. Do you have valid reasons for that? |
|
8th June 2017, 20:01 | #387 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
--profile High --bframe 3 --log-level info --thread-input could also be dropped, while we're at it (and default is --ref 3). But of course it doesn't make any difference.
As Sharc said people make things too complicated instead of just reading the docs/examples... Last edited by sneaker_ger; 8th June 2017 at 20:16. |
9th June 2017, 02:03 | #388 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
|
Quote:
Besides, I need my audio to be as close as possible to -24 LUFS. We generally use a machine called "Sony DP 600" to achieve this. Is there a similar way to achieve this via avisynth? Last edited by FranceBB; 9th June 2017 at 02:09. |
|
9th June 2017, 08:40 | #389 | Link | |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
Quote:
If you can't access to a DAW/plugins, you can get decent results normalizing by RMS, with a target value of -26/-27dB. Still, this may be fine for non-professional jobs, because if you deliver the audio for broadcasting, you need to strictly follow the EBU standard. Last edited by mp3dom; 9th June 2017 at 17:12. |
|
11th March 2018, 17:13 | #391 | Link | |
Registered User
Join Date: Jul 2015
Posts: 33
|
Timebased Slideshow
Quote:
Please write the full code Command Line. Thanks. |
|
15th May 2018, 10:32 | #392 | Link | |
Registered User
Join Date: Sep 2017
Posts: 5
|
Quote:
Code:
ct_type: 2 nuit_field_base_flag: 1 counting_type: 4 full_timestamp_flag: 0 discontinuity_flag: 0 cnt_dropped_flag: 0 n_frame: 0 seconds_flag: 1 seconds_value: 1 Those parameters can be set via libav's API Last edited by Qarmaa; 15th May 2018 at 10:44. |
|
23rd August 2018, 04:22 | #393 | Link |
Registered User
Join Date: Aug 2018
Posts: 5
|
Blu-ray encoding in ffmpeg
So, as a bit of a side project, I thought I would attempt to start encoding Blu-rays in ffmpeg instead of x264 with AVIsynth. Since ffmpeg natively supports almost any video format, and is 64-bit all the way through, it would offer much faster encoding, not to mention support for Mac and *nix systems.
Since ffmpeg uses libx264, I thought that, once I translated the x264 syntax to ffmpeg syntax, we should be able to get identical results. The Scenarist crew has offered to assist in running some verification checks. Two minor hiccups so far: First, ffmpeg apparently doesn't enforce the Level 4.0/4.1 limit on reference frames, so that setting has to be manually spelled out in ffmpeg with the flag "-refs 4" Secondly, interlaced ProRes isn't handled properly by ffmpeg unless you tell it to use interlaced scaling (even if you're not scaling the image at all). After some trial and error, we have the following command line that, so far, passes Eclipse verification (for 1080p/23.976): Code:
ffmpeg -i "filename" -c:v libx264 -pass 1 -b:v 30000k -tune film -level 41 -g 24 -r 24000/1001 -pix_fmt yuv420p \ -preset veryslow -vf setsar=sar=1/1 -refs 4 -color_primaries bt709 -color_trc bt709 -colorspace bt709 \ -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=40000:slices=4:open-gop=1:force-cfr=1 -y \ -f rawvideo /dev/null ffmpeg -i "filename" -c:v libx264 -pass 2 -b:v 30000k -tune film -level 41 -g 24 -r 24000/1001 -pix_fmt yuv420p \ -preset veryslow -vf setsar=sar=1/1 -refs 4 -color_primaries bt709 -color_trc bt709 -colorspace bt709 \ -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=40000:slices=4:open-gop=1:force-cfr=1 -y \ -f rawvideo "filename.264" Anyone know how to do that? Thanks! (Edit: Yes, I already tried adding pulldown=32 to -x264opts, but that didn't work.) Last edited by WorldOfCrap; 23rd August 2018 at 07:07. |
24th August 2018, 02:51 | #396 | Link |
Registered User
Join Date: Aug 2018
Posts: 5
|
Thanks mp3dom and kolak! I'll tinker with piping from ffmpeg to x264.
In the mean time, we've passed verification for encoding 1080i on ffmpeg! Even better, I'm getting SIGNIFICANT speed increases -- sometimes nearly 2x -- over just encoding with x264 & AVIsynth. We've only passed as 29.97i/TFF, but 25i and BFF should work too (we'll check those next week). Just change -g 30 to -g 25 if you're doing 25 fps, and fieldorder=bff if necessary. I'm not sure if "-flags +ilme+ildct" is still necessary or if those are deprecated, but it passed verification like this, so I'm leaving 'em in for now. Code:
ffmpeg -I input.file -c:v libx264 -pass 1 -b:v XXXXX -tune film -level 41 -g 30 -r 30000/1001 -flags +ilme+ildct -pix_fmt yuv420p -preset veryslow \ -filter_complex scale=interl=1,setsar=sar=1/1,fieldorder=tff -refs 4 -color_primaries bt709 -color_trc bt709 -colorspace bt709 \ -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=40000:slices=4:open-gop=1:force-cfr=1 -y -f rawvideo /dev/null ffmpeg -I input.file -c:v libx264 -pass 2 -b:v XXXXX -tune film -level 41 -g 30 -r 30000/1001 -flags +ilme+ildct -pix_fmt yuv420p -preset veryslow \ -filter_complex scale=interl=1,setsar=sar=1/1,fieldorder=tff -refs 4 -color_primaries bt709 -color_trc bt709 -colorspace bt709 \ -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=40000:slices=4:open-gop=1:force-cfr=1 -y -f rawvideo output.264 Code:
ffmpeg -I input.file -c:v libx264 -pass 1 -b:v XXXXX -tune film -level 41 -g 30 -r 30000/1001 -flags +ilme+ildct -pix_fmt yuv420p \ -preset veryslow -filter_complex scale=interl=1,fieldorder=tff,setsar=sar=40/33 -refs 6 -color_primaries smpte170m -color_trc smpte170m \ -colorspace smpte170m -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=31000:slices=4:open-gop=1:force-cfr=1 -y -f rawvideo /dev/null ffmpeg -I input.file -c:v libx264 -pass 2 -b:v XXXXX -tune film -level 41 -g 30 -r 30000/1001 -flags +ilme+ildct -pix_fmt yuv420p -preset veryslow \ -filter_complex scale=interl=1,fieldorder=tff,setsar=sar=40/33 -refs 6 -color_primaries smpte170m -color_trc smpte170m -colorspace smpte170m \ -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=31000:slices=4:open-gop=1:force-cfr=1 -y -f rawvideo output.264" Last edited by WorldOfCrap; 24th August 2018 at 03:05. |
Thread Tools | Search this Thread |
Display Modes | |
|
|