php - ffmpeg generated videos crashes on iOS -



php - ffmpeg generated videos crashes on iOS -

i have php based web page users can upload images , later turned mp4 video using ffmpeg. web server videos generated, hosted on centos. process this:

1) convert each image few seconds long mp4 video ffmpeg -y -loop 1 -i step1.jpg -c:v libx264 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -t 5 -pix_fmt yuv420p step1.mp4

2) convert each video mpg merging ffmpeg -y -i step1.mp4 -c re-create -bsf:v h264_mp4toannexb -f mpegts step1.mpg (these 2 steps repeated each image uploaded)

3)finally - merge steps create 1 mp4 video ffmpeg -y -i "concat:step1.mpg|step2.mpg|step3.mpg" -c re-create video.mp4

the video works on windows computers, when player on apple ios, crashes after first merge. either video player displays error, or video not played correctly. perchance issue? thanks.

php ios ffmpeg

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -