hi, sorry for my bad english,
i quite desperate about this software,
i have spent about 2-hour studying and the result is somehow disappointing,
1. i try in cmd :it works, but the output somehow located at "C:\Users\my_user_name"Code:"c:\ffmpeg.exe" -i C:\input\test.mp4 -f segment %03d.mp4
2. then i try to make it bat file with the same command, the result is
what do i wrong?Code:C:\>-i C:\input\test.mp4 -f segment "C:\test.bat"%03d.mp4 1>"c:\ffmpeg.exe" Access is denied. C:\>pause Press any key to continue . . .
3 i try to make output folder from point no 1
the result isCode:"c:\ffmpeg.exe" -i C:\input\test.mp4 -f segment c:\output\%03d.mp4
please, someone, help me, how to make it work for (drag and drop) batch processing,Code:Failed to open segment 'c:\output\000.mp4' Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory Error initializing output stream 0:0 --
or at least how to set output folder = input folder
additional note: i forgot the location i download the ffmpeg,
but this is the name file "ffmpeg-20190411-ce92ee4-win64-static.zip",
then extract it to c:\ drive
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 15 of 15
Thread
-
-
This script converts all the mp4 files in a folder to mkv, you can change settings and also work with x265
Code:for %%a in ("*.mp4") do ffmpeg -i "%%a" -preset veryslow -tune film -crf 20 -profile high -level 31 -g 30 -r 30000/1001 -flags +ilme+ildct -pix_fmt yuv420p -filter_complex scale=interl=1,fieldorder=tff,setsar=sar=40/33 -refs 10 -x264opts bluray-compat=1:vbv-bufsize=30000:vbv-maxrate=40000:slices=4:open-gop=1:force-cfr=1 -acodec copy -s 720x408 -aspect 16:9 "%%~na.x264.veryslow.20.Level.31.mkv" exit
-
-
-
-
-
-
to follow the example on the ffmpeg website
http://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment -
By the way, you can remux into segments very quickly and with no loss of quality:
Code:md "%~dp1output" ffmpeg.exe -i %1 -codec copy -f segment "%~dp1output\%~n1.%%03d.mp4"
You can specify the duration of the segments with segment_time (in seconds):
Code:md "%~dp1output" ffmpeg.exe -i %1 -codec copy -f segment -segment_time 60 "%~dp1output\%~n1.%%03d.mp4"
Last edited by jagabo; 13th Apr 2019 at 10:51.
-
thank for the reply,
what mean 60 second segments?,
is there every 60 second a video will split?
for -codec copy i will not using it,
i have some short video compilation,
and need precise cut,
if i using copy, the cut will have some remaining(or remainer?) of other scenes
any way this is my code,
Code::parse IF "%~1"=="" GOTO endparse call :handle_one_file %1 SHIFT GOTO parse :endparse :handle_one_file cd %CD% md output md failed TITLE "%~dpn1" "c:\ffmpeg.exe" -i "%~1" -f segment "%~dp1output\%~n1.%%03d.mp4" if not exist "%~dp1output\%~n1.001%~x1" goto skip_delete del /q "%~1" TITLE delete :skip_delete move "%~dpn1" "%~dp1failed\"
-
-
-
Similar Threads
-
FFmpeg Batch for Windows
By Eibol in forum Video ConversionReplies: 755Last Post: 8th Oct 2024, 05:57 -
Batch trim using FFMPEG
By taonas in forum EditingReplies: 4Last Post: 25th Feb 2021, 10:17 -
(HELP PLEASE) FFmpeg - Batch Remove metadata
By uppon2 in forum Newbie / General discussionsReplies: 14Last Post: 3rd Jun 2016, 06:47 -
Batch stabilize script for ffmpeg
By racer-x in forum Video ConversionReplies: 20Last Post: 2nd Jun 2016, 17:10 -
FFMPEG Batch Converter! Help Please
By kerafb in forum Video ConversionReplies: 0Last Post: 15th Jan 2016, 19:18