PDA

View Full Version : Text on H.264 video is possible???!!


alewarez
7th March 2007, 13:14
When i have an h.264 video stream or file is possible to insert a text on.

:helpful:

J_Darnley
7th March 2007, 13:46
1 - Use AviSynth's Subtitle() function to overlay a line of text on the video.

2 - Use AviSynth and VSFilter's TextSub() function to overlay the video with text subtitles.

3 - Use MPC or your DShow player of choice and VSFilter for subtitles on playback.

alewarez
7th March 2007, 15:04
Dear J_Darnley thanks you can explain better the first method?

This method introduce a long time?

Thanks

bond
7th March 2007, 19:46
do you want to hardcode your text on the videostream (so it cant be removed anymore)?

alewarez
8th March 2007, 11:51
yes, i want harcode a text on a videostream , better in real-time.

idea:

h264 stream------
-----------------|
------------------+ h264 stream
-----------------|
Text-------------

Is possible to insert a stream also in a container like (3gp+TTXT)
but the problem is that not all the 3gp player read ttxt.

Thank Alex.

J_Darnley
8th March 2007, 12:18
Refer to the AviSynth docs on the Subtitle() function if you want all the information but you use it like
Subtitle("Text goes here")

But it looks like you want to subtitles on the video but unfortunately VSFilter's TextSub function dosn't support TTXT. Unless someone can point to an AviSynth filter that does you will have to convert it to SRT, SSA.

alewarez
8th March 2007, 12:40
The problem is that i don't know were i put the code.
I tryed to use avsedit, and i opened the avs file with ffdshow (make avs). ffdshow make the file but it is illegible.

in the avs file i wrote :

AviSource("C:\video.avi")
Subtitle("Hello world!", align=5)

J_Darnley
9th March 2007, 14:09
That's exactly how it should be. The Subtitle line should always be the last. Try previewing the AviSynth script directly in MPC instead of using makeavs, that could be screwing it up.

I think this is more of an AviSynth Usage question than an AVC question.

Does the AVI file play correctly?

alewarez
9th March 2007, 14:26
All OK thank!