MIXER_INPUT_REC_ON TAG MP3 FILE

You are missing a feature or need an enhancement? Post your suggestion here!
Post Reply
jsonio
Posts: 15
Joined: 10 Dec 2018 11:39

MIXER_INPUT_REC_ON TAG MP3 FILE

Post by jsonio » 16 Jun 2019 12:09

Hello Bernd,

I'm using PF to automatically record programs in MP3 files that are sent to our ftp server as "podcasts" directly downloadable by our listeners.
We would like to tag automatically the MP3 file created with custom names to make it clearer !

Would it be possible to create the tags directly in the record command?

Something like :

MIXER_INPUT_REC_ON
Parameter: [mixername][|filename | mp3titletag | mp3artisttag]

Or maybe there is already another existing command to do it automatically?

Thank you very much,

jsonio

User avatar
radio42
Site Admin
Posts: 5560
Joined: 05 Apr 2012 16:26

Re: MIXER_INPUT_REC_ON TAG MP3 FILE

Post by radio42 » 16 Jun 2019 13:19

This is currently possible...

User avatar
radio42
Site Admin
Posts: 5560
Joined: 05 Apr 2012 16:26

Re: MIXER_INPUT_REC_ON TAG MP3 FILE

Post by radio42 » 17 Jun 2019 09:23

You can do the following:
The mixer event "OnStopRecording" (right-click on the mixer name and select 'Edit Control Command Events...') can be used to write TAG data to the last recording file. Use the macro ${mixerrecfilenamelast} to reference the last recording file and the control command EXEC_TAG_FILE.

Example:

Code: Select all

EXEC_TAG_FILE ${mixerrecfilenamelast}|title=This is my Title|artist=My Artist Name
To make this even more dynamic you can also set the title and artist variables when issuing your MIXER_INPUT_ON event, like this:

Code: Select all

EXEC_VAR_SET MyTitle=This is my Title
EXEC_VAR_SET MyArtist=My Artist Name
MIXER_INPUT_REC_ON INP2
And then use them within the InputMixer's OnStopRecording event.

Code: Select all

ASYNC
EXEC_TAG_FILE ${mixerrecfilenamelast}|title=${VAR:MyTitle}|artist=${VAR:MyArtist}
EXEC_UPLOAD_FILE ${mixerrecfilenamelast}|ftp://yourserver.com/targetname|username|password

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests