VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    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
    Quote Quote  
  2. 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.
    Quote Quote  
  3. You can also add custom context menu on right click for ffmpeg or HandBrakeCLI (handbrake command line)
    with Default Program Editor:

    Click image for larger version

Name:	01.jpg
Views:	618
Size:	80.1 KB
ID:	33738

    Click image for larger version

Name:	02.jpg
Views:	376
Size:	120.3 KB
ID:	33739
    Quote Quote  
  4. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    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
    Quote Quote  
  5. 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
    Quote Quote  
  6. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by poisondeathray View Post
    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
    Using PAUSE not work for me if using with DEFAULT EDITOR. The screen open/close only.

    Open CMD and run, its give me the screens below:






    PS: Jagabo script drag drop works perfect!!

    Claudio
    Quote Quote  
  7. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Jagabo, how to get MP4 instead MKV?

    I change to MP4 and not work.




    Claudio
    Quote Quote  
  8. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    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
    Quote Quote  
  9. 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.
    Quote Quote  
  10. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    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.

    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 change to MP4 but not work. Its give me 0kb file. MKV script works ok



    I need a script to any video file to MP4.




    Claudio
    Quote Quote  
  11. 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)
    Quote Quote  
  12. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by poisondeathray View Post
    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)
    Whats command PDR?? I try some but all give me errors.



    Claudio
    Quote Quote  
  13. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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
    or, i get the same error message as Claudio's

    %1: No such file or directory
    * my ffmpeg is in my d: drive/folder.
    * 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.
    Quote Quote  
  14. Originally Posted by Cauptain View Post
    Whats command PDR?? I try some but all give me errors.
    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"
    Quote Quote  
  15. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    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.
    Quote Quote  
  16. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    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"
    Many thanks Jagabo.

    My mother be able to share all videos with her family.

    I will learn about ffmpeg cli too.



    Claudio
    Quote Quote  



Similar Threads

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