[Ffmpeg-devel-irc] ffmpeg.log.20150902

burek burek021 at gmail.com
Thu Sep 3 02:05:01 CEST 2015


[00:11:56 CEST] <feliwir> how to compile ffmpeg with fpic?
[00:12:23 CEST] <JEEB> --enable-pic
[00:13:16 CEST] <feliwir> thanks
[00:21:57 CEST] <feliwir> i get this: http://pastebin.com/cuBWLSyj ?
[00:23:02 CEST] <feliwir> when compiling with pic
[00:23:53 CEST] <JEEB> make distclean, reconfigure and rebuild
[00:25:20 CEST] <feliwir> distclean?
[00:25:36 CEST] <feliwir> ah
[02:19:31 CEST] <DrBenway> so more timebase stuff... I have a stream with a time base of 1/90000 and a codec with a timebase of 180000 and a frame rate of 27.45.... why is my frame duration ~3005?
[02:21:50 CEST] <DrBenway> actually, 4057 on the first frame and then 3005 for the others
[04:34:37 CEST] <katmai> hey guys sorry to bug but i am following the installation for centos from https://trac.ffmpeg.org/wiki/CompilationGuide/Centos . on centos6 everything works just fine, but on centos 7.1 ffmpeg errors out: ERROR: x265 not found using pkg-config
[04:34:40 CEST] <katmai> END /tmp/ffconf.0PeT145i.c
[04:34:40 CEST] <katmai> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/root/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/root/ffmpeg_build/include -I/usr/include/freetype2 -I/root/ffmpeg_build/include/opus -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg_build/include -I/root/ffmpeg
[04:34:40 CEST] <katmai> _build/include -I/root/ffmpeg_build/include -L/root/ffmpeg_build/lib -c -o /tmp/ffconf.ul1rzOFm.o /tmp/ffconf.0PeT145i.c
[04:34:40 CEST] <katmai> In file included from /tmp/ffconf.0PeT145i.c:1:0:
[04:34:41 CEST] <katmai>      bool             bScenecut;
[04:34:41 CEST] <katmai>      ^
[04:34:42 CEST] <katmai> ERROR: x265 not found using pkg-config
[04:35:31 CEST] <katmai> i looked in the https://bitbucket.org/multicoreware/x265/issues/125/x265-not-found-using-pkg-config but adding that PATH="$HOME/bin:$PATH"  doesn't help
[04:35:34 CEST] <relaxed> katmai: update your x265 source
[04:35:41 CEST] <relaxed> that was fixed in tip
[04:35:59 CEST] <katmai> well that was fixed last year, i cloned the repo ... 2 days ago
[04:36:23 CEST] <relaxed> your issue was fixed today
[04:36:26 CEST] <katmai> oh
[04:36:33 CEST] <katmai> dang ok
[04:37:42 CEST] <katmai> rebuilding now. thanks for the tip
[04:40:51 CEST] <katmai> oh yea it works. thanks buddy
[09:43:26 CEST] <Taniey> Ask a drawtext filters question.
[09:43:26 CEST] <Taniey> I import windows fonts to linux.
[09:43:27 CEST] <Taniey> use command:
[09:43:27 CEST] <Taniey> ffmpeg -y -i /Mp4Ba.mp4 -filter_complex "drawtext=font=Arial:fontcolor=00ffff:x=100:y=200:textfile=drawtext.txt:fontsize=48" -t 00:02:00 out.mp4
[09:43:27 CEST] <Taniey> to draw some text on video.
[09:43:29 CEST] <Taniey> The text file drawtext.txt content is encoded by utf-8 no bom , the content of the textfile contain :Arabic ,Chinese, English, Korean and Japanese and etc.
[09:43:32 CEST] <Taniey> When I play the result , only the Arabic and English can display normally, other text only display with some squares symbol.
[09:43:35 CEST] <Taniey> How can I resolve the question.
[10:01:35 CEST] <Anoia> morning all
[10:06:40 CEST] <Taniey> I `m in afternoon
[10:07:28 CEST] <Taniey> ~~
[10:09:09 CEST] <Anoia> give or take 13 hours :)
[10:09:43 CEST] <Taniey> eun
[10:10:11 CEST] <Taniey> ~_~
[10:11:29 CEST] <Taniey> can you know the question of my asked?
[10:35:43 CEST] <hefest> which of these version of ffmpeg is older:
[10:35:44 CEST] <hefest> ffmpeg version N-72351-g1b23654 Copyright (c) 2000-2015 the FFmpeg developers
[10:35:50 CEST] <hefest> ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
[10:38:46 CEST] <hefest> i got the first one failing on this command: ffmpeg -y -i toRotate_57966.mp4 -crf 20 -metadata:s:v:0 rotate=0 -r 30 57966_Y.mp4
[10:38:50 CEST] <hefest> with : [libx264 @ 0x23c9040] Input picture width (480) is greater than stride (0)
[11:05:41 CEST] <Anoia> Taniey: I can not because I joined after you asked.
[11:12:59 CEST] <durandal_1707> hefest: what fails?
[11:17:54 CEST] <Taniey> oh. I see.
[11:18:49 CEST] <hefest> durandal_1707: that command, ^
[11:32:16 CEST] <relaxed> hefest: see if it happens with git master
[11:39:20 CEST] <hefest> relaxed: it's not. figured that out.
[11:44:09 CEST] <Taniey> Can anybody help me to resolve the question about drawtext?
[11:44:20 CEST] <Taniey> parse url: http://pastebin.com/RU0igb5t
[12:56:51 CEST] <feliwir> i keep getting "Bad Value" when linking against ffmpeg :-/
[13:00:33 CEST] <feliwir> and the errors tells me to compile with -fPIC but i already use the --enable-pic switch. Any ideas?
[13:02:56 CEST] <BtbN> You'll have to give more infos than that
[13:03:09 CEST] <BtbN> Like what are you trying to do, how are you doing it, what is the exact commandline and output?
[13:03:32 CEST] <feliwir> BtbN, i am trying to use rust-ffmpeg (which is a binding of ffmpeg to rust)
[13:04:52 CEST] <feliwir> the linker is trying to link all the av libraries. Error is this: http://pastebin.com/AwXe0t4q
[13:06:40 CEST] <feliwir> if someone wants to test it himself: https://github.com/meh/rust-ffmpeg
[14:04:07 CEST] <Anoia> I have a peice of code that decodes H.264 which is done into a single avframe.
[14:04:44 CEST] <Anoia> I now need to add some post processing to the code, but I can;t replace the data int he avframe as it confuses the h.264 decoding
[14:05:01 CEST] <Anoia> what is the corretc way to allocate a frame, with all the buffers needed?
[14:05:45 CEST] <Anoia> av_frame_alloc seems to setup the basics. There is another function that takes the details in the frame and allocated the data planes as required
[14:06:03 CEST] <Anoia> but I can;t see anythign that copies the frame sizes, data sizes, etc
[14:06:29 CEST] <Anoia> only "all data", or "just metadate, not frame sizes"
[14:14:39 CEST] <BtbN> av_frame_make_writable
[14:21:38 CEST] <TikityTik> Why does ffmpeg not use cmake?
[14:21:51 CEST] <TikityTik> Why does it recommend Mingw instead for compiling on windows?
[14:22:07 CEST] <TikityTik> I'm trying to understand how to make cross platform applications
[16:14:19 CEST] <Anoia> BtbN: thanks, what's the best way to populate all the fields that function requires?
[16:14:44 CEST] <Anoia> is it safe just to copy them individually from the "official" decoder created frame?
[16:18:33 CEST] <BtbN> Why do you want to copy stuff?
[16:18:43 CEST] <BtbN> Just call it on the frame you got and modify away
[16:24:34 CEST] <Anoia> because the original frame needs to stay unaltered
[16:24:53 CEST] <Anoia> as the h.264 decoder updates that avframe form the received P frames
[16:25:37 CEST] <BtbN> Yes, so you call make_writable on it.
[16:27:55 CEST] <Anoia> isn't that just allocating buffers on an already half filled in avframe?
[16:28:17 CEST] <Anoia> maybe I;m not understanding the definition of a writabel AVFrame
[16:29:51 CEST] <Anoia> on re reading it, it copys the frame lparticulars, allocates buffers, copys the data and properties, then fills int he structure with the new details
[16:30:02 CEST] <Anoia> won;t that again clobber the original frame data?
[16:30:11 CEST] <Anoia> or does the decoder keep its own buffers?
[16:35:02 CEST] <Anoia> that function does however show me how to create a new blank "clone" of the frame I think (As I want to avoid copying data that I'll just overwrite again)
[16:39:20 CEST] <BtbN> Anoia, it does everything that's neccesary so you can safely write to the frame.
[16:39:59 CEST] <Anoia> but it's already been written, it's allocated and there's data there.
[16:40:03 CEST] <Anoia> am I missing something?
[16:45:45 CEST] <TikityTik> How is ffmpeg cross-platform compilable? What does it use?
[16:46:02 CEST] <klaxa|work> #ifdef
[16:46:52 CEST] <TikityTik> klaxa|work: but I don't understand how you can compile it on each OS
[16:47:11 CEST] <TikityTik> for instance linux uses Makefile, and then I don't know about other OSs
[16:49:31 CEST] <Anoia> the usual windows builds are cross compiled
[16:49:51 CEST] <Anoia> but the source files can be compiled in any C compiler
[16:50:58 CEST] <Anoia> and there are makefile processors for windows, both nmake and gmake (iirc)
[16:51:40 CEST] <TikityTik> Anoia: Why doesn't ffmpeg use cmake as it's cross-platform?
[16:52:19 CEST] <Anoia> no idea
[16:52:35 CEST] <Anoia> but makefiles aren;t intrinsically linux only
[17:05:35 CEST] <TikityTik> I still don't understand how ffmpeg is cross-platform when it doesn't use a cross-platform build system
[17:05:43 CEST] <TikityTik> how is that achieved?
[17:06:08 CEST] <Anoia> what's not cross platform about it?
[17:06:31 CEST] <Anoia> as said, makefiles aren't intrinsically Linux, and there are make variants for Windows
[17:06:37 CEST] <Anoia> including gnu make
[17:08:48 CEST] <TikityTik> Anoia: what about android and mac?
[17:09:17 CEST] <Anoia> cross compiling (seeing as android is natively Java anyway)
[17:09:27 CEST] <Anoia> but again, there are suitbale makes
[17:09:47 CEST] <Anoia> you still havsn;t said why you think it's not cross platform.
[17:10:12 CEST] <klaxa|work> i think ffmpeg on android is a bit more complex: https://trac.ffmpeg.org/wiki/CompilationGuide/Android
[17:11:46 CEST] <TikityTik> Anoia: because it's weird how you would need to use Mingw to compile ffmpeg
[17:12:10 CEST] <TikityTik> which simulates building in Linux
[17:12:36 CEST] <klaxa|work> i don't think anyone wants to switch build-systems now though
[17:13:28 CEST] <TikityTik> I want to use Makefile and all that, but it seems like it's not applicable to other things like Mac or android.
[17:13:33 CEST] <Anoia> ersonally, I use http://ffmpeg.zeranoe.com/builds/
[17:13:59 CEST] <Anoia> +p
[17:14:05 CEST] <klaxa|work> i linked you the compilation page for android ( https://trac.ffmpeg.org/wiki/CompilationGuide/Android )
[17:18:27 CEST] <TikityTik> It's just weird that ffmpeg doesn't use a buildsystem generator
[17:18:38 CEST] <TikityTik> that's what I'm thinking after reading, https://stackoverflow.com/questions/25789644/makefile-vs-cmake
[17:19:46 CEST] <c_14> TikityTik: the buildsystem is cross-platform
[17:19:52 CEST] <Anoia> the whole idea of using s script to create a script to compile source seems silly to me :)
[17:20:23 CEST] <c_14> All it requires is POSIX compatibility
[17:20:36 CEST] <TikityTik> I see
[17:20:50 CEST] <TikityTik> But what if there's a platform that's not posix compatible?
[17:21:04 CEST] <c_14> Then it's not supported.
[17:21:12 CEST] <Anoia> there's always goign to be something that can;t compile it
[17:21:15 CEST] <TikityTik> And how is silly to use something like CMake?
[17:21:20 CEST] <c_14> On windows you can use something like msys2 to get something close enough to POSIX-compliance.
[17:21:21 CEST] <Anoia> good luck getting it running on a bbc micro
[17:21:23 CEST] <TikityTik> how is it silly*
[17:21:25 CEST] <c_14> CMake is shit
[17:22:39 CEST] <Artix2> Hi !
[17:23:23 CEST] <TikityTik> c_14: why is it shit though?
[17:23:33 CEST] <Artix2> I try to dump Quantization parameters for each macroblock to debug my videos with "ffmpeg -debug qp" and i got really slowwww performances, is there anything i can do to speed things up ? like adding threads or anything else ? cpu is used at max 4%
[17:23:47 CEST] <c_14> It breaks easily, it's really hard to debug, it does weird magic
[17:24:11 CEST] <klaxa|work> as if ffmpeg didn't do even more magic
[17:24:19 CEST] <TikityTik> So I guess I should use Makefiles and all that?
[17:24:47 CEST] <klaxa|work> use whatever suits your use-case best
[17:24:50 CEST] <klaxa|work> also >opinions
[17:25:09 CEST] <klaxa|work> i'm in no way endorsing cmake though
[17:25:12 CEST] <TikityTik> I want to start making cross-platform programs, so I'm just trying to follow the example of popular projects.
[17:25:14 CEST] <TikityTik> which is why i'm asking here.
[17:25:38 CEST] <Anoia> TikityTik: so it was nothign to do with avcodec itself then?
[17:25:43 CEST] <Artix2> http://pastebin.com/8hDPZrTy
[17:26:11 CEST] <Anoia> just to grill us on why ffmpeg's not using $randomTechnology
[17:26:49 CEST] <c_14> TikityTik: every project has a different solution, use what works for you
[17:26:58 CEST] <c_14> There is no perfect solution.
[17:31:09 CEST] <TikityTik> c_14: well I'm trying to find the popular solution lol
[17:31:25 CEST] <TikityTik> but i do like compiling and coding on posix
[17:31:30 CEST] <TikityTik> err linux?
[17:31:51 CEST] <TikityTik> I prefer to code in Vim, and use gcc with makefiles. I really dislike having to use IDEs such as visual studio
[17:34:45 CEST] <c_14> I mean, it depends a lot on the scale of your project and the amount of external dependencies but Makefiles go a long way. As long as you don't use gmake specific syntax it should work on all POSIX systems (BSD, Linux, OSX) and might only need a little bit of tweaking to work under something like msys2 for Windows. (This really isn't the correct channel for this discussion though).
[17:36:18 CEST] <c_14> Artix2: I don't think you can make it faster. Not only does it have to decode every frame, it also needs to write all the information into the output file.
[17:36:31 CEST] <c_14> You _might_ be able to speed it up by using something like vdpau for the video decoding
[17:36:36 CEST] <c_14> Assuming that's a bottleneck on your system
[17:37:23 CEST] <blahkat> hello all
[17:38:51 CEST] <blahkat> I have compiled ffmpeg on my CentOS linode server but now i am getting "./ffmpeg: error while loading shared libraries: libavdevice.so.56: cannot open shared object file: No such file or directory"
[17:39:39 CEST] <Artix2> c_14 : I tried it on a beast server with 2go/s disk and 2x xeon e5-2690 v2
[17:39:45 CEST] <blahkat> when I run ldd $(which ffmpeg) I get "/usr/bin/which: no ffmpeg in (/usr/local/maven/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/share/apache-maven/bin:/usr/local/ant/bin:/usr/bin:/bin)" -> ldd: missing arguments
[17:39:53 CEST] <blahkat> missing file arguments* rather
[17:39:56 CEST] <c_14> blahkat: ldd ./ffmpeg
[17:40:06 CEST] <blahkat> ah
[17:40:28 CEST] <c_14> But you probably just need to set LD_LIBRARY_PATH to the libpath of where you installed ffmpeg (or recompile with LD_RUN_PATH set, or recompile static)
[17:40:45 CEST] <blahkat> I see, looks like it is not found, hmm
[17:41:06 CEST] <blahkat> http://pastebin.com/wwjHtL2i
[17:41:13 CEST] <c_14> With what prefix did you configure?
[17:41:18 CEST] <c_14> And did you then make install?
[17:42:25 CEST] <blahkat> I utilized this guide here -> http://www.diegoacuna.me/how-to-install-latest-ffmpeg-on-centos-6/ -- but had to make some adjustments with one of the config/makes with this guide here for the Makefile / configure file http://pcdev.tistory.com/3
[17:43:07 CEST] <blahkat> that adjustment was done to LIBFDK_AAC
[17:46:48 CEST] <Artix2> c_14 : It take more than 4 * the time it take to compress to high quality x264 and don't use the processor at all
[17:47:57 CEST] <c_14> Artix2: you could use -ss and -t and then use several ffmpeg processes to process different sections of the video simultaneously.
[17:48:41 CEST] <c_14> blahkat: export LD_LIBRARY_PATH=/usr/local/lib ./ffmpeg
[17:49:31 CEST] <blahkat> hm, bash: export: `./ffmpeg': not a valid identifier
[17:49:46 CEST] <DHE> that's two commands
[17:49:50 CEST] <blahkat> oh
[17:49:52 CEST] <DHE> export, then run ffmpeg
[17:49:54 CEST] <blahkat> crap lol
[17:49:55 CEST] <blahkat> my bad
[17:50:13 CEST] <blahkat> still so early >.<
[17:50:27 CEST] <blahkat> oh hey
[17:50:29 CEST] <Artix2> c_14 : nice trick :D will do it thx.
[17:50:30 CEST] <blahkat> it worked haha
[17:50:54 CEST] <blahkat> thanks man! :)
[17:51:53 CEST] <blahkat> This has been one hell of a long journey, i'm helping a friend on his linode centos box to stream his gaming stuff, i've been through nging and rtmp, castawesome, subsonic, red5 server, just about everything with failure, but it seems nginx and rtmp work the best
[17:52:00 CEST] <blahkat> hence the need for ffmpeg
[17:52:16 CEST] <blahkat> I was staring at terminal for like 10 hours straight yesterday if not more
[19:10:44 CEST] <FlorianBd> Hi :) When I truncate a video in copy mode w/ avidemux e.g. ffprobe will still show the original duration since the headers did not change. Is there a way to have ffprobe make a quick scan to get the real duration with very little cpu ?
[19:11:28 CEST] <saste> FlorianBd, -show_packets
[19:11:34 CEST] <FlorianBd> :)
[19:11:38 CEST] <saste> this will only demux packets, with no decoding
[19:11:40 CEST] Action: FlorianBd is checking into that
[19:14:41 CEST] <FlorianBd> yes that's perfect :) Thank you saste
[19:33:40 CEST] <ivan> is there any place to get an ffmpeg binary for an ARMv7 machine running Ubuntu 14.04?  The mc3man PPA is missing ARM; not sure how to force http://www.deb-multimedia.org/ into Ubuntu
[19:44:50 CEST] <FlorianBd> ivan: I don't know but it would be easier and more reliable to just compile one IMO
[19:45:00 CEST] <ivan> okay, trying that now
[19:46:59 CEST] <FlorianBd> ivan: if you only want it for one machine you can even set some CFLAGS to native and build a clean one by trusting gcc, it's better than getting a binary
[19:47:48 CEST] <ivan> should I set anything besides -march=native?
[19:49:08 CEST] <ivan> it's a Marvell PJ4Bv7 Processor rev 2 (v7l)
[19:49:34 CEST] <ivan> Features        : swp half thumb fastmult vfp edsp vfpv3 tls
[19:50:25 CEST] <DrBenway> is anyone planning on fixing the fact that transcoding.c doesn't work with h264 videos?
[19:51:23 CEST] <FlorianBd> ivan: personally I use   -mtune=native -march=native -O2 -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize
[19:51:37 CEST] <ivan> thanks
[19:51:46 CEST] <FlorianBd> ivan: don't forget also PKG_CONFIG_PATH  just in case it needs something
[19:52:21 CEST] <FlorianBd> ivan: and you may want to check ./configure --help for paths to other things, like vorbis e.g.
[19:52:47 CEST] <FlorianBd> and many options/formats you may need in your case
[19:52:58 CEST] <ivan> fortunately I'm just muxing youtube videos
[19:53:31 CEST] <FlorianBd> ivan: on a raspberry pi ? :)
[19:53:51 CEST] <FlorianBd> or a cluster of 120 pies ? :)
[19:53:51 CEST] <ivan> heh, my CFLAGS -march=native get overriden by -march=armv7-a
[19:53:59 CEST] <FlorianBd> ah, that's good
[19:54:08 CEST] <ivan> FlorianBd: a https://www.scaleway.com/ machine
[19:54:13 CEST] <ivan> which seems to be working great to my surprise
[19:55:01 CEST] <ivan> https://www.refheap.com/bb515b09d6dffa6e27aacae06/raw cpuinfo
[19:56:23 CEST] <FlorianBd> ivan: price?
[19:56:39 CEST] <FlorianBd> ah, they have a section for that sorry
[19:56:53 CEST] <ivan> yeah cheap as heck
[19:57:20 CEST] <FlorianBd> unbeleivable haha
[19:57:21 CEST] <ivan> I wish online.net had some US presence because I might as well be sshing to the moon
[19:57:39 CEST] <FlorianBd> the most impressive is the dedicated IP...
[19:58:29 CEST] <FlorianBd> they must all be blacklisted lol  because people must do some serious junk with these little things :)
[20:01:39 CEST] <FlorianBd> ivan: I want to see some photos of their "datacenter"...  did you find any?
[20:03:21 CEST] <ivan> Scaleway is in both DC2 and DC3; this is DC3: https://www.youtube.com/watch?v=3E3cL8uWQbw
[20:04:32 CEST] <ivan> https://pue.online.net/en neat dashboard
[20:06:20 CEST] <FlorianBd> OMG I love this circular thing
[00:00:00 CEST] --- Thu Sep  3 2015


More information about the Ffmpeg-devel-irc mailing list