Re: [FFmpeg-user] FFMPEG libx264 not found error

2018-04-05 Thread Victor Carneiro Fardim
Hello, Niket.

This message means that the libx264 binaries and headers are not installed or 
were not found.

FFmpeg itself does not come with libx264 - the libx264.c file is just a wrapper 
for libavcodec to interact with libx264.

The solution is to install libx264-dev from your distribution's repositories, 
or get its source, build it and install it before building FFmpeg.

Hope this can help you and good encodes for everybody,

Victor Carneiro
___
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] libharfbuzz linking error when trying to compile FFmpeg.

2018-04-04 Thread Victor Carneiro Fardim
Hello.

So, I'm trying to compile a custom build of FFmpeg, but whenever it gets to the 
executable linking stage, it fails with the following message:

LD ffmpeg_g
/usr/lib/libharfbuzz.so.0: undefined reference to `FT_Done_MM_Var'
/usr/lib/libharfbuzz.so.0: undefined reference to `FT_Get_Var_Blend_Coordinates'
collect2: error: ld returned 1 exit status
make: *** [Makefile:107: ffmpeg_g] Error 1

I'm running Manjaro GNU/Linux, all of my packages are up to date, and I'm 
building from the latest official Git commit. My freetype and harfbuzz packages 
are both from the official Manjaro repositories and are up-to-date - from what 
I've read, this error usually occurs with unofficial freetype and harfbuzz 
builds, which is not the case.

My ./configure command looks like this:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ && ./configure --prefix=/usr 
--enable-gpl --enable-version3 --enable-libopus --enable-libcodec2 
--enable-libmp3lame --enable-libx265 --enable-libaom --enable-libfreetype 
--enable-libvpx --enable-libv4l2 --enable-libx264 --enable-libass 
--enable-libpulse --enable-libvorbis --enable-libwebp --enable-libtheora

I'd appreciate your help with this problem. I'll also be posting this issue on 
the Manjaro forums to see if anyone is able to reproduce/give me some insight 
on the problem.

Thanks in advance and good encodes for all of you,

Victor Carneiro
___
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] Question about using ffmpeg to convert a sequence of images to video

2018-04-04 Thread Victor Carneiro Fardim
Hi, Chen Yang.

I see you are using good encoder settings to minimize encoding latency.

In this case, I'd try messing around with the VBV buffer (`-bufsize`). Try 
setting `-bufsize` very low, for instance, 128k. This will, however, result in 
a (significantly) reduced quality due to the bitrate not being able to 
fluctuate too much to compensate for changes in image complexity - essentially 
resulting in a mostly constant bitrate. You can play around with the

If you are streaming live video, you may also want to lower the GOP length, to 
reduce the initial buffering delay. Note that this will also greatly affect 
quality, so use it with care.

You may also try other container formats, since muxing also introduces varying 
degrees of latency.

Good encodes,

Victor Carneiro
 Mensagem Original 
Ativo 4 de abr de 2018 06:00, 陈阳 escreveu:

> Hi guys,
>
> I use ffmpeg to convert a sequence of images to a video, i find that after i 
> feed first image to it and almost 6 seconds later ffmpeg output first video 
> frame to me.
> I use command as follow:
> ffmpeg -f image2pipe -r 100 -i pipe:0 -f flv -r 100 -tune zerolatency -preset 
> ultrafast -bufsize 2M -codec:v libx264 -codec:a libmp3lame -bf 0 -muxdelay 
> 0.001 -s 478x850 -b:v 2M pipe:1
> Is my options is right?
> Or others led to this result?
> How can i get first video frame quickly once i feed the first frame?
> By the way, i create a question in stack overflow, maybe you could answer my 
> question at here(https://stackoverflow.com/q/49646564/8782964)
> ___
> 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 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] How to drop frames to limit memory usage (or keep latency low)?

2018-04-04 Thread Victor Carneiro Fardim
Hi, Adam.

I don't see any way to do automatic frame skipping in FFmpeg.

What you could do is reduce the output framerate by using the `-r (framerate)` 
or the `fps` video filter, which will reduce the encoding load on the CPU.

Adjust this until the average encoding throughput is 1.00x (that means, when 
the average number of frames encoded per second is equal to the specified 
framerate, and your average CPU load is below ~90% just to be safe).

Also, I'm sure `mpeg2video` does not support encoding presets. If you want fast 
encoding, you may want to try `libx264` with `-preset ultrafast`, `-tune 
stillimage` and `-deblock 0:0`, since that can be faster than MPEG-2 depending 
on your CPU architecture, and maybe more efficient.

If available on your platform, you may also want to try hardware-accelerated H 
264 encoding APIs. You can find some info here: 
https://trac.ffmpeg.org/wiki/HWAccelIntro (note: you may have to compile a 
custom build of FFmpeg to enable this feature, as pre-built ones aren't usually 
compiled for it.

Victor Carneiro
___
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] Error when trying to compile FFmpeg with libaom

2018-03-30 Thread Victor Carneiro Fardim
When trying to build the latest Git build of FFmpeg with libaom enabled, I'm 
getting the following error:

CC  libavcodec/libaomdec.o
In file included from

./libavutil/common.h:105:0

,
 from

libavcodec/libaomdec.c:29

:

./config.h:38:0:

warning:

"ARCH_X86" redefined
 #define ARCH_X86 1

In file included from

/usr/local/include/aom/aom_image.h:38:0

,
 from

/usr/local/include/aom/aom_codec.h:47

,
 from

/usr/local/include/aom/aom_decoder.h:33

,
 from

libavcodec/libaomdec.c:26

:

/usr/local/include/aom/aom_config.h:15:0:

note:

this is the location of the previous definition
 #define ARCH_X86 0

In file included from

./libavutil/common.h:105:0

,
 from

libavcodec/libaomdec.c:29

:

./config.h:563:0:

warning:

"CONFIG_PIC" redefined
 #define CONFIG_PIC 1

In file included from

/usr/local/include/aom/aom_image.h:38:0

,
 from

/usr/local/include/aom/aom_codec.h:47

,
 from

/usr/local/include/aom/aom_decoder.h:33

,
 from

libavcodec/libaomdec.c:26

:

/usr/local/include/aom/aom_config.h:109:0:

note:

this is the location of the previous definition
 #define CONFIG_PIC 0

libavcodec/libaomdec.c:

In function ‘

set_pix_fmt

’:

libavcodec/libaomdec.c:92:35:

error:

‘

struct aom_image

’ has no member named ‘

cp

’; did you mean ‘

cs

’?
 avctx->color_primaries = img->

cp

;

^~

cs

libavcodec/libaomdec.c:93:29:

error:

‘

struct aom_image

’ has no member named ‘

mc

’
 avctx->colorspace  = img

->

mc;

^~

libavcodec/libaomdec.c:94:29:

error:

‘

struct aom_image

’ has no member named ‘

tc

’
 avctx->color_trc   = img

->

tc;

^~

libavcodec/libaomdec.c:

In function ‘

aom_decode

’:

libavcodec/libaomdec.c:176:9:

error:

too few arguments to function ‘

aom_codec_decode

’
 if (

aom_codec_decode

(>decoder, avpkt->data, avpkt->size, NULL) !=

^~~~

In file included from

libavcodec/libaomdec.c:26:0

:

/usr/local/include/aom/aom_decoder.h:218:17:

note:

declared here
 aom_codec_err_t

aom_codec_decode

(aom_codec_ctx_t *ctx, const uint8_t *data,

^~~~

make: *** [ffbuild/common.mak:60: libavcodec/libaomdec.o] Error 1

My configure/make command looks like this:

sudo -H bash -c 'make clean && export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ 
&& ./configure --enable-gpl --enable-version3 --enable-libopus 
--enable-libcodec2 --enable-libmp3lame --enable-libx265 --enable-libaom 
--enable-libfreetype --enable-libvpx --enable-libv4l2 --enable-libx264 
--enable-libass --enable-libpulse --enable-libvorbis --enable-libwebp 
--enable-libtheora && nice make && nice make install && notify-send "FFmpeg 
build done"'

I've built the latest Git build of aom with cmake and default settings. I don't 
know what's wrong. But from the looks of it, this might be a bug in libavcodec, 
since the corresponding function in libaom that's throwing the error takes 5 
arguments instead of 4.

I'd appreciate if somebody could help me with this.
___
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".