On Monday, November 29, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin < [email protected] <mailto:[email protected]>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7
# with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew,
Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
yeah, I missed this part... hopefully there will be simple chain of arguments to ffmpeg for this!
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with- ffmpeg#post2153378
you can try first with levels you found, then without (hopefully your player accept -rw disks)
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816
yeah.. you can also try to patch ffmpeg 4.4 (or 4.3) with Cinelerra-GG's ffmpeg*. patch2 (one modifying m2ts muxer) - but this will not add pcm_bluray 'encoder'
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if LPCM has to be muxed via MP4(Box) first, a guideline is welcome?
------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LPCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) -----------------------
Terje J. H
-- Cin mailing list [email protected] <mailto:[email protected]> https://lists.cinelerra-gg.org/mailman/listinfo/cin <https://lists.cinelerra-gg.org/mailman/listinfo/cin>