media

Android sdk cut/trim video file

╄→гoц情女王★ 提交于 2019-11-27 03:42:17
Is there any way to cut a video (mp4 or 3gp) on android, like use only the last 5 seconds of the movie... on iphone this is possible using the AVAssetExportSession but on android I haven't found anything similar, just maybe some references to ffmpeg library which seems complicated. Is there any easier way to do it? Sebastian Annies You can do this with my mp4parser library. Have a look at the ShortenExample it does exactly what the name suggests. Since the library cannot re-encode the video it can only cut the video at I-frames. So the points in time where you can make a cut are quite coarse.

How to interact with Windows Media Player in C#

自闭症网瘾萝莉.ら 提交于 2019-11-27 03:24:31
I am looking for a way to interact with a standalone full version of Windows Media Player. Mostly I need to know the Path of the currently played track. The iTunes SDK makes this really easy but unfortunately there really isn't any way to do it with Windows Media Player, at least not in .Net(C#) without any heavy use of pinvoke, which I am not really comfortable with. Thanks Just to clearify: I don't want to embedded a new instance of Windows Media Player in my app, but instead control/read the "real" full version of Windows Media Player, started seperatly by the user Alex Duggleby I had this

Using cache in ExoPlayer

眉间皱痕 提交于 2019-11-27 03:24:26
I'm looking for any example of implementing cache in ExoPlayer. ExoPlayer has in its library different classes concerning cache and Google explain in this video that we can implement it with the CacheDataSource class, but Google doesn't provide any demo on it. Unfortunately this seems pretty complicated to use, so I'm currently looking for examples (no success on Google). Does anyone succeed or has any info that would help ? Thanks. Here is the solution for ExoPlayer 2.+ Create a custom cache data source factory class CacheDataSourceFactory implements DataSource.Factory { private final Context

How to record video from background of application : Android

浪子不回头ぞ 提交于 2019-11-27 02:35:58
I am developing an application which will be able to record video from background of application by using Service . Problem description : In my application recording will be scheduled. If user want to record video from 1 PM to 3 PM, he will schedule the task and can exit from application. Application will automatically start recording at 1PM to 3PM. What I did yet : I googled about my query but didn't get solution. Many articles say that it is not possible. But in Google Play there are some applications (for eg MyCar Recorder ) which can record video from background of application. I got an

Android - .nomedia not working for images

喜你入骨 提交于 2019-11-27 01:49:16
问题 I have images, which are read from sdcard only by particular application so I want to hide it from image gallery. I have put .nomedia file in it, but this file is ignored, images are still showing in Gallery. I have put it with "." in the beginning. Still not working. Any ideas? 回答1: I'm guessing you're using Android 4.0, as .nomedia functioned properly until then. The AOSP bug report for the issue explains: MediaScanner on Android 4.0 fails to forget already-indexed files when it encounters

Java RTSP client/server library

青春壹個敷衍的年華 提交于 2019-11-27 01:23:32
问题 Is anyone aware about good RTSP client/server Java library? Search on Google reveals JMF, which is very outdated. Thanks. 回答1: If you're still interested, Netty provides RTSP support since version 3.2. 回答2: You can use Netty NIO framework to write your own RTSP server / client implementation. 回答3: You can try using FMJ. It's a set of libraries that wrap a lot of modern codecs in Java interfaces. 回答4: There is no java implementation of RTSP protocol. You must do it yourself using a NIO

How can I create a video from a directory of images in C#?

前提是你 提交于 2019-11-27 01:03:17
问题 I have a directory of bitmaps that are all of the same dimension. I would like to convert these bitmaps into a video file. I don't care if the video file (codec) is wmv or avi. My only requirement is that I specify the frame rate. This does not need to be cross platform, Windows (Vista and XP) only. I have read a few things about using the Windows Media SDK or DirectShow, but none of them are that explicit about providing code samples. Could anyone provide some insight, or some valuable

Django: how do you serve media / stylesheets and link to them within templates

主宰稳场 提交于 2019-11-26 23:52:49
问题 Variations of this question have been asked, but I'm still unable to get my stylesheets to load correctly when my templates are rendered. I'm attempting to serve static media from the Django process during development - which is strongly discouraged in production, I'm aware. I'll post my configuration and my template, and hopefully someone can help me to understand where I'm going wrong. Note that I did try to follow the example on the Django project website, however it doesn't mention how to

How do I have to install/configure Xuggle to not get an UnsatisfiedLinkError?

自作多情 提交于 2019-11-26 23:29:24
问题 I am JUST getting started with Xuggle and I downloaded everything into Eclipse and I included them in them in the Referenced Libraries but I made a really simple test, package com.xuggle.xuggler.demos; import com.xuggle.xuggler.IContainer; public class getContainerInfo { public static void main (String [] args){ IContainer myContainer = IContainer.make(); } } and it throws a bunch of errors, 2011-06-12 16:26:52,142 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library:

Jersey REST support resume/media streaming

落花浮王杯 提交于 2019-11-26 22:34:57
问题 I need to support resume on Jersey REST, I'm trying to do it this way: @Path("/helloworld") public class RestServer { @GET @Path("say") @Produces("audio/mp3") public Response getMessage(@HeaderParam("Range") String r ) throws IOException{ String str="/Users/dima/Music/crazy_town_-_butterfly.mp3"; System.out.println(r); RandomAccessFile f=new RandomAccessFile(str, "r"); int off=0; int to=(int)f.length(); byte[] data ; if(r!=null){ String from=r.split("=")[1].split("-")[0]; String t=r.split("="