Body: <p>I have a friend in an institution. He only has access to a SanDisk sansa clip sport mp3 player, but it has been modded to run firmware for a Ruizu X10 mp3 player.</p>
  <p>It can display videos in amv format only, due to the weak processor.</p>
  <p>He is converting MP4 videos on an Android phone using ffmpeg, using the following commands:</p>
  <p>-c:v amv -c:a adpcm_ima_amv -pix_fmt yuvj420p -vf
  &quot;scale=148:128:force_original_aspect_ratio=dec reas e,crop=128:in_h:10:0,pad=160:128:32:-1:c
  olor=black&quot; -vstrict -1 -r 30 -ac 1 -ar 22050 -block_size 735</p>
  <p>However, the video quality is poor, blurry.</p>
  <p>We are completely new to this and don't understand the code above.</p>
  <p>Can you guys please help tweak the code to deliver better video quality that the weak mp3 processor can still handle?</p>
  <p>If possible, please just tell us what to type in the ffmpeg template box, because we are very new.</p>
  <p>The command to resize the video is necessary because the firmware on the mp3 player was made for a larger screen.</p>
  <p>Maybe 30fps is unnecessary? Not sure</p>
  <p>Thank you all!!!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-05T04:04:15.303Z
Comments.Text: Try adding `-q:v 4 -qmin 1 -qmax 16`. Experiment with the `q:v` value.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-05T18:49:58.490Z
Comments.Text: Thanks so much. Will try. Should I also experiment with the qmin and qmax values?
Comments.UserDisplayName: Bmcaps
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-06T03:57:53.163Z
Comments.Text: qmin can't go lower. And a higher qmax is only needed in order to slightly reduce file size.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-08T17:35:52.003Z
Comments.Text: Thanks, I tried altering these -q:v values by adding "-q:v 4" to the very end of my script and trying different values. All the videos were the same file size and looked identical. Am I doing something wrong?
Comments.UserDisplayName: Bmcaps
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-09T03:43:48.553Z
Comments.Text: These are output options so they go before the output path.
Comments.UserDisplayName: Gyan
Tags: <ffmpeg><conversion>
Title: Ffmpeg amv conversion
UserDisplayName: Bmcaps
ThreadText: # Ffmpeg amv conversion
  
  (Asked by: username_0 on 2023-08-04)
  
  I have a friend in an institution. He only has access to a SanDisk sansa clip sport mp3 player, but it has been modded to run firmware for a Ruizu X10 mp3 player.
  
  It can display videos in amv format only, due to the weak processor.
  
  He is converting MP4 videos on an Android phone using ffmpeg, using the following commands:
  
  -c:v amv -c:a adpcm\_ima\_amv -pix\_fmt yuvj420p -vf
  "scale=148:128:force\_original\_aspect\_ratio=dec reas e,crop=128:in\_h:10:0,pad=160:128:32:-1:c
  olor=black" -vstrict -1 -r 30 -ac 1 -ar 22050 -block\_size 735
  
  However, the video quality is poor, blurry.
  
  We are completely new to this and don't understand the code above.
  
  Can you guys please help tweak the code to deliver better video quality that the weak mp3 processor can still handle?
  
  If possible, please just tell us what to type in the ffmpeg template box, because we are very new.
  
  The command to resize the video is necessary because the firmware on the mp3 player was made for a larger screen.
  
  Maybe 30fps is unnecessary? Not sure
  
  Thank you all!!!
  
  **Tags:** ffmpeg, conversion
  
  > **Comments:**
  > **username_1**: Try adding `-q:v 4 -qmin 1 -qmax 16`. Experiment with the `q:v` value.  
  > **username_0**: Thanks so much. Will try. Should I also experiment with the qmin and qmax values?  
  > **username_1**: qmin can't go lower. And a higher qmax is only needed in order to slightly reduce file size.  
  > **username_0**: Thanks, I tried altering these -q:v values by adding "-q:v 4" to the very end of my script and trying different values. All the videos were the same file size and looked identical. Am I doing something wrong?  
  > **username_1**: These are output options so they go before the output path.  
  
  ---
  
  ## 0 answers
  
  