View Single Post
Old 07 June 2014, 22:27   #45
Registered User
Join Date: Jun 2010
Location: PL
Posts: 1,653
Originally Posted by skullscandle View Post
@rem set samplerate=28604
@set samplerate=15977
@ffmpeg -i %1 -map 0:v -c:v rawvideo -vf "pp=hb/vb/dr/al|f/tmpnoise|4|4|4,decimate=cycle=2,scale='if(gt(a,4/3),320,-1)':'if(gt(a,4/3),-1,216)':sws_dither=a_dither:sws_flags=bicubic,format=pix_fmts=rgb555le,pad=320:216:(ow-iw)/2:(oh-ih)/2,setsar=sar=1/1,format=pix_fmts=rgb555le,vflip" -y %1.avi -map 0:a -c:a pcm_u8 -af "aformat=sample_fmts=fltp,pan=stereo|FL < FL + 1.414FC + .5BL + .5SL + 0.25LFE|FR < FR + 1.414FC + .5BR + .5SR + 0.25LFE,compand='.3 .35:1 1:-60/-40 -40/-30:6:-0.15:-90:0.2',volume=1.0,aresample=resampler=soxr:osr=%samplerate%:cutoff=0.99:dither_method=0,aformat=sample_fmts=u8:channel_layouts=stereo" -y %1.wav
Hope it is last version - skullscandle idea used (multiple outputs) - thank You skullscandle! - samplerate defined as separate parameter, vflip seem to be mandatory (rawvideo in AVI probably use Windows DIB organization - vertically flipped).
As always - framerate conversion is very crude - it is advised to use some motion compensated frame rate conversion method.

I should also mention that using sample rates from PC in Amiga is bad idea - there is no 16000 or 22050 or 11025 or 24000 - Amiga sample rates are like:28604, 23646, 22168, 15977, 11260 etc This is important as video and audio will be quickly out of sync - preferable is to have video framerate equal to native Amiga framerate and sample rate closest as possible to Amiga. Also it is good to resample any audio to native Amiga sample rate otherwise it will be played or faster or slower than on original (higher or lower pitch).

Last edited by pandy71; 11 June 2014 at 21:38.
pandy71 is offline  
Page generated in 0.03954 seconds with 10 queries