Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 mp4Parser 解析视频。现在在线代码工作正常
但是当我尝试为 android 运行它时,它给出了一个错误。问题似乎与
Movie movie = MovieCreator.build(new FileInputStream("/home/sannies/CSI.S13E02.HDTV.x264-LOL.mp4").getChannel());
这会引发一个未捕获的异常,迫使程序停止工作。谁能告诉我是否必须对代码进行任何修改才能使其在android设备上运行。
尝试这个。
File folderPath = new File(Environment.getExternalStorageDirectory().toString()+ "/abc"".mp4");. FileInputStream file = new FileInputStream(filePath);. MovieCreator.build(Channels.newChannel(file));.