Is controlling DVD speeds via SET_STREAMING supported?
Hi,
currently my DVD player sounds like a jet plane when playing ordinary audio CD's. I tried the different approaches to lowering playback speed that are commonly used (hdparm, setspeed, etc) but none of them worked.
Then I found this thread:
http://marc.theaimsgroup.com/?t=99366299900003&r=1&w=2
Which seems to indicate that DVD players need a different command (SET_STREAMING), the thread is from 2001, and I've not been able to find any more recent information.
So, my question is, is this implemented in the kernel and are there any userspace tools to set the playback speed?
Regards,
David
PS
Please CC replies to my email address...
Quoted 5 lines
Hi,
currently my DVD player sounds like a jet plane when playing ordinary audio CD's. I tried the different approaches to lowering playback speed that are commonly used (hdparm, setspeed, etc) but none of them worked.
I doubt hdparm works on CD/DVD drives.
What is setspeed doing, internally?
My CD drives spin at "normal" (no more than speed 8) when playing CD-DA, if I am listening to Ogg, I manually spin it down by using "calm-cdrom". ( http://linux01.org:2222/f/UHXT/sbin/src/calm-cdrom.c )
Quoted 2 lines
Then I found this thread:
http://marc.theaimsgroup.com/?t=99366299900003&r=1&w=2
BTW, I can't spindown CD-DA, because upon opening /dev/hdb for the ioctl, the cd player resets :)
Jan Engelhardt
Signature · 2 lines
Gesellschaft für Wissenschaftliche Datenverarbeitung Am Fassberg, 37077 Göttingen, www.gwdg.de
Quoted 2 lines · Jan Engelhardt
I doubt hdparm works on CD/DVD drives.
What is setspeed doing, internally?
Well, hdparm does work for CD drives (hdparm -E), but not for CD/DVD combo drives...
And also, the tools I was thinking of isn't called setspeed...it's called setcd, and it uses ioctl(fd, CDROM_SELECT_SPEED, speed) which doesn't work on DVD players apparently. The same goes for the other tools I've tested ("hdparm -E" and "eject -x").
Quoted 4 lines
My CD drives spin at "normal" (no more than speed 8) when playing CD-DA, if I am listening to Ogg, I manually spin it down by using "calm-cdrom". ( http://linux01.org:2222/f/UHXT/sbin/src/calm-cdrom.c )
Which also uses the above mentioned ioctl...
Re,
David
Quoted 9 lines · David Härdeman
Hi,
currently my DVD player sounds like a jet plane when playing ordinary audio CD's. I tried the different approaches to lowering playback speed that are commonly used (hdparm, setspeed, etc) but none of them worked.
Then I found this thread:
http://marc.theaimsgroup.com/?t=99366299900003&r=1&w=2
Quoted 6 lines
Which seems to indicate that DVD players need a different command (
SET_STREAMING), the thread is from 2001, and I've not been able to find any more recent information.So, my question is, is this implemented in the kernel and are there any userspace tools to set the playback speed?
I don't know of any, but it is trival to write using SG_IO (or just CDROM_SEND_PACKET for this simple use, since only a trivial amount of data involved). If you are not sure how to do it, let me know and I can easily write one in minutes.
Signature · 1 line
Jens Axboe
Quoted 7 lines · Jens Axboe
Quoted 1 line · David Härdeman
So, my question is, is this implemented in the kernel and are there any userspace tools to set the playback speed?
I don't know of any, but it is trival to write using
SG_IO(or justCDROM_SEND_PACKETfor this simple use, since only a trivial amount of data involved). If you are not sure how to do it, let me know and I can easily write one in minutes.
If you could write up a quick-n-dirty tool, it would be great! Based on that I could hopefully write a patch later for one of the common tools (eg. hdparm or setcd).
Re¸
David