Comments (9)
Original comment by [email protected]
on 3 Dec 2008 at 12:01
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from mp4v2.
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.
Original comment by [email protected]
on 23 May 2011 at 5:02
from mp4v2.
any feedback on this issue?
Original comment by [email protected]
on 5 Sep 2011 at 11:15
from mp4v2.
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.
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.
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.
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.
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)
- MP4Info not showing information related to MJPEG Video
- Can't compile with clang
- mp4info fails to show info of the simple video taken by Android phone HOT 1
- Error when trying to compile the project mp4v2 - 2.0.0 HOT 1
- Writing tags corrupts DASH-encoded files
- Integer overflow/wraparound in \src\mp4track.cpp
- Better FileProvider API HOT 3
- Modifying tags with mp4tags -m "test" corrupts some specific MP4 files
- add compilation, gapless, and genretype tag support to mp4tags
- https://code.google.com/p/mp4v2/issues/list?can=1&q=http%3A%2F%2Flimelinx.com%2Fdswj4
- Enhancement: Fill Genre from GenreType
- "Progressive Rock" mistyped as "Progresive Rock" in src/itmf/type.cpp HOT 1
- Ability to free memory allocated by MP4GetTrackH264SeqPictHeaders function HOT 2
- Support for Track Reference Atoms HOT 1
- Import/Export mp4 tags from/to text file
- make dist fail because make doc fails HOT 2
- use of impl / private code in example utils; enumGenreType HOT 1
- Charset problem at filenames
- Generate mp4 file.Can't play by media player.
- Google Code will shut down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mp4v2.