Skip to content

tomaz1/MP3-player_Video_converter_for_P20-Player

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVI Video Converter for Portable MP3 Players (P20-Player)

Background

I couldn't find SetupPxConverter(2.0.10).exe, but I did find
https://github.com/fdd4s/portable_music_player_avi_video_converter_tool_2025.

*NEW: You can get SetupPxConverter(2.0.10).exe here. (Thanks fdd4s!)


I wasn’t happy with mono sound, and later discovered a few limitations. The main ones were:

  • Missing stereo sound
  • Suboptimal audio quality (fdd4s set it to 16k, but it works fine at 22k)
  • First .avi file sometimes wouldn’t play when splitting
  • No aspect ratio fix
  • No support for sound gain

This script converts videos to AVI format suitable for portable music players using ffmpeg.
It creates output files named like the source file but with -p appended.
If the video is split, files will be named with -01, -02, -03, ...

These scripts rely on a modified ffmpeg build (ffmpeg-mod.exe) that supports extra x264 parameters.
Standard ffmpeg does not accept those parameters.

Personally, I don’t trust ffmpeg-mod and always run it in a free version of Sandboxie software in a "Box/Folder" without internet access.
Every time I run ffmpeg-mod it try to connect to the internet.

Dependencies

  • ffmpeg-mod.exe
  • These scripts are designed for Windows.

Supported players

Portable music player with a 1.8-inch screen with support for AVI video playback at 288×240 resolution.

black MP3 player white MP3 player
AVI format with a custom H.264 video codec.

If your player has a different resolution, feel free to change the desired video resolution in the .ps1 script by modifying the variables named:

$targetWidth = 288
$targetHeight = 240

How to identify your player's format

The test_video folder contains a 30-second fragment of the Creative Commons video
Big Buck BunnyWikipedia link
You can use it to test compatibility with your device.

Usage

C:\somewhere\> run-split.bat <video file>

For help:

C:\somewhere\> run-split.bat -?

Parameters:

  • input_file   Path to the input video file (required)

  • -cropadjust  0–100, how much to adjust the aspect ratio (default: 0)
    Adds or removes black borders to better match the device’s ideal 6:5 aspect ratio (288×240)

  • -splitmin   Segment length in minutes (0 = no splitting)
    Creates separate files: name-01.avi, name-02.avi, etc.

  • -soundgain  Audio gain or reduction in x.x dB (default: 0.0, negative values also allowed)

Example

C:\somewhere\> run-split.bat C:\Cartoons\videofile.mp4 -cropadjust 50 -splitmin 30 -soundgain 5

Example, when changing cropadjust value:

cropadjust value How it looks in this example
cropadjust = 0
cropadjust = 30
cropadjust = 60
cropadjust = 100

MP3 players – known limitations:

  • Video files can't be fast-forwarded or bookmarked (unlike MP3s)
  • Video audio does not play through Bluetooth speakers (not really necessary)
  • The MP3 player can’t transfer files over Bluetooth, so I have to use a USB-C cable or SD card instead.

Where to buy these players?

I bought both of my MP3 players (black and white) on AliExpress.

Project name

Why is the project named "P20 Player"?
Because when I connected the MP3 player to my computer, that’s the name it showed :)

P20 Player

P20 Player: Link to manual

Credits

Originally created by fdd4s
Send feedback and questions to fc1471789@gmail.com


This powershell script and new .bat file created by tomaz1
Send feedback to okay-aside-late@duck.com


All script files are public domain https://unlicense.org/

Languages

  • PowerShell 84.9%
  • Batchfile 15.1%