leenux 发表于 2013-10-9 13:09:21

求问ffplay的codec参数详细用法

我的文件是的he-aac的xxx.mp4音频文件,但是不能确定force codec,求帮助。
大师兄若有空帮忙看一下

孙悟空 发表于 2013-10-9 13:12:26

$ ffplay --help|grep codec
ffplay version N-56531-g6d61a91 Copyright (c) 2003-2013 the FFmpeg developers
built on Oct9 2013 12:16:29 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --enable-libx264 --enable-libmp3lame --enable-gpl
libavutil      52. 45.100 / 52. 45.100
libavcodec   55. 33.100 / 55. 33.100
libavformat    55. 18.102 / 55. 18.102
libavdevice    55.3.100 / 55.3.100
libavfilter   3. 86.102 /3. 86.102
libswscale      2.5.100 /2.5.100
libswresample   0. 17.103 /0. 17.103
libpostproc    52.3.100 / 52.3.100
-codecs             show available codecs
-codec decoder_nameforce decoder
-acodec decoder_nameforce audio decoder
-scodec decoder_nameforce subtitle decoder
-vcodec decoder_nameforce video decoder通过help可以看到codec也有区别,acodec为音频codec,vcodec为视频codec,scodec为字母codec

比如你的xxx.mp4文件,如果文件里面的codec有一个stream,是audio,没有video的话
那么可以这么做ffplay -acodec aac xxx.mp4

leenux 发表于 2013-10-9 13:14:12

太神了,一下子就好使了,感谢大师兄
页: [1]
查看完整版本: 求问ffplay的codec参数详细用法