2021-10-29 00:49:35 +01:00
|
|
|
# ffplay
|
|
|
|
|
|
|
|
> A simple and portable media player using the FFmpeg libraries and the SDL library.
|
|
|
|
> More information: <https://ffmpeg.org/ffplay-all.html>.
|
|
|
|
|
|
|
|
- Play a media file:
|
|
|
|
|
|
|
|
`ffplay {{path/to/file}}`
|
|
|
|
|
2023-07-09 20:13:55 +01:00
|
|
|
- Play audio from a media file without a GUI:
|
|
|
|
|
|
|
|
`ffplay -nodisp {{path/to/file}}`
|
|
|
|
|
|
|
|
- Play media passed by `ffmpeg` through `stdin`:
|
|
|
|
|
|
|
|
`ffmpeg -i {{path/to/file}} -c {{copy}} -f {{media_format}} - | ffplay -`
|
|
|
|
|
2021-10-29 00:49:35 +01:00
|
|
|
- Play a video and show motion vectors in real time:
|
|
|
|
|
|
|
|
`ffplay -flags2 +export_mvs -vf codecview=mv=pf+bf+bb {{path/to/file}}`
|
|
|
|
|
|
|
|
- Show only video keyframes:
|
|
|
|
|
|
|
|
`ffplay -vf select="{{eq(pict_type\,PICT_TYPE_I)}}" {{path/to/file}}`
|