Comando ffplay de audio y video para reproducir medios

  • Reproducir archivos locales
ffplay -window_title "test time" -ss 2 -t 10 -autoexit test.mp4
ffplay buweishui.mp3
  • Reproducir transmisión de red
ffplay -window_title "rtmp stream" 
rtmp://202.69.69.180:443/webcast/bshdlive-pc
  • decodificador de fuerza
mpeg4解码器:ffplay -vcodec mpeg4 test.mp4
 h264解码器:ffplay -vcodec h264 test.mp4 
  • Desactivar audio o vídeo
禁用音频:ffplay test.mp4 -an
禁用视频:ffplay test.mp4 -vn
  • Reproducir datos YUV
ffplay -pixel_format yuv420p -video_size 320x240 -framerate 5 yuv420p_320x240.yuv
  • Reproducir datos RGB
ffplay -pixel_format rgb24 -video_size 320x240 -i rgb24_320x240.rgb
ffplay -pixel_format rgb24 -video_size 320x240 -framerate 5 -i rgb24_320x240.rgb
  • Reproducir datos PCM
ffplay -ar 48000 -ac 2 -f f32le 48000_2_f32le.pcm
-ar set audio sampling rate (in Hz) (from 0 to INT_MAX) (default 0)
-ac set number of audio channels (from 0 to INT_MAX) (default 0)

Recomiendo una clase de proyecto de la Academia Lingsheng. Personalmente, creo que el profesor la enseñó bien. Me gustaría compartirla con ustedes:
Tarjeta de aprendizaje Lingsheng Platinum (que incluye infraestructura/almacenamiento de alto rendimiento/nativo de la nube de Golang/audio y video/kernel de Linux)
https://xxetb.xet.tech/s/VsFMs

Supongo que te gusta

Origin blog.csdn.net/qq_40135848/article/details/132589475
Recomendado
Clasificación