AVFoundation (AVPlayer) supported formats? No .vob or .mpg containers?

The AVURLAsset class has a static methods that you can query for supported video UTIs: + (NSArray *)audiovisualTypes On 10.9.1 it returns these system defined UTIs: public.mpeg public.mpeg-2-video public.avi public.aifc-audio public.aac-audio public.mpeg-4 public.au-audio public.aiff-audio public.mp2 public.3gpp2 public.ac3-audio public.mp3 public.mpeg-2-transport-stream public.3gpp public.mpeg-4-audio Here is an explanation of system UTIs. So it seems that at least the … Read more

Android-Video View in Fullscreen

No need of code to play video in full screen mode Apply the following layout format over the xml containing the videoview it will for sure will play the video in full screen mode. as it is running mine 🙂 Hope it helps <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”fill_parent” android:layout_height=”fill_parent” > <VideoView android:id=”@+id/myvideoview” android:layout_width=”fill_parent” android:layout_alignParentRight=”true” … Read more

Click the poster image the HTML5 video plays?

This is working for me Andrew. In your html head add this small piece of js: var video = document.getElementById(‘video’); video.addEventListener(‘click’,function(){ video.play(); },false); Or, just add an onlick attribute directly to your html element: <video src=”https://stackoverflow.com/questions/5278262/your_video” width=”250″ height=”50″ poster=”your_image” onclick=”this.play();”/>

Access ordered images and video in same Cursor

After lots of research and playing around with source code, I’m finally a bit more familiar with the Android filesystem. To get a single Cursor which can access information about both Images and Video I used the following: // Get relevant columns for use later. String[] projection = { MediaStore.Files.FileColumns._ID, MediaStore.Files.FileColumns.DATA, MediaStore.Files.FileColumns.DATE_ADDED, MediaStore.Files.FileColumns.MEDIA_TYPE, MediaStore.Files.FileColumns.MIME_TYPE, MediaStore.Files.FileColumns.TITLE … Read more

How to open a GStreamer pipeline from OpenCV with VideoWriter

Before using OpenCV’s Gstreamer API, we need a working pipeline using the Gstreamer command line tool. Sender: The OP is using JPEG encoding, so this pipeline will be using the same encoding. gst-launch-1.0 -v v4l2src \ ! video/x-raw,format=YUY2,width=640,height=480 \ ! jpegenc \ ! rtpjpegpay \ ! udpsink host=127.0.0.1 port=5000 Receiver: The sink caps for rtpjpegdepay … Read more

FFmpeg – Overlay one video onto another video?

If you just want a ffmpeg command, try ffmpeg -i input.mov -i overlay.mov \ -filter_complex “[1:v]setpts=PTS-10/TB[a]; \ [0:v][a]overlay=enable=gte(t\,5):shortest=1[out]” \ -map [out] -map 0:a \ -c:v libx264 -crf 18 -pix_fmt yuv420p \ -c:a copy \ output.mov This starts the overlay at 5 seconds with the overlaid video start point being 00:15. setpts=PTS-10/TB is setpts=PTS+(overlay_delay-video_trim_in)/TB overlay=enable=gte(t\,5) is … Read more

Concat a video with itself, but in reverse, using ffmpeg

Technically, you can do it using ffmpeg -i input.mp4 -filter_complex “[0:v]reverse,fifo[r];[0:v][0:a][r] [0:a]concat=n=2:v=1:a=1 [v] [a]” -map “[v]” -map “[a]” output.mp4 But the reverse filter will use a lot of memory for large videos. I’ve added a fifo filter to avoid frame drops. But test and see. (I haven’t reversed the audio) If your clip has no … Read more