video-editing

Commands to cut videos in half horizontally or vertically, and rejoin them later

冷暖自知 提交于 2021-02-19 05:36:12
问题 How can I use ffmpeg to cut video in half, vertically or horizontally by resolution; so for a 640 x 480 video, I want to separate that into two halves with a resolution of 320 x 480, or to separate it into two halves horizontally with a resolution of 640 x 240; and afterward, I need to be able to join the separated videos again to make a single video with the original resolution. How can this be done? 回答1: separate into two halves Use the crop filter: horizontal ffmpeg -i input -filter

Find frame rate SPS

本秂侑毒 提交于 2021-02-08 07:50:37
问题 I have been reading several posts (http://tinyurl.com/nqtfh9a...) and links (http://www.cardinalpeak.com/blog/the-h-264-sequence-parameter-set/) about SPS and PPS, but cannot really get the idea. I have bought an encoder with a SDK. In the specifications, it gives me this SPS and PPS, and I was wondering if there is any frame rate information here: SPS= 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1e, 0x9a, 0x74, 0x05, 0x81, 0xec, 0x80 I used an h264 analyzer and I got this information: Found

Find frame rate SPS

孤者浪人 提交于 2021-02-08 07:50:21
问题 I have been reading several posts (http://tinyurl.com/nqtfh9a...) and links (http://www.cardinalpeak.com/blog/the-h-264-sequence-parameter-set/) about SPS and PPS, but cannot really get the idea. I have bought an encoder with a SDK. In the specifications, it gives me this SPS and PPS, and I was wondering if there is any frame rate information here: SPS= 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1e, 0x9a, 0x74, 0x05, 0x81, 0xec, 0x80 I used an h264 analyzer and I got this information: Found

How to trim the video with start & end time in android programmatically?

孤者浪人 提交于 2021-02-06 13:50:47
问题 I want to trim the local video based on start and end time in android programmatically ,I tried below attached few links but haven't worked for me.Please let me know any working libraries or sample code to overcome this? Refereed links: Android sdk cut/trim video file How to trim the video using FFMPEG library in android? https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg Thanks in advance! 回答1: Use FFMPEG library to solve your

How to trim the video with start & end time in android programmatically?

拥有回忆 提交于 2021-02-06 13:49:36
问题 I want to trim the local video based on start and end time in android programmatically ,I tried below attached few links but haven't worked for me.Please let me know any working libraries or sample code to overcome this? Refereed links: Android sdk cut/trim video file How to trim the video using FFMPEG library in android? https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg Thanks in advance! 回答1: Use FFMPEG library to solve your

Concat filter: Error initializing output stream

元气小坏坏 提交于 2020-07-22 06:10:33
问题 This is a follow-up question to: Flutter (Dart): Merge two videos and view the new output in the device's gallery (photos) In essence, I am trying to record two videos, merge them and then view the new video in the gallery. I am currently having some issues with the flutter_ffmpeg package. I uploaded the my Flutter project onto GitHub here: https://github.com/IttaiBarkai/Flutter-Video-Merger Below is a snippet of my code used to execute ffmpeg: void _videoMerger() async { final appDir = await

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.

Can I extract an audio clip (a single word) from the video and insert at different points/timeline of same video using FFMPEG/libvlcsharp?

霸气de小男生 提交于 2020-01-11 13:22:11
问题 I want to load a video that has a soundtrack, and I want it to take an audio clip of a single spoken word and I want the clip inserted at different points in the video. The output will be the new video. I also want to insert an image at certain points in the video (watermark). Can I do this using FFMPEG or libvlcsharp? 来源: https://stackoverflow.com/questions/59358375/can-i-extract-an-audio-clip-a-single-word-from-the-video-and-insert-at-differe

FFmpeg concatenation, no Audio in Final Output

雨燕双飞 提交于 2020-01-02 07:15:32
问题 I have the following command working in ffmpeg, which adds 1 second of a black frame to the beginning of the video. However, I lose the audio from the original video in the output video. How can I adjust the command to make sure the original audio stays with the final output, or better yet, there is 1 second of "blank" audio at the beginning so it matches the new output video. ffmpeg -i originalvideo -f lavfi -i color=c=black:s=1920x1080:r=25:sar=1/1 -filter_complex "[0:v] setpts=PTS-STARTPTS

Compress a video on client side web [closed]

荒凉一梦 提交于 2019-12-29 01:36:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have to upload a video from front-end web to my Django back-end. I need to compress the video before to upload it. So, I need some libraries (for example javascript libraries) to use on client-side (browser) to compress the video and call my ajax function to upload it. Is possible this? Can we suggest me