#11077 closed defect (invalid)
ffplay uses the -ac option to play pcm and reports an error 'ac': Option not found
Reported by: | marszuo | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffplay |
Version: | 7.0 | Keywords: | Option not found |
Cc: | MasterQuestionable | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
ffplay -ar 16000 -ac 1 -f s16le output.pcm
Using ffplay 7.0 to play pcm audio file, with -ac option, the playback always fails with the following obvious errors:
Failed to set value '1' for option 'ac': Option not found
Change History (3)
comment:1 by , 4 months ago
comment:2 by , 4 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
ffplay no longer supports the -ac option. ffmpeg happens to have some workarounds for compatiblity, but ffplay has not.
I suggest checking the native demuxer options:
ffplay -help demuxer=s16le
They should work fine. E.g.
ffplay -f s16le -ch_layout mono -sample_rate 44100 -i raw
comment:3 by , 4 months ago
Cc: | added |
---|
͏ I wonder the rationale for its deprecation:
͏ "-ch_layout" feels verbose, much unjustifiably.
Note:
See TracTickets
for help on using tickets.
I can confirm this.
n5.1 version works well.
However ffmpeg n7.0 is also an okay: