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)
+ Reply to Thread
Results 1 to 5 of 5
-
-
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 -
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.
Similar Threads
-
TS files Convert to mp4
By spike32 in forum Video ConversionReplies: 8Last Post: 25th Aug 2013, 06:56 -
Mp4 or 3gpp Files merge/joining and decoding parser
By fidogenial in forum Video ConversionReplies: 0Last Post: 8th Dec 2011, 14:02 -
Convert AVI (miniDV) to MKV/MP4, large files only convert partially
By Video Eddie in forum Video ConversionReplies: 0Last Post: 3rd Jan 2011, 05:44 -
How to convert m2ts files to mp4 files with sound
By diets in forum Blu-ray RippingReplies: 8Last Post: 18th Jan 2010, 11:17 -
Should I convert .flv files to .avi or .mp4?
By johnharlin in forum Newbie / General discussionsReplies: 6Last Post: 1st Dec 2008, 13:51