video

HTML5 read video metadata of mp4

这一生的挚爱 提交于 2020-07-05 06:06:56
问题 Using HTML5 I am trying to get the attribute (ie rotation), located in the header of a mp4 (I play it using a video tag), to do this I am trying to get the bytes that make up the header, and knowing the structure, find this atom. Does anyone know how to do this in javascript? 回答1: I do not think you can extract such detailed metadata from a video, using HTML5 and its video-tag. The only things you can extract (video length, video tracks, etc.) are listed here: http://www.w3schools.com/tags

Pipe opencv images to ffmpeg using python

送分小仙女□ 提交于 2020-07-04 09:47:51
问题 How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess)? (I am using spyder/anaconda) I am reading frames from a video file and do some processing on each frame. import cv2 cap = cv2.VideoCapture(self.avi_path) img = cap.read() gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY) bgDiv=gray/vidMed #background division then, to pipe the processed frame to ffmpeg, I found this command in a related question: sys.stdout.write( bgDiv.tostring() ) next, I am trying to run ffmpeg as a

Pipe opencv images to ffmpeg using python

非 Y 不嫁゛ 提交于 2020-07-04 09:47:46
问题 How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess)? (I am using spyder/anaconda) I am reading frames from a video file and do some processing on each frame. import cv2 cap = cv2.VideoCapture(self.avi_path) img = cap.read() gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY) bgDiv=gray/vidMed #background division then, to pipe the processed frame to ffmpeg, I found this command in a related question: sys.stdout.write( bgDiv.tostring() ) next, I am trying to run ffmpeg as a

applying watermark on a movie video in C#

戏子无情 提交于 2020-06-29 03:59:47
问题 I have applied watermark on an image using c#. Now, I wanted to add a logo or watermark on the video using c#. Can anybody suggest some ways to achieve this. Any help would be greatly appreciable. 回答1: If you are ok to use ffmpeg then you can add the overlay with ffmpeg using a command like this: ffmpeg -i inputVideo.mp4 -i yourwatermark.png -filter_complex "overlay=5:5" -codec:a copy outputVideo.mp4 See this answer for more examples of placing the watermark - i.e. top left, bottom right etc:

Building Vue project ignores media subfolders

放肆的年华 提交于 2020-06-29 03:55:50
问题 I am using Vue 2 and I put some videos in the Vue template using HTML5 video. I save those videos in the VueProjectRootFolder/src/assets/videos/myVideo.mp4 so my markup in Vue is <video width="100%" height="40%" controls> <source src="@/assets/videos/myVideo.mp4" type="video/mp4"> </video> This works and when I do npm run build , the video works. But it is transferred in the media folder and there is no videos subfolder inside. Also, Vue changes the URL of the video to /media/myVideo.mp4 I

Building Vue project ignores media subfolders

北城余情 提交于 2020-06-29 03:54:14
问题 I am using Vue 2 and I put some videos in the Vue template using HTML5 video. I save those videos in the VueProjectRootFolder/src/assets/videos/myVideo.mp4 so my markup in Vue is <video width="100%" height="40%" controls> <source src="@/assets/videos/myVideo.mp4" type="video/mp4"> </video> This works and when I do npm run build , the video works. But it is transferred in the media folder and there is no videos subfolder inside. Also, Vue changes the URL of the video to /media/myVideo.mp4 I

Flutter (Dart): Merge two videos and view the new output in the device's gallery (photos)

微笑、不失礼 提交于 2020-06-28 03:37:33
问题 I am aware that there already exists a solution to a very similar question, which can be found on the following link: Flutter/Dart: Find two video segments and merge them into a single valid video file? However, being relatively new to Flutter (and programming in general) I cannot seem to replicate the desired result. My app is very simple and currently looks like this: I click on the button "Record Video" to record two videos, which are both successfully stored into the device's gallery.

Give a video rounded transparent edges so that it can be overlayed on another video using FFMPEG

こ雲淡風輕ζ 提交于 2020-06-27 16:43:41
问题 Im trying to overlay a smaller video (200x200)on top of a bigger video (800x800). I've used the FFMPEG overlay filter to achieve this ffmpeg -i big.mp4 -vf "movie=small.mkv[clip2]; [in][clip2] overlay=1:5 [out]" final.mp4 Challenge is that the smaller video needs its edges to be rounded. I have tried working with alphaextract and alphamerge. The documentation on FFMPEG is sparse and im not sure how to go about it. 回答1: Although I think the existing answer is good for a circle, it sounds like

FFMPEG: convert a mp4 to mp3 using ffmpeg-android ndk

旧时模样 提交于 2020-06-27 10:49:25
问题 I want to convert a video file of mp4 format to audio file of mp3 format. It is simple through command line but i cannot find how can i convert it through jni . Not sure which library and which function to call. Any help regarding this issue would be much appreciated. 来源: https://stackoverflow.com/questions/15876974/ffmpeg-convert-a-mp4-to-mp3-using-ffmpeg-android-ndk

FFMPEG: convert a mp4 to mp3 using ffmpeg-android ndk

陌路散爱 提交于 2020-06-27 10:49:25
问题 I want to convert a video file of mp4 format to audio file of mp3 format. It is simple through command line but i cannot find how can i convert it through jni . Not sure which library and which function to call. Any help regarding this issue would be much appreciated. 来源: https://stackoverflow.com/questions/15876974/ffmpeg-convert-a-mp4-to-mp3-using-ffmpeg-android-ndk