пт, 2 февр. 2024 г., 20:38 Terje J. Hanssen <terjejhanssen@gmail.com>:


Den 22.01.2024 17:00, skrev Andrew Randrianasulu:


пн, 22 янв. 2024 г., 18:39 Terje J. Hanssen <terjejhanssen@gmail.com>:


Den 22.01.2024 15:05, skrev Andrew Randrianasulu:


пн, 22 янв. 2024 г., 16:18 Terje J. Hanssen <terjejhanssen@gmail.com>:


Den 20.01.2024 23:31, skrev Andrew Randrianasulu:

 

I am definitely very much want to have as error-free transcode (and as little transcode as possible in general) as you, for same reason.

I am not sure you can absolutely trust ffmpeg for not doing any conversion by default. For example 6.1 seems to upconvert 16 bit audio when you select dvd_pcm audio output.

/dev/shm/ffmpeg/ffmpeg -i /home/guest/CIN51.mp4 -target pal-dvd -c:a pcm_dvd -f dvd /dev/shm/cin51.mpeg

ah, it only does so if decoder output floats by default (aac, may be mp3 too?)

for dv it was 16 to 16.

I haven't succeeded to get DeVeDe to author DVD and create iso again from the ffmpeg encoded and muxed mpg with 16-bit lpcm from dv input. No error from ffmpeg and ok playback of the mpg using VLC. So it is possibly or seemingly working(?)

Just to add here that DevedeNG "works fine again" without re-encoding from ffmpeg mpg, as  possibly seen my DVD posts lately. If I did note my previous procedure wrongly or they have changed its behavior, I don't  know.  The important thing is on its <Misc> tab to select
    *This file is already a DVD/xCD-suitable MPEG-PS file
    o
    *Keep default: Use a GOP of 12 frames (improves compatibility)
If it may be of interest to see how DevedeNG manges this, I can possibly attach its debug log (long)?


I think I will look at python sourcecode of devede-ng to see what it does ... so no need.




My follow-up question is if it possible in some way to "feed or code" a similar command line to FFmpeg in CinGG's DVD Create window, and possibly get the DVD structure and iso from this mpg?

I was trying to make this happen, but while ffmpeg shows no error on muxing -  next stage (dvdauthor) reports some warnings and more importantly resulted iso folder not seekable when played by mpv (mplex muxed one works).

So I am stuck a bit on using ffmpeg as dvd muxer ... May be if we let it encode both audio and video in one pass result will be more satisfactory?


"The question here is if pcm_dvd audio has been changed or "transcoded" 
from "PCM signed 20|24-bit big-endian" to 16 bits?"


I think ffmpeg 6.1 defaulted to s32 audio conversion by default. So if input was 24 bit or float it should be encoded as 24bit dvd pcm audio.

20 bit probably still not plumbed in inside ffmpeg correctly.


Lately I have got and use ffmpeg 6.1.1 from Packman on Leap 15.5

S  | Name     | Type  | Version             | Arch   | Repository
---+----------+-------+---------------------+--------+-----------
i+ | ffmpeg-6 | pakke | 6.1.1-150500.3.pm.2 | x86_64 | Packman


Queyring about pcm_dvd and pcm_bluray verify that the encoder/decoder/codecs at least now have support for 16|20|24-bit big-endian


but there is no audioformat for internal conversion, so I guess it only works as 24 or 16 bit  ... ? Yes, 20 bit in the description, but there is no way to select it?


ffmpeg -hide_banner -encoders | egrep "dvd|bluray"
 A....D pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 A....D pcm_dvd              PCM signed 16|20|24-bit big-endian for DVD media
 S..... dvdsub               DVD subtitles (codec dvd_subtitle)

ffmpeg -hide_banner -decoders | egrep "dvd|bluray"
 A....D pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 A....D pcm_dvd              PCM signed 16|20|24-bit big-endian for DVD media
 S..... dvdsub               DVD subtitles (codec dvd_subtitle)
 S..... microdvd             MicroDVD subtitle
terje@localhost:~>

ffmpeg -hide_banner -codecs | egrep "dvd|bluray"
 DEAI.S pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 DEAI.S pcm_dvd              PCM signed 20|24-bit big-endian
 ..D... dvd_nav_packet       DVD Nav packet
 DES... dvd_subtitle         DVD subtitles (decoders: dvdsub) (encoders: dvdsub)
 D.S... microdvd             MicroDVD subtitle