More specific: I am trying to load a video from res/raw with jcodec's FrameGrab.
FrameGrab requires a SeekableBiteChannel, so a File will work.
How can I get a video file from assets as a File?
I cannot put the video on the sd-card or anything similar, I am developing for Android Wear.
EDIT:
String videoPath = "android.resource://" + getPackageName() + "/" + R.raw.hyperlapse2;
mVideoTestUri = Uri.parse(videoPath);
Log.d("VideoPlayer", "Video uri is " + mVideoTestUri);
File file = new File(videoPath);
Log.d("VideoPlayer", "Video file is " + file+", "+file.getName()+", "+file.getAbsolutePath()+", "+file.length());