FFMPEG make Video Lyrics using JPG MP3 SRT File

FFMPEG make Video Lyrics using JPG MP3 SRT File Input Files – Image (test.jpg) – MP3 File (test.mp3) – SRT Lyrics (test.srt) FFMPEG Command # ffmpeg -loop 1 -y -i test.jpg -i test.mp3 -vf subtitles=”f=test.srt:force_style=’FontName=Arial,FontSize=14″ -shortest test1.mp4 Output File: test1.mp4 SRT Lyrics Preview 1 00:00:00,330 –> 00:00:04,936 Hello Feifei. I didn’t know you shopped at … Read more

Song Lyrics: lrc2srt and srt2json

LRC2SRT.php <?php function lrc2srt( $lrc ) { $lrc = explode( “\n”, $lrc ); $srt = “”; $lines = array(); foreach ( $lrc as $lrcl ) { if ( preg_match( “|\[(\d\d)\:(\d\d)\.(\d\d)\](.+)|”, $lrcl, $m ) ) { $lines[] = array( ‘time’ => “00:{$m[1]}:{$m[2]},{$m[3]}0”, // convert to SubRip-style time ‘lyrics’ => trim( $m[4] ) ); } } for … Read more