Video Processing - PHP put text information into video file
我想大声告诉你
我想大声告诉你 2017-05-16 13:15:00
0
1
948

I need to put a piece of GPS information (there may be other texts) into a video file
The requirement is that it can be played as usual and this information can be taken out

The first idea is to put the plaintext directly into the end of the binary file

$data=file_get_content('xxx.mp4');
$data=$data. $gps;
file_put_content('xxx_new.mp4',$data);

That's fine
But...
Now I feel that this is too vulgar, and the writing is not scientific at all.
My question now is, does anyone have a more standardized approach?
I am a PHP developer and I know nothing about video processing. I hope I can get some advice

我想大声告诉你
我想大声告诉你

reply all(1)
世界只因有你

https://wiki.multimedia.cx/in...

 ffmpeg -i inputfile -metadata title="视频标题" -metadata year="2010" outputfile

There are a lot of text bits that can be written in a video format. What you did was indeed too violent.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template