Correct. You will need to update your source files and re-compile FFmpeg to take advantage of this bug fix (assuming your FFmpeg is older than the bug fix).
See the Updating FFmpeg and x264 section of HOWTO: Install and use the latest FFmpeg and x264.
Hi,
I followed the instruction on HOWTO: Install and use the latest FFmpeg and x264
and always get the same error when screncasting with the following command:
I uninstall and install again ffmpeg and this is the error I get each time:ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv
I Remember that all this worked before in kernel 2.6.35-27-generic-pae.................
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop, [?] for help
[matroska @ 0x981a040] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1 >= 1
av_interleaved_write_frame(): Invalid argument
Anyone can help me please, I'm runningkernel 2.6.35-30-generic-pae.
I am grateful for any advice.
PS: I'm gonna uninstall and re-install again ffmpeg...
Last edited by cadens; July 27th, 2011 at 09:30 PM.
Hi
The problem seems to be when using pcm in mkv or mka files.
pcm works OK for me when used like this:-
But gives me monotonic errors when used like this:-Code:ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio1.wav
Code:ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio1.mka
Looks like alsa: limit buffer_size to 32768 frames is the problem. Anyone want to confirm?
Code:sudo apt-get remove ffmpeg cd ~/ffmpeg make distclean git checkout e35c674d13a7f180412cfe058530a2e7f1d49a90 ./configure make ./ffmpeg -f alsa -ac 2 -i pulse -acodec pcm_s16le -y ~/output.mkv make distclean git checkout master
For me, the problem's still there with parent of git checkout e35c674d13a7f180412cfe058530a2e7f1d49a90
git checkout 8bfd7f6a475225a0595bf657f8b99a8fffb461e4
ron@ubuntu:~/GITS/ffmpeg$ ./ffmpeg -f alsa -ac 2 -i pulse -acodec pcm_s16le -y ~/output.mkv
ffmpeg version 8bfd7f6, Copyright (c) 2000-2011 the Libav developers
built on Jul 28 2011 22:46:07 with gcc 4.4.3
configuration:
libavutil 51. 8. 0 / 51. 8. 0
libavcodec 53. 5. 0 / 53. 5. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 2. 0. 0 / 2. 0. 0
[alsa @ 0x93a22c0] capture with some ALSA plugins, especially dsnoop, may hang.
[alsa @ 0x93a22c0] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'pulse':
Duration: N/A, start: 1311889656.860130, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, matroska, to '/home/ron/output.mkv':
Metadata:
encoder : Lavf53.2.0
Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
[matroska @ 0x93bb040] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 387 >= 387
av_interleaved_write_frame(): Invalid argument
Bookmarks