简体   繁体   中英

How to trim flv file without FFMPEG

Hi All.

We want to trim uploaded videos in certain time limit. like we want to trim our video to first 30 seconds on run time. we dont want to use FFMPEG for this purpose as it need to do certain configuration and we are not on live server.

so please refer some classes or codes that cam fulfill our such requirements.

we do not have any big libraries and codes that best fits here and complete our all requirements. we are not interested in FFMPEG nor we will use it. so please refer things other than that.

we have used:

trimMp3->cut_mp3('oldfile', 'newfile');

For this purpose as well but no good lucks as it is only used for mp3 triming. Can anyone please help me?

Thank you.

FLV is an extremely simple file format. Writing the code to do this yourself in PHP should be pretty easy.

Se Annex E in this document http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf

Simple read in each FLV tag, if the timestamp is less than 30000 write it to a new file. if it is greater, throw it away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM