Questions tagged [ffmpy]

`ffmpy` is a Python wrapper for `FFmpeg`. It compiles `FFmpeg` command line from provided arguments and their respective options and executes it using Python’s `subprocess`.

13 questions
2
votes
0 answers

How to convert video and output to BytesIO without saving?

Using ffmpy to convert video(or gif image) that uploaded. I want to convert the file without saving (i.e. input is a BytesIO, and output with a BytesIO). How can I do that?
Tac
  • 355
  • 3
  • 12
2
votes
1 answer

Adding silence between words in audio file using ffmpeg

What I am trying to do is to concat wav files which contain short audios. I am able to concat them into one file, but I am trying to set each file at a specific time. Currently, I can concat the files but I can't place each one at the specific time…
Joe T. Boka
  • 6,554
  • 6
  • 29
  • 48
2
votes
1 answer

ffmpeg executable not found when compiled with cx_freeze

I built an executable from a ffmpy code, which I compiled with cx_freeze. It works on my PC, as expected, I think it's because I have ffmpeg installed on my Windows. However, I need this compiled code to work on any PC, not only where ffmpeg is…
Joe T. Boka
  • 6,554
  • 6
  • 29
  • 48
1
vote
1 answer

Importing PIL images into FFMPY/FFMPEG to save as GIF/video

I would like to know how I can transfer PIL images to FFMPY to save it as video, or gif, since the PIL library's quantization method has strong quality losses in certain cases. I first do some modifications with PIL, and then want to export and save…
1
vote
0 answers

Initialize parameters of an OM model in python using fmpy

I would like to know how to modify the internal parameters of an Openmodelica model using the FMPY python library. I am using a thermodynamic model, and I want to initialize the pressure directly on…
Yaya356
  • 11
  • 1
1
vote
1 answer

How to convert a ffmpeg command to work with ffmpy?

I am trying to extract a certain audio segment from an entire audio file using ffmpy, which I haven't really worked with before. So far, I have looked into extracting a certain time range, which suggests to use a command like this: ffmpeg -ss…
Daveguy
  • 255
  • 3
  • 11
1
vote
1 answer

ffmpy concatenate multiple files with a file list

I'm currently trying to merge multiple video files with a python script using ffmpeg and ffmpy. The names of the files are being written into a file list, as suggested by the ffmpeg concatenate wiki. In my example I'm only using two files, but in…
r4ptor
  • 83
  • 1
  • 1
  • 7
0
votes
0 answers

Set the duration of Images in Conversion to Video with FFMPY

I am trying to convert multiple images to a video using FFMPY which seemed to be fine. However, the video was show and now I want to change the duration of how long an image appears in a video. One approach came from FFMPEG itself. ff =…
nucky
  • 348
  • 5
  • 15
0
votes
1 answer

How to use ffmpeg to check video corruption in python?

Hi i am currently having this python code : import subprocess import shlex cmd = "ffmpeg -v error -i 3.mp4 -f null - 2>error.log" new_cmd = shlex.split(cmd) subprocess_cmd =…
0
votes
0 answers

Do ffmpeg-python and ffmpy are system version independent?

I am making a python-based software that actually uses my Window's ffmpeg version. But I am thinking about to make it crossplatform, so, I heard that youtube-dl uses ffmpeg, so I want to know what is the module that it uses. But also, searching I…
SGarcia
  • 13
  • 6
0
votes
1 answer

FFmpeg in Python File already exists error

I'm working on a project using python(3.6) and Django(2.0) in which i'm converting a video to mp4 if it's in any other formate. Here's my code: from views.py: def generate_thumbnail(filename, thumb_name): print('func called') …
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
0
votes
1 answer

Concatenating 2 videos with ffmpeg using ffmpy

I am trying to concatenate 2 videos but my ffmpeg command must be wrong. The output is only the second video video2.avi. from ffmpy import FFmpeg ff = FFmpeg(inputs={'video1.avi': None, 'video2.avi': None}, outputs={'output.avi': None…
Joe T. Boka
  • 6,554
  • 6
  • 29
  • 48
0
votes
1 answer

Converting jpg's to mp4 using FFmPy

I have a file full of jpg images that I would like to convert into an mp4 video. I have managed to do this on the command line using cat path/to/pictures/%d.jpg | ffmpeg -f image2pipe -i - output.mp4 However when I try and go about doing it via…
Matt
  • 161
  • 1
  • 10