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
557 stars 115 forks source link

DecodeAndPlayVideo doesn't work with mp4 videos #140

Open navy1978 opened 5 years ago

navy1978 commented 5 years ago

Hi, I'm trying to use this libraries but I have some problems I see that mp4 files are not working:

http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 http://techslides.com/demos/sample-videos/small.mp4

On the other hand the following yes: http://techslides.com/demos/sample-videos/small.3gp http://www.engr.colostate.edu/me/facil/dynamics/files/drop.avi

using the class: DecodeAndPlayVideo provided within the project

Is there any reason? did I miss something?

I have also tried with a live stream: http://62.210.141.18:1935/directo/lancelot.television/live.m3u8

And I get:

[main] ERROR io.humble.video.DemuxerStream - HumbleRuntimeError("could not find decoding codec"): could not find decoding codec (DemuxerStream.cpp:71)
Exception in thread "main" java.lang.RuntimeException: could not find decoding codec
    at io.humble.video.VideoJNI.DemuxerStream_getDecoder(Native Method)
    at io.humble.video.DemuxerStream.getDecoder(DemuxerStream.java:140)
    at com.example.test.DecodeAndPlayVideo.playVideo(DecodeAndPlayVideo.java:81)
    at com.example.test.DecodeAndPlayVideo.main(DecodeAndPlayVideo.java:266)

How can I add codecs?