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
世界只因有你2017-05-16 13:17:00
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.