mmmmm I tell your post to my cat that have been the idea (of ndjamena ^^)
hoewver, if I don't mistake, the two line take 2 different of audio from the same .mxf file: ch1/ch2 and ch3/ch4
v:\automazioneclip\core\ffmpeg.exe -loglevel fatal -y -i %4 -map_channel 0.1.0 -map_channel 0.1.1 -af "volume=volume=9dBrecision=fixed" %DestFolder%\%~n1.wav
v:\automazioneclip\core\ffmpeg.exe -loglevel fatal -y -i %4 -map_channel 0.1.2 -map_channel 0.1.3 -af "volume=volume=9dBrecision=fixed" %DestFolder%\%~n1ch3ch4.wav
but if I can simplify it would be better
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 61 to 64 of 64
Thread
-
-
Code:
Set "TokenS=0" if /I "%~x4"==".mxf" ( Set "TokenS=1" if "%V_Width%"=="720" Set "TokenS=2" if "%V_Width%"=="1920" Set "TokenS=3" ) if /I "%~x4"==".mp4" Set "TokenS=4" if "%TokenS%"=="1" ( v:\automazioneclip\core\ffmpeg.exe -loglevel fatal -y -i "%~f4" -map_channel 0.1.0 -map_channel 0.1.1 -af "volume=volume=9dB:precision=fixed" "%DestFolder%\%~n1.wav" v:\automazioneclip\core\ffmpeg.exe -loglevel fatal -y -i "%~f4" -map_channel 0.1.2 -map_channel 0.1.3 -af "volume=volume=9dB:precision=fixed" "%DestFolder%\%~n1ch3ch4.wav" )
-
-
usually with a camcorder I use the first 2 audio channel, but more often there is a need, not remote, record and have 4 audio channels (audio ch1=hand microphone e.g sennheiser skm5000 / audio CH2= camera enhanced panoramic sennheiser MKH416 / Audio CH3= classic Sony panoramic microphon-in-camera / Audio Ch4= null) so in timeline, personally, I need to have at least ch1-ch2 but better is also ch3-ch4
this block:
Code:rem *** TRY extract audio from .MXF IMX SD FILE *** Set "TokenS=0" IF "%~x4"==".MXF" Set "TokenS=1" IF "%~x4"==".mxf" Set "TokenS=1" If "%TokenS%"=="1" (if "%V_Width%"=="720" (v:\automazioneclip\core\ffmpeg.exe -loglevel fatal -y -i %4 -map_channel 0.1.0 -map_channel 0.1.1 -af "volume=volume=9dB:precision=fixed" "%DestFolder%\%~n1.wav")) If "%TokenS%"=="1" (if "%V_Width%"=="720" (v:\automazioneclip\core\ffmpeg.exe -loglevel fatal -y -i %4 -map_channel 0.1.2 -map_channel 0.1.3 -af "volume=volume=9dB:precision=fixed" "%DestFolder%\%~n1ch3ch4.wav")) rem *** TRY extract audio from .MXF XDCAM-HD 4:2:2 FILE *** Set "TokenS=0" IF "%~x4"==".MXF" Set "TokenS=1" IF "%~x4"==".mxf" Set "TokenS=1" If "%TokenS%"=="1" (if "%V_Width%"=="1920" (v:\automazioneclip\core\ffmpeg.exe -y -i %4 -filter_complex "[0:1] [0:2] amerge,volume=1.5" -c:a pcm_s16le "%DestFolder%\%~n1.wav")) If "%TokenS%"=="1" (if "%V_Width%"=="1920" (v:\automazioneclip\core\ffmpeg.exe -y -i %4 -filter_complex "[0:3] [0:4] amerge,volume=1.5" -c:a pcm_s16le "%DestFolder%\%~n1ch3ch4.wav")) rem *** TRY extract audio from .MXF OTHER TYPE *** Set "TokenS=0" IF "%~x4"==".MXF" Set "TokenS=1" IF "%~x4"==".mxf" Set "TokenS=1" If "%TokenS%"=="1" (v:\automazioneclip\core\ffmpeg.exe -y -i %4 -filter_complex "[0:1] [0:2] amerge,volume=1.5" -c:a pcm_s16le "%DestFolder%\%~n1.wav") If "%TokenS%"=="1" (v:\automazioneclip\core\ffmpeg.exe -y -i %4 -filter_complex "[0:3] [0:4] amerge,volume=1.5" -c:a pcm_s16le "%DestFolder%\%~n1ch3ch4.wav") rem *** TRY extract audio from GOPRO MP4 file *** Set "TokenS=0" IF "%~x4"==".MP4" Set "TokenS=1" IF "%~x4"==".mp4" Set "TokenS=1" If "%TokenS%"=="1" (v:\automazioneclip\core\ffmpeg.exe -y -i %4 -filter_complex "[0:1] volume=1.5" -c:a pcm_s16le "%DestFolder%\%~n1.wav") rem *** TRY extract audio from .MP4 OTHER TYPE *** Set "TokenS=0" IF "%~x4"==".MP4" Set "TokenS=1" IF "%~x4"==".mp4" Set "TokenS=1" If "%TokenS%"=="1" (v:\automazioneclip\core\ffmpeg.exe -y -i %4 -filter_complex "[0:0] volume=1.5" -c:a pcm_s16le "%DestFolder%\%~n1.wav")
---> C0001.AVI (mjpeg avi for my dino-nle)
---> C0001.WAV (audio L+R CH1/CH2)
---> C0001ch3ch4.WAV (audio L+R CH3/CH4)
and nothing other.
I have two file-based camcorder: a sony pdw-f800 and 1 sony pdw-f335, both record mxf file but the F800 record SD 4:2:2 (IMX MODE) files that have audio in a different schema so for the same .mxf the batch use the procedure HD or SD following the resolution however also in the case I try to process a HD file with the SD mode (and viceversa) ffmpeg falls in error and don't generate anithing
but
If I don't put the block
Set "TokenS=0"
IF "%~x4"==".MP4" Set "TokenS=1"
IF "%~x4"==".mp4" Set "TokenS=1"
If "%TokenS%"=="1" (......................
a IMX SD file is processed byt the line "audio mp4" and is generate a mono .wav file instead of the L+R
I know the audio block is specific of my cameras, hoewver from few proof seems work well