R
R
Rinat2020-01-10 21:24:24
Android
Rinat, 2020-01-10 21:24:24

In what format to convert video for android application?

Hello. Created an application from a list of videos. I upload the video to a dedicated server and convert it using ffmpeg. Server upload 100 Mbps.
ffmpeg:

exec('/usr/local/bin/ffmpeg -i '.$video.' -c:v libx264 -crf 23 -profile:v baseline -level 3.0 -pix_fmt yuv420p -c:a aac -ac 2 -b:a 128k -movflags faststart '.$new_video.' '.$log.' ');

in mp4 I chose Toro
for playback . The problem is that the video even sometimes 5 seconds buffer shakes. Although I’m watching the same TIKTOK, it works fine. Help me please! Already broke his head where to drip. 3 server test. Already tried to convert to DASH. Maybe I'm converting wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex1478, 2020-01-10
@alex1478

Try -movflags +faststartinstead -movflags faststart
Well, don't forget to configure nginx to return large files, there are a lot of articles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question