Update README.md

This commit is contained in:
fdd4s 2023-05-19 10:59:15 +02:00 committed by GitHub
commit 24079c9f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,57 +2,7 @@
## What does
scripts to convert videos into several portable mp3 players formats through ffmpeg. It creates as result a file with the same name than source but ended in "-p"
## Dependencies
ffmpeg
this code is designed to work over linux.
## Players supported
AVI Format - Shenju 1.8 inch 128x160 players
AVI Format - Shenju 2.4 inch 240x320 players
AMV Format - Actions 1.8 inch 128x160 players
AMV Format - Actions 2.4 inch 240x320 players
MP4 Format - Spreadtrum 1.8 inch 128x160 players
## How to know to the kind of player
Brandless portable mp3 players often dont specify clearly the video format that is supported, to know what type of format is there is available sample videos in the folder test_videos_to_know_format_supported.
## Usage
$ video2shenju24.sh <video file>
$ video2shenju18.sh <video file>
$ video2actions24.sh <video file>
$ video2actions18.sh <video file>
$ video2spreadtrum18.sh <video file>
a file with the same name but ended in -p is created after conversion.
## Examples
$ video2shenju24.sh video.mp4
$ video2shenju18.sh video.mp4
$ video2actions24.sh video.mp4
$ video2actions18.sh video.mp4
$ video2spreadtrum18.sh video.mp4
## Syntax to use another versions of FFmpeg
You can use FFmpeg in Windows/Mac and Android, but these scripts are only for linux versions, if you want to use another versions, you can just use the next syntax of FFmpeg:
AVI Format - Shenju 1.8 inch: ffmpeg -i source.mp4 -vf "scale=-2:128, crop=160:128, transpose=2, vflip" -r 16 -acodec pcm_s16le -ac 2 -ar 22050 -pix_fmt yuv420p -c:v mjpeg -q:v 2 dest.avi
AVI Format - Shenju 2.4 inch: ffmpeg -i source.mp4 -vf "scale=-2:240, crop=320:240, transpose=2, vflip" -r 6 -acodec pcm_s16le -ac 2 -ar 22050 -pix_fmt yuv420p -c:v mjpeg -q:v 10 dest.avi
AMV Format - Actions 1.8 inch: ffmpeg -i source.mp4 -vf "scale=-2:128, crop=160:128" -r 14 -pix_fmt yuv420p -c:v amv -c:a adpcm_ima_amv -ac 1 -ar 22050 -block_size 1575 dest.amv # portable mp3 player - video converter tools
## What does
scripts to convert videos into several portable mp3 players formats through ffmpeg.
scripts to convert videos into several portable mp3 players formats through ffmpeg. It creates as result a file with the same name than source but ended in "-p".
## Dependencies
@ -116,15 +66,3 @@ Created by fdd
Send feedback and questions to fdd4776s@gmail.com
Support future improvements of this software https://www.buymeacoffee.com/fdd4s
All .sh files are public domain https://unlicense.org/
AMV Format - Actions 2.4 inch: ffmpeg -i source.mp4 -vf "scale=-2:240, crop=320:240" -r 14 -pix_fmt yuv420p -c:v amv -c:a adpcm_ima_amv -ac 1 -ar 22050 -block_size 1575 dest.amv
MP4 Format - Spreadtrum 1.8 inch: ffmpeg -i source.mp4 -vf "scale=-2:128, crop=160:128" -r 14 -pix_fmt yuv420p -c:v libx264 -profile:v baseline -level 1 -c:a aac -b:a 160k dest.mp4
## Credits
Created by fdd
Send feedback and questions to fdd4776s@gmail.com
Support future improvements of this software https://www.buymeacoffee.com/fdd4s
All files are public domain https://unlicense.org/