java - mp3 cutter android -
The following code is working fine for me since I'm working with Android, so I do not use audiostream classes can do.
file correctly = new file ("data1.mp3"); File file = new file ("data.mp3"); Correct.createNewFile (); FileInputStream = In the new FileInputStream (file); FileOutputStream Out = New FileOutputStream (true); Byte [] buffer = new byte [in.available ()]; For (int i = 0; i <1000; i ++) {in.read (buffer, 0, 2048); Out.written (buffer, 0, 2048); } In.close (); Out.close (); Now if I run the following code, it is giving its error and is not working
correct.createNewFile (); FileInputStream = In the new FileInputStream (file); FileOutputStream Out = New FileOutputStream (true); Byte [] buffer = new byte [in.available ()]; In.skip (2048); For (int i = 0; i <1000; i ++) {in.read (buffer, 0, 2048); Out.written (buffer, 0, 2048); } In.close (); Out.close (); The only thing here is when I am giving this error to this code
correct.createNewFile (); FileInputStream = In the new FileInputStream (file); FileOutputStream Out = New FileOutputStream (true); Byte [] buffer = new byte [in.available ()]; For (int i = 0; i <1000; i ++) {in.read (buffer, 0, 2048); In.skip (2048); Out.written (buffer, 0, 2048); } In.close (); Out.close (); So my real question is how do you specify the correct offset and get the frame in a new MP3 file? How to get the frame size? Is it necessary that some early key frames should be copied?
If you want to remove the frame in Android, you have to implement the clipper.
Comments
Post a Comment