To cut flv video using php

2019-04-16 02:54发布

I am trying to provide a preview of 30 seconds of premium videos (users have to pay to watch it completely). So I want to create a video file of 30 seconds at the time of uploading these videos. I used ffmpeg as below, but it is not working.

ffmpeg -ss 00:00:00.0 -t 00:00:30.0 -i input.flv -acodec copy -vcodec copy -async 1 output.flv

Thanks in Advance

标签: php ffmpeg exec
1条回答
我想做一个坏孩纸
2楼-- · 2019-04-16 03:04

@shinod, I have tested on my pc. this is work.

ffmpeg -ss 00:00:00.01 -t 00:00:30.00 -i input.flv -acodec copy -vcodec flv -async 1 output.flv

replace -vcodec copy to -vcodec flv

查看更多
登录 后发表回答