Hello, I'm struggling to split an mp3 file and simultaneously enter some tags in to the output. The input filename which is a get_iplayer download looks like this 'David_Rodigan_-_02_09_2014.mp3' and my problem is adding tags to the output. How do I make 'David_Rodigan' appear as 'title' in the output tags? I guessed that David would appear as first_part and Rodigan as second_part but I can't see a way to concatenate those two items to form title. My attempt looks like this :- mp3splt -G (?<title>):first_part+" "+second_part David_Rodigan_-_02_09_2014.mp3 3.00 60.00 -o /split/David_Rodigan_-_02_09_2014 But that fails with bash: syntax error near unexpected token `(' I'm looking at this page for inspiration but it isn't helping! http://mp3splt.sourceforge.net/mp3splt_page/documentation/man.html Perhaps somebody here can explain where I'm going wrong please? -- __ __| |_ __ __ .----------------------------------------------. / _/ _` \ V V / | mailto:alug_cdw@the-walker-household.co.uk | \__\__,_|\_/\_/ |______________________________________________|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 03/09, Chris Walker wrote:
My attempt looks like this :- mp3splt -G (?<title>):first_part+" "+second_part David_Rodigan_-_02_09_2014.mp3 3.00 60.00 -o /split/David_Rodigan_-_02_09_2014
- From the docs, it looks like you actually want something like: mp3splt -G "regex=^(?<artist>.*)_-_.._.._(?<year>....)" David_Rodigan_-_02_09_2014.mp3 3.00 5.00 Cheers, Steve -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUFsaOAAoJEL/3HArzwYbRvCgP/RYNzg5e++2eicS29ZlEmdXd sqpegf7HzxZu1U/fAYxM/PQZIRd8m2wq8M4QoYbaT8Cq28+2wU2cw6bl3Qh/jTFi cYtmbMcMfyngNIdVqxdoUwjj0i2C1XJV+2RkwUmUq+I0shYK6qsdo0x9f2PrJnNM JTPO9chKZJRiYxQagUoYCzOu4u9jAh761i5i8xsP6YLX35Q+mmE064xSFaOdQiz8 PPlfXOFkSKxRmZXiQLCXi7ODLhMNbysctJYNT+cR5/6iPI5yPwWreiFt5Ay2vhiA Y18a8pTnpiFidnDOTX1taLY38cWSeSiZimq2RMIAGaVG2UaKFtnvgBf/2w/KqPBJ diKnZtGKCr0VwIRpw6tHtsq4eXYqM2lVej6KhitEYRYp/Al7VpFavLm9eVdE1SIO I36n2aod5EZe5m0gXGR4tS+Gie8i05Vet3/0uNpXdRRpzvsfwMs07iNruFu+Ylup cPKej05apGBCSefFaa3cgnDznj3pgvVSuZae0dir6BRnUHaZ6T2fwpSS59WobX9D T3jSWVJB1u73vwNnRdL0nTFN5TWE+Nj9fXC5d8fs9wVbsIpcZOHWOBMxVl9eE4pH i2G+6Wbu/Bi4s3nwvYfd+G2gQfOOsxsO3h6SUcLzfah+9zU38u6UVM2I+w2k4vcB MEdKmbTC3iHH5RoppOtz =XWDr -----END PGP SIGNATURE-----
On Mon, 15 Sep 2014 11:59:26 +0100 Steve Engledow <steve@offend.me.uk> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 03/09, Chris Walker wrote:
My attempt looks like this :- mp3splt -G (?<title>):first_part+" "+second_part David_Rodigan_-_02_09_2014.mp3 3.00 60.00 -o /split/David_Rodigan_-_02_09_2014
- From the docs, it looks like you actually want something like:
mp3splt -G "regex=^(?<artist>.*)_-_.._.._(?<year>....)" David_Rodigan_-_02_09_2014.mp3 3.00 5.00
Many thanks for that. Apologies for the tardy reply but I've been on holiday. By the way, did you get an email I sent you privately some weeks ago? Again, apologies but if you didn't receive it, this is the only way to ask! -- __ __| |_ __ __ .----------------------------------------------. / _/ _` \ V V / | mailto:alug_cdw@the-walker-household.co.uk | \__\__,_|\_/\_/ |______________________________________________|
participants (2)
-
Chris Walker -
Steve Engledow