harshitharbhat
Posts: 3
Joined: Wed Nov 20, 2013 4:45 am

Video files

Wed Nov 20, 2013 4:54 am

Is it possible to write text into video files in raspberry pi?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: Video files

Wed Nov 20, 2013 9:38 am

What do you mean? Write text so it appears overlayed on the video stream and is recorded with it? Or just overlayed when played back or displayed?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

harshitharbhat
Posts: 3
Joined: Wed Nov 20, 2013 4:45 am

Re: Video files

Thu Nov 21, 2013 6:50 am

jamesh wrote:What do you mean? Write text so it appears overlayed on the video stream and is recorded with it? Or just overlayed when played back or displayed?
Write text so that it is recorded continuously with the video stream

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Video files

Thu Nov 21, 2013 10:43 am

What kind of text did you have in mind??

There are 2 ways of mixing text with video frames either by software rendering i.e. overlay or by re-encoding your video file to include text.
Overlay is possible with XBMC I have video files with SRT subtitles so I can confirm this is at least supported.
As for re-encoding I believe ffmpeg can burn in SSA subtitling text but there are no GPU accelerated builds so it would take an eternity to run on the Pi.

Richard S.

harshitharbhat
Posts: 3
Joined: Wed Nov 20, 2013 4:45 am

Re: Video files

Mon Nov 25, 2013 5:17 am

redhawk wrote:What kind of text did you have in mind??

There are 2 ways of mixing text with video frames either by software rendering i.e. overlay or by re-encoding your video file to include text.
Overlay is possible with XBMC I have video files with SRT subtitles so I can confirm this is at least supported.
As for re-encoding I believe ffmpeg can burn in SSA subtitling text but there are no GPU accelerated builds so it would take an eternity to run on the Pi.

Richard S.
Thanks for the suggestions!

I have a requirement to time stamp my videos/still images. The date command output needs to be continuously (in a one second interval) mixed with the video. Without GPU accelerated builds , time stamping at encoding time is not an option, overlay text is the only option but date command output and the video will have to be synchronized in the case of overlay.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Video files

Mon Nov 25, 2013 9:32 am

Create a sub titles file for you videos. I've never done that myself, so you have to search the web for exact syntax.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “General discussion”