tag:blogger.com,1999:blog-6118878721807429434.post406968384893686632..comments2023-06-30T08:12:38.218-07:00Comments on Ben Farahmand: Tutorial: Using Xuggler in Processingbenhttp://www.blogger.com/profile/15078688661409400167noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6118878721807429434.post-7294482733869891822013-03-11T04:44:41.150-07:002013-03-11T04:44:41.150-07:00can anyone help me with this code to extract audio...can anyone help me with this code to extract audio from video using xuggler<br /><br />my code is here<br /><br />import com.xuggle.mediatool.IMediaReader;<br />import com.xuggle.mediatool.IMediaWriter;<br />import com.xuggle.mediatool.ToolFactory;<br />import com.xuggle.xuggler.ICodec;<br /><br /><br />public class convert {<br /> public static void main(String args[]){<br /> IMediaReader reader = ToolFactory.makeReader("F:/input.flv");<br /> IMediaWriter writer = ToolFactory.makeWriter("F:/output.mp3", reader);<br /> int sampleRate = 128000;<br /> int channels = 1;<br /> writer.addAudioStream(0, 0, ICodec.ID.CODEC_ID_MP3, channels, sampleRate);<br /> while (reader.readPacket() == null);<br /> }<br /><br />}<br /><br />Anonymoushttps://www.blogger.com/profile/09475000485686621238noreply@blogger.comtag:blogger.com,1999:blog-6118878721807429434.post-43917082776827284342013-01-27T17:55:39.108-08:002013-01-27T17:55:39.108-08:00I'm sorry, I don't know where you can down...I'm sorry, I don't know where you can download it...benhttps://www.blogger.com/profile/15078688661409400167noreply@blogger.comtag:blogger.com,1999:blog-6118878721807429434.post-17173631193991569852012-12-01T02:21:36.900-08:002012-12-01T02:21:36.900-08:00Thanks for the tutorial. By any chance would you ...Thanks for the tutorial. By any chance would you know from where to down load the 32 bit version of Xuggler 64 bit Build for Windows?Huwahttps://www.blogger.com/profile/05924169089804725133noreply@blogger.comtag:blogger.com,1999:blog-6118878721807429434.post-18391514326252581502012-11-07T09:48:34.611-08:002012-11-07T09:48:34.611-08:00I removed those three imports, so it won't thr...I removed those three imports, so it won't throw that library error.benhttps://www.blogger.com/profile/15078688661409400167noreply@blogger.comtag:blogger.com,1999:blog-6118878721807429434.post-19045594651777842072012-11-07T09:43:31.293-08:002012-11-07T09:43:31.293-08:00Are you referring to the xuggler imports on the fi...Are you referring to the xuggler imports on the first few lines? So another way to do step 2 is to take those jars and make a xuggler library in the processing libraries folder, and that's how I made mine. I thought it might be easier to just let people download the jars and put it in the code folder. Either way works...benhttps://www.blogger.com/profile/15078688661409400167noreply@blogger.comtag:blogger.com,1999:blog-6118878721807429434.post-52666928390670590972012-11-07T01:15:19.327-08:002012-11-07T01:15:19.327-08:00Thanks for the tutorial.
I noticed an error on the...Thanks for the tutorial.<br />I noticed an error on the first Xuggler link (first line).<br />Juegohttp://xuv.benoreply@blogger.com