Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ngx_http_flv_module启用后,flv无法播放 #969

@njroye

Description

@njroye

curl -I http://www.wiseidc.com/vod/dragon.flv?start=100000
Content-Length: 3314734

curl -I http://www.wiseidc.com/vod/dragon.flv?start=200000
Content-Length: 3214734

传入不同的start值后,返回的数据大小是变化的,说明flv模块已经生效,但是返回的flv文件使用jwplayer或者vlc,ffplay都无法正常播放。

ffplay报错:http://www.wiseidc.com/vod/dragon.flv?start=200000: could not find codec parameters

ffplay http://www.wiseidc.com/vod/dragon.flv可以正常播放,因为不加start不会开启flv模块。

生成flv视频的命令:ffmpeg -i dragon.mp4 -vcodec libx264 -acodec aac -f flv dragon.flv

已经使用yamdi -i dragon.flv -o _dragon.flv添加过matedata数据,但是都无效。

请问如何正常使用flv模块?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions