Re: [Mjpeg-users] [FFmpeg-user] LPCM in DVD - 44.1/32khz sample rate?
/* no traces of 44100 and 32000Hz in any commercial software or player */ On Sun, Jan 21, 2024 at 3:44 AM Andrew Randrianasulu < randrianas...@gmail.com> wrote: > According to this source (vlc) lpcm dvd audio supports lower frequencies > like 44100/32000 hz - useful for direct dv transcoding for example > > https://github.com/videolan/vlc/blob/master/modules/codec/lpcm.c > > see lines 524, 608 > > Does this mean that libavcodec/pcm-dvdenc.c can be trivially extended to > support those ? > > Same question for mplex. (it only supports 48/96 khz lpcm audio). > > I also found this table via mjpeg-users archives: > > https://dvd.sourceforge.net/dvdinfo/lpcm.html > > it lists dynamic range/gain (?) setting equations. > > Not mplex nor ffmpeg support setting this to anything but hardcoded 0x80 > > This might be source of my "too loud" lpcm dvd experiments because I was > making lpcm file via cinelerra-gg's raw pcm output format (using libsndfile > internally). > ___ > ffmpeg-user mailing list > ffmpeg-u...@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex patch adding support for 32/44.1khz lpcm streams?
On Sun, Jan 21, 2024 at 4:19 PM Steven Schultz wrote: > > > > On Sun, Jan 21, 2024 at 6:55 AM Andrew Randrianasulu > wrote: >> >> Using svn code from >> >> svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code >> >> not tested apart from compilation ... > > > a "hello world" change would also compile 😉 > > could some one test it before a commit is done? I hope at least one user with hw player will surface this evening :) > > > ___ > Mjpeg-users mailing list > Mjpeg-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mjpeg-users ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex patch adding support for 32/44.1khz lpcm streams?
On Sun, Jan 21, 2024 at 6:55 AM Andrew Randrianasulu < randrianas...@gmail.com> wrote: > Using svn code from > > svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code > > not tested apart from compilation ... a "hello world" change would also compile 😉 could some one test it before a commit is done? ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] mplex patch adding support for 32/44.1khz lpcm streams?
Using svn code from svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code not tested apart from compilation ... Index: mplex/lpcmstrm_in.cpp === --- mplex/lpcmstrm_in.cpp (revision 3507) +++ mplex/lpcmstrm_in.cpp (working copy) @@ -306,7 +306,15 @@ default : bps_code = 3; break; } dst[4] = starting_frame_index; -unsigned int bsf_code = (samples_per_second == 48000) ? 0 : 1; +unsigned int bsf_code; +switch(samples_per_second) +{ +case 48000: bsf_code = 0; break; +case 96000: bsf_code = 1; break; +case 44100: bsf_code = 2; break; +case 32000: bsf_code = 3; break; +} +//unsigned int bsf_code = (samples_per_second == 48000) ? 0 : 1; unsigned int channels_code = channels - 1; dst[5] = (bps_code << 6) | (bsf_code << 4) | channels_code; dst[6] = dynamic_range_code; Index: mplex/stream_params.cpp === --- mplex/stream_params.cpp (revision 3507) +++ mplex/stream_params.cpp (working copy) @@ -46,7 +46,7 @@ unsigned int chans, unsigned int bits ) { -if( samples != 48000 && samples != 96000 ) +if( samples != 48000 && samples != 96000 && samples != 44100 && samples != 32000 ) return 0; if( chans < 1 || chans > 7 ) return 0; ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [FFmpeg-user] LPCM in DVD - 44.1/32khz sample rate?
On Sun, Jan 21, 2024 at 2:47 PM Paul B Mahol wrote: > > /* no traces of 44100 and 32000Hz in any commercial software or player */ well, but mpv (and vlc?) supports it > > On Sun, Jan 21, 2024 at 3:44 AM Andrew Randrianasulu < > randrianas...@gmail.com> wrote: > > > According to this source (vlc) lpcm dvd audio supports lower frequencies > > like 44100/32000 hz - useful for direct dv transcoding for example > > > > https://github.com/videolan/vlc/blob/master/modules/codec/lpcm.c > > > > see lines 524, 608 > > > > Does this mean that libavcodec/pcm-dvdenc.c can be trivially extended to > > support those ? > > > > Same question for mplex. (it only supports 48/96 khz lpcm audio). > > > > I also found this table via mjpeg-users archives: > > > > https://dvd.sourceforge.net/dvdinfo/lpcm.html > > > > it lists dynamic range/gain (?) setting equations. > > > > Not mplex nor ffmpeg support setting this to anything but hardcoded 0x80 > > > > This might be source of my "too loud" lpcm dvd experiments because I was > > making lpcm file via cinelerra-gg's raw pcm output format (using libsndfile > > internally). > > ___ > > ffmpeg-user mailing list > > ffmpeg-u...@ffmpeg.org > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > To unsubscribe, visit link above, or email > > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > > > ___ > ffmpeg-user mailing list > ffmpeg-u...@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users