ffplay 播放YY直播的流

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/glw0223/article/details/89148948

ffplay 播放YY直播的流

  • web端和移动端,都是flv流
  • flv里是使用的h265和aac,由于flv的格式默认是不支持h265的,所以在解码播放时,需要强制指定解码器
ffprobe yy.flv
Input #0, flv, from 'yy.flv':
  Metadata:
    displayWidth    : 1280
    displayHeight   : 720
    fps             : 24
    profile         :
    level           :
    videocodecreal  : 0
    cdn_ip          : 27.221.34.160
    Server          : Tengine
    videorate       : 850
  Duration: 00:07:26.23, start: 432.336000, bitrate: 26 kb/s
    Stream #0:0: Subtitle: text
    Stream #0:1: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp
    Stream #0:2: Video: none ([12][0][0][0] / 0x000C), none, 24 fps, 24.42 tbr, 1k tbn
Unsupported codec with id 0 for input stream 2
ffplay -vcodec hevc yy.flv

猜你喜欢

转载自blog.csdn.net/glw0223/article/details/89148948