ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8747|回复: 1

请问下ffplay命令怎么选定开始时间播放视频?

[复制链接]
发表于 2014-1-23 10:01:03 | 显示全部楼层 |阅读模式
求解答
回复

使用道具 举报

发表于 2014-1-23 10:11:34 | 显示全部楼层

  1. [StevenLiu@localhost ffmpeg]$ ffplay --help
  2. ffplay version N-59597-g4ced5d7 Copyright (c) 2003-2014 the FFmpeg developers
  3.   built on Jan  6 2014 16:13:57 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  4.   configuration: --enable-libx264 --enable-libmp3lame --enable-gpl --enable-libfaac --enable-nonfree --prefix=/usr/
  5.   libavutil      52. 62.100 / 52. 62.100
  6.   libavcodec     55. 47.100 / 55. 47.100
  7.   libavformat    55. 22.102 / 55. 22.102
  8.   libavdevice    55.  5.102 / 55.  5.102
  9.   libavfilter     4.  0.103 /  4.  0.103
  10.   libswscale      2.  5.101 /  2.  5.101
  11.   libswresample   0. 17.104 /  0. 17.104
  12.   libpostproc    52.  3.100 / 52.  3.100
  13. Simple media player
  14. usage: ffplay [options] input_file

  15. Main options:
  16. -L                  show license
  17. -h topic            show help
  18. -? topic            show help
  19. -help topic         show help
  20. --help topic        show help
  21. -version            show version
  22. -buildconf          show build configuration
  23. -formats            show available formats
  24. -codecs             show available codecs
  25. -decoders           show available decoders
  26. -encoders           show available encoders
  27. -bsfs               show available bit stream filters
  28. -protocols          show available protocols
  29. -filters            show available filters
  30. -pix_fmts           show available pixel formats
  31. -layouts            show standard channel layouts
  32. -sample_fmts        show available audio sample formats
  33. -colors             show available color names
  34. -loglevel loglevel  set logging level
  35. -v loglevel         set logging level
  36. -report             generate a report
  37. -max_alloc bytes    set maximum size of a single allocated block
  38. -x width            force displayed width
  39. -y height           force displayed height
  40. -s size             set frame size (WxH or abbreviation)
  41. -fs                 force full screen
  42. -an                 disable audio
  43. -vn                 disable video
  44. -sn                 disable subtitling
  45. -ss pos             seek to a given position in seconds
  46. -t duration         play  "duration" seconds of audio/video
  47. -bytes val          seek by bytes 0=off 1=on -1=auto
  48. -nodisp             disable graphical display
  49. -f fmt              force format
  50. -window_title window title  set window title
  51. -vf filter_graph    set video filters
  52. -af filter_graph    set audio filters
  53. -showmode mode      select show mode (0 = video, 1 = waves, 2 = RDFT)
  54. -i input_file       read specified file
  55. -codec decoder_name  force decoder

复制代码
主要是-ss pos             seek to a given position in seconds这一行
例如

  1. ffplay -ss 00:00:10 test.avi
复制代码
就会从test.avi的第10秒开始播放
回复 支持 反对

使用道具 举报

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

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-26 09:04 , Processed in 0.044150 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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