Skip to content

Add playitslowlycli console application.#3

Open
andrzej-bieniek wants to merge 13 commits intojwagner:masterfrom
andrzej-bieniek:master
Open

Add playitslowlycli console application.#3
andrzej-bieniek wants to merge 13 commits intojwagner:masterfrom
andrzej-bieniek:master

Conversation

@andrzej-bieniek
Copy link

Add playitslowlycli console application.

$ playitslowlycli --help
Usage: playitslowlycli [options] audiofile

Application changes playback speed. By default it plays the audio track. When
encoder is set (-e option) it sotres audio to the file. Suffix with speed
information and codec extension is added to the output file.

Options:
-h, --help show this help message and exit
--sink=SINK specify gstreamer sink for playback
-s SPEED, --speed=SPEED
playback speed, (value 1 means unchanged)
-e ENCODER, --encoder=ENCODER
audio encoder (when selected audio is tored to file).
Available encoders: wav, aac

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't you use str.join with a generator expression?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea. Thanks!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm quite busy right now but I will try to find time to do a full review soon. Thanks for your contribution. :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I should be around...

@eliasdorneles
Copy link
Contributor

You are probably aware of this audio filter for mplayer named scaletempo, who does a nice job of changing speed without changing pitch:

mplayer -af scaletempo -speed 0.7 file.mp3

You can change speed on-the-fly using the [ ] keys.
I don't know the availability across all OSs, though...

@andrzej-bieniek
Copy link
Author

Thanks for a tip.

I came across scaletempo in gstreamer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants