[FFmpeg-user] "Buffer queue overflow, dropping" when using concat

2018-05-16 Thread Octavio Alvarez
Hi, everybody!

I am getting a huge amount of "Buffer queue overflow, dropping." when
using concat. This is my ffmpeg call:

ffmpeg -y  \
  -i camera.mts \
  \
  -f lavfi -i
'color=c=red:duration=675.8339800513014:s=1920x1080:r=3/1001' \
  \
  -filter_complex
'[0:a]adelay=675833.9800513014|675833.9800513014[audio_out]' -map
'[audio_out]' -ss 670 -t 10 track-camera-audio.flac \
  \
  -filter_complex '[1]null[p];[p][0:v]concat=n=2:v=1[video_out]' -map
'[video_out]' -ss 670 -t 10 track-camera-video.mkv


If I remove the line for the audio file (From -filter_complex to output
file) then video file gets created just fine. I get a lot of "Past
duration [N] too large" but the video track gets created correctly
without Buffer queue overflow messages.

Same if I remove the output line (the one for the video file, from the
-filter_complex to the output file). The audio file gets created just fine.


This is the full output. After a while I decide to Ctrl+C and the
track-camera-video.mkv file is less than 1 KB and the
track-camera-audio.flac is 8KB, so it looks like it did nothing.


[Wed May 16 21:28:11 -0500 -- alvarezp@laptop:~/handson/debug]
$ ffmpeg -y   -i camera.mts   -f lavfi -i
'color=c=red:duration=675.8339800513014:s=1920x1080:r=3/1001'
-filter_complex
'[0:a]adelay=675833.9800513014|675833.9800513014[audio_out]' -map
'[audio_out]' -ss 670 -t 15 track-camera-audio.flac   -filter_complex
'[1]null[p];[p][0:v]concat=n=2:v=1[video_out]' -map '[video_out]' -ss
670 -t 15 track-camera-video.mkv
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Debian 7.3.0-16)
  configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg
--disable-mips32r2 --disable-mips32r6 --disable-mips64r6
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-msa
--disable-libopencv --disable-podpages --disable-stripping
--enable-avfilter --enable-avresample --enable-gcrypt --enable-gnutls
--enable-gpl --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libfdk-aac
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar
--enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtesseract
--enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-nonfree --enable-opengl --enable-postproc
--enable-pthreads --enable-shared --enable-version3 --enable-libwebp
--incdir=/usr/include/x86_64-linux-gnu
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened
--enable-frei0r --enable-chromaprint --enable-libx264
--enable-libiec61883 --enable-libdc1394 --enable-vaapi --disable-opencl
--enable-libmfx --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil  56. 14.100 / 56. 14.100
  libavcodec 58. 18.100 / 58. 18.100
  libavformat58. 12.100 / 58. 12.100
  libavdevice58.  3.100 / 58.  3.100
  libavfilter 7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc55.  1.100 / 55.  1.100
Input #0, mpegts, from 'camera.mts':
  Duration: 01:02:22.75, start: 1.433367, bitrate: 15646 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr,
90k tbn, 59.94 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
stereo, fltp, 384 kb/s
Input #1, lavfi, from
'color=c=red:duration=675.8339800513014:s=1920x1080:r=3/1001':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 (h264) -> concat:in1:v0 (graph 1)
  Stream #0:1 (ac3) -> adelay (graph 0)
  Stream #1:0 (rawvideo) -> null (graph 1)
  adelay (graph 0) -> Stream #0:0 (flac)
  concat (graph 1) -> Stream #1:0 (libx264)
Press [q] to stop, [?] for help
[flac @ 0x5620ad6cbcc0] encoding as 24 bits-per-sample
Output #0, flac, to 'track-camera-audio.flac':
  Metadata:
encoder : Lavf58.12.100
Stream #0:0: Audio: flac, 48000 Hz, stereo, s32 (24 bit), 128 kb/s
Metadata:
  encoder : Lavc58.18.100 flac
[libx264 @ 0x5620ad667980] using SAR=1/1
[libx264 @ 0x5620ad667980] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
[libx264 @ 0x5620ad667980] profile High, level 4.0
[libx264 @ 0x5620ad667980] 264 - core 155 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2018 - http://www.videolan.org/x264.html - options:
cabac=1 

Re: [FFmpeg-user] Fatal error when compiling: ld terminated with signal 11

2018-05-16 Thread zerino
By default, I meant this git link  https://git.ffmpeg.org/ffmpeg.git


yup, they're meant to be, but since ffplay wasnt being installed, and
already had sdl-config packaged installed, I thought I ought to try to
"force
it"

What do you mean by linker?

And what os it have to with heat?



--
Sent from: http://www.ffmpeg-archive.org/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Fatal error when compiling: ld terminated with signal 11

2018-05-16 Thread zerino
I don't know what the "default git link" is but on ffmpeg.org, in thedownload
section you can find a link to Zeranoe who providesWindows binaries that
contain "even" x264.I meant this git link  https://git.ffmpeg.org/ffmpeg.git
Both are enabled by default (ffplay is only available if sdl
isavailable).yup, they're meant to be, but since ffplay wasnt installed, and
already to have sdl-config packaged installed, I thought I oought to "force
it"> Everything went fine until compiling ffmpeg itself.>> here is the
error:> LD  ffmpeg_g> collect2: fatal error: ld terminated with signal
11 [Segmentation fault],This is a linker bug, it cannot be fixed within
FFmpeg.(If this is a thermal issue, try again after allowing yoursystem to
cool down.)What do you mean by linker?And what os it have to with heat?Carl
Eugen___ffmpeg-user mailing
listffmpeg-user@http://ffmpeg.org/mailman/listinfo/ffmpeg-userTo
unsubscribe, visit link above, or emailffmpeg-user-request@ with subject
"unsubscribe".



--
Sent from: http://www.ffmpeg-archive.org/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Fw:ffmpeg http protocol question

2018-05-16 Thread asmall
Hi all:









 Forwarding messages 
From: "asmall" 
Date: 2018-05-14 23:31:45
To: ffmpeg-user@ffmpeg.org
Subject: ffmpeg http protocol question

Hi all


I'm xianfei. I have some problems to ask for you help. 
Thanks.
I encode audio with ffmpeg. 
when I exec the command "ffmpeg -i 
~/Downloads/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3 -af 
loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48k -f mp3 out_file.mp3", the out_file.mp3 
can play.
when i exec the command "ffmpeg -i 
~/Downloads/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3 -af 
loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48k -f mp3 
http://127.0.0.1:9805/v1/audio\?voice_id\=; , the output file can not play.
I found two output files size is not same. the second of command output file is 
small. For example, the first command show "frame= 1 fps=0.4 q=-0.0 Lsize= 
624kB time=00:00:48.62 bitrate= 105.1kbits/s speed=19.5x", but the second 
command show "frame= 1 fps=0.5 q=-0.0 Lsize= 623kB time=00:00:48.62 bitrate= 
105.0kbits/s speed=21.9x". So the second output file is bad.
But, at present, only this one is bad, other audio is ok. My http server is 
right, because so much audio files are ok.
I don't know something is wrong. I hope you can help me.
thanks!
 
The source audio file is "1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3" in the 
mail attachment.
the command exec result picture:
http://ob0mm0nhp.bkt.clouddn.com/ffmpeg-command-http-protocol.png
http://ob0mm0nhp.bkt.clouddn.com/ffmpeg-command-file-protocol.png


the audio file link
http://ob0mm0nhp.bkt.clouddn.com/1101_3c27ce48e0b31a7961f1e75281cfaf3d.f0.mp3
--


Thanks!

xianfei|bthl21...@163.com
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Fatal error when compiling: ld terminated with signal 11

2018-05-16 Thread Carl Eugen Hoyos
2018-05-17 2:07 GMT+02:00, zerino :
> Hello, I've been using ffmpeg for 3 years now, but I never had to compile
> it.
> This is quite new to me.
>
> I'm using Linux subsystem in a win10 machine.
>
> I was able to successfully compile it using the default git link on their
> website, but it lacked most libraries i needed (even x264), so I realized I
> should make a custom compile.

I don't know what the "default git link" is but on ffmpeg.org, in the
download section you can find a link to Zeranoe who provides
Windows binaries that contain "even" x264.

> Followed this guide:
> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#FFmpeg

> only adding
> --enable-ffplay \ and --enable-ffprobe \ to ensure their installation

Both are enabled by default (ffplay is only available if sdl is
available).

> Everything went fine until compiling ffmpeg itself.
>
> here is the error:

> LD  ffmpeg_g
> collect2: fatal error: ld terminated with signal 11 [Segmentation fault],

This is a linker bug, it cannot be fixed within FFmpeg.

(If this is a thermal issue, try again after allowing your
system to cool down.)

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Fatal error when compiling: ld terminated with signal 11

2018-05-16 Thread zerino
Hello, I've been using ffmpeg for 3 years now, but I never had to compile it.
This is quite new to me.

I'm using Linux subsystem in a win10 machine.

I was able to successfully compile it using the default git link on their
website, but it lacked most libraries i needed (even x264), so I realized I
should make a custom compile.

Followed this guide:
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#FFmpeg  only adding 
--enable-ffplay \ and --enable-ffprobe \ to ensure their installation

Everything went fine until compiling ffmpeg itself.

here is the error:


In file included from fftools/ffmpeg.c:43:0:
./libavformat/avformat.h:877:21: note: declared here
 AVCodecContext *codec;
 ^
LD  ffmpeg_g
collect2: fatal error: ld terminated with signal 11 [Segmentation fault],
core dumped
compilation terminated.
Makefile:107: recipe for target 'ffmpeg_g' failed
make: *** [ffmpeg_g] Error 1
zerinol@ROBOTO:~/ffmpeg_sources/ffmpeg$

any leads?



--
Sent from: http://www.ffmpeg-archive.org/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Unable to execute FFMPEG command

2018-05-16 Thread Ravi Kumar

Hello Team,

Hope you people are doing well.

Actually i am working on video app there is video call between two 
people using twillio. After their call finish i am taking videos and 
audios files from their room id and trying to merge all in a single 
mp4/webm file but leaving with synchronization issue. To solve that 
issue i have read a tutorial(URL : 
https://gist.github.com/igracia/581a8dfb8b88aa624c1d456adc6affb2) 
suggested by ffmpeg and implemented code but some of the commands are 
not working well. so if any one can help there is great appreciation.


We have implemented the new code. and final command that is created for 
merging videos is as below


ffmpeg -i /var/www/html/swipr/uploads/test/video1.mkv -i 
/var/www/html/swipr/uploads/test/video2.mkv -acodec libopus -i 
/var/www/html/swipr/uploads/test/audio1.mka -acodec libopus -i 
/var/www/html/swipr/uploads/test/audio2.mka -y -filter_complex " 
[0]scale=512:-2,pad=512:768:(ow-iw)/2:(oh-ih)/2[vs0],color=black:size=512x768:duration=2.716[b0],[b0][vs0]concat[r0c0];\[1]scale=512:-2,pa=512:768:(ow-iw)/2:(oh-ih)/2[vs1],color=black:size=512x768:duration=0[b1],[b1][vs1]concat[r0c1];\[r0c0][r0c1]hstack=inputs=2[video];\[2]aresample=async=1,adelay=2743.0|2743.0[a0];[3]aresample=async=1,adelay=5.0|5.0[a1];\[a0][a1]amix=inputs=2[audio]" 
-map[video] \ -map[audio] \ -acodec libopus \ -vcodec libvpx \ output.webm


After trying above command with different scenarios we are getting 
following errors.


#1)[AVFilterGraph @ 0x67fef00] No such filter: ' '
Error initializing complex filters.
Invalid argument

#2)Unrecognized option 
'filter_complex\[0]scale=512:-2,pad=512:768:(ow-iw)/2:(oh-ih)/2[vs0],color=black:size=512x768:duration=2.716[b0],[b0][vs0]concat[r0c0];\[1]scale=512:-2,pa=512:768:(ow-iw)/2:(oh-ih)/2[vs1],color=black:size=512x768:duration=0[b1],[b1][vs1]concat[r0c1];\[r0c0][r0c1]hstack=inputs=2[video];\[2]aresample=async=1,adelay=2743.0|2743.0[a0];[3]aresample=async=1,adelay=5.0|5.0[a1];\[a0][a1]amix=inputs=2[audio]-map[video]-map[audio]-acodec'.

Error splitting the argument list: Option not found

#3)Unrecognized option 'map[video]'.
Error splitting the argument list: Option not found

If we remove all the filters then we are getting a final output but that 
is not useful


Thanks






--

Kindly Regards
*Ravi Kumar*

TBI Logo
Sr. PHP Developer

*The Brihaspati Infotech Pvt. Ltd.*
*T* +917696981981 +918146052020

F-169, Sector 74, Phase-8B
Industrial Focal Point, Mohali (Punjab)
www.brihaspatitech.com 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] 2.8.14 security updates

2018-05-16 Thread Carl Eugen Hoyos
2018-05-16 9:39 GMT+02:00, Moritz Barsnick :
> On Tue, May 15, 2018 at 17:25:56 -0500, Bryan Duff wrote:
>> OK, and the reason I'm using 2.8 is because that's as high as the el7
>> rpmfusion repo goes to.
>
> Okay, if it was the libraries you needed, because you had an old
> program which has never been adapted to ffmpeg's new APIs/ABIs, that
> would have been a valid reason. But for the command line tools, I see
> no reason not to grab hold of a considerably newer version.
>
> If you want to stick to repos: In the case of EL7, I know that you can
> find much newer versions of the multimedia programs including ffmpeg
> (4.0) in the Negativo17 multimedia repo:

It should be much simpler to either compile a default (static) binary
or download one from the kind people offering them, see the download
section on our homepage.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] 2.8.14 security updates

2018-05-16 Thread Moritz Barsnick
On Tue, May 15, 2018 at 17:25:56 -0500, Bryan Duff wrote:
> OK, and the reason I'm using 2.8 is because that's as high as the el7
> rpmfusion repo goes to.

Okay, if it was the libraries you needed, because you had an old
program which has never been adapted to ffmpeg's new APIs/ABIs, that
would have been a valid reason. But for the command line tools, I see
no reason not to grab hold of a considerably newer version.

If you want to stick to repos: In the case of EL7, I know that you can
find much newer versions of the multimedia programs including ffmpeg
(4.0) in the Negativo17 multimedia repo:

https://negativo17.org/multimedia/

$ yum-config-manager 
--add-repo=https://negativo17.org/repos/epel-multimedia.repo

Note that it may or may not clash with rpmfusion, depending on what you
really need. They work fine for me in parallel on Fedora 27. (There was
a conflict for a while, as smplayer from rpmfusion needed different
libs than negativo17 provided.) YMMV.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".