Questions tagged [ffmpeg]

1

votes
1

answer
408

Views

FFmpeg how to get an image for a particular 'coded_picture_number' together with motion vectors

I am looking for ways to get this output from ffmpeg: Basically, I would like to pass to the shell, a command that allows me to output a particular frame number, let's say coded_picture_number=200 with the motion vectors drawn into it. Any clue? Thanks in advance.
user102859
1

votes
2

answer
495

Views

How to use av_frame_unref in ffmpeg?

Can I create one AVFrame and use it for decoding of all frames? So I call av_frame_alloc() once, decode all frames, and then call av_frame_unref() once. Or I should call av_frame_alloc / av_frame_unref for each frame? When exactly I should call av_frame_unref, before decoding or after decoding? A....
Igor
1

votes
2

answer
125

Views

use of ffmpeg select filter

I am stuck with the use of ffmpeg select filter as I want to pick up only the ending frame of a input video but I cannot figure out the selection expression for the filter to get the work done, my code looks like this: ffmpeg -i in.mp4 -filter_complex 'select=expr_selecting_lastest_frame, overla...
user651177
1

votes
3

answer
148

Views

How to use GPU to accelerate the processing speed of ffmpeg filter?

According to NVIDIA's developer website, you can use GPU to speed up the rendering of the ffmpeg filter. Create high-performance end-to-end hardware-accelerated video processing, 1:N encoding and 1:N transcoding pipeline using built-in > filters in FFmpeg Ability to add your own custom high-perform...
Zedd W
1

votes
1

answer
46

Views

FFmpeg - avcodec_receive_frame doesn't receive all frames and lose frames before receving frames

The vcodec_receive_frame function didn't receive the rest of the frames. I tested that there were totally 132 frames of the video and it only received 125 frames losing 7 frames at the END of the video. How can I get the lost frames back? But something weird happened. As you can see the output from...
Jinx
1

votes
2

answer
7.6k

Views

FFMpeg Error av_interleaved_write_frame():

this my code . after running php code FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --enable-libamr-nb --enable-libamr-wb --enable-libdirac --enable-libfaac --enabl...
rajaneesh
3

votes
1

answer
32

Views

ffmpeg corruption when piping input from stdin

I have a program that generates images and creates a video out of them. Currently what works is creating all the images at once, then running FFmpeg in a subprocess and piping the images through stdin to create a video: cmd = ['ffmpeg', '-y', '-s', '{}x{}'.format(OUTPUT_WIDTH, OUTPUT_HEIGHT), '-r',...
CoconutFred
1

votes
0

answer
118

Views

zbar not working on netcat video stream from raspberry pi read using OpenCV

I am streaming video feed from raspberry pi using netcam to my PC and using zbar to read qr codes i the feed. I am reading the named pipe using ffmpeg: FFMPEG_BIN = 'ffmpeg' command = [ FFMPEG_BIN, '-i', 'fifo264', # fifo is the named pipe '-pix_fmt', 'gray', # opencv requires bgr24...
Snehil Vijay
1

votes
1

answer
733

Views

Pipe video frame to OpenCV image and then to FFmpeg

There is a similar question here: Getting 'av_interleaved_write_frame(): Broken pipe' error But what should I do if I want to write the data? I put pipe_out.stdin.write(image.tostring()) in the while loop, like this FFMPEG_BIN = '/home/media/Downloads/ffmpeg' import subprocess as sp import sys wid...
Pureheart
1

votes
1

answer
551

Views

Using ffmpeg to generate dash manifest and it cannot be played by dash.js

I'm using ffmpeg to encode incoming stream via rtmp protocol, the code as following: ffmpeg -re -i rtmp://localhost:1935${StreamPath} -use_timeline 1 / -use_template 1 -window_size 10 -min_seg_duration 5000 -f dash out.mpd The manifest looks like this: When I try to play it on dash.js player, a erro...
Punkhead
1

votes
0

answer
108

Views

Debugging the canvas texture code in A-Frame (FFmpeg stream as canvas source)

I am attempting to display a canvas as a texture in A-Frame. The canvas image is a video stream fed in from FFmpeg. This feed displays fine on the regular 2d canvas example from https://github.com/sbidolach/video-live-streaming , but I'm just getting a blank browser window when attempting to bring t...
KN100
1

votes
0

answer
412

Views

FFMPEG- How to generate thumbnail from video in Codeigniter

I'm working on generating thumbnail from uploaded video in Codeigniter for this I'm using ffmpeg but when I'm trying to generate the thumbnail I'm getting this error ffmpeg: symbol lookup error: /usr/lib/x86_64-linux-gnu/libass.so.5: undefined symbol: FT_Outline_EmboldenXY I've already installed ffm...
Mr. Pyramid
1

votes
2

answer
423

Views

How do I record a specific application running on my Mac using ffmpeg?

I just installed ffmpeg with using home-brew on Mac HighSierra. I want to record the contents (video only is fine) of an application running on my machine (as opposed to my entire Desktop). So I tried running the below davea$ ffmpeg -f gdigrab -framerate 25 -i title=DOSBox ffmpeg version 3.4.1 Cop...
Dave
1

votes
1

answer
393

Views

ffmpeg convert stream to jpg buffer without saving do disk

I have a webrtc video stream coming from the client to the server. I want to convert the stream into jpg images, but not save any image to disk (work from memory only). Currently I'm using this command line function (called from node js): var ops = [ '-i', '-', '-f', 'image2', '-vcodec', 'mjpeg', '-...
scanner
1

votes
0

answer
402

Views

ffmpeg - av_interleaved_write_frame(): Unknown error Error number -10053

Using ffmpeg, I am able to stream video. I wrote socket Java program that connects to TCP and reading this the Live stream. After my Java program finished recording, ffmpeg is stopping with following the error unexpectedly. I would like to keep ffmpeg running the whole time. av_interleaved_write_fr...
Ram
1

votes
1

answer
137

Views

I want to use image as a background of a drawtext video using ffmpeg

Currently i am able to create video with ffmpeg using the drawtext filters to draw text on a black background Now Remain one thing that seems difficult to me, I thought it would be easy until i come to discover i don't got it right. I want to use an image as background for the drawtext filters. I.e...
Femzy
1

votes
0

answer
376

Views

How to reduce audio delay in FFmpeg using HTTP FLV stream?

I have problem with live http flv stream. I'm using the following command and it works great except for the audio. Audio has delay that increasing over time. I can fix the this by removing refresh rate option on the output (-r 30) but then stream latency goes higher for about half second. ffmpeg -f...
albert200000
1

votes
0

answer
62

Views

Render current file name when creating animation from multiple files

I'm rendering animations from a collection of png's. I'd like to add the name of the file as a text overlay. I've got drawtext working with static text, but haven't been able to find a way to access the file name being rendered. Current command: ffmpeg -framerate 2 -i layer-%d.png -i logo.png -filte...
Geuis
1

votes
0

answer
152

Views

How to execute two ffmpeg commands sequentially

I'm using this library FFmpeg-Android to run FFmpeg in my Android project. I have this code with two different commands I want to run simultaneously: private void FFmpegExecuteTask() { try { String[] command1 = { '-i', mInputFile.getAbsolutePath(), '-c', 'copy', '-bsf:v', 'h264_mp4toannexb', '-f', '...
adriandleon
1

votes
1

answer
356

Views

Installing php_ffmpeg in xaamp with php 5.6 above

How do I install the ffmpeg on xaamp with php version 5.6? It is installed on the local machine and converting videos format through CMD, but not coordination with the local server.
Ali Abbas
1

votes
0

answer
279

Views

ffmpeg - Take Frame Accurate Screenshot

trying to find a way to take frame accurate screenshots with ffmpeg WITHOUT re-encoding the video. When I use: ffmpeg -ss -i input -vframes 1 -q:v 2 output.jpg with -ss being hh:mm:ss.ms, not matter how I specify the milliseconds, it is never frame accurate with this command. it seems to be landing...
mike
1

votes
1

answer
399

Views

FFMPEG UTF-8 subtitles not properly displayed in mp4 file

I am trying to add UTF-8 Telugu subtitles to mp4 file using ffmpeg. The subtitles are not properly getting displayed. I am using the command, ffmpeg -i input.mp4 -vf 'subtitles='input.srt:force_style=Fontsize=24' ' output.mp4 I also tried the following, ffmpeg -i input.mp4 -vf 'subtitles='input.sr...
kamalakar b
1

votes
0

answer
212

Views

Video recorded using Kurento is corrupted

We are using Kurento media server v6.6.1 to record a video conference. The web app client wich runs on Chrome(Windows, OSX, Android) is using a modified version of one-to-one-call-advanced Kurento sample and the second client is an Android native application which is using Nubomedia webrtcpeer v1.1....
Pranjal Lamba
1

votes
1

answer
41

Views

Showing text in intervals using ffmpeg

I'm trying to show a text in intervals using FFmpeg, for example showing 'Hello' for 10 seconds, hide it for 30 seconds and repeat the operation over and over.... Is there a way to do that? I'm able to show the text in some interval but don't know how to repeat it... Thanks. LordFord.
1

votes
2

answer
2.8k

Views

FFmpeg command: stream generated raw video over RTSP

I'm looking into using FFmpeg for streaming an output generated by an application to another system in the same network. However, I find the list of commands a little daunting and hard to understand. So I hope I can ask your help in the matter. My current usecase: I have a Unity application which ha...
Jan Discart
1

votes
1

answer
39

Views

Is av_fast_realloc faster than av_realloc?

Should I use it instead? Looks like it's just more compact. https://ffmpeg.org/doxygen/trunk/group__lavu__mem__funcs.html
siods333333
1

votes
1

answer
76

Views

Error while creating video with images using ffmpeg

I am using below command for creating video using multiple images String strCommand = 'ffmpeg -loop 1 -t 3 -i ' + picturePath + ' -loop 1 -t 3 -i ' + picturePath1 + ' -loop 1 -t 3 -i ' + picturePath2 + ' -loop 1 -t 3 -i ' + picturePath3 + ' -filter_complex [0:v]trim=duration=3, fade=t=out:st=2.5...
Muhammad Ali
1

votes
1

answer
1.4k

Views

Real-Time Buffer Too Full (FFMPEG)

So I've been having this issue with ffmpeg, it has been a journey getting the hardware and command to actually do what I want, but I still have one problem. Sometimes when I'm recording I just start dropping frames like crazy, this can be after an hour of recording or even ten hours in... Everything...
Nimble
1

votes
1

answer
70

Views

Where is the default audio visualisation in the ffplay.c?

When you play audio with ffplay, or video with the -vn flag, ffplay displays a spectrogram. I'm trying to find which part of the ffplay.c code is responsible for that. I want to enable/disable video with a press of a button, and also change the audio visualisation to something else. I suppose the fi...
siods333333
1

votes
0

answer
286

Views

FFMPEG low bitrate at starting frames

So I noticed that the first 1-4s of the videos that I'm converting start with a low bitrate and gradually increase untill its around the specified bitrate (-crf 17 -minrate 2000k -maxrate 3000k -bufsize 2000k). ... frame= 37 fps= 0.0 q=24.0 size = 113kB time=00:00:02.08 bitrate= 443.5kbits/s frame=...
YTZ
1

votes
0

answer
332

Views

ffmpeg streaming to rtmp at 30fps

I am trying to stream my desktop to facebook rtmp server using screen-capture-recorder: -re -rtbufsize 256M -f dshow -i audio='Mikrofon (Realtek Audio)' -rtbufsize 256M -f dshow -i audio='virtual-audio-capturer' -rtbufsize 1024M -f dshow -i video=screen-capture-recorder -r 30 -filter:v scale=...
user6326558
1

votes
1

answer
280

Views

Slice a long video with ffmpeg to little pieces in node js

I have a very big video like 3 hours, and I want to slice it to little pieces of 20 minutes each. This is my initial code : var fs = require('fs'); var spawn = require('child_process').spawn; var ffmpeg = spawn('ffmpeg', [ '-i', './videos/long-video.mp4', '-codec:v', 'copy', '-codec:a', 'copy', '...
ler
1

votes
0

answer
1.3k

Views

Capture Video with opencv, save to ffmpeg pipe and live stream

The goal is to stream an analysed live video over RTSP to some media server. To make the edits/analysis I use opencv, save the edited frames as JPEG in an FFMPEG image pipe and use the same FFMPEG to create a RTSP stream. Sorry if the terminology is not that accurate, I find it still quite confusing...
Chris
1

votes
1

answer
496

Views

ffplay - Two videos (.mp4), one display screen and just a few seconds to display them together

I have two videos (.mp4), one display screen and just a few seconds to display them together. I am able to displayed them together on a split screen via ffmpeg and then opening the output file. The problem is that it takes a long time (3 minutes). Here is the Code: (first code) $ ffmpeg -i _20180114...
Gabe Mata
1

votes
2

answer
528

Views

Record Screen Specific View using MediaRecorder

I want to record my screen video in specific View link only want to record the action performing inside LinearLayout. Right now, MediaRecorder is recording whole screen, how to record specific part of screen?
Ahsan Saeed
1

votes
1

answer
172

Views

How to compute the number of extra samples added by LAME or FFMPEG

I am attempting to build a MP3 decoder / parser in Python which supports files encoded by LAME or FFMPEG. My encoding shell script is shown here: #!/bin/bash for i in wav/*.wav; do i=${i##*/}; lame --nores --strictly-enforce-ISO -t --cbr -b 64 -h 'wav/${i}' 'mpeg/lame/${i%.wav}.mp3'; ffmpeg -i 'wav/...
Aswin Sivaraman
1

votes
0

answer
134

Views

drag and drop conversion with FFMPEG in multiple formats

i'm looking for a script that can convert a video in 2 formats for my website : mp4 and Webm i also want it to create a jpeg of the first frame and make all at 640*360 I'm a begginer with ffmpeg so i don't really know where to start. this is what i have for the moment, but that doesn't work ffmpeg...
William Eguienta
1

votes
0

answer
140

Views

executing ffmpeg using java throws Invalid argument

I was able to execute ffmpeg in linux command line like this: ./ffmpeg -i input.mp3 -af 'volume=2' output.mp3 But when I was trying to execute the same ffmpeg executable using Java, like this: String ffmpegCommand = '%s -i %s -af 'volume=2' %s'; String command = String.format(ffmpegCommand,'ffmpeg',...
Kathy Ji
1

votes
0

answer
124

Views

Set input frame rate in pygame.Camera

I am trying to get an input stream from a webcam on OS X self.capture = pygame.camera('/dev/video{}'.format(camera), (640, 480), 'RGB') I get an error (see below), but there are 2 pieces of information that I can not really stitch together. On first sight, it looks like I do not have the correct cam...
Thomas Hubregtsen
1

votes
1

answer
762

Views

ffmpeg error during encoding: EOF timestamp not reliable

I have noticed that some videos processed by the following command displays an error in the preliminary phase of the process: [Parsed_movie_0 @ 0x7fb06cf00d80] EOF timestamp not reliable All this happens while I'm testing the ffmpeg command line that generates the encoding with the specific required...
Massimo Vantaggio

View additional questions