artclarke / humble-video

Humble Video: Demuxing, Decoding, Filtering, Encoding and Muxing of 100's of video and audio formats and Codecs from the JVM
GNU Affero General Public License v3.0
561 stars 115 forks source link

First try of porting the Converter class from Xuggle to Humble #42

Open beligum opened 9 years ago

beligum commented 9 years ago

I've spend some time "porting" the Converter.java class in the Xuggle project to the new Humble API. I'm attaching the result here, as a call for review and request for comments.

I don't think it's anywhere near the stage where it could be a pull request, so i'm not submitting it as one. I couldn't find a way to attach code to an issue, so I'm hosting it on our server:

http://dl.beligum.com/Converter.java

The class "works", eg. it compiles and runs using the "ucl-h264-aac.mp4" test video, but the results (using the currently hard coded codec, on Ubuntu Linux) are off. The framerate and the sample rate both seem to be wrong.

Please send me some feedback on how I can proceed with this development in a more structured manner. (just fork and submit as a pull request?)

greets,

b.

artclarke commented 9 years ago

Hi Beligum,

This is cool. Couple of pointers: 1) You can use Github Gists to put code into an issue; I would try that for the future, but I submitted your request as an issue here: https://github.com/artclarke/humble-video/issues/47 2) Not sure why it's off, but now that the issue is filed I will eventually get to it. It's been on my list to write a new example of this class (hopefully a simpler one as a teaching exercise).

Out of curiosity, what are you using the code for?

On Thu, Nov 13, 2014 at 5:03 AM, beligum notifications@github.com wrote:

I've spend some time "porting" the Converter.java class in the Xuggle project to the new Humble API. I'm attaching the result here, as a call for review and request for comments.

I don't think it's anywhere near the stage where it could be a pull request, so i'm not submitting it as one. I couldn't find a way to attach code to an issue, so I'm hosting it on our server:

http://dl.beligum.com/Converter.java

The class "works", eg. it compiles and runs using the "ucl-h264-aac.mp4" test video, but the results (using the currently hard coded codec, on Ubuntu Linux) is off. The framerate and the sample rate both seem to be erroneous.

Please send me some feedback on how I can proceed with this development in a more structured manner. (just fork and submit as a pull request?)

greets,

b.

— Reply to this email directly or view it on GitHub https://github.com/artclarke/humble-video/issues/42.

beligum commented 9 years ago

Hi Art,

Thanks for getting back to me. Sure, I'll use gists, no problem, just didn't know they existed ;-) Looking forward to your new take on the class. We're currently exploring the possibilities of JNI video handling libraries for a semantic art platform processor. Xuggler was one candidate, but we wanted to give Humble video a try during R&D. We're also looking at JavaCV and a few others.

cheers,

b.

kapcip commented 8 years ago

Hi beligum, I tried using encoders and decoders from your link, http://dl.beligum.com/Converter.java. I am using JPEG images as frame sources and I am creating a video out of that. Also, I am encoding an mp3 file into it. Video file is created out of those frames but there isn't any audio. Could you please help me out where I might be wrong?