ffmpeg error: cur_dts is invalid

I'm trying to record video and audio from my webcam with the following command: ffmpeg -f v4l2 -input_format mjpeg -s uhd2160 -i /dev/video0 -f pulse -channels 1 -i default video.mpg but it seems to get stuck in some endless loop at the bottom of ...
more »

2017-12-03 21:12 (0) Answers

Android ffmpeg adb shell Unknown encoder 'libx264'

When I run ffmpeg on android by adb shell, it shows this error: Duration: 00:00:12.00, start: 0.000000, bitrate: 30412 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 30412 kb/s, 25 tbr, 25 tbn, 25 tbc [4;31mUnknown encode...
more »

2017-11-25 05:11 (1) Answers

Overwriting TS Stream File with FFMPEG in Linux

I'm trying to convert rtmp streams to m3u8 stream. To reach that aim I use FFMPEG. Now, there is no problem with converting and downloading. However, it writes lots of .ts file such as channel0000.ts,channel0001.ts,channel0002.ts. Per every 10 second...
more »

2017-08-11 18:08 (1) Answers

FFmpeg filtergraph memory leak

I have an FFmpeg program that: Demuxes and decodes a video file. Passes it through a filtergraph encodes and muxes the new video. The filtergraph itself is rather complex, and can be run directly from the command line as such: ffmpeg -i demo.mp4...
more »

2017-07-04 22:07 (0) Answers

How to use ffmpeg on iOS?

I have to use the following command for ffmpeg ffmpeg -i "Video.mp4" -map 0:1 "AudioWithVocalfromStreamOne.mp3" -map 0:2 "AudioWithoutVocalfromStreamTwo.mp3" I have successfully installed ffmpeg on my mac. I tried using FFMPEGWrapper, but it doesn...
more »

2017-06-02 05:06 (0) Answers

Overlay Image on moving object in Video

I am using FFmpeg to overlay image/emoji on video by this command - "-i "+inputfilePath+" -filter_complex "+"[0][1]overlay=enable='between(t,"+startTime+","+endTime+")'[v1]"+" -map [v0] -map 0:a "+OutputfilePath; But above command only overlay i...
more »

2017-05-09 10:05 (1) Answers

x264 Encoding use x264_picture_clean crash

When I use iphone encoding CMSampleBufferRef To H264, it offen crash at x264_picture_clean I dont't know how to deal it enter image description here x264_picture_t* pPic_in; here is my init about pPic_in pPic_in = (x264_picture_t*)malloc(sizeof...
more »

2017-05-05 08:05 (1) Answers

iOS multiple video display

I'm currently doing an iOS project that uses IJKPlayer which is based on FFmpeg and SDL to display RTSP feed from a certain source. I have no problem in displaying a single video feed but my project requires me to display multiple stream on the scr...
more »

2017-03-21 08:03 (1) Answers

Record a html5 page as a video

My goal is to have a Ubuntu (Desktop) server that "simply" converts html5 webpages into videos. I want to capture the smooth css and js-animations. So far I've tried this: (phantomjs) https://gist.github.com/phanan/e03f75082e6eb114a35c The timing a...
more »

2017-03-14 20:03 (0) Answers

Dartium build on windows with ffmpeg

I am trying to build Dartium with proprietary codecs. I am running into a problem with "_ff_w64_guid_data". I did a google search, and the most it comes up with is that it is a bug with old versions of chromium, and it was fixed in later releases, un...
more »

2017-03-14 01:03 (0) Answers

Compiling FFmpeg staticly using NDK with openssl

I have been trying to compile ffmpeg into a static library in order to use it in my android application, but i couldn't get it to work. Im working with FFmpeg 3.2.4, and ndk r13b, using bash on windows 10(Ubuntu 14.04). Here is what i did: I made...
more »

2017-02-26 21:02 (1) Answers

Get waveform data from audio file using FFMPEG

I am writing an application that needs to get the raw waveform data of an audio file so I can render it in an application (C#/.NET). I am using ffmpeg to offload this task but it looks like ffmpeg can only output the waveform data as a png or as a st...
more »

2017-01-14 07:01 (1) Answers

Add Filters to Video like Instagram

I am coding for an app and need to apply filters to videos like Instagram. I tried with FFMPEG library, but it doesn't work well and does not provide all filters. What I tried so far is, String commandStr1 = "ffmpeg -y -i /sdcard/vids.mp4 -strict ...
more »

2017-01-13 05:01 (0) Answers

How to pipe live video frames from ffmpeg to PIL?

I need to use ffmpeg/avconv to pipe jpg frames to a python PIL (Pillow) Image object, using gst as an intermediary*. I've been searching everywhere for this answer without much luck. I think I'm close - but I'm stuck. Using Python 2.7 My ideal pipel...
more »

2017-01-11 00:01 (0) Answers

Where do I find the Saved Image in Android?

Excuse me, quick question: I have this routine of video stream, where I receive packets, convert them to byte[] ,then to bitmaps, then display them on the screen: dsocket.receive(packetReceived); // receive packet byte[] buff = packetReceived.getDa...
more »

2016-10-29 21:10 (1) Answers

Video HLS with AVPlayer

I've converted .MOV video using this command line : ffmpeg -re -i 123.mov -vcodec copy -map 0 -f segment -segment_list 123.m3u8 \-segment_list_flags +live -segment_time 3 123%03d.ts output : ffmpeg version N-81872-gbe1d324 Copyright (c) 2000-...
more »

2016-10-04 19:10 (0) Answers

"opaque" pointer in ffmpeg AVFrame

In ffmpeg there is a structure AVFrame describing decoded video or audio data. It has a void pointer opaque. The documentation claims it is "for some private data of the user". What does this mean? Can it be used to transport any additional data as...
more »

2016-10-04 15:10 (2) Answers

FFmpeg AVFrame Audio Data Modification

I'm trying to figure out how FFmpeg saves data in an AVFrame after the audio has been decoded. Basically, if I print the data in the AVFrame->data[] array I get a number of unsigned 8 bit integers that is the audio in raw format. From what I ca...
more »

2016-09-05 14:09 (1) Answers

How to use run ffmpeg command in ios

I had successfully build ffmpeg into xcode but I didn't get idea , how to execute command into project.I research hard on it and fined how to play video using encoding and decoding,but did not get idea how to run command. ...
more »

2016-08-16 10:08 (0) Answers

ffmpeg cache whole video stream and save

I have a security DVR that can stream a video recording using the RTSP protocol. I can record the playback using ffmpeg and save it to a file, but for a 20 min video, I have to watch the video to save or wait the whole playback time. I'm using: ffmp...
more »

2016-07-19 16:07 (0) Answers