Start a song from a specific time in rhythmbox using command line

musicisme

I would like to start a song from my terminal, starting from the first minute. i.e.: the command will run the music.mp3 starting from the minute 1.

I am able to run a music with

 rhythmbox music.mp3 

However it is starting from 0. How to do it for starting from minute 1?

slm

Take a look at the command line tool rhythmbox-client. Looking at the options there's a --seek switch which should do what you want.

rhytmbox-client --seek=+60

There are reports that this should work but doesn't. Might be a bug?

As an alternative method you can fire the commands directly yourself using dbus:

# seek forward 60 sec
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Seek int64:60000000
sleep 2    

# skip to next track
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
sleep 2

# toggle play/pause state
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
sleep 2

A bit too verbose for routine command line use, so just pop them into conveniently named scripts, and away you go! The list of commands can be found here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Start Recording an Audio Stream at a specific time for a specific duration from command line

From Dev

Play song at specific time position from a playlist

From Dev

Can I start/stop a specific webapp from command line?

From Dev

How to remove command-line history from a specific time period?

From Dev

Android - start an activity from command line using intent uri

From Dev

getty start from command line?

From Dev

How to ZIP specific files from a folder using Winzip command line?

From Dev

finding local time and date from internet using command line

From Dev

How to start a song from a listView?

From Dev

How to start a song from a listView?

From Dev

Start Firefox with Command Line using Proxy

From Dev

How to start GUI from command line?

From Dev

jmeter start in no pause mode from command line

From Dev

Start Android activity from command line with extra

From Dev

Start gitk from git gui command line

From Dev

Cant start jetty from command line

From Dev

How to start CouchDB from command line

From Dev

Start and stop Fiddler from command line

From Dev

How to start GUI from command line?

From Dev

How to start Pantheon from the command line

From Dev

How to start CouchDB from command line

From Dev

Start configured VPN from command line (OSX)

From Dev

Start a Zoom meeting from the command line

From Dev

How to start nautilus maximized from command line?

From Dev

Start desktop launcher from command line on Mint

From Dev

Start deepin system monitor from command line

From Dev

How can I hibernate/suspend from the command line and do so at a specific time

From Dev

How can I hibernate/suspend from the command line and do so at a specific time

From Dev

How to start a shell script from a specific line?

Related Related

  1. 1

    Start Recording an Audio Stream at a specific time for a specific duration from command line

  2. 2

    Play song at specific time position from a playlist

  3. 3

    Can I start/stop a specific webapp from command line?

  4. 4

    How to remove command-line history from a specific time period?

  5. 5

    Android - start an activity from command line using intent uri

  6. 6

    getty start from command line?

  7. 7

    How to ZIP specific files from a folder using Winzip command line?

  8. 8

    finding local time and date from internet using command line

  9. 9

    How to start a song from a listView?

  10. 10

    How to start a song from a listView?

  11. 11

    Start Firefox with Command Line using Proxy

  12. 12

    How to start GUI from command line?

  13. 13

    jmeter start in no pause mode from command line

  14. 14

    Start Android activity from command line with extra

  15. 15

    Start gitk from git gui command line

  16. 16

    Cant start jetty from command line

  17. 17

    How to start CouchDB from command line

  18. 18

    Start and stop Fiddler from command line

  19. 19

    How to start GUI from command line?

  20. 20

    How to start Pantheon from the command line

  21. 21

    How to start CouchDB from command line

  22. 22

    Start configured VPN from command line (OSX)

  23. 23

    Start a Zoom meeting from the command line

  24. 24

    How to start nautilus maximized from command line?

  25. 25

    Start desktop launcher from command line on Mint

  26. 26

    Start deepin system monitor from command line

  27. 27

    How can I hibernate/suspend from the command line and do so at a specific time

  28. 28

    How can I hibernate/suspend from the command line and do so at a specific time

  29. 29

    How to start a shell script from a specific line?

HotTag

Archive