pyffmpeg

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

Adding watermark to video

有些话、适合烂在心里 提交于 2019-12-24 03:22:32
问题 I am able to use the moviepy library to add a watermark to a section of video. However when I do this it is taking the watermarked segment, and creating a new file with it. I am trying to figure out if it is possible to simply splice in the edited part back into the original video, as moviepy is EXTREMELY slow writing to the disk, so the smaller the segment the better. I was thinking maybe using shutil? video = mp.VideoFileClip("C:\\Users\\admin\\Desktop\\Test\\demovideo.mp4").subclip(10,20)

Adding watermark to video

喜你入骨 提交于 2019-12-24 03:21:04
问题 I am able to use the moviepy library to add a watermark to a section of video. However when I do this it is taking the watermarked segment, and creating a new file with it. I am trying to figure out if it is possible to simply splice in the edited part back into the original video, as moviepy is EXTREMELY slow writing to the disk, so the smaller the segment the better. I was thinking maybe using shutil? video = mp.VideoFileClip("C:\\Users\\admin\\Desktop\\Test\\demovideo.mp4").subclip(10,20)

Simple example of using ffmpeg as a Python subprocess, and “checking in” on the conversion

三世轮回 提交于 2019-12-21 23:00:30
问题 I'm looking to convert a large directory of movies from one format to another, and to check in on the status of the conversion. I'm programming in Python. Something like this: >> m = MovieGenerator() >> m.convertMovie('/path/to/movie/movie1.avi') >> print m.status >> 35 frames completed Is this possible (or recommended)? Does anyone have a working example of how to use ffmpeg as a subprocess? Once the conversion is happening, is there any way to "check in" on the status of the conversion (for

Problems converting video to pictures using python 2.7

心已入冬 提交于 2019-12-13 02:21:19
问题 Tried a lot of options and am running out of ideas. I was hoping someone here could help. I am trying to write some code in python that will extract frames (say every tenth frame) from a video (.avi or .wmv) and create a picture (.jpg preferably - but other formats will do). I have had no success and was wondering if someone could assist me in solving my problem by providing an alternative to what I have tried and failed. I have tried PyMedia (the example in their tutorial http://pymedia.org

ffmpeg output separate channel from an input with multiple channels

我的梦境 提交于 2019-12-06 02:36:31
问题 i run this command to be able to stream a udp live stream to a http live stream that is playable using a mobile application that am building. its just a stream with audio streams only. ffmpeg -i udp://@localhost:1111 -map 0:a http://localhost:8090/feed1.ffm Input #0, mpegts, from 'udp://@localhost:1111': Duration: N/A, start: 54616.264622, bitrate: 768 kb/s Program 1 Metadata: service_name : Service 1 service_provider: TLK Stream #0:0[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,