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

burek burek021 at gmail.com
Sun Dec 27 02:05:01 CET 2015


[00:57:30 CET] <DrunkOnHotCoco> Hello! looking for help with our videos getting shortened by ffmpeg when being converted to FLV, it started out happening every now and then and now happens every time. We are using Java to get this done as seen in this code http://escapekeys.com/ffmpeg-and-coldfusion/18
[00:59:45 CET] <DrunkOnHotCoco> Any help is appreciated!
[02:57:03 CET] <el_juliano>  what is better: OPUS 160k or AAC 256k? I guess AAC because of the higher bitrate but I am not sure
[06:23:45 CET] <kepstin> if el_juliano was still here, i'd answer "at those bitrates, it's somewhere between very difficult and impossible to tell the difference" :/
[06:24:30 CET] <kepstin> (and it depends a lot on the quality of the aac encoder used)
[07:50:10 CET] <rjp421> how do i make ffmpeg listen on 0.0.0.0:1234 instead of localhost:80 when encoding to mjpeg?
[10:06:51 CET] <wuqiong> anybody knows ffmpeg on iOS avformat_open_input api hangs when opening microphone
[13:50:02 CET] <jleclanche> hey; anyone knows the status of bink2 video support? I see bk2 audio is supported
[13:53:04 CET] <durandal_1707> where is bk2 audio supported?
[14:00:19 CET] <jleclanche> durandal_1707: https://ffmpeg.org/pipermail/ffmpeg-devel/2014-January/152661.html
[14:02:34 CET] <durandal_1707> jleclanche: theres incomplete bink2 patch on codecs.multimedia.cx
[17:41:42 CET] <rjp421> how do i make ffmpeg listen on 0.0.0.0:1234 instead of localhost:80 when encoding to mjpeg?
[17:46:38 CET] <_6U54N0_> how to sort a buffer from planar FLTP to S16 interleaved?
[17:46:47 CET] <_6U54N0_> my frame buffer is:
[17:46:48 CET] <_6U54N0_> uint8_t *output;
[17:47:21 CET] <JEEB> you use {av,sw}resample
[17:47:27 CET] <JEEB> you get an optimized conversion
[17:48:03 CET] <_6U54N0_> i use:
[17:48:29 CET] <_6U54N0_> data_size = av_samples_get_buffer_size();
[17:48:48 CET] <_6U54N0_> struct  SwrContext ...
[17:49:08 CET] <_6U54N0_> swr_alloc_set_opts();
[17:49:25 CET] <_6U54N0_> swr_init();
[17:49:55 CET] <_6U54N0_> av_samples_alloc();
[17:50:17 CET] <_6U54N0_> swr_convert();
[17:50:29 CET] <_6U54N0_> in that order.
[17:53:03 CET] <_6U54N0_> but the audio obtened is noise and bad sounds or un understandible sounds.
[17:55:36 CET] <_6U54N0_> i would like an example to sort a buffer from planar FLTP to interleaved S16.
[17:55:50 CET] <_6U54N0_> audio buffer.
[17:57:44 CET] <JEEB> I think there's an example for it in examples
[17:58:32 CET] <_6U54N0_> not, there is not.
[18:19:55 CET] <realies> hi
[18:20:15 CET] <realies> how can I transcode a video without changing anything but the bitrate?
[18:20:28 CET] <realies> ffmpeg -i input.ts -c:copy -b:v 5000k output.ts
[18:20:29 CET] <realies> ?
[18:20:37 CET] <c_14> that won't work
[18:20:52 CET] <realies> how should I approach it?
[18:20:52 CET] <c_14> It depends on the input codec as well, but that is a very complicated problem.
[18:21:05 CET] <c_14> It also depends on what exactly you mean by "anything"
[18:21:08 CET] <realies> h264
[18:21:17 CET] <realies> in a ts
[18:21:19 CET] <c_14> There are a lot of encoding options you probably don't care about, do you want those to remain the same as well?
[18:21:26 CET] <c_14> i.e. exactly where the keyframes are etc
[18:21:31 CET] <realies> yes
[18:22:14 CET] <c_14> The "easy way out" would be ffmpeg -i input.ts -map 0 -c copy -c:v libx264 -b:v 5000k out.ts
[18:22:31 CET] <c_14> That won't preserve keyframe locations, profile, preset etc though
[18:22:37 CET] <realies> is -map 0 the audio channels?
[18:22:47 CET] <c_14> audio, subtitle etc
[18:23:35 CET] <realies> right
[18:25:56 CET] <c_14> ffmpeg will automatically map one audio, one video and one subtitle stream. If you don't have/don't need/want more than that you can leave the map out.
[18:27:46 CET] <realies> thanks c_14
[18:27:52 CET] <realies> you're saving my ass right now :)
[18:29:42 CET] <realies> is this correct for changing resolution as well? ffmpeg -i input.ts -map 0 -c copy -c:v libx264 -b:v 5000k -vf scale=1280:720 out.ts
[18:36:28 CET] <c_14> ye
[18:36:55 CET] <c_14> you might want to use -2 instead of 720 to avoid stretching in the case that an input video isn't perfectly 16:9
[18:38:17 CET] <realies> c_14, you mean scale=-2?
[18:38:24 CET] <c_14> scale=1280:-2
[18:38:33 CET] <realies> right
[18:38:38 CET] <c_14> The -2 means scale to the nearest round number preserving aspect ratio
[18:38:39 CET] <realies> good to know
[18:38:50 CET] <realies> cool
[18:45:02 CET] <realies> should I use -threads for making it faster?
[18:48:58 CET] <metRo_> Hi, can anyone help me setting up pkg-config option on configure to cross compile pkg-config?
[18:57:30 CET] <JEEB> metRo_: you don't need to generally cross-compile pkg-config
[18:57:36 CET] <JEEB> you might have to set PKG_CONFIG_LIBDIR, though
[18:58:11 CET] <JEEB> for example I have a cross-prefix-pkg-config that is just a shell script that calls normal pkg-config and sets PKG_CONFIG_LIBDIR to the related architecture's pkg-config libdir
[18:58:24 CET] <thereh> I have image1 1920x800, I cut out piece w=1422:h=800:x=249:y=0 from it then scaled that piece to 1280x720 and got image2, then cut out piece from image2 w=925:h=520:x=177:y=200 and got image3, but how to cut out image3 right from image1 ? I can't add x1+x2 and y1+y2 because after I cut out image2 it was scaled to 1280x720
[18:58:29 CET] <thereh> I mean you can say 249+177 would be offset for image3 in image1 but as I said I scaled image2
[18:58:51 CET] <thereh> so I need w,h,x,y from the image1 to get right to image3
[18:59:09 CET] <thereh> or you can say its a video not image
[18:59:41 CET] <realies> c_14,  is there a way to not be doing the transcodes realtime?
[18:59:46 CET] <metRo_> JEEB I know I don't need to cross compile, the problem is that the *.pc file for each package is point to /usr/lib/... and /usr/include/... however on my host the libraries are in /home/ze/raspi/sysroot/usr/include and /home/ze/raspi/sysroot/usr/lib
[18:59:47 CET] <realies> i mean to do them faster than realtime
[19:00:04 CET] <metRo_> so should I set PKG_CONFIG_LIBDIR to /home/ze/raspi/sysroot?
[19:00:33 CET] <c_14> realies: you don't need to set threads for libx264 it's done automatically. You can set a faster preset (-preset fast faster or veryfast), but this will impact the quality at constant bitrate encoding
[19:00:37 CET] <JEEB> usually things install their pkg-config pc files to ./lib/pkgconfig or so
[19:00:47 CET] <JEEB> so find that directory and set PKG_CONFIG_LIBDIR there
[19:01:33 CET] <JEEB> PKG_CONFIG_LIBDIR overrides the pkg-config's default search path, unlike PKG_CONFIG_PATH which appends things  to it
[19:01:58 CET] <JEEB> in case of cross compilation you most probably want to override, as to not have your system stuff come up :)
[19:03:22 CET] <metRo_> JEEB right now pkg-config can find the right files at /home/ze/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig/ because if I go there and change the pc file to point the path to correct directory, per example ./configure is failing at smbclient because it says it can't find the library. The pc file for smbclient return the following -I/usr/include/samba-4.0 -L/usr/lib/arm-linux-gnueabihf if I manually change that so the smbclient.
[19:04:02 CET] <metRo_>  -I/home/ze/raspi/sysroot/usr/include/samba and -L/home/ze/raspi/sysroot/usr/lib/arm-linux-gnueabihf then ./configure can pass the smbclient test
[19:04:13 CET] <metRo_> however it fails at next package test
[19:04:20 CET] <JEEB> well yeah, if your sysroot is meant to be done otherwise then you'd also have to set the sysroot variable for your toolchain
[19:04:38 CET] <metRo_> would you mind to look at my confiure?
[19:04:39 CET] <JEEB> see your toolchain's documentation on how to set sysroots
[19:04:43 CET] <JEEB> yes I would
[19:04:57 CET] <JEEB> I think the configure script even has a thing for sysroots
[19:05:04 CET] <JEEB> look at the output of ./configure --help
[19:05:06 CET] <JEEB> and figure it out
[19:05:10 CET] <metRo_> I have configure the sysroot path
[19:05:14 CET] <JEEB> ok
[19:05:24 CET] <metRo_> configured*
[19:05:28 CET] <JEEB> I don't remember if I had to set something else as well for the NDK f.ex.
[19:05:50 CET] <JEEB> been a while since I've used toolchains with their pc files having things meant for / instead of the prefix
[19:06:27 CET] <JEEB> I think you should look into the general gcc/ld et al documentation
[19:06:29 CET] <metRo_> JEEB aren't you confuse PKG_CONFIG_PATH with PKG_CONFIG_LIBDIR?
[19:06:33 CET] <JEEB> no
[19:06:38 CET] <JEEB> _PATH appends
[19:06:41 CET] <JEEB> _LIBDIR overrides
[19:07:01 CET] <JEEB> both actually otherwise do the same thing as far as I can see
[19:07:05 CET] <metRo_> ah ok
[19:07:25 CET] <JEEB> so if I have my own custom prefix for the same arch
[19:07:31 CET] <JEEB> like in my home dir
[19:07:33 CET] <JEEB> I use _PATH
[19:07:45 CET] <JEEB> if I have a completely different arch and a prefix for it
[19:07:49 CET] <JEEB> then I use _LIBDIR
[19:08:15 CET] <JEEB> in your case it's just a case of that thing wanting a chroot/sysroot so that root actually becomes prefix in the compiler/linker
[19:08:27 CET] <JEEB> you could try running shit in a chroot if you want to, that would be one way of poking at it
[19:08:36 CET] <JEEB> but not sure if you'd have the normal tools then :P
[19:10:59 CET] <metRo_> JEEB the last two sentences was above my knowlegde on this... :/
[19:21:48 CET] <metRo_> JEEB: thank you, searching for PKG_CONFIG_LIBDIR I end up find that the variable I need to set up is PKG_CONFIG_SYSROOT_DIR
[19:21:48 CET] <metRo_> :D
[19:21:53 CET] <metRo_> lets try!
[19:22:26 CET] <JEEB> not sure what that sets
[19:22:46 CET] <JEEB> but sure, if that overrides what the pc files' root means
[19:22:48 CET] <metRo_> "At the time of writing, with version 0.25 of pkgconfig package, this is achieved mainly through the PKG_CONFIG_SYSROOT_DIR variable, which is set to the path of the sysroot, and is inserted in-between the -I or -L flags and the following path."
[19:23:00 CET] <JEEB> ah
[19:23:01 CET] <JEEB> ok
[19:23:02 CET] <JEEB> yeah
[19:23:22 CET] <JEEB> aka stuff to fix your shit when someone did chroot installations of things 8)
[19:23:31 CET] <metRo_> I'm just installed other pakackes ffmpeg need but at least now it could test smbclient :)
[19:24:10 CET] <metRo_> how should I have done it? I copied the files from rpi to my pc (host)
[19:24:39 CET] <JEEB> dunno if it's strictly incorrect, but you have to take into mention in that case that your possible coded paths are gonna be wrong as they were for you
[19:24:52 CET] <JEEB> you just have to make something fix that
[19:25:01 CET] <JEEB> if that pkg-config variable does that, sure good
[19:25:16 CET] <Hybridesque> Evening everyone
[19:26:38 CET] <Hybridesque> Would I be right in thinking the static binaries (like from johnvansickle.com) don't have libmfx included in them?
[20:35:03 CET] <waressearcher2> Hybridesque: hallo, wie geht's es dir ?
[20:39:47 CET] <nimzter> Hi Everyone, just a simple question:  How to loop invideo text. I'm fighting all day :) Thanks
[20:40:49 CET] <nimzter> the filter: drawtext --> option: enable
[20:44:55 CET] <Hybridesque> waresearcher2: Hallo! Nicht so gut.  Entschuldigung, mein Deutsch schwach ist.
[21:20:09 CET] <colinb> hello all! I am on Windows 7, been using ffmpeg for a while now (currently 20151105-git-c878082). I am doing a simple encoding of a video file, but I am not seeing any actual output file!  ffmpeg thinks it has output a file, as it asks for overwrite conformation. but it is nowhere to be found. Even when I specify an absolute path. Any ideas on what I must be obviously doing wrong?
[21:20:40 CET] <c_14> Hybridesque: afaik no
[21:24:28 CET] <colinb> http://pastebin.com/JwB8uEhk
[21:24:33 CET] <colinb> There we go!
[21:28:19 CET] <c_14> It should be in C:\. try doing cd C:\ and then dir
[21:28:54 CET] <colinb> one would think so .. but that is not the case
[21:30:45 CET] <colinb> the baffling thing to me is that ffmpeg asks for the overwrite confirmation
[21:31:58 CET] <c_14> Is this in the Windows terminal or something like cygwin?
[21:32:27 CET] <c_14> Is the file maybe in the cwd?
[21:32:41 CET] <Hybridesque> c_14: so I'd have to  compile a build if I want to include libmfx to enable qsv for a linux static build.
[21:32:55 CET] <c_14> Hybridesque: yes
[21:34:18 CET] <colinb> Windows terminal
[21:34:31 CET] <colinb> also, an interesting thing, the hard drive space is allocated
[21:34:49 CET] <colinb> checked the cwd as well
[21:34:59 CET] <colinb> as well as other semi-relevant directories
[21:35:24 CET] <c_14> colinb: does ffmpeg -i C:\cut-1.mp4 find it?
[21:37:06 CET] <colinb> as a matter of fact, it does!
[21:38:00 CET] <colinb> perhaps it is one of those strange things that a good 'ol-fashioned reboot would take care of?
[21:41:37 CET] <colinb> I'm gonna give that a go, akin perhaps to blowing on a NES cartridge but, I am out of ideas
[21:45:10 CET] <Hybridesque> c_14: I've been reading the guide for compiling a build of ffmpeg, but not sure how to tie in the information about libmfx into it.  bit new to linux and even newer to compiling.
[21:45:46 CET] <prelude2004c> hey everyone good day :)
[21:46:34 CET] <c_14> Hybridesque: you have to build the mfx dispatcher stuff, make sure it's somewhere ffmpeg will pick it up and then configure with --enable-libmfx
[21:47:00 CET] <c_14> Hybridesque: then you also need to patch your kernel or something
[21:47:28 CET] <colinb> Aaand that didn't do it.
[21:47:30 CET] <prelude2004c> still looking for a bit of help with h264 decoding using vdpau. Took  a few days off thinking that i was just tired but clearly not :) i still have not addressed the issue.  Basically i am using the new nvidia M4000 card and it has h264 decoding capabilities. everytime i use the vdpau with an mpeg2video source it uses teh decoder just fine but soon as the source is h264 the encoder is used with the nvenc but the
[21:47:30 CET] <prelude2004c>  decoder sits at 0% usage. Anyone know why that could BE ?
[21:48:01 CET] <colinb> even the windows file search doesn't find the files anywhere.
[21:48:13 CET] <colinb> but the free space is diminished!
[21:48:50 CET] <Hybridesque> c_14: didn't seem to be necessary from what I read though but I'll go away and have more a lookie.
[21:50:25 CET] <c_14> colinb: it's a kind of magic.
[21:50:42 CET] <c_14> colinb: if you do `ffmpeg -f lavfi -i testsrc:d=5 out.mp4' can you find out.mp4?
[21:51:03 CET] <c_14> colinb: Have you tried checking if the file is hidden?
[21:51:35 CET] <colinb> no such filter for testsrc:d
[21:51:43 CET] <c_14> eh, testsrc=d=5
[21:51:46 CET] <c_14> Always mess that up
[21:51:54 CET] <colinb> yes, I am displaying hidden files, as well as searching in the terminal
[21:52:15 CET] <colinb> yup, I can see that out.mp4
[21:52:52 CET] <colinb> could it have anything to do with that last notice on my output which says 1 frame left in queue? so, hard drive space is being allocated but the final file isn't being created?
[21:53:13 CET] <c_14> nah
[21:53:56 CET] <c_14> Anyways, you can't allocate space without creating a file for it.
[21:54:56 CET] <colinb> okay well it was the 'magic' reboot
[21:55:36 CET] <colinb> now files are being created normally! sorry for bringing a fluke to the table
[21:55:54 CET] <c_14> Windows is Magic
[21:56:16 CET] <prelude2004c> so can anyone hint me why vdpaul wont' decode h264 but does mpeg2video ok ? nvidia M4000 which supports h264 so i don't get it
[22:17:25 CET] <rjp421> how do i make ffmpeg listen on 0.0.0.0:1234 instead of localhost:80 when encoding to mjpeg?
[22:19:31 CET] <c_14> rjp421: what's your command?
[22:20:15 CET] <c_14> mjpeg itself doesn't have anything to do with ip addresses
[22:22:34 CET] <rjp421> c_14, ffmpeg -loglevel info -r 10 -vcodec mjpeg -s 320×240 -f video4linux2 -i /dev/video0 "http://0.0.0.0:1234/webcam.mjpeg"
[22:23:14 CET] <rjp421> i have multiple cams i want listening on their own port
[22:23:39 CET] <c_14> rjp421: set -listen 1
[22:23:59 CET] <c_14> otherwise it won't start a listening server...
[22:24:13 CET] <rjp421> ah ok ty
[22:35:28 CET] <Hybridesque> c_14: just looks like I just need to build that mfx_dispatcher, don't need kernel patching it seems before compiling a build... still working on it so don't know the final result
[23:07:57 CET] <Hybridesque> didn't work, going to try over from scratch, but feel like I'm on a good path now, I'm probably messed up in following the instructions
[00:00:00 CET] --- Sun Dec 27 2015


More information about the Ffmpeg-devel-irc mailing list