ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 17827|回复: 2

求问ffplay的codec参数详细用法

[复制链接]
发表于 2013-10-9 13:09:21 | 显示全部楼层 |阅读模式
我的文件是的he-aac的xxx.mp4音频文件,但是不能确定force codec,求帮助。
大师兄若有空帮忙看一下
回复

使用道具 举报

发表于 2013-10-9 13:12:26 | 显示全部楼层
  1. [StevenLiu@liudeMacBook-Pro ffmpeg]$ ffplay --help|grep codec
  2. ffplay version N-56531-g6d61a91 Copyright (c) 2003-2013 the FFmpeg developers
  3.   built on Oct  9 2013 12:16:29 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  4.   configuration: --enable-libx264 --enable-libmp3lame --enable-gpl
  5.   libavutil      52. 45.100 / 52. 45.100
  6.   libavcodec     55. 33.100 / 55. 33.100
  7.   libavformat    55. 18.102 / 55. 18.102
  8.   libavdevice    55.  3.100 / 55.  3.100
  9.   libavfilter     3. 86.102 /  3. 86.102
  10.   libswscale      2.  5.100 /  2.  5.100
  11.   libswresample   0. 17.103 /  0. 17.103
  12.   libpostproc    52.  3.100 / 52.  3.100
  13. -codecs             show available codecs
  14. -codec decoder_name  force decoder
  15. -acodec decoder_name  force audio decoder
  16. -scodec decoder_name  force subtitle decoder
  17. -vcodec decoder_name  force video decoder
复制代码
通过help可以看到codec也有区别,acodec为音频codec,vcodec为视频codec,scodec为字母codec

比如你的xxx.mp4文件,如果文件里面的codec有一个stream,是audio,没有video的话
那么可以这么做
  1. ffplay -acodec aac xxx.mp4
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-9 13:14:12 | 显示全部楼层
太神了,一下子就好使了,感谢大师兄
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-19 14:13 , Processed in 0.047601 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表