w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Playing videos on iPhone after video conversion using ffmpeg
I just wrote a blog post that covers encoding_h264_for_ios that shows examples of h.264 encoding that do and do not work on iOS hardware. The specific command line that I use is this: ffmpeg -y -i INPUT.mov -c:v libx264 -pix_fmt yuv420p -preset:v slow -profile:v baseline -crf 23 OUTPUT.m4v If I were you, I would try to encode the videos on the command line and test them on iOS hardware without the web interface. Then, go step by step with specific command line options until you found the one that was breaking the iOS playback.

Categories : Android

ffmpeg commands to concatenate different type and resolution videos into 1 video and can be played in android
You can use concat to append all the videos one by one after converting them to a single format. You can also use the below command to convert differently formatted video to one format: ./ffmpeg -i 1.mp4 -acodec libvo_aacenc -vcodec libx264 -s 1920x1080 -r 60 -strict experimental 1.mp4 Convert everything to mp4 and then follow the instructions given in the link above. This will enable you to join all the videos in a single file.

Categories : Android

Does video.js video player supports youtube videos?
There's a video.js plugin for YouTube support. https://github.com/eXon/videojs-youtube And Vimeo. https://github.com/eXon/videojs-vimeo

Categories : HTML

How to get video frames from mp4 video using ffmpeg in android?
compile ffmpeg.c and invoke its main() via jni. For more details see how to Use FFMPEG on Android . Also refer this github project. And this tutorial too will help you. I hope this will help you.

Categories : Android

How to display a video in a web page with audio and video filters?
you can use the HTML5 tag.example: <audio controls="controls" autoplay="autoplay" src="example.mp3"></audio> and also play the video you can use the tag more information you can read about HTML5 knowledge.

Categories : PHP

VideoJS player not loading .webm video file for Firefox (throws "Video Error". Works when no other video sources (like mp4/mov) are provided
It seems mov videos are not supported by HTML5 Firefox implementation, I get this error: Specified "type" attribute of "video/mp4" is not supported. Load of media resource http://dev.muzioapp.com.s3-website-us-east-1.amazonaws.com/content/ourMuzeVid1.mov failed. The explanation about this (maybe) confusion is here: http://stackoverflow.com/a/5080583/208067 When the video is not embedded as a html5 video, Firefox looks for a suitable plugin to play the video and finds QuickTime. The video tag does not.

Categories : HTML

video set to "true" in Skype video chat URI, but video is not enabled when call starts
I see you've figured out that there seems to be a problem with video call in the newest versions of Skype for android and ios. Maybe the new apps treat video calls as a conference call even if it's a 1 to 1 call (which isn't supported as stated in the skype api/uri doc), I suggest you report this problem to MS through for example appstore (not sure if there's similar possibility to do so in google play?) and mention the same bug happens on android. If you need something to work ASAP while waiting for MS to fix the bug I'll suggest a solution but it might not be worth the time you'll need to spend in order for a working implementation. But I'll leave that up to you to consider. What you could do is send an message (or just do a regular call) to the remote sentry with an unique message ie

Categories : Android

IE10 not playing a video when using the
When you paste the URL to your browser it doesn't use HTML5 player anymore, so it doesn't say that it is really a supported file; only that the file path should be valid. According to wikipedia, IE10 supports (not only) H.264 for video and AAC for audio - these are very common formats for mp4 container. Chrome's support is much wider (video- and audio-wise). The problem is that the Intro.mp4 file might have different formats altogether (the file could by just renamed or created using unsupported formats). I'd look into the file using properties->details or third party programs (for example Media Info). I don't think it is IE10's issue. The only similar one I've found is when the user was too specific using unsupported format of used codecs ([...] type='video/mp4; codecs="H.264, AAC"'

Categories : HTML

ffmpeg + play video loop
From documentqtion lavf_decoding.html#ga4fdb3084415a82e3810de6ee60e46a61">http://ffmpeg.org/doxygen/trunk/group_lavf_decoding.html#ga4fdb3084415a82e3810de6ee60e46a61 0 if OK, < 0 on error or end of file so if <0 then call av_seek_frame to return to start (same doc)

Categories : C++

Watermark in video with ffmpeg Center-Top
ffmpeg -i input1 -i input2 -filter_complex "overlay=main_w/2-overlay_w/2" out Use -filter_complex when you have multiple inputs and or outputs; this option also allows you to omit the movie source filter. See the overlay video filter documentation for more info.

Categories : PHP

Video player for OS X (QTKit, ffmpeg)
You can easily compile ffmpeg by regular "./configure && make" and add built static libraries into your xcode project. More sophisticated approach is to create xcode projects for each ffmpeg library (libavcodec/format/util/etc) and add them as nested projects. It is posible to add external codecs to QTKit? Check Perian project: http://trac.cod3r.com/perian/browser http://perian.org/

Categories : Osx

Video Trimming via ffmpeg twice crash
Your problem may be related to discussion here The linked thread is old but symptom there was that android/JNI call to ffmpeg worked first time but not the second time. As noted in the thread, the solution is to explicitly unload/load the library in between successive calls to ffmpeg. you could try it.

Categories : Android

using ffmpeg to display video on iPhone
You should not be using ffmpeg in an iOS for a number of reasons. First, there are real license issues that put including ffmpeg in a legal grey area when it comes to iOS apps. Second, performance will be very very poor. Third, iOS already includes APIs that have access to the h.264 hardware on the device. You can find my example Xcode project at AVDecodeEncode, this is an example of using my library to decode from h.264 and then encode back to h.264.

Categories : Iphone

can i use ffmpeg with actionscript to convert a webcam video flv into mp4?
The only option i can think of is to use Air and Nativeprocess as described here http://www.purplesquirrels.com.au/2013/02/converting-video-with-ffmpeg-and-adobe-air/ Otherwise I'm afraid this cannot be done unless someone does a port of FFMPEG to flash. The easiest way to do the video conversion you mention is to install FFMPEG on a server, send a request, and get the result back later.

Categories : Actionscript

Android encode video with ffmpeg while it is still recording
Your real time requirement may lead you away from ffmpeg to webrtc and or to html5. some resources; http://dev.w3.org/2011/webrtc/editor/getusermedia.html (section5) https://github.com/lukeweber/webrtc-jingle-client ondello .. they have api rather than going native and trying to get at the video stream or getting at the framebuffer to acquire an xcopy of what is in the video buffer, and to then duplicate the stream an manage a connection (socket or chunked http), you may want to look at api type alternatives....

Categories : Android

Concat video files of different resolutions using FFmpeg
For merging videos you need to work with the same resolution, you should scale the 640x480 video or compress the 1280x720, it is up to you. I would recommend you compress the bigger one it is faster. Moreover, for merging videos you need a media file with audio and video part. You can create a silence audio with the same duration of your video and after you can add it to your video. Videos should be merged with audio. ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero -ab 128K -f mp2 -acodec mp2 -y silence.mp2 ffmpeg -i video_without_audio.mpg -i silence.mp2 video_to_merge.mpg

Categories : Android

Convert Video in html5 with ffmpeg on aruba
If ffmpeg is installed then you should able to convert using ffmpeg on your server. Logon, change to the directory video1.mpg is located and run: fmpeg -i video1.mpg video.m4v

Categories : Misc

Using ffmpeg to watermark a capturing video on Android
Here is an example, how to capture a webcam video on my Windows system and draw a counting timestamp. To list all devices that can be used as input : ffmpeg -list_devices true -f dshow -i dummy To use my webcam as input and draw the timestamp (with -t 00:01:00 1 minute is recorded): ffmpeg -f dshow -i video="1.3M HD WebCam" -t 00:01:00 -vf "drawtext=fontfile=Arial.ttf: timecode='00:00:00:00': r=25: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1" -an -y output.mp4 The font-file Arial.ttf was located in the folder I was with the terminal in. (Source : http://trac.ffmpeg.org/wiki/How%20to%20capture%20a%20webcam%20input and http://trac.ffmpeg.org/wiki/FilteringGuide) I hope it may help. Have a nice day ;)

Categories : Android

C api on capturing video stream from webcam using ffmpeg
You are basically repeating the question you are referring to. FFmpeg is basically the name of the library and the ready to use tool (command line interface). Its back end is a set of libraries: libavcodec, libavformat, swscale etc. There is no comprehensive documentation on these libraries, instead there are samples, there is mailing list and other sparse resources. Also, the libraries are open source and all these are quite usable once you get the pieces together. Specific questions on ffmpeg are asked/answered on StackOverflow as well.

Categories : C

ffmpeg Getting image or thumbnail from video error
You did not give ffmpeg a name :-) So you tried to execute a \bin folder ! $ffmpeg = "C:\Ffmpeg\ffmpeg-20130605-git-3289670-win64-static\bin"; you forget ffmpeg.exe $ffmpeg = "C:\Ffmpeg\ffmpeg-20130605-git-3289670-win64-static\bin\ffmpeg"; I do it for a .avi with following command ffmpeg -i Echo2012.avi -r 1 -s 1024x576 -f image2 -vframes 1 foo-001.jpg Don't execute your command twice ! $command = "$ffmpeg -i $video -an -ss $second -s $size -vcodec mjpeg $image"; echo $command; shell_exec($command); if(shell_exec($command)){ EDIT : your command string : ffmpeg -i upload.tmp -an -ss 12 -s 150x90 -vcodec mjpeg manu.jpg -vcodec codec (output) : Set the video output codec. It's a switch for a output video. You want as output an image. -an : You can disable Audio

Categories : PHP

FFmpeg - C - Encoding video - Set aspect ratio
to set the output aspect ratio, you can use the `-aspect' option, see ffmpeg documentation. -aspect[:stream_specifier] aspect (output,per-stream)’ Set the video display aspect ratio specified by aspect. aspect can be a floating point number string, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio. For example "4:3", "16:9", "1.3333", and "1.7777" are valid argument values. If used together with ‘-vcodec copy’, it will affect the aspect ratio stored at container level, but not the aspect ratio stored in encoded frames, if it exists.

Categories : C

How to play Youtube videos using Video.js?
You can try https://github.com/eXon/videojs-youtube . Before using, I recommend you to read trough the bug reports. In particular, do not follow the advice to use the provided video.js version with the script. It seems to contain a vulnerability. The new version of video.js works fine.

Categories : Ruby On Rails

Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything)
Of course you could code up some C/C++ and link to -lav*, basically creating a simplified version of ffmpeg just for extracting frames, and maybe even do it as a php extension (also I wouldn't run it as the same user, let alone in the same process). But the result is very unlikely to be faster, because you would only avoid some forking and setup overhead, but your likely problem is actually the decoding, which would still be the same. Instead, you should first look into using ffmpeg in fast seeking mode (or fast/accurate hybrid mode). Their wiki states about fast seeking: The -ss parameter needs to be specified before -i: ffmpeg -ss 00:03:00 -i Underworld.Awakening.avi -frames:v 1 out1.jpg This example will produce one image frame (out1.jpg) somewhere around the third min

Categories : PHP

Android FFMPEG command line for video filter
Your ffmpeg build is too old to support the curves video filter with presets. Presets were added on 2013-03-25 (lavfi/curves: add presets support) bumping libavfilter to version 3.48.103. You will need to update your ffmpeg.

Categories : Android

how to change the frame rate for a part of video using ffmpeg
Found a software named openshot.It perfectly matched my requirements. It is built over ffmpeg. I guess this is the best video editing and mixiing tool in linux for lame users. It can help us doing things very fast.

Categories : Ubuntu

how to get width/ height of video file using S3FS, FFMPEG in ec2
I would like to recommend to take a look at the new project RioFS (Userspace S3 filesystem): https://github.com/skoobe/riofs. This project is “s3fs” alternative, the main advantages comparing to “s3fs” are: simplicity, the speed of operations and bugs-free code. Currently the project is in the “testing” state, but it's been running on several high-loaded fileservers for quite some time. We are seeking for more people to join our project and help with the testing. From our side we offer quick bugs fix and will listen to your requests to add new features. Regarding your issue, RioFS is able to read "requested" blocks of files, for example I tried to get properties of a video file stored on S3: Mounted RioFS: ./riofs -c ../riofs.conf.xml http://s3.amazonaws.com bucket_nam

Categories : Amazon

how to build video playlist having youtube videos?
This is a JS trick. If you have a console to the browser (or firebug), you can see, it goes a JSON get request and response from the browser to the server and reverse. The server read out from the database, the correct embedded video, it sends to the browser, and that insert into the page DOM.

Categories : Javascript

make a playlist of youtube videos in video-js
Yes it is possible! What happens is that both video-js-playlist and video-js-youtube make some assumptions that do not work together. I have just made a fork of each one and put them to work together, you can get the code on my Github: videojs-playLists videojs-youtube I am also working on add vast support to videojs + videojs-playlist + videojs-youtube

Categories : Javascript

How to split accurately a LONG GOP video (h264/XDCAM...) with FFMPEG?
Please refer to the ffmpeg documentation. You will find an option -frames. That option can be use to specify for a given input stream (in the following the stream 0:0 is the 1st input file, first video stream) the number of frame to record. That option can be combined with other options to start somewhere in the input file (time offset, etc ....) ffmpeg -i intput.ts -frames:0:0 100 -vcodec copy test.ts that command demux and remux only the first 100 frame of the video (no re-encoding). as said you can combine it with a jump. Using ' ‘-ss offset (input)’ ' you can specify a "Frame Accurate" position ie. frame 14 after 1min10seconds = 0:1:10:14. that option should be use before the input like below. ffmpeg -ss 00:00:10.0 -i intput.ts -frames:0:0 100 -vcodec copy test.ts ffmpeg dis

Categories : Bash

Encode x264 video with ffmpeg for Android with starting offset
Upgrading to ffmpeg 1.2.1 fixed the compatibility issue. After that, my Android phone was able to play the videos just fine. The -ss option is trickier than it at first looks. It has a different meaning based on whether it is before or after -i. It turns out, to make it work, you have to use both. You put the main offset before -i, which makes ffmpeg skip to that point in the stream. But, then you also need a small non-zero offset AFTER -i to make it seek to that point within the stream so audio and video will be in sync. For reference, the final working command is: ffmpeg -ss 00:03:52.00 -i in.mp4 -ss 0.1 -t 01:28:33.00 -c:v libx264 -preset medium -crf 20 -maxrate 400k -bufsize 1835k -c:a libvorbis -sn out.mkv

Categories : Android

ffmpeg generate thumbnail with aspect ratio, but X seconds into video
You can do that with a command line similar to: ffmpeg -i inputVideo -vf scale='min(300,iw)':-1 -ss 00:00:05 -f image2 -vframes 1 thumbnail.jpg So in your script, add -vf (video filter) before scale and reorder input and output parameters like below: $cmd = "/usr/local/bin/ffmpeg -i ".$this->getUploadRootDir()."/".$fname." -vf scale='min(300, iw):-1' -ss 00:00:5 -f image2 -vframes 1 ".$this->getUploadRootDir()."/thumb_".$output;

Categories : PHP

recording live video stream from tv card using ffmpeg in windows
First be sure that the video label you use is really the label return by: ffmpeg -list_devices true -f dshow -i dummy More info here But another solution should be ti use the old "Video For Windows" (VFW). To try that, list your device with: ffmpeg -y -f vfwcap -i list And use your device number as value of the -ioption: ffmpeg -y -f vfwcap -r 25 -i 0 out.mp4 And if finally you are able to record your stream, there is different options, but in your case everything is clear describe here ffmpeg -y -f vfwcap -r 25 -i 0 -f image2 -vf fps=fps=1 out%d.jpg

Categories : Windows

Unable to concatenate video files using FFMPEG, Paperclip, Rails
thanks for the reply :) There is no error message, I have the ffmpeg command in the segment.rb file, I am not even sure if that is the right place? In segment.rb I have class Segment < ActiveRecord::Base attr_accessible :name, :source_video, :the_other_video has_attached_file :source_video has_attached_file :the_other_video end def append_to_video(the_other_video, output_file) system "ffmpeg -i concat: "#{the_other_video.source_video.path} | #{self.source_video.path}" -c copy #{output_file}" end for _form.html.erb <%= form_for(@segment) do |f| %> <% if @segment.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@segment.errors.count, "error") %> prohibited this segment from being saved:</h2> <ul> <

Categories : Ruby On Rails

JW Player not playing MP4 video format videos in ie9 and ie10
Your issue here is the following: Your file - https://s3-us-west-1.amazonaws.com/lyynks-assets/experiment/video/sample.mp4 Has this MIME-TYPE - application/octet-stream It should be - video/mp4 This should be set on Amazon's end. The reason this isn't working in IE9 and IE10 is because JW6 defaults to HTML5 mode for browsers that support HTML5 playback, and HTML5 is more strict about MIME-TYPEs than Flash is.

Categories : Javascript

HTML5 video issue loading videos from C# server
I hope this might help. Sometimes browsers or video players request the first couple of bytes and then the last couple of bytes. The most video players, I have seen, requested the last two megabytes of the video. I assume, that the players use these information to determine the actual length of the video. All you have to do, is to send exactly the requested portion of the stream as Partial Content (HTTP Code 206) with the appropriate content length of that portion. Here is a link which might help: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 The video players use this for byte based seeking in your video files.

Categories : C#

Is android ffmpeg library able to play video located in the assets folder
Assets are read-only parts of your APK, and there is no way another APK can access these assets. You can use the native Android classes to play the video(s) you embed in your APK (use mp4 format). If you insist on ffmpeg-assisted playback, you can unpack the asset to private file, or you should write your io handlers for ffmpeg that will use AAsset_read().

Categories : Android

Android-how to show the videos in grid view using video url string
I have a database which contains list of image and video path. This works fine for me public class GridGallery extends Activity { ArrayList<String>list; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.grid_gallery); DataModel dbModel = new DataModel(this); list = dbModel.selectAll(); GridView sdcardImages = (GridView) findViewById(R.id.sdcard); sdcardImages.setAdapter(new ImageAdapter(this)); } /** * Adapter for our image files. */ private class ImageAdapter extends BaseAdapter { private final Context context; public ImageAdapter(Context localContext) { context = localContext; }

Categories : Android

Custom video player for displaying Youtube videos on iOS Safari
If you want custom UI, use AVPlayer. You can get the YouTube video URL from the HTML or use gdata-objective C API (for getting video URL). You can read more about AVPlayer from https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayer_Class/

Categories : IOS

I think the problem is related to browser-specific-video-handling. As a quirk, you can achieve less latency converting the video to webm, but you should place it before mp4 source, ie: <video width="640" height="360" autoplay loop muted> <source src="http://jakelauer.com/fireplace.webm" type="video/webm" /> <source src="http://jakelauer.com/fireplace.mp4" type="video/mp4" /> </video>

Categories : Javascript

Writing video with openCV - no key frame set for track 0
This appears to be an issue of size mismatch between the frames written and the VideoWriter object opened. I was running into this issue when trying to write a series of resized images from my webcam into a video output. When I removed the resizing step and just grabbed the size from an initial test frame, everything worked perfectly. To fix my resizing code, I essentially ran a single test frame through my processing and then pulled its size when creating the VideoWriter object: #include <cassert> #include <iostream> #include <time.h> #include "opencv2/opencv.hpp" using namespace cv; int main() { VideoCapture cap(0); assert(cap.isOpened()); Mat testFrame; cap >> testFrame; Mat testDown; resize(testFrame, testDown, Size(), 0.5, 0.5, INT

Categories : C++



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.