I am trying to write PCMU G.711 enocded data into avi
multimedia container using below program which yields Error occurred when opening output file: Operation not permitted
and when using mov
container, it yields Error occurred when opening output file: Invalid argument
. I set AV_CODEC_ID_PCM_U16LE
as audio codec of output format and AV_SAMPLE_FMT_S16
as sample format.
What's the problem here? Thanks in advance!