[Cin] Procedure for making LPCM DVD

Terje J. Hanssen terjejhanssen at gmail.com
Fri Jan 19 00:46:51 CET 2024



Den 16.01.2024 16:34, skrev Andrew Randrianasulu:
> Start cinelerra-gg from terminal so you can see terminal output
>
> Open your source in cinelerra-gg as usual, choice format settings, go
> to DVD creation  window.

What source, a DV file, and should this be a Raw "PCM Audio CD" without 
video?
I ask because as default on the next Batchrender window only the Video 
track is checked, while the Audio track is unchecked and locked.


>
> Select all values as you need, click ok, wait for batchrender window to appear
>
> In it, select second line and change codec to RAW PCM, and set it to
> 16 bit, signed, byteorder Lo-Hi (big endian)

Now the Audio track is being checked, while the Video track is being 
uncheked and locked.

What I don't see, is the possibility to make a DVD Video with PCM audio 
from the source DV file?

like this:

    Input #0, mpeg, from
    '/run/media/terje/Seagate_8TB_back/video/DVD/paldvdhqFS+pcm_PS_DVD_dv01/movies/movie_0.mpg':
       Duration: 00:09:56.48, start: 0.540000, bitrate: 9655 kb/s
       Stream #0:0[0x1bf]: Data: dvd_nav_packet
       Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
    progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn,
    50 tbc
         Side data:
           cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008
    vbv_delay: N/A
       Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, 2 channels, s16,
    1536 kb/s



>
> click "start". Cingg will finish but job is not!
>
> from terminal, note location of dvd.sh file and open it in editor
>
> running /dev/shm//dvd_20240116-182336/dvd.sh
>     INFO: [mplex] mplex version 2.1.0 (2.2.7 $Date: 2012/11/17 01:55:16 $)
> **ERROR: [mplex] Unable to open file
> /dev/shm/dvd_20240116-182336/dvd.ac3 for reading.
>
> so
>
> mcedit /dev/shm//dvd_20240116-182336/dvd.sh
>
> and set mplex parameter " -L  48000:2:16" so full string will look like
>
> mplex -f 8 -L  48000:2:16 -o $dir/dvd.mpg $dir/dvd.m2v $dir/dvd.lpcm
>
> note, lpcm extension is important!
>
> now mv pcm file into same but with new extension  (in theory you can
> change audio file extension into lpcm at batchrender window, not
> tested)
>
>   mv /dev/shm//dvd_20240116-182336/dvd.pcm /dev/shm//dvd_20240116-182336/dvd.lpcm
>
> run script:
>
> bash-5.1$ /dev/shm//dvd_20240116-182336/dvd.sh
> running /dev/shm//dvd_20240116-182336/dvd.sh
>     INFO: [mplex] mplex version 2.1.0 (2.2.7 $Date: 2012/11/17 01:55:16 $)
>     INFO: [mplex] File /dev/shm/dvd_20240116-182336/dvd.m2v looks like
> an MPEG Video stream.
>     INFO: [mplex] File /dev/shm/dvd_20240116-182336/dvd.lpcm looks like
> an LPCM Audio stream.
>     INFO: [mplex] Video stream 0: profile 8 selected - ignoring
> non-standard options!
>     INFO: [mplex] Found 1 audio streams, 1 video streams and 0 subtitle streams
>     INFO: [mplex] Selecting dvdauthor DVD output profile
>     INFO: [mplex] Multiplexing video program stream!
>     INFO: [mplex] Scanning for header info: Video stream e0
> (/dev/shm/dvd_20240116-182336/dvd.m2v)
>     INFO: [mplex] VIDEO STREAM: e0
>     INFO: [mplex] Frame width     : 720
>     INFO: [mplex] Frame height    : 576
>     INFO: [mplex] Aspect ratio    : 16:9 display
>     INFO: [mplex] Picture rate    : 25.000 frames/sec
>     INFO: [mplex] Bit rate        : 9000000 bits/sec
>     INFO: [mplex] Vbv buffer size : 229376 bytes
>     INFO: [mplex] CSPF            : 0
>     INFO: [mplex] Scanning for header info: LPCM Audio stream 00
> (/dev/shm/dvd_20240116-182336/dvd.lpcm)
>     INFO: [mplex] LPCM AUDIO STREAM:
>     INFO: [mplex] Bit rate       :   192000 bytes/sec (1536000) bit/sec)
>     INFO: [mplex] Channels       :     2
>     INFO: [mplex] Bits per sample:     16
>     INFO: [mplex] Frequency      :     48000 Hz
>     INFO: [mplex] SYSTEMS/PROGRAM stream:
>     INFO: [mplex] rough-guess multiplexed stream data rate    : 10753200
>     INFO: [mplex] target data-rate specified               : 10080000
> ++ WARN: [mplex] Target data rate lower than computed requirement!
> ++ WARN: [mplex] N.b. a 20% or so discrepancy in variable bit-rate
> ++ WARN: [mplex] streams is common and harmless provided no time-outs will occur
>     INFO: [mplex] Run-in delay = 10800 Video delay = 10800 Audio delay = 14400
>     INFO: [mplex] New sequence commences...
>     INFO: [mplex] Video e0: buf=      0 frame=000000 sector=00000000
>     INFO: [mplex] Audio bd: buf=      0 frame=000000 sector=00000000
>     INFO: [mplex] STREAM e0 completed
>     INFO: [mplex] STREAM bd completed
>     INFO: [mplex] Multiplex completion at SCR=265362.
>     INFO: [mplex] Video e0: completed
>     INFO: [mplex] Audio bd: completed
>     INFO: [mplex] VIDEO_STATISTICS: e0
>     INFO: [mplex] Video Stream length:     3101158 bytes
>     INFO: [mplex] Sequence headers:        5
>     INFO: [mplex] Sequence ends   :        0
>     INFO: [mplex] No. Pictures    :       75
>     INFO: [mplex] No. Groups      :        5
>     INFO: [mplex] No. I Frames    :        5 avg. size 51909 bytes
>     INFO: [mplex] No. P Frames    :       71 avg. size 39569 bytes
>     INFO: [mplex] No. B Frames    :        0 avg. size     0 bytes
>     INFO: [mplex] Average bit-rate :  8160800 bits/sec
>     INFO: [mplex] Peak bit-rate    :  8992000  bits/sec
>     INFO: [mplex] BUFFERING min 22252 Buf max 219233
>     INFO: [mplex] AUDIO_STATISTICS: bd
>     INFO: [mplex] Audio stream length 583680 bytes.
>     INFO: [mplex] Frames         :     1823
>     INFO: [mplex] BUFFERING min 12112 Buf max 52344
>     INFO: [mplex] MUX STATUS: no under-runs detected.
> DVDAuthor::dvdauthor, version 0.7.2.
> Build options: gnugetopt imagemagick iconv freetype fribidi fontconfig
> Send bug reports to<dvdauthor-users at lists.sourceforge.net>
>
> INFO: default video format is PAL
> INFO: dvdauthor creating VTS
> STAT: Picking VTS 01
>
> STAT: Processing /dev/shm/dvd_20240116-182336/dvd.mpg...
>
> INFO: Video pts = 0.160 .. 3.160
> INFO: Audio[16] pts = 0.160 .. 3.200
> STAT: VOBU 5 at 3MB, 1 PGCs
> CHAPTERS: VTS[1/1] 0.000
> INFO: Generating VTS with the following video attributes:
> INFO: MPEG version: mpeg2
> INFO: TV standard: pal
> INFO: Aspect ratio: 16:9
> INFO: Resolution: 720x576
> INFO: Audio ch 0 format: ac3/6ch,  48khz drc, 'en'
> WARN: Audio ch 0 is not used!
> INFO: Audio ch 1 format: pcm/2ch,  48khz 16bps
>
> STAT: fixed 5 VOBUs
> INFO: dvdauthor creating table of contents
> INFO: Scanning /dev/shm/dvd_20240116-182336/iso/VIDEO_TS/VTS_01_0.IFO
> To burn dvd, load blank media and run:
> growisofs -dvd-compat -Z /dev/dvd -dvd-video /dev/shm/dvd_20240116-182336/iso
> Завершено
>
> ====
>
> you probably need to tweak dvdauthor file to so our  audio will be
> audio channel 0.
>
> I'm thinking about making "use PCM" checkbox in (already a bit
> crowded) DVD creation window ..lets see now it will progress ...
>
> example files attached ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240119/d09efc9f/attachment.htm>


More information about the Cin mailing list