Comments (13)
never thought of that - I am not even sure where this class actually used since
a do not use it directly. But as it seems the app-engine does not allow any
java.nio Buffers. That's a problem for me since I use these all over the place.
I would need to create a new level of abstraction ... Not sure if I can do this
this weekend but I'll try. My GF is on a business trip - got some time to spare
Original comment by Sebastian.Annies
on 24 Jun 2011 at 3:03
from mp4parser.
Introducing the interface was easy. Now there is still the getSegment method
returning a ByteBuffer. Let's see...
Original comment by Sebastian.Annies
on 27 Jun 2011 at 9:08
from mp4parser.
java.nio.ByteBuffer is in the whitelist of Google AppEngine
I don't clearly understand your last comment
Original comment by [email protected]
on 27 Jun 2011 at 1:49
from mp4parser.
Ooops. I didn't read the list too carefully.
I like the interface without ByteBuffer better, anyhow. The change was not that
big.
Original comment by Sebastian.Annies
on 27 Jun 2011 at 2:07
from mp4parser.
Two days ago, I've done successful test with mp4parser in a Java application.
Today, I've done a new try with Google App Engine and I get the message
===========================================
java.lang.NoClassDefFoundError: java.nio.MappedByteBuffer is a restricted
class. Please see the Google App Engine developer's guide for more details.
at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
at com.coremedia.iso.IsoBufferWrapperImpl.<init>(IsoBufferWrapperImpl.java:75)
.......
===========================================
line 75 is:
buffers.add(raf.getChannel().map(FileChannel.MapMode.READ_ONLY, i, filelength -
i).slice());
Is there an implicit usage of MappedByteBuffer?
Original comment by [email protected]
on 29 Jun 2011 at 5:01
from mp4parser.
The MappedByteBuffer is always used if you map a file into the memory. Perhaps
you could try to read the file into a bytebuffer by yourself and then put that
into the IsoBufferWrapper. That should not use a MappedByteBuffer!
Original comment by Sebastian.Annies
on 29 Jun 2011 at 5:37
from mp4parser.
OK
It's a bit tricky, but I will try it and send a report
Thank you for the reply
Original comment by [email protected]
on 29 Jun 2011 at 8:09
from mp4parser.
It's trash, but it do the work for the test. Now, I'm confident that the
library can work in Google App Engine.
I will search how I have to do it properly to be compatible with future version
of your code (something like surcharge of IsoBufferWrapperImpl class and better
attention to large files). Any advice is welcome.
Thank's for your help.
Other point:
I think you have a problem in HandlerBox.java if the name returned by getName()
is a string with length=1 and the only char is the byte 0 (which occurs); then
you produce a malformed string with a 0 in the middle
Possibly the same problem occurs in DataEntryUrnBox.java in the getName method
Original comment by [email protected]
on 7 Jul 2011 at 1:28
from mp4parser.
I added a FileChannelIsoBufferWrapperImpl based on RandomAccessFile. Just check
out the trunk. This should work on AppEngine.
Original comment by Sebastian.Annies
on 7 Jul 2011 at 2:31
from mp4parser.
Fine
It works
Original comment by [email protected]
on 7 Jul 2011 at 4:12
from mp4parser.
is it ok to close the issue?
Original comment by Sebastian.Annies
on 8 Jul 2011 at 6:37
from mp4parser.
closing. seems to be resolved
Original comment by Sebastian.Annies
on 14 Jul 2011 at 9:55
- Changed state: Fixed
from mp4parser.
Renamed FileChannelIsoBufferWrapperImpl to
RandomAccessFileIsoBufferWrapperImpl. The old name was misleading!
Original comment by Sebastian.Annies
on 15 Jul 2011 at 4:23
from mp4parser.
Related Issues (20)
- Default iv size should be 16 HOT 1
- Possible to merge audio clip on top of middle of video? HOT 1
- Fix for pasp atom box HOT 1
- Segfault when combining 2 files on Android. HOT 1
- Wrong duration of tracks after merging few files HOT 3
- AppendExample breaks sometime after r968 HOT 6
- New versions of the library are creating broken mp4 containers HOT 1
- Append task does not work in RC 37 HOT 2
- DefaultMp4Builder gives NPE for longer tracks HOT 1
- video is not trimmed less than 3 seconds.
- support "gnre" box
- Must handle "infinite" durations HOT 2
- Speed-up sample extraction HOT 2
- NullPointerException in MovieCreator.build HOT 2
- Patch for /trunk/isoparser/src/main/java/com/coremedia/iso/IsoFile.java HOT 1
- Problem when append 2 or more mp4
- combine videos crash the app HOT 5
- Merged Video Rotate by 90 degree HOT 1
- Support protocol H264 in transmit via IP address some Camera format h.264 ? HOT 1
- Problem with file appending for very big files
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 mp4parser.