New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recorder output plugin not working when format_path configured #345

Open
mbuelte opened this Issue Aug 23, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@mbuelte

mbuelte commented Aug 23, 2018

I'm trying to record some streams using the recorder output plugin, but I can't get it working as expected, when the 'format_path' option is enabled. If only 'path' is set, I can record one song from the playlist and afterwards the playback stops (otherwise it would overwrite the output file). I tried every combination of variables, I thought maybe it won't record the stream because there are some informations missing. But even only with 'audio.flac' as output name, it won't record anything.

Here is my current configuration:

audio_output {
  type "recorder"
  name "recorder"
  encoder "flac"
  #path "~/media/music/_recorder_/audio.flac"
  format_path "~/media/music/_recorder_/[%artist%-][%title%|%name%][-%iso8601%-]audio.flac"
}

The MPD version used is 0.21 (v0.20.21-1368-g9151b84c2).

Here are some logs, the 1st one with enabled path the 2nd with configured format_path:

Aug 23 15:27 : playlist: play 6:"tidal://track/68587132"
Aug 23 15:27 : tidal: Tidal track '68587132' resolves to http://ab-pr-ak.audio.tidal.com/3fdd6f9500eb16b58670ca8483d074bd_26.flac?__token__=exp=1535034485~hmac=c415d97baf5eb3c99da811e2f248bebf2d6f6ed274d77e8b3906aa7f3539d659
Aug 23 15:27 : decoder_thread: probing plugin flac
Aug 23 15:27 : decoder: audio_format=44100:16:2, seekable=true
Aug 23 15:27 : output: opened "pulse audio" (pulse) audio_format=44100:16:2
Aug 23 15:27 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
Aug 23 15:27 : output: opened "fifo" (fifo) audio_format=44100:16:2
Aug 23 15:27 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
Aug 23 15:27 : output: opened "recorder" (recorder) audio_format=44100:16:2
Aug 23 15:28 : client: [0] process command "pause"
Aug 23 15:28 : output: closed "fifo" (fifo)
Aug 23 15:28 : output: closed "recorder" (recorder)
Aug 23 15:28 : update: spawned thread for update job id 1
Aug 23 15:28 : update: starting: _recorder_
Aug 23 15:28 : inotify: updating '_recorder_' job=1
Aug 23 15:28 : update: reading _recorder_/audio.flac
Aug 23 15:28 : update: added _recorder_/audio.flac
Aug 23 15:28 : simple_db: removing empty directories from DB
Aug 23 15:28 : simple_db: sorting DB
Aug 23 15:28 : simple_db: writing DB
Aug 23 15:28 : update: finished: _recorder_
Aug 23 14:59 : playlist: play 0:"tidal://track/68587126"
Aug 23 14:59 : tidal: Tidal track '68587126' resolves to http://ab-pr-ak.audio.tidal.com/4fa742bbd235247df78d2f11305b7085_26.flac?__token__=exp=1535032752~hmac=35057bfb2857abf59b452fd72d4eb38b9056ace164491a90bf5e0f5f448194af
Aug 23 14:59 : decoder_thread: probing plugin flac
Aug 23 14:59 : decoder: audio_format=44100:16:2, seekable=true
Aug 23 14:59 : output: opened "pulse audio" (pulse) audio_format=44100:16:2
Aug 23 14:59 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
Aug 23 14:59 : output: opened "fifo" (fifo) audio_format=44100:16:2
Aug 23 14:59 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
Aug 23 14:59 : output: opened "recorder" (recorder) audio_format=44100:16:2
Aug 23 15:00 : client: [30] process command "pause"
Aug 23 15:00 : output: closed "recorder" (recorder)
Aug 23 15:00 : output: closed "fifo" (fifo)
Aug 23 15:01 : client: [30] process command "pause"
Aug 23 15:01 : output: opened "fifo" (fifo) audio_format=44100:16:2
Aug 23 15:01 : output: opened "recorder" (recorder) audio_format=44100:16:2
Aug 23 15:07 : player: played "tidal://track/68587126"
Aug 23 15:07 : output: closed "recorder" (recorder)
Aug 23 15:07 : output: closed "fifo" (fifo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment