Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:58:53+00:00 2026-06-04T23:58:53+00:00

I use FFMPEG since few moments now and after asking for help here a

  • 0

I use FFMPEG since few moments now and after asking for help here a first time about that, i was able to discover this command line that i use since then, for the conversion of .MP4 video to .FLV : ffmpeg -i namefile.mp4 -c:v libx264 -crf 19 destinationfile.flv .

The results was simply amazing ! Perfect video and a lot less space needed. But i’ve try this same line for a new video and didn’t work.

This is what appears to me :

[libmp3lame @ 03eaf5a0] flv does not support that sample rate, choose from (44100, 22050, 11025).

After that, i’ve try theses commands lines

ffmpeg -i in.mp4 -c:v libx264 -b:v 500k -c:a copy out.flv 
ffmpeg -i in.mp4 -c:v libx264 -ar 22050 -crf 19 out.flv

Without succes. So right now i just dont know what to do else to be able to convert this MP4 file to a FLV one, who is smaller in size and keep a perfect image, just like the others conversions made with the first code line before.

Thanks for your help !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:58:55+00:00Added an answer on June 4, 2026 at 11:58 pm

    You are having several issues and you already solved flv does not support that sample rate by including -ar. It took me several comments for clarification, but your other issue, if I understand you correctly, is that the output is still too big in file size.

    You mentioned FFmpeg: The ultimate Video and Audio Manipulation Tool which explains:

    The CRF can be anything within 0 and 51, with the reasonable range being 17 to 23. The lower, the better the quality, the higher the file size. In general, the best bet is to just try and see for yourself what looks good. Take into account the result file size you want and how much quality you can trade in for smaller file sizes. It’s all up to you.

    What that means is that you need to choose the highest CRF value that still gives you the quality you want. So instead of 19, which is very high quality, try a higher value. That doesn’t mean you have to encode the whole video to get a general idea of what a particular crf value will look like. Use the -ss and -t options to select random sections to encode. This example will skip the first 2 minutes and 30 seconds and encode a 10 second clip:

    ffmpeg -ss 00:02:30 -i input -t 30 -c:v libx264 -preset medium -crf 24 output.mp4
    

    As shown in the example -ss and -t can accept either hours:minutes:seconds or just seconds.

    Choosing to use crf means that you want your outputs to have a certain quality and file size is less of a concern. If the opposite is true, that you want your output to be a certain file size and quality is less of a concern then you need to use two-pass bitrate mode instead of crf. You can’t easily know what the file size will be with crf, but a two-pass encode with -b:v can approximately let you choose the file size in advance. In this example the desired output is 100 MB and the input is 671 seconds in duration (see the link for the math) so the command will be:

    ffmpeg -i input -c:v libx264 -preset medium -b:v 1092k -pass 1 -an -f mp4 -y NUL
    ffmpeg -i input -c:v libx264 -preset medium -b:v 1092k -pass 2 -c:a libfaac -b:a 128k output.mp4
    

    Personally, I rarely use a two-pass encode because I prefer my set of videos to be a similar quality (and therefore varying file sizes which I care less about).

    As for the -3 (the current stackoverflow question rating), I assume readers thought your question was unclear since you did not explain “without success” so nobody knew what the actual problem was. Be direct, descriptive, and provide all useful information: especially the commands and console outputs with your next FFmpeg question and you will get better and faster answers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

use this website a lot but first time posting. My program creates a number
I'd like to be able to use FFmpeg to convert a video file from
I use this ffmpeg command to take clips from a large VOB files that
I use ffmpeg to capture screenshot from video. Here is the command code: ffmpeg
I understand that you can use ffmpeg to serve a sequence of images as
I'm attempting to use ffmpeg on iOS. When I call av_register_all() then attempt to
Is there any way to use common tools (ffmpeg? mplayer/mencoder? mkvmerge? etc ) to
Use case: I've just entered insert mode, and typed some text. Now I want
When trying to use the FFMPEG gem on Mac OS X 10.6, ruby throws
Following this question I decided to use ffmpeg to crop MP3s. On another question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.