Hello all.
I need some help with my input and output commands in FFMPEG.
I need to convert multiple files at the same time. What do I need to do as input and output commands, if I want the same names on the files and the input name?
I using:
ffmpeg -i INPUT.MOV (-timecode 00:00:00) -c:v mpeg2video -dc 10 -sc_threshold 1000000000 -intra_vlc 1 -non_linear_quant 1 -qmin 1 -qmax 12 -bf 2 -g 12 -pix_fmt yuv422p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range mpeg -b 50M -minrate 50M -maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -flags +cgop+ilme+ildct -acodec pcm_s24le -ar 48000 OUTPUT.MXF
+ Reply to Thread
Results 1 to 14 of 14
-
-
Perhaps can modify Baldricks bat file, shown here:
https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-with-ffmpeg
From:
Code:for %%a in ("*.*") do ffmpeg -i "%%a" -c:v libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k "newfiles\%%~na.mp4"
Code:for %%a in ("*.mov") do ffmpeg -i "%%a" your list of arguments "newfiles\%%~na.mxf"
Last edited by sambat; 10th May 2016 at 14:18.
-
-
Try remove the ( ) from
Code:(-timecode 00:00:00)
edit: Or are you using linux as sambat mentions? -
-
for %%a in ("*.mov") do ffmpeg -i "%%a" -c:v mpeg2video -dc 10 -sc_threshold 1000000000 -intra_vlc 1 -non_linear_quant 1 -qmin 1 -qmax 12 -bf 2 -g 12 -pix_fmt yuv422p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range mpeg -b 50M -minrate 50M -maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -flags +cgop+ilme+ildct -acodec pcm_s24le -ar 48000 "newfiles\%%~na.mxf"; for %%a in "*.mov" do ffmpeg -i "%%a" -c:v mpeg2video -dc 10 -sc_threshold 1000000000 -intra_vlc 1 -non_linear_quant 1 -qmin 1 -qmax 12 -bf 2 -g 12 -pix_fmt yuv422p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range mpeg -b 50M -minrate 50M -maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -flags +cgop+ilme+ildct -acodec pcm_s24le -ar 48000 "newfiles\%%~na.mxf"
with a folder called 'newfiles'
-
I ran the following (from your code) as a bat file from a command line inside the avi file source folder and the files converted ok.
Code:for %%a in ("*.avi") do ffmpeg -i "%%a" -c:v mpeg2video -dc 10 -sc_threshold 1000000000 -intra_vlc 1 -non_linear_quant 1 -qmin 1 -qmax 12 -bf 2 -g 12 -pix_fmt yuv422p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range mpeg -b 50M -minrate 50M -maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -flags +cgop+ilme+ildct -acodec pcm_s24le -ar 48000 "newfiles\%%~na.mxf"
-
-
"FOR %%a IN (*.*) DO..." is for the Windows Command Prompt, not for OS X.
Code:#!/bin/bash mkdir "newfiles" for filename in ./*.mov do ffmpeg -i "./$filename" -c:v mpeg2video -dc 10 -sc_threshold 1000000000 -intra_vlc 1 -non_linear_quant 1 -qmin 1 -qmax 12 -bf 2 -g 12 -pix_fmt yuv422p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range mpeg -b 50M -minrate 50M -maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -flags +cgop+ilme+ildct -acodec pcm_s24le -ar 48000 "./newfiles/${filename%.*}.mxf" done
Similar Threads
-
ffmpeg multiple input (including pipeline) and single output
By z-machine95 in forum Video ConversionReplies: 9Last Post: 23rd Aug 2015, 17:52 -
How do I use FFMPEG to output an MPEG-TS file with multiple programs?
By Videogamer555 in forum Video ConversionReplies: 13Last Post: 31st Aug 2014, 05:45 -
Trying to extract 1 image from multiple videos with FFMPEG
By mordor in forum Newbie / General discussionsReplies: 2Last Post: 13th Apr 2013, 18:31 -
Will converting the output of an HD PVR effect the input?
By un4gettable47 in forum Capturing and VCRReplies: 7Last Post: 21st Jul 2012, 23:27 -
Encode with FFMPEG with multiple input files...
By RogerTango in forum Video ConversionReplies: 3Last Post: 20th Jun 2011, 01:12