Log in

View Full Version : options for flac with mencoder/ffmpeg?


Selur
27th January 2012, 18:20
I know that I can encoder to flac with ffmpeg using "-acodec flac" and mencoder using "-oac lavc -lavcopts acodec=flac" my problem is I don't know how which additional options there are available in ffmpeg and mencoder and how to set them.

calling ffmpeg with '-h' leaves me with
...
-lpc_coeff_precision <int> E..A. deprecated, use flac-specific options
-prediction_order_method <int> E..A. deprecated, use flac-specific options
-min_partition_order <int> E..A. deprecated, use flac-specific options
-max_partition_order <int> E..A. deprecated, use flac-specific options
...
-lpc_type <int> E..A. deprecated, use flac-specific options
-lpc_passes <int> E..A. deprecated, use flac-specific option
and
FLAC encoder AVOptions:
-lpc_coeff_precision <int> E..A. LPC coefficient precision
-lpc_type <int> E..A. LPC algorithm
none E..A.
fixed E..A.
levinson E..A.
cholesky E..A.
-lpc_passes <int> E..A. Number of passes to use for Cholesky factorization during LPC analysis
-min_partition_order <int> E..A.
-max_partition_order <int> E..A.
-prediction_order_method <int> E..A. Search method for selecting prediction order
estimation E..A.
2level E..A.
4level E..A.
8level E..A.
search E..A.
log E..A.
which confuses me even more since I'm unsure if these options are now deprecated or not,..

and I can't find any source regarding the usage of mencoder and flac.


-> Can someone shine a bit of light here and tell me what flac options are available in mencoder/ffmpeg and how to use them?

Thanks!

Cu Selur

smok3
27th January 2012, 19:53
check
http://www.hydrogenaudio.org/forums/index.php?showtopic=45013&st=25&p=408905&#entry408905

i imagine
ffmpeg -i test.wav -compression_level 8 test.flac
would be max compression, but i could be wrong.

Selur
27th January 2012, 19:59
looks like you are right and '-compression_level' is the parameter for the compression in ffmpeg, anyone got an idea how the paramter is named in mencoder ?