Hi guys,
Is there any encoder that operates using the "Send to" or Right Click" encode?
If not, is there any way to create scripts with ffmpeg to do this?
Thanks
Claudio
+ Reply to Thread
Results 1 to 16 of 16
-
-
You can put any batch file in your SendTo folder. Then Right Click -> Send To -> BatchName.bat to send files to it. For example, you can use this in a batch file to recompress the video with ffmpeg (x264), keep the original audio, and put the result in an MKV:
Code:"c:\program files\ffmpeg\bin\ffmpeg" -i %1 -c:v libx264 -preset veryfast -crf 18 -c:a copy "%~dpn1.mkv"
Last edited by jagabo; 19th Sep 2015 at 08:07.
-
You can also add custom context menu on right click for ffmpeg or HandBrakeCLI (handbrake command line)
with Default Program Editor:
-
Guys,
I mix the 2 solutions. script by Jagabo and right click for roma_turok. The command line screen open and close.
Wheres my fault? I download FFMPEG from here - 32bits, extract to folder, copy the jagabo source, only change ffmpeg patch. Nothing.
Try with mp4 and avi files. I dont know handbrake cml.
Claudio -
Add "pause" (without the quotes) to the end of the script and it will keep command line window open. Then copy & paste the error message or what it says back here
-
-
Jagabo, how to get MP4 instead MKV?
I change to MP4 and not work.
Claudio -
After some tries, maybe understand the process.
Using jagabo script, I get bat2exe and create a exe file to "send To".
Work flawless but MKV only.
I need .MP4 files and will make a perfect solution for me.
Claudio -
The container is specified by the output file extension. So just change it from .MKV to .MP4. Since the command doesn't reencode the audio be sure the source audio is valid for MP4.
In your earlier failed run in post #6 you didn't have quotes around the ffmpeg filename spec. So it interpreted "C:\Program" as the program to run, not "C:\Program Files (x86)\ffmpge\bin\ffmpeg". File names with spaces in them require quotes around them, otherwise the spaces act as delimiters. -
My file:
Code:General Complete name : D:\virtualdub-.avi Format : AVI Format/Info : Audio Video Interleave File size : 167 MiB Duration : 17s 350ms Overall bit rate : 81.0 Mbps Video ID : 0 Format : YUV Codec ID : ULY0 Codec ID/Info : Ut Video Lossless Codec Codec ID/Hint : Ut Video Duration : 12s 917ms Bit rate : 107 Mbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 3:2 Frame rate : 120.000 fps Color space : YUV Chroma subsampling : 4:2:0 Compression mode : Lossless Bits/(Pixel*Frame) : 2.571 Stream size : 164 MiB (98%) Audio ID : 1 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : 1 Duration : 17s 350ms Bit rate mode : Constant Bit rate : 1 536 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 3.18 MiB (2%) Alignment : Aligned on interleaves Interleave, duration : 25 ms (2.96 video frames) Interleave, preload duratio : 33 ms
I need a script to any video file to MP4.
Claudio -
PCM WAV is not supported by open source MP4 muxers . Either change the audio (e.g. AAC) , or use another container (e.g. MOV, MKV)
-
-
this works fine when the source is a direct .avi file via right-click-send-to
"d:\ffmpeg" -i %1 -c:v libx264 -preset veryfast -crf 18 "%~dpn1.mkv"
but when i wrap that .avi file inside an avs script, and right-click-send-to on the .avs file, i get this error
-c:v: Protocol not found
%1: No such file or directory
* that file does not have audio, so i removed the -c:a copy
* the .avi file is an UT codec 720x480 capture. (only, i forgot to set the audio driver to capture audio)Last edited by vhelp; 19th Sep 2015 at 16:14.
-
To compress the audio with AAC: http://trac.ffmpeg.org/wiki/Encode/AAC
For example:
Code:"c:\program files\ffmpeg\bin\ffmpeg" -i %1 -c:v libx264 -preset veryfast -crf 18 -c:a libvo_aacenc -ab 128k "%~dpn1.mp4"
-
it works when the codec is Lagarith. So, it may appear to be a codec problem, either with ffmpeg or x264 or both. i'm testing that theory now, by resaving the UT codec .avi file (virtualdub) as Lagarith codec .avi file.
EDIT: false alarm. I had a trim() function in the script that was way past the source limit i was testing this on. dah. sorry for the high-jack.Last edited by vhelp; 19th Sep 2015 at 16:33.
-
Similar Threads
-
New tool to convert vob to mpeg
By Kerry56 in forum Video ConversionReplies: 5Last Post: 9th Oct 2013, 12:03 -
linux-tool to convert sup to idx/sub
By Valit in forum SubtitleReplies: 1Last Post: 9th May 2013, 14:45 -
Tool suggestion to convert MKV to SWF
By Rafales in forum Video ConversionReplies: 5Last Post: 12th Apr 2011, 10:50 -
Simple click and go method to convert PAL to NTSC
By THRobinson in forum Video ConversionReplies: 15Last Post: 26th Feb 2011, 00:16