Giter Club home page Giter Club logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024

Original comment by [email protected] on 3 Dec 2008 at 12:01

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
I have implemented mp4subtitle to support import/export of srt files. 

I had to make to changes to the library that are probably wrong. The text 
entered by the srt file seems to be more appropriate to be handled by a "text" 
track than a "subtl" track, but the functionality I needed was in the 
MP4AddSubtitleTrack function.

The resulting files are playable in VLC so I believe it is a good starting point

Original comment by [email protected] on 23 May 2011 at 3:25

Attachments:

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024

Original comment by [email protected] on 23 May 2011 at 5:02

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
any feedback on this issue?

Original comment by [email protected] on 5 Sep 2011 at 11:15

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Sorry, missed this.  I'm just glancing over the changes, and since MP4Subtitle 
is pretty much undone at the moment I don't see any reason not to accept the 
patch.  A few questions though.

1. Why change from MP4_SUBTITLE_TRACK_TYPE to MP4_TEXT_TRACK_TYPE?
2. What is an "srt" file, and what is the character encoding used?

Thanks

Original comment by [email protected] on 5 Sep 2011 at 6:26

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Hi,

I didn't know what was the best track type to use, any hint where are they 
defined? 
I just copied an example file that worked with vlc.

You can check the srt file format here: http://en.wikipedia.org/wiki/SubRip

As you said, the MP4Subtitle was empty, so I wanted to implement something 
simple to start with.

BR
Sergio

Original comment by [email protected] on 5 Sep 2011 at 8:15

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
What happens if you use a subtitle track?  does it still work in VLC?

Original comment by [email protected] on 6 Sep 2011 at 1:48

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
I have not tried to play a file with the subtitle instead of the text track.

I have checked it, and I have only found this reference for "sbtl" in the TS 
24.245

"The sample table box ('stbl') contains sample descriptions for the text track. 
 Each entry is a sample entry box of type ā€˜tx3gā€™.  This name defines the 
format both of the sample description and the samples associated with that 
sample description." 

But the "text" handler is registered here.

http://www.mp4ra.org/handler.html

BR
Sergio

Original comment by [email protected] on 6 Sep 2011 at 8:15

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
something buggy about the loop that reads the SRT text--the part that slurps in 
the next chunk doesn't always get the boundaries right. i added the statement 
"printf("text:\n---------\n%s\n---------\n",text);" at 
util/mp4subtitle.cpp:291, and the attached test SRT gave the attached output on 
an --import command (which failed with "mp4subtitle: wrong srt format at 
sample:0").

note how sample 22 is the last one that's handled correctly; the next sample 
starts off a few characters earlier than it should, causing the atoi() call to 
get the sample number to fail.

Original comment by [email protected] on 1 Jan 2013 at 8:38

Attachments:

from mp4v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.