Questions tagged [ffmpeg-python]

Python FFmpeg wrapper wiith complex filter support. ffmpeg-python works well for simple as well as complex signal graphs.

Python FFmpeg wrapper with complex filter support. ffmpeg-python works well for simple as well as complex signal graphs.

113 questions
0
votes
0 answers

Work around for FFMPEG filter 'hue' not keeping sound

Writing a little compression program, but the option i added to make it black and white also removes the sound, and I'm not entirely sure if this is a problem with my code or if the filter just doesn't keep the sound file. The else statement is…
0
votes
1 answer

filter not muting video ffmpeg-python

Idk why but when I apply this filter the video is still output with sound. I am not sure of the syntax required to apply filter, so help would be appreciated. Only necessary portion of the code is shown, as im pretty sure this is just a syntax…
0
votes
1 answer

How to convert the following ffmpeg command to ffmpeg-python code?

I have the following ffmpeg command that works when I enter it into command prompt: ffmpeg -list_devices true -f dshow -i dummy. I would like to convert this ffmpeg command into equivalent ffmpeg-python code. How would I do it? Also, this command…
watersheep23
  • 339
  • 1
  • 3
  • 17
0
votes
0 answers

ffmpeg-python compression code not compressing. no error message just not changing file size

I'm really lost, I'm not sure what the issue is. The file is processing as the program takes longer to run the longer the video is, but it just does nothing. I don't think the compressed file is being output for some reason, and I cant figure it…
0
votes
1 answer

Getting error message using ffmpeg-python: [NULL @ 000002486ae7b180] Unable to find a suitable output format for

Doing a python compression program for school work, can't get my head around why I am getting this error: '[NULL @ 000002486ae7b180] Unable to find a suitable output format for' followed by a file path the user selects I think is has something to do…
0
votes
1 answer

Concatenate multiple *.ts Files (byte or byte-like-Format) to one mp4 File

I've written a downloader in scrapy which downloads multiple ts Files asynchronously. Now I'm trying to concatenate and convert to mp4. I've written the following code but the video order doesnt seem to be correct and the mp4 file is completly…
scuba14
  • 33
  • 9
0
votes
1 answer

How can I make this command by using ffmpeg-python?

ffmpeg -i brooklynsfinest_clip_1080p.mp4 \ -filter_complex \ "[0:v]split=3[v1][v2][v3]; \ [v1]copy[v1out]; [v2]scale=w=1280:h=720[v2out]; [v3]scale=w=640:h=360[v3out]" \ -map [v1out] -c:v:0 libx264 -x264-params "nal-hrd=cbr:force-cfr=1" -b:v:0 5M…
0
votes
1 answer

Apache mpm event shared memory error - ffmpeg-python Error while opening encoder for output stream #0:1 when accessed by multiple instances

EDIT: I kinda figured out, the problem needs to deal with apache mpm event... When I send my request on the first client, my script is getting executed linear. When I send my request from the second client, he is literally starting at that point in…
Geilmaker
  • 471
  • 1
  • 7
0
votes
1 answer

Get input filename from ffmpeg.input() object

I'm using the ffmpeg-python library. I have an input file object in_, e.g: import ffmpeg in_ = ffmpeg.input('video.mp4') How can I later (after adding filters, etc) extract the original name of the file used from in_? I don't see anything in their…
pigeonburger
  • 715
  • 7
  • 24
0
votes
2 answers

How to use multiple map values in ffmpeg-python?

How can I use multiple map values for different resolutions in ffmpeg-python? -map [v1out] -c:v:0 libx264 -b:v:0 1900k -bufsize 3800k \ -map [v2out] -c:v:1 libx264 -b:v:0 900k -bufsize 1800k \
kamoloff
  • 118
  • 1
  • 9
0
votes
0 answers

Play m3u8 audio streaming in python without saving audio content

there is an online radio station and i have a m3u8 url from that like below: http://example.com/live/playlist.m3u8 I can capture the audio with ffmpeg with this command: ffmpeg -i "http://example.com/live/playlist.m3u8" -c copy test.aac I want to…
AlexMercer
  • 301
  • 3
  • 10
0
votes
1 answer

How can I convert a RTMP stream to video file using FFmpeg?

I am trying to convert an RTMP stream to a video file using FFmpeg, but keep getting an error, rtmp://localhost:1935/live/app: Broken pipe on using: ffmpeg -i rtmp://localhost:1935/live/app -acodec copy -vcodec copy test.mp4 streaming using FFmpeg…
kup
  • 731
  • 5
  • 18
0
votes
1 answer

Image overlay in ffmpeg-python

I am trying to add a watermark to a video using ffmpeg-python. My pipeline is very straightforward, but I've been unable to figure out the syntax: new_input = ffmpeg.input(file_name).filter('overlay', 'overlay.png').output(fout).run() This throws…
David Ferris
  • 2,215
  • 6
  • 28
  • 53
0
votes
1 answer

Error merging audio and video ffmpeg-python

So I'm trying to merge audio and video using ffmpeg-python but it keeps telling me one error FileNotFoundError: [WinError 2] The system cannot find the file specified Here's the code that im trying def videoAudio(): input_video =…
0
votes
2 answers

Discord.py Looping an audio source

Does anyone know how to loop the same source in FFmpeg? This is my code: @bot.command(pass_context = True) async def join(ctx): if (ctx.author.voice): channel = ctx.message.author.voice.channel voice = await channel.connect() source =…
LordLazor
  • 39
  • 1
  • 7