Deleted
+ Reply to Thread
Results 1 to 18 of 18
-
Code:
for %%a in (*.mov) do ffmpeg -i "%%~a" -c:v libx264 -profile:v high422 -level 4.1 -pix_fmt yuv422p -preset veryslow -crf 14 -g 24 -vf setsar=sar=1/1 -threads 8 -x264-params bluray-compat=1:vbv-bufsize=20000:vbv-maxrate=40000 -strict -2 -c:a dca -b:a 1536k "output_folder\%%~na.m2ts"
P.S.: Why do you encode like this with 4:2:2 video, bluray-compat=1 and "-level 4.1"?
- 4:2:2 video is never Blu-Ray compatible
- this video will be wrongly flagged level 4.1 while in reality far exceeding it (too many reference frames). Add ref=4 to x264 params for 1080p video and level 4.1
Why encode 1536 kbps PCM to 1536 kbps DTS? Only result is quality loss.Last edited by sneaker; 9th Mar 2019 at 04:13.
-
Eh, too confusing.
But the big problem I see is that your 1st and 2nd command output to files but your third expects some pipe input. Doesn't work like that.
Either way it's too complicated. Just put everything into a single command like I posted in my earlier post. No need to split it into 3 steps. -
Sorry, I forgot ffmpeg still isn't able to put PCM into m2ts. So if you want PCM in m2ts you have to separate into several steps and use a different muxer (e.g. tsMuxer). Otherwise I'd probably just use -c:a ac3 for m2ts output.
-
-
yes, BD is consumer format and it doesn't support anything than 420
You can try something like bellow it should be close enough to your needs, not tested, there are two ffmpeg instances - remove or comment one of them, test it first at small batch of files (one or two - just copy to separate folder)
Not sure if -c:a s302m is supported by m2ts so always you can fall-back to mkv and later try to remux it with different muxer as suggested by sneaker
Seem your video source has wrong framerate (29970/1000) and it is interlaced (as such you need to encode it interlace mode)
Code:@SET x264opts="crf=14:level=4.1:qpmin=4:vbv_maxrate=40000:vbv_bufsize=20000:cabac=1:interlaced=1:tff=1:no_psnr=1:no_ssim=1:open_gop=0:pic_struct=1:aud=1:nal_hrd=vbr:force_cfr=1:fullrange=off:overscan=show:colorprim=bt709:transfer=bt709:colormatrix=bt709:stitchable=1" @FOR %%a IN (*.mov) DO (@ffmpeg.exe -hide_banner -v quiet -stats -y -i "%%a" -c:v libx264 -preset medium -tune film -profile:v high422 -level:v 4.1 -x264opts %x264opts% -x264-params %x264opts% -c:a s302m -f mpegts -mpegts_m2ts_mode 1 "%%~na.m2ts") @FOR %%a IN (*.mov) DO (@ffmpeg.exe -hide_banner -v quiet -stats -y -i "%%a" -c:v libx264 -preset medium -tune film -profile:v high422 -level:v 4.1 -x264opts %x264opts% -x264-params %x264opts% -c:a pcm_s16be -f matroska "%%~na.mkv")
-
You should check how preset affect quality vs bitrate vs encoding speed in x264 - unless you are dealing with very low bitrates i see no added value from presets above medium. This is my private opinion and other may disagree with this.
IMHO you also address faulty (non standard) framerate as it may trig some compatibility issues in future. -
This one is interlaced, TFF , at least according to mediainfo. But you are encoding progressive
Chroma subsampling : 4:2:2
Scan type : Interlaced
Scan type, store method : Interleaved fields
Scan order : Top Field First -
The ones that are 23.976 progressive you can usually encode as progressive.
The other one might be truly interlaced content, might be progressive content, but telecined (23.976p in 29.97i), might be field blended . You might have to do other operations . If it's progressive, the ideal thing to do is to recover the original progressive frames. If it's truly interlaced, you should encode interlaced (MBAFF for x264)
mediainfo does not tell you with any accuracy about the actual content. It only tells you how it was encoded or flagged -
Strange content to have in ProRes, and even at HQ for FullHD i guess most BluRay authoring software doesn't support .MOV is this content captured on BlackmagicDesign hardware ? or straight from a camera ?
Since you have 200 files, an hardware encoding solution would be a better solution.
Similar Threads
-
Convert ProRes .mov file to Bluray m2ts
By Rajesh Singh in forum Authoring (Blu-ray)Replies: 1Last Post: 1st May 2019, 14:54 -
Losslessly convert Professional resolution Master video from .mov to .m2ts
By Rajesh Singh in forum Video ConversionReplies: 10Last Post: 25th Sep 2018, 20:19 -
Must files be in same directory as FFmpeg to convert them?
By Spica66 in forum Video ConversionReplies: 1Last Post: 29th Mar 2018, 09:55 -
Transcode M2TS to ProRes
By SameSelf in forum Video ConversionReplies: 9Last Post: 15th Aug 2016, 11:50 -
Using FFMPEG how do I convert an entire folder of webm files to wav or mp3?
By alphainventions in forum Video ConversionReplies: 1Last Post: 7th Aug 2016, 19:56