Packetizing an multimedia file (video or audio file) - java

for an android project I must load a multimedia file and then send the multimedia file in chunks (by reading it from file system) to a server. I don't know how can I do this work. Please give me an example to how do this?
thanks

you can play your as video or audio as streaming Please check this link

Related

Adding audio from WAV file to MP4 using JCODEC

I'm trying to figure out how to add an audio from an existing WAV file to an existing MP4 file using jcodec. Looked at https://github.com/jcodec/jcodec/issues/187, https://github.com/jcodec/jcodec/issues/164 to get some clues, still cannot figure out how to do it.

Java parse RTP dump file to create video file

Sorry for google translate english.
How can I create a video file using only a dump file with rtp packets? I looked at libjitsi, but did not find the functionality to create a file.

Is there any way to read an Epub file while it is downloading?

I currently have an Android and iOS app that downloads and reads an epub file stored in a remote server. Currently the epub is fully downloaded before being unzipped and displayed.
Now, the client requested for a way for the user to be able to read the content of the epub while the epub is being downloaded. Is there any way to accomplish this?
Thank you in advance.
No, there is no way to achieve this, if you download a (zipped) EPUB file. You can "stream" if you store the EPUB in uncompressed form on your server, and provide a suitable API for retrieving its parts as said by deathyr.
BTW, the latter is what Readium cloud reader does. See https://github.com/readium/readium-js-viewer

Compress MP3 files via an applet

I'm writing a recording applet. Is there a technique/API to compress the recorded MP3 on the client side using the applet before uploading it to the server?
I agree, zipping/compressing media files won't reduce its volume, apparently i should set the recorded audio file to be efficient in terms of quality by choosing a lightweight audio format and setting some specific audio attributes and that would definitely help reducing the volume before the upload to the server.

How to distinguish between audio file and video file?

I am using Java to write a media application.
Given a file, how can I know is it a audio file or video file?
By the way, I use vlcj library.
In Java 7 you will be able to use java.nio.file.probeContentType to do this.
In the meantime, there are a number of other options for doing this kind of thing.

Categories