Questions tagged [pyffmpeg]

Questions related to using PyFFmpeg, a python wrapper around FFmpeg's libavcodec, libavformat and libavutil libraries. PyFFmpeg main purpose is to provide access to individual frames of video files of various formats and codecs (such as mpg, mp4, mov, avi, flv, mkv, wmf, and webm). It also provides access to audio data.

PyFFmpeg is a python wrapper around FFmpeg's libavcodec, libavformat and libavutil libraries whose main purpose is to provide access to individual frames of video files of various formats and codecs (such as mpg, mp4, mov, avi, flv, mkv, wmf, and webm). It also provides access to audio data.

More details at http://code.google.com/p/pyffmpeg/

76 questions
11
votes
4 answers

How do I use ffmpeg with Python by passing File Objects (instead of locations to files on disk)

I'm trying to use ffmpeg with Python's subprocess module to convert some audio files. I grab the audio files from a URL and would like to just be able to pass the Python File Objects to ffmpeg, instead of first saving them to disk. It would also be…
Lyle Pratt
  • 5,636
  • 4
  • 27
  • 28
9
votes
4 answers

how to make cv2.videoCapture.read() faster?

My question : I was working on my computer vision project. I use opencv(4.1.2) and python to implement it. I need a faster way to pass the reading frame into image processing on my Computer(Ubuntu 18.04 8 cores i7 3.00GHz Memory 32GB). the…
Yu-Long Tsai
  • 105
  • 1
  • 2
  • 7
6
votes
4 answers

set useragent in ffmpeg

How to set useragent in ffmpeg ?. I implemented SWF verification in Media server and allowed some user agents for not to check SWF. But Problem is, I'm unable to set useragent in FFMPEG. As I need to repubish one of my stream with low bit rate to…
KMG
  • 889
  • 2
  • 14
  • 36
5
votes
1 answer

Can I pass a list of image into the input method of ffmpeg-python

My task involves using ffmpeg to create video from image sequence. the code belows solves the problem. import ffmpeg video = ffmpeg.input('/path/to/images/*.jpg', pattern_type='glob',framerate=20).output(video.mp4).run() However since the image…
se7en
  • 671
  • 4
  • 18
5
votes
2 answers

ffmpeg output separate channel from an input with multiple channels

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 …
tiras muturi
  • 81
  • 1
  • 8
5
votes
2 answers

FFmpeg: Record the screen but only remember the last 5 minutes?

I am using Ffmpeg to continuously record the video the screen on my PC. However, I only ever need the last 5 minutes of the video. Yes, I could edit the video afterwards. But these recording sessions could go on for several hours and take up A LOT…
4
votes
1 answer

How to get ffmpeg configuration similar to that of youtube for 480p and 1080p video? I have got a function but the output quality is too low

Hey guys I am learning to develop a website that converts videos to youtube quality (or close enough) 480p and 1080p, I am not much familiar with ffmpeg and struggling with its documentation. I have these functions, video_480p =…
prehistoricbeast
  • 405
  • 6
  • 16
4
votes
2 answers

Ffmpeg split video into multiple chunk but in different duration length

I know how to split video into equal duration length, but here i want to split video into un-equal parts and number of parts and duration will be different for each time. For ex, video length is 50 sec, i want to split it in 4 parts. 1) 0 sec - 5…
4
votes
1 answer

4l2loopback: NOOBS Trouble

I have installed v4l2loopback on my NOOBS OS but it is not working. I have checked if v4l2loopback is installed and it is. But when I type in sudo modprobe v4l2loopback devices=2, it says that it isn't found in the directory. Here is the proof…
Nour
  • 41
  • 5
4
votes
1 answer

Adding watermark to video

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…
equallyhero
  • 171
  • 1
  • 2
  • 16
3
votes
0 answers

FFmpegAudio and discord.py, speeding up track

I'm depeloving a discord.py bot, that has some features about music too. I use FFmpegAudio to reproduce audio, and i'm confused about how to use FFmpeg effects/filter in d.py library, in my case i need to speedup the song, like x2, x10, x0.5…
aleee
  • 90
  • 2
  • 7
3
votes
1 answer

conversing mp4 to wav with the same file name in python

Below are my code and I am trying to convert mp4 file to wav with some parameter change, like I am changing its frequency and so on. Now my problem is I have 100 mp4 files in the "inputdir" folder and I read the file one by 1 and convert it, then I…
megha
  • 115
  • 1
  • 2
  • 10
3
votes
1 answer

What is the format of ffmpeg -vstats_file?

When i run my FFMPEG command along with -vstats_file , one of the lines are frame= 182 q= 9.0 f_size= 17215 s_size= 3782kB time= 23238.835 br= 1418.5kbits/s avg_br= 1.3kbits/s type= P In here can somebody explain me what is the format…
Karthik
  • 929
  • 2
  • 12
  • 24
2
votes
0 answers

How we can get FFMPEG command from aftereffect json file(exported from bodymovin)?

How we can get FFMPEG command from aftereffect json file(exported from bodymovin)? I have export aftereffect json file with help of bodymovin plugin. But I have to load animation with help of ffmpeg. How I can get ffmpeg command from json or any…
2
votes
1 answer

Is there a Python Library to extract video metadata such as [Title, Description, Caption/Subtitles]?

I'm currently trying to find python libraries that can assist me in extracting metadata or information from video files such as [mp4, Mkv, Avi, WebM, mpg] formats for example. The main data that I'm focusing on extracting from the video files are…
1
2 3 4 5 6