Skip to content

Instantly share code, notes, and snippets.

@justinruggles
Created July 26, 2012 21:19
Show Gist options
  • Save justinruggles/3184586 to your computer and use it in GitHub Desktop.
Save justinruggles/3184586 to your computer and use it in GitHub Desktop.
make tests/tiny_psnr
float mono test:
avconv -cpuflags 0 -i <input> -filter:a aformat=sample_formats\=flt -channel_layout mono -y out_flt_mono_c.wav
avconv -cpuflags fma4 -i <input> -filter:a aformat=sample_formats\=flt -channel_layout mono -y out_flt_mono_fma4.wav
./tests/tiny_psnr out_flt_mono_c.wav out_flt_mono_fma4.wav
float stereo test:
avconv -cpuflags 0 -i <input> -filter:a aformat=sample_formats\=flt -channel_layout stereo -y out_flt_stereo_c.wav
avconv -cpuflags fma4 -i <input> -filter:a aformat=sample_formats\=flt -channel_layout stereo -y out_flt_stereo_fma4.wav
./tests/tiny_psnr out_flt_stereo_c.wav out_flt_stereo_fma4.wav
s16 mono test:
avconv -cpuflags 0 -i <input> -filter:a aformat=sample_formats\=s16 -channel_layout mono -y out_s16_mono_c.wav
avconv -cpuflags fma4 -i <input> -filter:a aformat=sample_formats\=s16 -channel_layout mono -y out_s16_mono_fma4.wav
./tests/tiny_psnr out_s16_mono_c.wav out_s16_mono_fma4.wav
s16 stereo test:
avconv -cpuflags 0 -i <input> -filter:a aformat=sample_formats\=s16 -channel_layout stereo -y out_s16_stereo_c.wav
avconv -cpuflags fma4 -i <input> -filter:a aformat=sample_formats\=s16 -channel_layout stereo -y out_s16_stereo_fma4.wav
./tests/tiny_psnr out_s16_stereo_c.wav out_s16_stereo_fma4.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment