Dear friends,
Could someone tell me, in x264 config page, how to change Encoding Mode and/or quality value via command line.
Best Regards.
+ Reply to Thread
Results 1 to 10 of 10
-
-
I'm moving you to our video conversion section.
Use "--video-conf cq=30" for constant rate factor 30
See http://www.avidemux.org/admWiki/doku.php?id=using:command_line_usage -
Thanks for your fast response. I think I need further help.
My line is this:
"C:\Program Files\Avidemux64\avidemux.exe" --load test.avi --audio-codec LAME --output-format MP4 --video-conf cq=30 --video-codec x264 --save test.mp4
It works but ignores "--video-conf cq=30" parameter. I tried to write several quality values, but it always uses default value.
I changed order of video parameters as:
"C:\Program Files\Avidemux64\avidemux.exe" --load test.avi --audio-codec LAME --output-format MP4 --video-codec x264 --video-conf cq=30 --save test.mp4
Again same result. Converts the video but ignores the quality parameter.
Do you have any comment on this issue?
ThanksLast edited by Minnac; 18th Feb 2015 at 06:36. Reason: make text readable
-
They might have change the paramater try run avidemux --help . I have never used the command line.
Or why not use ffmpeg instead?
Like avi to mp4 with x264 video and aac audio:
Code:ffmpeg -i test.avi -c:v libx264 -preset slow -crf 30 -c:a libfdk_aac -b:a 128k output.mp4
-
Dear Baldrick,
I think my video processing knowledge is far low from being able to use ffmpeg.
I get this error code:
Code:libavutil 54. 18.100 / 54. 18.100 libavcodec 56. 22.100 / 56. 22.100 libavformat 56. 22.100 / 56. 22.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.100 / 5. 11.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'test.avi': Duration: 00:00:02.13, start: 0.000000, bitrate: 17669 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/ unknown), 640x480, 15382 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s Unknown encoder 'libfdk_aac'
Could you please guide me?
Thanks -
Try instead another aac encoder like the -c:a libvo_aacenc
Code:ffmpeg -i test.avi -c:v libx264 -preset slow -crf 30 -c:a libvo_aacenc -b:a 128k output.mp4
-
Dear Baldrick,
You made me a ffmpeg freak. Once I realised that ffmpeg is a very powerful tool but needs to be used from command line, I made a front-end for it. Now I use my program for all of my conversion needs. I gave a name Avidemux Automater since I started with Avidemux controlling aim. Then I converted it to ffmpeg front-end and I implemented all the parameters that I need for my conversion purposes. Now I'm happy with it. Thanks for your guidance.
Here is a screenshot: