[MEncoder-users] Display filename
Peter
pscientist at inbox.com
Sun Jan 25 06:34:41 CET 2009
This is interesting, actually. I found two key bits of info. First, the command
to add subtitles in MEncoder:
http://ubuntuforums.org/showthread.php?t=300249
Second, the format of a subtitle file:
http://www.matroska.org/technical/specs/subtitles/srt.html
I had a quick play with this; at first, I got an error saying that -vop was
removed, and I should use -vf; I did the switch, and it worked.
I think it would be easy enough, if you're good with Python, to make a .srt file
for each sign video, and then get MEncoder to recode it with the subtitles in.
There's another interesting thing: I tested what happened with my 5 second test
video, if I put in the .srt file that the text was valid for 10 seconds... I got
a 5 second output file. So it seems that you can ask for 10 seconds in every
file, without worrying what the actual length of your sign is.
--
Patrick wrote:
> Thanks Peter
>
> I have actually looked into this a bit. I can add subtitles, thanks to
> GTK Subtitle Editor (or generic text editor) but these 5K videos are
> slightly different lengths. I am worried that the filename would go out
> of sink with the correct video.
>
> Is it possible to specify a video input length? For instance if all of
> these videos are mixtures of 3, 4 and 5 second videos, could I specify
> that each will be 6 seconds? I am not worried if there is a little blank
> space at the end.
>
> If each video was the same length then as per your suggestion I could
> write a batch script to auto-increment the subtitle file time line and
> add the file name. I can manage this in Python.
>
> Thanks again for taking the time to post Peter.
>
> -Patrick
>
>
> Peter wrote:
>> Patrick wrote:
>>
>>> Hi Everyone
>>>
>>> This is my first post.
>>>
>>> I want to learn sign language and teach it to my Son. I have >5000 short
>>> videos of sign language signs. All the file names describe the sign
>>> depicted in the video. I can use mencoder to create a single video of
>>> them but I would like to display the file name in the process. I know
>>> that I can use capital "I" while the individual videos are running but
>>> can I enter something equivalent to this at the command line so that
>>> they will be encoded into a single video?
>>>
>>>
>> Hey, I wonder if you could write a batch/script to create a subtitle file for
>> each video containing the filename, and then tell MEncoder to hard-code (don't
>> know the proper term) the subtitle stream into the output. Should be possible.
>>
>> I could look into this, but won't bother unless you don't get an answer.
>>
>>
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
>
More information about the MEncoder-users
mailing list