VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. How can I do this,I need something like mencoder\ffmpeg(command line). I tried mencoder but without success. I'm making AutoHotkey script that help me merge spitted mp4 files and the script is done but the problem now is what program to use for the merging(mencoder give me some errors when I try -oac copy and -ovc copy) I have zero experience with ffmpeg and that's why I tried mencoder(when I try ffmpeg -h it gives me tons of commands which don't fit in the cmd window)
    Quote Quote  
  2. print help file
    ffmpeg --help>ffmpeg-help.rtf
    create file .bat to drag & drop

    ffmpeg.exe -y -i "%~f1" -vcodec copy -acodec copy "%~dpn1_new.mp4"

    or container mkv

    ffmpeg.exe -y -i "%~f1" -vcodec copy -acodec copy "%~dpn1_new.mkv"

    converting file video in mp4 whit codec x264 audio mp3

    ffmpeg.exe -y -i "%~f1" -vcodec libx264 -acodec libmp3lame -ar 48000 -b:a 112k -coder 1 -cmp +chroma -partitions p8x8,b8x8,i4x4,i8x8 -me_method hex -crf 26.0 -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 0 -qmax 69 -qdiff 4 -bf 3 -refs 8 -direct-pred 3 -trellis 2 -wpredp 2 -rc_lookahead 60 -threads 0 -ab 112k "%~dpn1_new.mp4"

    quality video setting -crf 26.0 (change 1 to 51)
    quality audio 112k (change 64 to 384)

    audio.mp3 + video.mp4 = fileaudio+video.mp4

    ffmpeg -y -i fileaudio.mp3 -i filevideo.mp4 -acodec copy -vcodec copy fileaudio+video.mp4
    Quote Quote  
  3. I already used mp4box (the file inside YAMB )and it worked(with little problems at first)but what does "%~f1" in that example for ffmpeg...does it means all dropped files? And what's this ~dpn1,is it the file name of some command
    Quote Quote  
  4. variable in windows
    %I =variabile
    %~I ​​- expands %I removing any surrounding quotes (")
    %~fI - expands %I to a full path name, making it
    %~dI - expands %I to a drive letter ...
    %~pI - expands %I to a path
    %~nI - expands %I to a file name
    %~xI - expands %I to a file extension
    %~sI - expanded path contains short names only
    %~aI - expands %I to file attributes
    %~tI - expands %I to date / time file
    %~zI - expands %I to size of file
    %~$ PATH: I - searches the directories listed in the variable
    PATH environment and expands %I to
    full name first met.
    If the environment variable is not Š
    defined or the file is not found in Š
    search, then this modifier expands
    to the empty string
    example file video.avi in folder c:\programs\video\
    full path is "c:\programs\video\video.avi"
    variabile to assigned = %1 file video to drag & drop in bat file
    %1="c:\programs\video\video.avi"
    %~1=c:\programs\video\video.avi
    %~f1=c:\programs\video\video.avi
    %~d1=c:\
    %~dp1=c:\programs\video\
    %~p1=programs\video\
    %~dpn1=c:\programs\video\video
    %~dpnx1=c:\programs\video\video.avi
    %~x1=.avi
    %~n1=video
    %~nx1=video.avi
    "%~nx1"="video.avi"

    exsemple
    mencoder.exe -ovc copy -oac copy %1 %2 %3 -o "%~dpn1_123.mp4"
    Last edited by odar733-3; 21st Feb 2013 at 15:51.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!