Fwd: patch for 44.1/32 khz pcm input in pcm dvd encoder
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG < cin@lists.cinelerra-gg.org> relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723 lightly tested with mpv and mediainfo like this: ./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd -f dvd t.mpg mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;) ==== forwarded to ffmpeg-devel as requested.
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD PCM. Does this type of output work on an actual DVD player? Thank you On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG < cin@lists.cinelerra-gg.org>
relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723
lightly tested with mpv and mediainfo like this:
./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd -f dvd t.mpg
mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;)
====
forwarded to ffmpeg-devel as requested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
On Mon, Jan 29, 2024 at 8:16 PM Marth64 <marth64@proxyid.net> wrote:
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD PCM. Does this type of output work on an actual DVD player?
We try to determinate this, but unfortunately new DVD players a bit TOO flexible and forgiving? https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007907.html I even had idea to use PS2 emulator to check (DVD video supposed to work there since some time) but ran into qt6 being build dependency ... so I shelved this idea for now Thank you
On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG < cin@lists.cinelerra-gg.org>
relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723
lightly tested with mpv and mediainfo like this:
./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd -f dvd t.mpg
mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;)
====
forwarded to ffmpeg-devel as requested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
пн, 29 янв. 2024 г., 22:08 Andrew Randrianasulu <randrianasulu@gmail.com>:
On Mon, Jan 29, 2024 at 8:16 PM Marth64 <marth64@proxyid.net> wrote:
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD PCM.
Does
this type of output work on an actual DVD player?
At least this pdf brochure lists 44.1 under PCM: https://at.yamaha.com/files/download/other_assets/8/333768/DVD-S1500_e_U.pdf
We try to determinate this, but unfortunately new DVD players a bit TOO flexible and forgiving?
https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007907.html
I even had idea to use PS2 emulator to check (DVD video supposed to work there since some time) but ran into qt6 being build dependency ... so I shelved this idea for now
Thank you
On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG < cin@lists.cinelerra-gg.org>
relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723
lightly tested with mpv and mediainfo like this:
./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd -f
dvd
t.mpg
mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;)
====
forwarded to ffmpeg-devel as requested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Interesting, thanks. My thought was to see if this is allowed for DVD-Video vs DVD-Audio only which are different application layer. I can try to run a PS2 test with the real hardware out of curiosity later. On Tue, Jan 30, 2024 at 2:17 PM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
пн, 29 янв. 2024 г., 22:08 Andrew Randrianasulu <randrianasulu@gmail.com>:
On Mon, Jan 29, 2024 at 8:16 PM Marth64 <marth64@proxyid.net> wrote:
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD PCM.
Does
this type of output work on an actual DVD player?
At least this pdf brochure lists 44.1 under PCM:
https://at.yamaha.com/files/download/other_assets/8/333768/DVD-S1500_e_U.pdf
We try to determinate this, but unfortunately new DVD players a bit TOO flexible and forgiving?
https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007907.html
I even had idea to use PS2 emulator to check (DVD video supposed to work there since some time) but ran into qt6 being build dependency ... so I shelved this idea for now
Thank you
On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG < cin@lists.cinelerra-gg.org>
relative to ffmpeg.git commit
6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723
lightly tested with mpv and mediainfo like this:
./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd -f
dvd
t.mpg
mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;)
====
forwarded to ffmpeg-devel as requested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
вт, 30 янв. 2024 г., 23:21 Marth64 <marth64@proxyid.net>:
Interesting, thanks. My thought was to see if this is allowed for DVD-Video vs DVD-Audio only which are different application layer. I can try to run a PS2 test with the real hardware out of curiosity later.
Thanks! I also found Cirrus Logic application note from 2001 that mentions 32khz pcm operation. Yet it looks more like external amplifier/decoder part, not something integrated into dvd player itself? (input stream via S/PDIF) https://pdf.dzsc.com/88889/28162.pdf
On Tue, Jan 30, 2024 at 2:17 PM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
пн, 29 янв. 2024 г., 22:08 Andrew Randrianasulu <randrianasulu@gmail.com :
On Mon, Jan 29, 2024 at 8:16 PM Marth64 <marth64@proxyid.net> wrote:
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD
PCM. Does
this type of output work on an actual DVD player?
At least this pdf brochure lists 44.1 under PCM:
https://at.yamaha.com/files/download/other_assets/8/333768/DVD-S1500_e_U.pdf
We try to determinate this, but unfortunately new DVD players a bit TOO flexible and forgiving?
https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007907.html
I even had idea to use PS2 emulator to check (DVD video supposed to work there since some time) but ran into qt6 being build dependency ... so I shelved this idea
for
now
Thank you
On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG < cin@lists.cinelerra-gg.org>
relative to ffmpeg.git commit
6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723
lightly tested with mpv and mediainfo like this:
./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd
-f dvd
t.mpg
mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;)
====
forwarded to ffmpeg-devel as requested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
ср, 31 янв. 2024 г., 04:49 Andrew Randrianasulu <randrianasulu@gmail.com>:
вт, 30 янв. 2024 г., 23:21 Marth64 <marth64@proxyid.net>:
Interesting, thanks. My thought was to see if this is allowed for DVD-Video vs DVD-Audio only which are different application layer. I can try to run a PS2 test with the real hardware out of curiosity later.
Thanks!
I also found Cirrus Logic application note from 2001 that mentions 32khz pcm operation. Yet it looks more like external amplifier/decoder part, not something integrated into dvd player itself? (input stream via S/PDIF)
https://tascam.com/downloads/tascam/78/DV-D01U_Manual.pdf also this pdf lists dvd pcm 44.1 in table at p. 30. No sights of 32khz, but surprizingly hdmi can carry such low frequency sampled sounds!
On Tue, Jan 30, 2024 at 2:17 PM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
пн, 29 янв. 2024 г., 22:08 Andrew Randrianasulu < randrianasulu@gmail.com>:
On Mon, Jan 29, 2024 at 8:16 PM Marth64 <marth64@proxyid.net> wrote:
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD
PCM. Does
this type of output work on an actual DVD player?
At least this pdf brochure lists 44.1 under PCM:
https://at.yamaha.com/files/download/other_assets/8/333768/DVD-S1500_e_U.pdf
We try to determinate this, but unfortunately new DVD players a bit TOO flexible and forgiving?
https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007907.html
I even had idea to use PS2 emulator to check (DVD video supposed to work there since some time) but ran into qt6 being build dependency ... so I shelved this idea
for
now
Thank you
On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
---------- Forwarded message --------- От: Andrew Randrianasulu <randrianasulu@gmail.com> Date: вс, 21 янв. 2024 г., 06:49 Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>, Cinelerra.GG
<
cin@lists.cinelerra-gg.org>
relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723
lightly tested with mpv and mediainfo like this:
./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a pcm_dvd -f dvd t.mpg
mpv plays sound correctly, mediainfo does not know those frequencies and display 0khz. ;)
====
forwarded to ffmpeg-devel as requested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Hi Andrew, Sorry, it took me some time to author DVDs to test this but I finally got around to it. DVD player # 1 (DVD only) -- pass for both 32k and 44.1k DVD player # 2 (4K/BD/DVD) -- pass for both 32k and 44.1k Interestingly, DVD player # 2 OSD showed sample rate as 48k but anyways it played fine. So, I agree this is supported most likely transparently by the decoder chipset itself. WRT the patch itself. I noticed there is an indentation issue in the switch statement, and it did not apply automatically on latest master. I had to modify it to apply. I do not have permission to merge patches but I imagine this will be more likely to get merged with those 2 things fixed. out of curiosity, how did you get the constant values ? (44.1 = 2, 32 = 3). I would like to implement this as well in to the DVD demuxer, since apparently it is possible to do. Thanks for sharing. Respectfully, On Tue, Jan 30, 2024 at 11:41 PM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
ср, 31 янв. 2024 г., 04:49 Andrew Randrianasulu <randrianasulu@gmail.com>:
вт, 30 янв. 2024 г., 23:21 Marth64 <marth64@proxyid.net>:
Interesting, thanks. My thought was to see if this is allowed for DVD-Video vs DVD-Audio only which are different application layer. I can try to run a PS2 test with the real hardware out of curiosity later.
Thanks!
I also found Cirrus Logic application note from 2001 that mentions 32khz pcm operation. Yet it looks more like external amplifier/decoder part,
not
something integrated into dvd player itself? (input stream via S/PDIF)
https://tascam.com/downloads/tascam/78/DV-D01U_Manual.pdf
also this pdf lists dvd pcm 44.1 in table at p. 30.
No sights of 32khz, but surprizingly hdmi can carry such low frequency sampled sounds!
On Tue, Jan 30, 2024 at 2:17 PM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
пн, 29 янв. 2024 г., 22:08 Andrew Randrianasulu < randrianasulu@gmail.com>:
On Mon, Jan 29, 2024 at 8:16 PM Marth64 <marth64@proxyid.net>
Hi, out of curiosity, I did not know 44.1/32 is supported on DVD
PCM. Does
this type of output work on an actual DVD player?
At least this pdf brochure lists 44.1 under PCM:
https://at.yamaha.com/files/download/other_assets/8/333768/DVD-S1500_e_U.pdf
We try to determinate this, but unfortunately new DVD players a bit TOO flexible and forgiving?
https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007907.html
I even had idea to use PS2 emulator to check (DVD video supposed to work there since some time) but ran into qt6 being build dependency ... so I shelved this idea
for
now
Thank you
On Mon, Jan 22, 2024 at 3:59 AM Andrew Randrianasulu < randrianasulu@gmail.com> wrote:
> ---------- Forwarded message --------- > От: Andrew Randrianasulu <randrianasulu@gmail.com> > Date: вс, 21 янв. 2024 г., 06:49 > Subject: patch for 44.1/32 khz pcm input in pcm dvd encoder > To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>,
Cinelerra.GG <
> cin@lists.cinelerra-gg.org> > > > relative to ffmpeg.git commit 6c4388b468bf92c0c1e7733c6cfe4ff3f9ca9723 > > lightly tested with mpv and mediainfo like this: > > ./ffmpeg -i ~/f9518976.mp4 -target pal-dvd -ar 44100 -c:a
wrote: pcm_dvd
-f
dvd
> t.mpg > > mpv plays sound correctly, mediainfo does not know those frequencies and > display 0khz. ;) > > > ==== > > forwarded to ffmpeg-devel as requested. > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
participants (2)
-
Andrew Randrianasulu -
Marth64