Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Extracting MP3 Information

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Sat Oct 12, 2019 12:25 am    Post subject: Extracting MP3 Information Reply with quote

How to extract some information from mp3, such as size, album pictures, singers and so on, and then display it on the form
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Oct 12, 2019 12:54 am    Post subject: Reply with quote

It's depending on the mp3 source. How it saved on local disk or online storage.

example to get mp3 file name / song title :

Code:
...
local pathname, songname = file:match('(.*\\)(.*)%.mp3')
...


I believe I had a posted about complete 'mp3 player using Lua' here, somewhere in this forum.

EDIT:
Check here : https://forum.cheatengine.org/viewtopic.php?t=607021



CRDR MP3 Player 5.1.JPG
 Description:
CRDR CE MP3 Player Ver.5.1
 Filesize:  51.26 KB
 Viewed:  4652 Time(s)

CRDR MP3 Player 5.1.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL


Last edited by Corroder on Sat Oct 12, 2019 1:00 am; edited 1 time in total
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Sat Oct 12, 2019 12:59 am    Post subject: Reply with quote

Corroder wrote:
It's depending on the mp3 source. How it saved on local disk or online storage.

example to get mp3 file name / song title :

Code:
...
local pathname, songname = file:match('(.*\\)(.*)%.mp3')
...


I believe I had a posted about complete 'mp3 player using lua' here, somewhere in this forum.
Then how to extract file size and MP3 built-in pictures
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Oct 12, 2019 1:02 am    Post subject: Reply with quote

.lua wrote:
Corroder wrote:
It's depending on the mp3 source. How it saved on local disk or online storage.

example to get mp3 file name / song title :

Code:
...
local pathname, songname = file:match('(.*\\)(.*)%.mp3')
...


I believe I had a posted about complete 'mp3 player using lua' here, somewhere in this forum.
Then how to extract file size and MP3 built-in pictures


Check the given link provided.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Sat Oct 12, 2019 1:13 am    Post subject: Reply with quote

Corroder wrote:
Check the given link provided.
I've read this article before. Unfortunately, I can't download your CT link.
Can you re-upload CT to my post if it's convenient for you?

And what you mentioned in that article:
On future update (plan) :
- Added 'media seek = fast forward / back'
- Added 'sound visualization'
Have you achieved fast forward and fast backward?
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Oct 12, 2019 4:00 am    Post subject: Reply with quote

No problem with the link. Also, download links available on a youtube channel.

https://www.youtube.com/watch?v=pwBsDrFQEic

Quote:
And what you mentioned in that article:
On future update (plan) :
- Added 'media seek = fast forward / back'
- Added 'sound visualization'
Have you achieved fast forward and fast backward?


-- media seek = fast/backward or seek the specific position of mp3 durations.

-- sound visualization = displaying sounds by their channels with graphics.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Sat Oct 12, 2019 4:23 am    Post subject: Reply with quote

Corroder wrote:
No problem with the link. Also, download links available on a youtube channel.
https://www.youtube.com/watch?v=pwBsDrFQEic

-- media seek = fast/backward or seek the specific position of mp3 durations.
-- sound visualization = displaying sounds by their channels with graphics.
I like your 5.1 version of the player, I think your interface design is very beautiful, can you download a CT link?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Oct 12, 2019 5:04 am    Post subject: Reply with quote

Did you mean mega nz links?

You have to select, copy and paste them into browser. Forum script doesn't like ! in URLs.

_________________
Back to top
View user's profile Send private message MSN Messenger
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Mon Oct 14, 2019 3:47 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Did you mean mega nz links?

You have to select, copy and paste them into browser. Forum script doesn't like ! in URLs.
Now I can drag the slider to adjust the playback position of the MP3 player.
Code:

function seekMP3()
  if not initializeMP3Player() then return end  local P1=2000 --Or slide position * 1000 (depending on your use)
  MP3PlayerSendCommand('play MediaFile FROM '..P1..' to '..lengthMP3())
end-
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites