topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 07, 2019, 06:25 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Music player that can play 60 second previews  (Read 1281 times)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,732
    • View Profile
    • Donate to Member
Music player that can play 60 second previews
« on: August 22, 2019, 11:04 PM »
Looking for an app that I can use to review >800 tracks. 

Background is that the files were all on a USB stick in my wifes car, and some were displaying odd artifacts at the beginning of the track when played on the car stereo. 

Rather than scrapping the whole lot I'm wanting to review them to see if any are actually corrupted or whether the problem may lay with the player (its in a 4 year old subaru)

60 seconds should be more than enough to id any offenders, and I can listen to them while I do other things.  Having to do it manwelly is tedious, and gets in the way of work

Idea's or suggestions appreciated! 

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,257
    • View Profile
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #1 on: August 23, 2019, 03:42 PM »
You could try mplayer if you don't mind the CLI:

Code: Text [Select]
  1. mplayer -endpos 00:01:00 *.mp3

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #2 on: August 23, 2019, 10:11 PM »
Maybe this AHK script can be of help.

Usage: Define a valid path before running the script. Press Win+t to tag the files that you don't want. Later review the "TaggedFiles.txt" in the same path as the script.

Code: Autohotkey [Select]
  1. SetWorkingDir, %A_ScriptDir%
  2.  
  3. hotkey:= "#t"            ; win + t = tag file(s) to a text file
  4. timetoplay:= 60              ; 60 seconds
  5. path:= A_ScriptDir   ; put literal paths in quotes, e.g. "C:\Mp3"
  6.  
  7. Loop, Files, % path . "\*.mp3", DFR
  8. {
  9. Hotkey % hotkey, TaggedFiles
  10. ToolTip % A_LoopFileFullPath . " (" A_Index . ")",800,0,1
  11. Sleep, % timetoplay*1000
  12. }
  13. Sleep 5000
  14. MsgBox,64,, % "End of line, click OK to exit."
  15. Return
  16.  
  17. TaggedFiles:
  18. FileAppend, % tagged . "`r`n", TaggedFiles.txt
  19. ToolTip % "Tagged: " . tagged,800,25,2
  20. Return
  21.  
  22. #q::ExitApp    ; win + q = exit

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,732
    • View Profile
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #3 on: August 24, 2019, 03:23 AM »
don't mind the cli, but damn if the help file for mplayer isn't exactly helpful here.  I assume that there's no option for a recursive search with this option...

that AHK script is a winner (dunno why i didn't think of that).  Only thing I would like to see is some sort of delay between the tracks, ie the instant transition from track to track is somewhat jarring, though it does keep me focused (I added a 2 second mute at the end of the loop. does the trick) 

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,462
  • Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #4 on: August 25, 2019, 03:01 PM »
@Target:
This problem sounds kinda familiar, but it might help to know more about it.
I would suggest that, if you haven't done so already, then it might save some time to identify the problem more precisely. Just look simply at a couple of those those tracks that consistently display sound artefacts when played on the car's audio system. If they consistently display the same artefacts when played from the same USB stick, but on another player, then you will have probably correctly identified the problem (corrupted data), but not its cause.

If otherwise though:
(a) Can you also hear the artefacts when the radio is on and whilst the car is being driven and the engine is running?
(b) Do the artefacts when playing the mp3s only occur whilst the car is being driven and the engine is running?

In either case, then, from experience (and if it's a conventional gasoline-powered vehicle), I would suggest that you check over the condition of the car's ignition system, in particular the HT leads. If the sparkplug leads are invisibly breaking down (end-of-life) or have old suppressors (which could be invisibly failing), then there'd likely be a lot of strong bursts of electo-magnetic radiation going on under the hood due to sporadic HT arcing. This radiation could usually cause interference on the car radio aerial or any unshielded audio wires and would typically come out variously as a regular "ticking" sound, or intermittent pops, crackles or "whizzing" sounds.

The same thing could happen if the spark plug insulators are failing (like the HT leads and suppressors, they don't last forever, but plugs do need to be periodically replaced, whereas HT lines tend to last longer and thus get overlooked), or it might just be that the spark plug gap has not been checked at relevant service intervals for a long time and has worn too wide and now needs to be reset to its correct gap for that plug+vehicle. In the latter case, once the plug gaps are set correctly and assuming the plugs and HT leads etc. are otherwise OK, then your engine will probably run smoother and get some power back.

Just some thoughts.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,732
    • View Profile
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #5 on: September 01, 2019, 11:57 PM »
Some feedback in case its useful to others......

I couldn't get mplayer to work with that string, nor could I decipher the command line options (there appear to be hundreds, most relating to video...)

The AHK script worked, but audio disappeared after 2 folders, and only a reboot resolved it (until the next 2 folders...).  I could open/play the files manually regardless

Final solution - I eventually found that 1by1 had a configurable 'intro scan' function that does exactly what I wanted.  I knew it was there, but last time I used I don't think the play time was configurable 

EDIT:  Maybe worth noting that the 'preview' function in 1by1 only works on a folder by folder basis.  Not quite as convenient, but it's working for me...
« Last Edit: September 02, 2019, 05:12 PM by Target »

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,257
    • View Profile
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #6 on: September 02, 2019, 02:46 AM »
Strange about MPlayer, I literally just downloaded, extracted, used the command on both video and audio files, and it worked.

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,801
    • View Profile
    • Donate to Member
Re: Music player that can play 60 second previews
« Reply #7 on: September 05, 2019, 04:06 AM »
I'll bet that Skwire could add this as a feature in Trout. ;)