Skip to content

Commit 76a72e3

Browse files
mtxmillerclaude
andcommitted
Add MP3 320kbps transcode rule (v1.3.0)
- Added flc→mp3 rule with 320kbps bitrate (vs default 128kbps) - Uses LAME -q 0 for highest quality encoding - Updated README with MP3 quality parameters - Bumped version to 1.3.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f52009f commit 76a72e3

8 files changed

Lines changed: 473 additions & 7 deletions

AGENTS.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# AGENTS.md
2+
3+
## Build/Lint/Test Commands
4+
5+
This is a minimal LMS plugin with no automated tests. No build/lint/test commands exist.
6+
7+
## Code Style Guidelines
8+
9+
### Perl (Plugin.pm)
10+
- Keep minimal - only required `initPlugin {}` function
11+
- Use standard Perl package declaration: `package Plugins::MobileTranscode::Plugin;`
12+
- End file with `1;` as required by Perl modules
13+
14+
### XML Files (install.xml, repo.xml)
15+
- Follow existing indentation (2 spaces)
16+
- Maintain exact structure for LMS compatibility
17+
- Version format: X.Y.Z (semantic versioning)
18+
19+
### custom-convert.conf
20+
- Use tabs for indentation (LMS requirement)
21+
- Format: `[source] [dest] [model] [player]`
22+
- Comments start with `#`
23+
- Capability flags in comments: I/F/T/U/D
24+
- Pipeline commands use `[tool]` syntax with LMS variables
25+
26+
### Naming Conventions
27+
- Model names: PascalCase (e.g., LyrPlay, YourApp)
28+
- Files: kebab-case for README, lower-case for config
29+
- Plugin namespace: Plugins::MobileTranscode::Plugin
30+
31+
### Critical Rules
32+
- SHA1 in repo.xml must exactly match release zip
33+
- Always update install.xml version first before release
34+
- Test with actual mobile clients - no automated validation available

MobileTranscode-1.2.2.zip

4.8 KB
Binary file not shown.

MobileTranscode-1.3.0.zip

5.08 KB
Binary file not shown.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ Model=YourApp → Matches: flc flc YourApp *
104104
**OGG Vorbis Output:**
105105
- `-C 0` to `-C 10` - Quality level
106106

107+
**MP3 Output:**
108+
- `-b 128` to `-b 320` - Bitrate (kbps), 320 recommended for quality
109+
107110
### Advanced: Manual Rule Location
108111

109112
If you want to see or edit the rules directly:
@@ -155,5 +158,5 @@ MIT License - Free to use and modify.
155158

156159
---
157160

158-
**Version**: 1.0.0
159-
**Last Updated**: October 2025
161+
**Version**: 1.3.0
162+
**Last Updated**: December 2025

custom-convert.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ flc ogg LyrPlay *
3939
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
4040
[flac] -dcs $START$ $END$ --force-raw-format --sign=signed --endian=little -- $FILE$ | [sox] -q -t raw --encoding signed-integer -b $SAMPLESIZE$ -r $SAMPLERATE$ -c $CHANNELS$ -L - -t ogg -C 10 -
4141

42+
# MP3 transcoding at 320kbps for high-quality mobile streaming
43+
# Uses -b 320 instead of $BITRATE$ to override the 128kbps default
44+
flc mp3 LyrPlay *
45+
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
46+
[flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q 0 $RESAMPLE$ -b 320 - -
47+
4248
# ============================================================================
4349
# Add Your App's Rules Here
4450
# ============================================================================

install.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<extension>
33
<name>PLUGIN_MOBILETRANSCODE</name>
44
<module>Plugins::MobileTranscode::Plugin</module>
5-
<version>1.2.2</version>
5+
<version>1.3.0</version>
66
<description>PLUGIN_MOBILETRANSCODE_DESC</description>
77
<creator>Eric Miller (mtxmiller)</creator>
88
<homepageURL>https://github.com/mtxmiller/MobileTranscode</homepageURL>

repo.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<title lang="EN">Mobile Transcode Rules Repository</title>
55
</details>
66
<plugins>
7-
<plugin name="MobileTranscode" version="1.2.2" minTarget="7.9" maxTarget="9.*">
7+
<plugin name="MobileTranscode" version="1.3.0" minTarget="7.9" maxTarget="9.*">
88
<title lang="EN">Mobile Transcode Rules</title>
9-
<desc lang="EN">Optimized custom-convert.conf rules for mobile Lyrion clients (LyrPlay). Enables WAV, Opus and OGG Vorbis transcoding.</desc>
10-
<url>https://github.com/mtxmiller/MobileTranscode/releases/download/v1.2.2/MobileTranscode-1.2.2.zip</url>
11-
<sha>3758866d5060c23c165a689d2b8b103f241b3ae4</sha>
9+
<desc lang="EN">Optimized custom-convert.conf rules for mobile Lyrion clients (LyrPlay). Enables MP3 (320kbps), WAV, Opus and OGG Vorbis transcoding.</desc>
10+
<url>https://github.com/mtxmiller/MobileTranscode/releases/download/v1.3.0/MobileTranscode-1.3.0.zip</url>
11+
<sha>7f516c558974f2003e9dad93e5e453fd8d8e65e0</sha>
1212
<link>https://github.com/mtxmiller/MobileTranscode</link>
1313
<creator>Eric Miller (mtxmiller)</creator>
1414
<email>ericlmiller@gmail.com</email>

0 commit comments

Comments
 (0)