alfianrahmn / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Can't transcode wmv3 video #252

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
Run xuggle example TranscodeAudioAndVideo.java with the file sent in attachment

What is the expected output? What do you see instead?
The expected output is a flv file, but instead the following exception is 
raised:
 (java.lang.IllegalArgumentException: could not find input codec id).

The FFMPeg that comes with the Xuggle version I'm using, transcode the file 
without problems.
I've tried the example with different wmv3 video, always getting the same 
exception

What operating system and JVM version are you using.
Windows 7, JDK 1.6 32 bit, Xuggle 3.4 Forrest.

Attach relevant log/output files.

Original issue reported on code.google.com by silv...@gmail.com on 21 Oct 2010 at 2:38

Attachments:

GoogleCodeExporter commented 8 years ago
I believe this is caused by a bug in the 
IContainerFormat.establishOutputCodecId method.  The method calls  
ICodec.findEncodingCodec(inputCodecId) and I think it should call  
ICodec.findDecodingCodec(inputCodecId).    My guess is that this is only an 
issue for codecs that ffmpeg can decode but not encode.

I created a patch and attached below.  The patch is tested against a similar 
situation as defined above, but not exact, and passed.

Original comment by millermi...@gmail.com on 25 Jan 2011 at 7:16

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in r1063

Original comment by art.cla...@gmail.com on 29 Jan 2011 at 10:32