VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member
    Join Date
    Feb 2015
    Location
    Turkey
    Search Comp PM
    Dear friends,

    Could someone tell me, in x264 config page, how to change Encoding Mode and/or quality value via command line.

    Best Regards.
    Image Attached Thumbnails Click image for larger version

Name:	U.png
Views:	1492
Size:	70.2 KB
ID:	30347  

    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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
    Quote Quote  
  3. Member
    Join Date
    Feb 2015
    Location
    Turkey
    Search Comp PM
    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?

    Thanks
    Last edited by Minnac; 18th Feb 2015 at 06:36. Reason: make text readable
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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
    See https://trac.ffmpeg.org/wiki/Encode/H.264
    Quote Quote  
  5. Member
    Join Date
    Feb 2015
    Location
    Turkey
    Search Comp PM
    I think, you are right about parameters change.
    To give ffmpeg a try is looking a better solution.

    I appreciate your recommendations, but if you find an answer to my previous question, could you please share it here?

    Thanks for your help.
    Quote Quote  
  6. Member
    Join Date
    Feb 2015
    Location
    Turkey
    Search Comp PM
    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'
    and I don't know what I should do.
    Could you please guide me?

    Thanks
    Quote Quote  
  7. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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
    Quote Quote  
  8. Member
    Join Date
    Feb 2015
    Location
    Turkey
    Search Comp PM
    This works without any error.

    Thanks a lot.
    Quote Quote  
  9. Member
    Join Date
    Feb 2015
    Location
    Turkey
    Search Comp PM
    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:
    Click image for larger version

Name:	Adz.png
Views:	644
Size:	27.9 KB
ID:	31028
    Quote Quote  
  10. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Great!
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!