How do you use Ffmpeg to give unique title/track names (%02d) using -metadata to a split .mp3 file?
Hi I've successfully split a .mp3 file & given it unique names using "XX_%02d.mp3" in the following command: (XX_01, XX_02 etc.) How do I perform similar for the file's title or track? -metadata title="YY_%02d" gives the file the literal title name of YY%02d. How can I get the -metadata command to accept the numerical coding? ffmpeg -i "input.mp3" -c copy -segment_time 500 -f segment -segment_start_number 1 -metadata title="YY_%02d" -metadata track="YY%02d" "XX_%02d.mp3" Cheers DaveF
Hi I'm curious. I've asked this question on a couple of forums with no replies. Am I asking a stupid question? I'm struggling to believe I'm the only one whose ever wanted to do this On 06/08/2023 14:44, Dave F via ffmpeg-user wrote:
Hi
I've successfully split a .mp3 file & given it unique names using "XX_%02d.mp3" in the following command: (XX_01, XX_02 etc.)
How do I perform similar for the file's title or track? -metadata title="YY_%02d" gives the file the literal title name of YY%02d. How can I get the -metadata command to accept the numerical coding?
ffmpeg -i "input.mp3" -c copy -segment_time 500 -f segment -segment_start_number 1 -metadata title="YY_%02d" -metadata track="YY%02d" "XX_%02d.mp3"
Cheers DaveF _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
I'm curious. I've asked this question on a couple of forums with no replies. Am I asking a stupid question? I'm struggling to believe I'm the only one whose ever wanted to do this I personally think that ffmpeg is not the right tool for this. I would opt for creating tags after the files have been created with a command
Hi line tag editor like operon or if you prefer a gui Ex-falso. check https://quodlibet-frestr.readthedocs.io/en/latest/guide/commands/operon.html
On 06/08/2023 14:44, Dave F via ffmpeg-user wrote:
Hi
I've successfully split a .mp3 file & given it unique names using "XX_%02d.mp3" in the following command: (XX_01, XX_02 etc.)
How do I perform similar for the file's title or track? -metadata title="YY_%02d" gives the file the literal title name of YY%02d. How can I get the -metadata command to accept the numerical coding?
ffmpeg -i "input.mp3" -c copy -segment_time 500 -f segment -segment_start_number 1 -metadata title="YY_%02d" -metadata track="YY%02d" "XX_%02d.mp3"
Cheers DaveF _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
I'll take a look at your suggestions, thanks. However I disagree that ffmpeg isn't the correct tool. It allows read/write access to the metadata. I can add track titles to the files, just not unique ones, automatically. Something seems amiss. On 28/08/2023 21:46, Ferdi Scholten wrote:
I'm curious. I've asked this question on a couple of forums with no replies. Am I asking a stupid question? I'm struggling to believe I'm the only one whose ever wanted to do this I personally think that ffmpeg is not the right tool for this. I would opt for creating tags after the files have been created with a command
Hi line tag editor like operon or if you prefer a gui Ex-falso. check https://quodlibet-frestr.readthedocs.io/en/latest/guide/commands/operon.html
On 06/08/2023 14:44, Dave F via ffmpeg-user wrote:
Hi
I've successfully split a .mp3 file & given it unique names using "XX_%02d.mp3" in the following command: (XX_01, XX_02 etc.)
How do I perform similar for the file's title or track? -metadata title="YY_%02d" gives the file the literal title name of YY%02d. How can I get the -metadata command to accept the numerical coding?
ffmpeg -i "input.mp3" -c copy -segment_time 500 -f segment -segment_start_number 1 -metadata title="YY_%02d" -metadata track="YY%02d" "XX_%02d.mp3"
Cheers DaveF _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
However I disagree that ffmpeg isn't the correct tool. It allows read/write access to the metadata. I can add track titles to the files, just not unique ones, automatically.
Something seems amiss. To my knowledge ffmpeg alone is not capable of it. It only accepts
I'll take a look at your suggestions, thanks. literal strings for metada. (as you already found out) You could do it all with ffmpeg and scripting, It would require some serious scripting skills to do it in one ffmpeg run. The easy option is to run ffmpeg twice, first to create the files, then (with some easy scripting based on filenames) again to set the desired tags by the variables of your script. A dedicated tag editor can also be used for the second run and would be both easier and faster.
On 28/08/2023 21:46, Ferdi Scholten wrote:
Hi
I'm curious. I've asked this question on a couple of forums with no replies. Am I asking a stupid question? I'm struggling to believe I'm the only one whose ever wanted to do this I personally think that ffmpeg is not the right tool for this. I would opt for creating tags after the files have been created with a command line tag editor like operon or if you prefer a gui Ex-falso. check https://quodlibet-frestr.readthedocs.io/en/latest/guide/commands/operon.html
On 06/08/2023 14:44, Dave F via ffmpeg-user wrote:
Hi
I've successfully split a .mp3 file & given it unique names using "XX_%02d.mp3" in the following command: (XX_01, XX_02 etc.)
How do I perform similar for the file's title or track? -metadata title="YY_%02d" gives the file the literal title name of YY%02d. How can I get the -metadata command to accept the numerical coding?
ffmpeg -i "input.mp3" -c copy -segment_time 500 -f segment -segment_start_number 1 -metadata title="YY_%02d" -metadata track="YY%02d" "XX_%02d.mp3"
Cheers DaveF _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (2)
-
Dave F -
Ferdi Scholten