LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   flash on Linux, download mp3s from smile.Amazon.com, tar site recommendations (https://www.linuxquestions.org/questions/slackware-14/flash-on-linux-download-mp3s-from-smile-amazon-com-tar-site-recommendations-4175668416/)

wdarledge 01-25-2020 12:15 PM

flash on Linux, download mp3s from smile.Amazon.com, tar site recommendations
 
ok...

just went to amazon to buy a mp3 album. typically, i sample the songs to see if i want the whole album or just the song i heard on local radio. i have found many excellent albums this way.

that was then... this is now!

the sample player built in to the .html is probably flash. so, i'm 1). not sure if flash supports linux (adobe) and 2). i'm completely out of touch with tarballs.

so, is Amazon just gone for me now?
and...
if not, what is a good site to download a tar that supports flash?

'preciate it~!! :))
odin

Tonus 01-25-2020 12:19 PM

flash on Linux, download mp3s from smile.Amazon.com, tar site recommendations
 
What browser are you using? Any extension?

Alien Bob 01-25-2020 12:29 PM

I doubt that Amazon uses Flash to play these album snippets. I tried one album sample here and it looks like a HTML5 player is used. So any modern browser should support the playback.
By the way, your post does not explicitly mention that you can NOT play music on the Amazon web site. So what exactly is your problem? Try to give details and let people come to a conclusion instead of making assumptions.

xor_ebx_ebx 01-25-2020 12:32 PM

If you're talking about the sample player on an album's store page, it works fine with Slackware's Firefox package out-of-box. No flash needed

The actual Amazon Music browser app is a different story. I sorta got it to work with the Google Chrome package from /extra It will log in and download music but not play it in browser. The app doesn't appear to be using flash at all, so I doubt that's the problem

wdarledge 01-27-2020 10:42 AM

firefox 45.2.0, no extensions
 
Tonus,

amazon.com is the starting point.

search for artist》mp3

then., the album... once there, there are songs listed in album order, a play arrow is to the left.

when I click on the arrow it spins but does not play. this is the point of failure.

could be a permission error, will chk /etc/group for audio permission.

sevendogsbsd 01-27-2020 10:49 AM

Flash is dead (or should have been killed years ago). There may be one off sites that use it but I would avoid it at all costs unless absolutely necessary since it is a security nightmare.

And correct: Amazon music does not require flash - I have used their service to play music on both Linux and FreeBSD and I have never had flash installed.

teckk 01-27-2020 12:29 PM

Use your web inspector to dig them out. Or parse the scripts on the page with something.

This one.
https://www.amazon.com/Greatest-Numb...0148088&sr=8-1

Code:

curl -LI "https://d28julafmv4ekl.cloudfront.net/64%2F30%2F231290457_S64.mp3\
?response-content-type=audio%2Fmpeg&Expires=1580234611\
&Signature=RgZIhbZnFLNZ3EyTgbrROheXyUT1j0q5n5LVFDj0aihD3kuQDb2BIliN9Nk\
YrE3dta5B-rV4oUlLht~Mxb49LhzsrFEqADrSRsOr7oVxvssydep4HiE1O84bllGJrhNxt\
Z6GJILzusvcPQO6N6Fw~0bjvVvJa~zpBCn~NzNdyvs_&Key-Pair-Id=APKAJVZTZLZ7I5\
XDXGUQ"

HTTP/1.1 200 OK
Content-Type: audio/mpeg
Content-Length: 978118
Connection: keep-alive
Date: Mon, 27 Jan 2020 18:11:30 GMT
Last-Modified: Sun, 23 Jun 2019 03:00:25 GMT
ETag: "91bb96ca54f0d6586b587126d7e9bf7b"
x-amz-meta-indigo-md5-checksum: 91bb96ca54f0d6586b587126d7e9bf7b
Cache-Control: no-cache
x-amz-meta-indigo-unencrypted-length: 978118
x-amz-meta-indigo-sha1-checksum: 6a2b6a43e710fe725ec03c3373c42fbfb077a20d
x-amz-meta-indigo-sha256-checksum: 3a7a5096c5cc18b49931f54eb3adb791c0b5d3b4291ea8d6a97fe3b769552c0a
Accept-Ranges: bytes
Server: AmazonS3
X-Cache: RefreshHit from cloudfront
Via: 1.1 f00150800d85fddf0ee58a684f3d570f.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: YTO50-C2
X-Amz-Cf-Id: xh2gdCgx36Grx0fZ1_yXpCXPnjd1acBDAj3sMEoB-08gAimVVFMVqg==

Not that hard.
Here is the mp3
https://d28julafmv4ekl.cloudfront.ne...290457_S64.mp3

If you notice they are time sensitive. &Expires=1580234611

And you need a generated sig
Signature=xxxxxx&Key-Pair-Id=APKAJVZTZLZ7I5XDXGUQ

Code:

mplayer https://d28julafmv4ekl.cloudfront.net...<snip>
...
libavformat version 58.29.100 (external)
Audio only file format detected.
Clip info:
 Title: I Walk the Line
 Artist: Johnny Cash & The Tennessee Tw
 Album: The Greatest: The Number Ones
 Year: 2012
 Comment: Amazon.com Song ID: 23129045
 Track: 1
 Genre: Unknown
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 256.0 kbit/18.14% (ratio: 32000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  20.8 (20.7) of 30.0 (30.0)  0.5%


Framu 02-01-2020 09:58 PM

Quote:

Originally Posted by wdarledge (Post 6082881)
so, is Amazon just gone for me now?

I installed Slackware Current AKA pre-15.0 and I can play Amazon's audio snippets just fine without flash.

Very few sites require flash anymore (one that does is Xfinity streaming), because flash was such a massive vector for viruses it made the Wuhan wet market look like a bleach factory.

Petri Kaukasoina 02-02-2020 02:46 AM

Install http://www.slackware.com/~alien/slac..._64-1alien.txz for slackware64-14.2 or http://www.slackware.com/~alien/slac...586-1alien.txz for the 32-bit slackware-14.2.

AlexWilson 02-03-2021 07:43 PM

Thanks for sharing Petri!

shruggy 02-04-2021 06:17 AM

Slightly off-topic. There were two nice stories about Flash recently. This is what happened after Adobe blocked execution of all Flash content on January 12, 2021:
  1. As Adobe Flash stops running, so do some railroads in China. The story as reported is not quite true:
    Quote:

    Authorities fixed the issue by installing a pirated version of Flash at 4:30 a.m. the following day.
    Actually they installed an old legal Flash version from the archive.

  2. SARS: Some taxpayers’ tax forms gone in a Flash


Both China and South Africa reacted by creating their own browser versions uncoupled from Adobe. China also created its own implementation of Flash Player.

garpu 02-04-2021 12:14 PM

For Amazon, when I did buy music from them, I used clamz to open up the *.amz file, but I thought Amazon broke that?

ZhaoLin1457 02-04-2021 01:18 PM

Quote:

Originally Posted by shruggy (Post 6215926)
Slightly off-topic. There were two nice stories about Flash recently. This is what happened after Adobe blocked execution of all Flash content on January 12, 2021:
  1. As Adobe Flash stops running, so do some railroads in China. The story as reported is not quite true:Actually they installed an old legal Flash version from the archive.

  2. SARS: Some taxpayers’ tax forms gone in a Flash


Both China and South Africa reacted by creating their own browser versions uncoupled from Adobe. China also created its own implementation of Flash Player.

About what pirated versions of Flash Player you talk? Those are certainly lies.

In fact, the governments always receives the source code and build systems of the programs which they buy and use. That includes everything from the Adobe Flash Player to even Microsoft and its Windows 10 or whatever is next.

You can say that everything is open-source for states and their governments.

I believe that the Chinese government just modified themselves the received source code of this Flash Player to not call home and be locked, and distributed their own build. Probably same did also the South African government.

Now, is your choice to use, or not, a Flash Player maintained by the government of People Republic of China... ;)

shruggy 02-04-2021 02:00 PM

Quote:

Originally Posted by ZhaoLin1457 (Post 6216141)
About what pirated versions of Flash Player you talk? Those are certainly lies.

Have your read what I wrote? The article I quoted said it was a pirated version, and I said it was not true.

ZhaoLin1457 02-04-2021 02:05 PM

Quote:

Originally Posted by shruggy (Post 6216159)
Have your read what I wrote? The article I quoted said it was a pirated version, and I said it was not true.

I talked about that article. Those are certainly lies, because the governments does not need to use pirated software.


All times are GMT -5. The time now is 05:25 PM.