![]() ![]() If qscale is used without a stream_specifier then it applies only to the video stream, this is to maintain compatibility with previous behavior and as specifying the same codec specific value to 2 different codecs that is audio and video generally is not what is intended when no stream_specifier is used. The following command will remove the video stream from a video file, letting you extract audio from video. The meaning of q/qscale is codec-dependent. In addition to converting the video/audio file to a different format, FFmpeg can also remove the video part or the audio part separately. Stop writing to the stream after framecount frames. Use the libx264 encoder to produce the proper video with H.264/AAC. I started with the official documentation but the best I could find was a section on video quality, and the -q flag description is sparse. ffmpeg -i input.flv -vcodec mpeg4 -acodec aac output.mp4 UPDATE As LordNeckbeard mentioned, the previous line will produce MPEG-4 Part 2 (back in 2012 that worked somehow, I don't remember/understand why). Is it a percentage? Multiplier? How do I adjust this knob? Can/should I use negative values? Integers only? Min/max values? etc. ![]() But I can't find any documentation describing how to change this value of 1, and describing what it does. The 1 in the -q:v 1 argument is what controls the amount of compression. I'm most interested in the -q:v 1 argument of this for loop. The ffmpeg for loop above compresses all images and videos in your working directory, it basically lowers the quality which results in smaller file sizes (the desired outcome). ![]() Can you provide a link, or an explanation, to the -q:v 1 argument that deals with video/image quality, and compression, in ffmpeg.įfmpeg -i "$f" -q:v 1 "$filename"_lq."$extension" ![]()
0 Comments
Leave a Reply. |