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

burek burek021 at gmail.com
Thu May 10 02:05:02 CEST 2012


[00:00] <ironm> ok relaxed  .. I will use libvpx preset with .webm output
[00:00] <relaxed> is there a reason you're not using h264 in mp4?
[00:00] <JEEB> he is doing that too
[00:00] <ironm> JEEB, should be .ogv the suffix for vp8 ?
[00:00] <JEEB> he just wants to make a separate encode for firefox/opera
[00:00] <relaxed> gotcha
[00:01] <JEEB> ironm, can I paste a picard_facepalm.jpg here?
[00:01] <relaxed> theora is easier to decode than libvpx, for the record
[00:01] <JEEB> but that's probably not something he cares for
[00:01] <JEEB> relaxed, does -preset set the ffpreset files as well?
[00:02] <JEEB> as IIRC libvpx still uses those
[00:02] <ironm> ffmpeg -i output2.flv  -crf 18 -preset libvpx xxx18.ogv
[00:02] <relaxed> I believe so
[00:02] <JEEB> or is -vpre still used for those?
[00:02] <JEEB> also that flv happens to contain lossless H.264
[00:02] <JEEB> just for notice
[00:02] <JEEB> dunno why he chose flv
[00:02] <JEEB> ironm, you did read what I wrote right?
[00:02] <JEEB> crf is libx264 specific
[00:02] <ironm> it was your recommendation ).flv)
[00:03] <JEEB> no it wasn't
[00:03] <ironm> I hope so JEEB *_*
[00:03] <ironm> JEEB,  well ... maybe one from burek
[00:03] <JEEB> ...but not like the damn container matters as long as it's either mkv or flv in your useg case
[00:04] <JEEB> relaxed, was qscale the qp thing? or whatever do people use for non-bitrate based encoding with libvpx?
[00:04] <ironm> JEEB, the recommendation was that I should encode first after recording
[00:05] <ironm> sorry guys .. I am a bit confused at the beginning
[00:06] <JEEB> ok, it is qscale
[00:06] <JEEB> ironm, ffmpeg -i output2.flv -vcodec libvpx -preset LIBVPX_FFPRESET_NAME -qscale 10 out.webm
[00:06] <JEEB> LIBVPX_FFPRESET_NAME being the name of one of the vpx presets you want to use
[00:07] <ironm> JEEB, example value for LIBVPX_FFPRESET_NAME ?
[00:07] <JEEB> go look at your damn ffpreset files, I don't remember
[00:07] <JEEB> you should have ffpreset files in there somewhere, /usr/share/ffmpeg or something
[00:08] <ironm> ok
[00:08] <JEEB> qscale is like crf (not really, but there's no real other mode for vpx), but the scale is different most probaly
[00:08] <ironm> thank you
[00:08] <JEEB> *probably
[00:22] <ZACHARiAS> well JEEB mate
[00:22] <ZACHARiAS> no luck
[00:22] <ZACHARiAS> please do check
[00:22] <ZACHARiAS> http://pastie.org/3881418
[00:22] <JEEB> sure
[00:23] <JEEB> libx264 was built without fpic
[00:23] <JEEB> I think the error is pretty clear :P
[00:24] <JEEB> you were building stuff as static, you get no fpic -- and now you need dynamic ffms and it needs fpic
[00:24] <ironm> ZACHARiAS, it is because of the hostname *g* ... hostname = MOTHERF....
[00:24] <JEEB> ZACHARiAS, you're not going to be using x264 and friends with ffms anyways
[00:24] <ZACHARiAS> oh? i thought u mentioned to add the following, only to ffmpeg compile: --enable-pic
[00:24] <JEEB> ...that's just to get you to try and build it, I had no idea how you built your ffmpeg and friends
[00:25] <JEEB> to get you to the next step
[00:25] <JEEB> but as I said
[00:25] <JEEB> you're not going to be using x264 and friends via ffms
[00:25] <JEEB> thus you can just build a ffmpeg without all that crap
[00:25] <JEEB> and with fpic
[00:25] <ZACHARiAS> uh?
[00:25] <JEEB> that way you wouldn't have to rebuild everything else with fpic because they're not linked in :P
[00:26] <JEEB> you'd have to build another ffmpeg for other types of usage, sure
[00:26] <JEEB> but right now you just need an ffms library, right?
[00:26] <ZACHARiAS> yeah. i guess just to use avxsynth
[00:26] <ZACHARiAS> thats wot i really want
[00:26] <ZACHARiAS> lool
[00:27] <JEEB> pastebin your current ffmpeg config
[00:27] <JEEB> the line you use for configure
[00:27] <ZACHARiAS> its on the wiki. i just followed it
[00:27] <ZACHARiAS> xD
[00:27] <JEEB> please don't try to be a smartass :<
[00:27] <ZACHARiAS> im not man
[00:27] <ZACHARiAS> please
[00:27] <JEEB> I'm tired and I want to know what exactly you put there
[00:27] <JEEB> so please
[00:28] <ZACHARiAS> dont be offended
[00:28] <JEEB> just pastebin your current ffmpeg configure line
[00:28] <JEEB> please?
[00:28] <ZACHARiAS> this it?
[00:28] <ZACHARiAS> http://pastie.org/3881442
[00:28] <JEEB> yes, thank you
[00:29] <JEEB> ./configure --enable-gpl --enable-pic
[00:29] <JEEB> there
[00:30] <JEEB> enable-gpl isn't really needed, but it adds like one asm file in avcodec :P
[00:30] <ZACHARiAS> do i add those to the ones i have now?
[00:30] <JEEB> enable-pic because you'll need it
[00:30] <JEEB> no
[00:30] <JEEB> you'll just configure with that
[00:30] <ZACHARiAS> just those?
[00:30] <JEEB> yes
[00:30] <ZACHARiAS> ok
[00:30] <JEEB> just those
[00:30] <JEEB> actually you could just start disabling stuff that ffms would never use, too if you want
[00:30] <JEEB> lol
[00:30] <JEEB> but that should do for now
[00:39] <ironm> please allow me one question about "X11 grabbing" is it possible on the ffmpeg-command line to address one particular (open) window on the screen like terminal window or application window using an index ?
[00:39] <ironm> I can't find anything about in the manual page
[00:40] <JEEB> http://ffmpeg.org/ffmpeg.html#X11-grabbing
[00:40] <JEEB> it mentions offsets
[00:41] <JEEB> ZACHARiAS, how is it going forward?
[00:41] <ZACHARiAS> still compilling ffmpeg
[00:41] <ZACHARiAS> ;)
[00:41] <ZACHARiAS> be feding back in a while
[00:41] <ZACHARiAS> tks
[00:41] <ZACHARiAS> :)
[00:42] <JEEB> note: if you have multiple cores and enough RAM you can just use make -j to set a certain amount of threads, a la make -j4 for four things to be built at one time
[00:42] <ZACHARiAS> lool
[00:42] <ZACHARiAS> tks
[00:42] <ZACHARiAS> ihv a core i5 8gb of ram
[00:43] <ZACHARiAS> so i guess
[00:43] <ZACHARiAS> :)
[00:43] <ZACHARiAS> be kkeeping tah in mind
[00:43] <ZACHARiAS> :)
[00:43] <ZACHARiAS> so
[00:43] <ZACHARiAS> skipping to ffms
[00:43] <JEEB> not sure if you want to use it with ffms, but for ffmpeg it should be ok
[00:43] <JEEB> (ffms is very small anyways)
[00:44] <ZACHARiAS> yep
[00:44] <ZACHARiAS> u think its safe to Add lavf support to x264
[00:44] <ZACHARiAS> ?
[00:44] <JEEB> in what damn sense
[00:44] <ZACHARiAS> kinda need when encoding to x264 via cli
[00:44] <ZACHARiAS> dar mostly
[00:44] <ZACHARiAS> i think
[00:45] <JEEB> yes, it's safe -- just don't try to link a ffmpeg with libx264 linked into it into x264 :P
[00:45] <ZACHARiAS> thats martian
[00:45] <ZACHARiAS> so ill skip it
[00:45] <ZACHARiAS> ffms
[00:45] <ZACHARiAS> seems ok
[00:45] <ZACHARiAS> :)
[00:45] <JEEB> it means, "don't build x264 with lavf if the lavf was built with gawd damn --enable-libx264"
[00:46] <JEEB> because it will find the same thing that it has from lavf then, and it will all error
[00:46] <ZACHARiAS> ffms went well
[00:46] <JEEB> yes, unsurprisingly
[00:46] <ZACHARiAS> now to test avxsynth
[00:47] <ZACHARiAS> lool
[00:47] <ZACHARiAS> motherf****r
[00:47] <ZACHARiAS> :\
[00:47] <ZACHARiAS> all this work
[00:48] <ZACHARiAS> jebus!!!!
[00:48] <ZACHARiAS> :\
[00:48] <JEEB> how unsurprising
[00:48] <JEEB> also you got some webm fixes into your ffms that came in after 2.17 :P
[00:49] <JEEB> (because you built the current svn)
[00:49] <ZACHARiAS> avx is really getting on my nerve
[00:50] <JEEB> I dunno about avxsynth, but so far all of your compilation errors were just "Do what the damn error says"
[00:51] <JEEB> anyways, you can now pat yourself on the back and have yourself a self-built ffms :P
[00:51] <ZACHARiAS> this is the error i get
[00:51] <ZACHARiAS> http://forum.doom9.org/showpost.php?p=1573720&postcount=94
[00:51] <ZACHARiAS> ahah
[00:51] <ZACHARiAS> thanks JEEB :)
[00:51] <ZACHARiAS> really
[00:51] <JEEB> well it tells you to READ THE DAMN LOG, and while the log is damn long (lol autotools)
[00:51] <JEEB> it still says exactly what it needs or what is wrong
[00:52] <JEEB> no problem
[01:42] <ironm> [alsa @ 0x2124e80] cannot open audio device pulse (Connection refused)
[01:42] <ironm> ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0+100,200 -f alsa -ac 2 -i pulse -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le test.flv
[10:08] <RobertNagy> I'm having some problems with mpegts
[10:08] <RobertNagy> when I connect to a stream sent by videolan
[10:08] <RobertNagy> I get a large pts jump in the first frames
[10:08] <RobertNagy> which causes my application to delay the stream for several seconds
[10:09] <RobertNagy> are pts jumps normal in such cases? and how do I handle it?
[10:43] <maria_zk> I am trying to install ffmpeg on my debian squeeze and found this http://www.e-rave.nl/installing-ffmpeg-0-9-on-debian-squeeze-and-newer , but people from #debian suggested that multimedia deb is evil...
[10:43] <maria_zk> what is your opinion? should I proceed with this installation?
[10:47] <maria_zk> are there any scripts for auto install ?
[10:51] <JEEB> check the "ubuntu compile guide" in the topic
[10:52] <JEEB> it should work for debian as well
[10:52] <JEEB> and yes, many people dislike the debian-multimedia (not related to debian) repository :)
[10:55] <maria_zk> so that's way
[10:55] <maria_zk> ok thanks, trying...
[10:59] <maria_zk> E: Unable to locate package libfaac-dev
[10:59] <maria_zk> help please?
[10:59] <JEEB> then you don't have it? you'd just have to build it too, then :)
[10:59] <JEEB> or well,
[10:59] <JEEB> aptitude search faac
[11:00] <maria_zk> :)
[11:00] <JEEB> (it's an AAC encoder btw, so if you don't need OK quality AAC you can ignore it)
[11:00] <maria_zk> nothing comes up...
[11:01] <maria_zk> I need MP4/H.264
[11:02] <JEEB> and the usual audio for that is AAC :)
[11:02] <maria_zk> :)
[11:02] <maria_zk> so...
[11:02] <JEEB> (although you also have the vo_aacenc library as well as the internal aac encoder, although both of those are a bit subpar
[11:03] <maria_zk> I can find libfaac-dev in multimedia repo i think, but this should not be the way to go
[11:03] <maria_zk> right?
[11:06] <JEEB> seems like someone has been trying to get that library onto debian, but until that you'll just have to build your own
[11:06] <maria_zk> JEEB can you instruct me how to? all i can find is for multimedia repo
[11:06] <JEEB> http://downloads.sourceforge.net/faac/faac-1.28.tar.bz2
[11:06] <JEEB> get this
[11:06] <JEEB> then 'tar xvf faac-1.28.tar.bz2'
[11:07] <JEEB> it will extract
[11:07] <JEEB> then you configure it with the prefix and/or other things you need :)
[11:07] <JEEB> it should be quite similar to the other compilation procedures
[11:07] <JEEB> configure -> make (compile)
[11:08] <maria_zk> ok i extracted it
[11:10] <maria_zk> and ehm...
[11:10] Action: JEEB goes to deal with some laundry, brb
[11:10] <maria_zk> i see configure there. but i do not know what to do
[11:10] <maria_zk> ok
[11:15] <maria_zk> JEEB: here is my output http://paste.debian.net/167991/ hope it is correct?
[11:17] <JEEB> maria_zk, looks OK if you want to it to go into the default prefix :) If the ubuntu compilation tutorial specifies no prefix that's fine :)
[11:19] <maria_zk> it doesn't mention anything about this
[11:19] <JEEB> well, if you look at the other configurations and see no --prefix setting it means it's configuring for the default prefix :)
[11:19] <maria_zk> so faac is downloaded and compiled. faac folder is on /root/faac
[11:19] <maria_zk> ok cool
[11:20] <maria_zk> so faac is done? it will work with ffmpeg or do i need to do anything else? like e.g. symlinks or st? please excuse this stupid question...
[11:21] <JEEB> if you compiled it and then used a similar method of installation as with the other compiled components in the guide it should be done with :)
[11:23] <maria_zk> http://paste.debian.net/167993/
[11:24] <maria_zk> some errors here on make... :(
[11:26] <JEEB> heh
[11:26] <JEEB> seems like a common thing
[11:26] <JEEB> http://documentation.hwdmediashare.co.uk/wiki/Setting_up_your_server_for_hwdVideoShare#Common_Problems_8
[11:26] <JEEB> maria_zk, ^
[11:27] <JEEB> the site itself is related to something else, but that single point should relate to fixing that problem :)
[11:32] <maria_zk> magic
[11:32] <JEEB> also you probably don't want to use make install if that's not the preferred way of installing the compiled package in the guide :)
[11:33] <maria_zk> :(
[11:33] <maria_zk>  make clean && ./configure && make && make install
[11:33] <JEEB> already ran it?
[11:33] <JEEB> oh well
[11:33] <maria_zk> ^^ that's what I did, was it wrong? there is no other reference of faac in the guide
[11:33] <maria_zk> is it a problem?
[11:33] <JEEB> not like you have a package for it so it shouldn't be too bad :)
[11:33] <JEEB> you've taken care of faac then
[11:34] <JEEB> just remember that the package management doesn't know of the faac then (IIRC the guide used checkinstall or something to install as a package)
[11:35] <maria_zk> so i can make this installation as a package?
[11:35] <maria_zk> cool
[11:35] <Mavrik> yuck... why do people build ffmpeg without MMX -_-
[11:36] <JEEB> Mavrik, reminds me of people compiling x264 with asm
[11:36] <Mavrik> with or without? :P
[11:36] <JEEB> without
[11:36] <JEEB> (I think 32bit gentoo did this as well)
[11:39] <Mavrik> oh, I see why they did that.
[11:39] <Mavrik> static linking of libavcodec.a fails if MMX is not disabled :\
[11:39] <JEEB> wut
[11:39] <JEEB> I've not had problems with that
[11:40] <JEEB> or well, what arch/system/whatever are we even talking about :D
[11:41] <Mavrik> JEEB: right now I'm trying to build a .so that would statically link libav* on linux x86_64
[11:41] <Mavrik> it seems -Bsymbolic parameter on linker worked
[11:41] <Mavrik> have no idea what that does though, gotta go check out -_-
[11:41] <JEEB> what...
[11:41] <JEEB> ooh
[11:42] <JEEB> so you are building static ffmpeg, which will be used in a non-static lib?
[11:42] <JEEB> gotcha
[11:42] <JEEB> I think you just needed --enable-pic for that?
[11:43] <Mavrik> yeah, it wasn't enough - I got the "you need -fPIC" error on MMX objects
[11:43] <JEEB> haven't had that problem yet, but I haven't built many non-static libs on lunix
[11:43] <Mavrik> passing -Bsynbolic to linker when linking the non-static worked though
[11:43] <Mavrik> ok, no more "No accelerated colorspace conversion message" :)
[11:44] <maria_zk> JEEB: thank you so much for your help, I really appreciate it... i am compiling ffmpeg now...
[12:02] <cbreak-work> am I the only one having problems using git master ffmpeg?
[12:05] <JEEB> cbreak-work, you might want to be more specific :)
[12:05] <cbreak-work> true.
[12:05] <maria_zk> JEEB: ffmpeg: error while loading shared libraries: libfaac.so.0: cannot open shared object file: No such file or directory
[12:06] <JEEB> maria_zk, sounds like it doesn't know where the library is :)
[12:06] <cbreak-work> I use libavformat/libavcodec to open a video stream
[12:06] <maria_zk> yes :)
[12:06] <JEEB> (that often occurs when you build something with dynamic linking and the library ends up not being in your standard place)
[12:06] <JEEB> you might want to check where the libfaac dot-so is :)
[12:07] <cbreak-work> and after avformat_find_stream_info(), I normally can iterate over all the streams and search the video stream with streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO
[12:07] <JEEB> also, if there is a need for a dot-so, dot-0 you might just want to symlink that to the dot-so :)
[12:07] <cbreak-work> but with the new ffmpeg it can't find any video stream
[12:08] <JEEB> unfortunately I'm not good with the APIs yet :)
[12:08] <cbreak-work> _formatContext->nb_streams is zero
[12:08] <cbreak-work> so the API doesn't even find any streams
[12:08] <JEEB> but it works with the command line ffmpeg tool I would guess
[12:08] <JEEB> which would mean that either some API you're using is borked, or you're just doing it wrong
[12:09] <JEEB> that's all I can say :)
[12:09] <maria_zk>  find /usr/local/lib/ | grep -E "libfaac.so.0"
[12:09] <maria_zk> /usr/local/lib/libfaac.so.0
[12:09] <maria_zk> /usr/local/lib/libfaac.so.0.0.0
[12:09] <cbreak-work> well, it works with 0.10.2
[12:09] <cbreak-work> and I am using the API as documented
[12:09] <maria_zk> so the library is in /usr/local/lib, shouldn't it load ?
[12:10] <cbreak-work> ffmpeg (the executable) seems to be able to open the streams though
[12:10] <JEEB> maria_zk, depends -- I'm not sure if that folder by default is in the path for library loading
[12:10] <Mavrik> maria_zk: you have to do "sudo ldconfig" so the loader finds them
[12:10] <Mavrik> if you just installed the library
[12:11] <maria_zk> oh!
[12:11] <JEEB> o_O
[12:11] <maria_zk> perfect! :D
[12:11] Action: JEEB has never done that
[12:11] Action: JEEB goes check what ldconfig does
[12:11] <maria_zk> so ehm ffmpeg version git-2012-05-09-2c83265  which version is this?
[12:11] <maria_zk> 0.10?
[12:12] <ironm> good morning. What is the right correct audio device name for ffmpeg? I use alsa. "Recordmydesktop" uses "hw:0,0" as audio device and is working on the same hardware. The error message I got:  ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[12:12] <ironm> I run the following cli command: ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0+100,200 -f alsa -ac 2 -i pulse -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le test.flv
[12:12] <ironm> thank you in advance for any hints.
[12:12] <JEEB> oh so yeh, it makes the needed symlinks in the trusted folders
[12:12] <Mavrik> JEEB: yeah
[12:12] <Mavrik> JEEB: and updates linker cache
[12:13] <Mavrik> apt tools and similar run it automatically, if you do "make install" you hate to do it manually :)
[12:13] <JEEB> heh, I just used to set the system variable myself when using something that happened to build itself dynamically :D
[12:14] <JEEB> and before that all dynamic libs just went into /lib
[12:14] <ironm> the whole error message: http://paste.debian.net/168002/
[12:14] <JEEB> maria_zk, I guess you could use 0.10 as a placeholder or something :D
[12:14] <JEEB> it's newer than 0.10 tho
[12:14] <JEEB> because 0.10 was branched already
[12:14] <maria_zk> JEEB: so how do I know if I did everything ok?
[12:15] <JEEB> test it? ffmpeg -i some_input_file -c:v libx264 -preset fast -crf 22 -c:a libfaac -b:a 192k weee.mp4
[12:16] <ironm> when I use "hw:0,0" as device I am getting another error message: Could not write header for output file #0 (incorrect codec parameters ?)
[12:17] <ironm> the whole error message for device hw:0,0 ... http://paste.debian.net/168003/
[12:18] <ironm> I wonder about the following message in the output: [pcm_s16le @ 0x1885520] flv does not support that sample rate, choose from (44100, 22050, 11025).
[12:18] <maria_zk> wow.... it works! :D
[12:18] <JEEB> ironm, if the input is unsupported in the flv container, just switch to mkv :)
[12:19] <JEEB> maria_zk, -c:v and -c:a are basically short ways to set video and audio codecs :)
[12:19] <ironm> JEEB, just using .mkv as output?
[12:19] <JEEB> ironm, yes
[12:19] <maria_zk> this is my ffmpeg path, right? /usr/local/bin/ffmpeg
[12:20] <ironm> thank you JEEB
[12:20] <ironm> there is no such error message anymomre
[12:20] <ironm> anymore
[12:25] <cbreak-work> ah well, n0.10.3-0-gb1f9ff works too
[12:25] <cbreak-work> so I guess just master is broken
[12:30] <cbreak-work> it's weird that ffmpeg itself doesn't have that problem.
[12:31] <cbreak-work> I do use av_register_all()... maybe they added a new method to call in addition...
[12:32] <burek> RobertNagy, that's normal, because at the beginning of your playback, your player is missing key frames, receiving only delta frames, causing such weird effects
[12:32] <RobertNagy> ok, that makes sense
[12:32] <RobertNagy> how do I handle it properly?
[12:33] <burek> streaming server should have handled it.. it should have buffered the last keyframe + all the delta frames after that frame
[12:33] <burek> and send that to all new clients
[12:33] <burek> that request the stream
[12:33] <burek> or you can instruct your player to ignore all the frames until it receives the first key frame (if supported)
[12:34] <RobertNagy> hm
[12:34] <RobertNagy> I'll experiment with that
[12:41] <ironm_> hmm ....
[12:41] <ironm_> [matroska @ 0x1cfe380] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 213 >= 213
[12:41] <ironm_> av_interleaved_write_frame(): Invalid argument
[13:04] <maria_zk> JEEB: can I trouble you with one more question?
[13:05] <maria_zk> http://development.geocompanion.de/content/test-0
[13:05] <maria_zk> sorry
[13:06] <maria_zk> http://paste.debian.net/168006/
[13:12] <ironm> maria_zk, is it recommended to use .webm on html5 pages?
[13:13] <maria_zk> ironm: the preset description in my site reads: Creates files that natively play on the iPhone using HTML5.
[13:14] <maria_zk> for .MOV and HTML5 WebM Creates files that natively play in Google Chrome using HTML5.
[13:15] <maria_zk> and this also fails for .mov because of the padding
[13:15] <maria_zk> command: /usr/local/bin/ffmpeg -strict experimental -y -i '/var/www/sites/default/files/original/clock_avi9_0.avi' -pass 1 -s 180x120 -b 500k -threads 0 -vcodec libvpx -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -f webm -vf "pad:180:120:0:0:000000" -an -y NUL 2>&1
[13:16] <maria_zk> using the latest ffmpeg (oh thanks you JEEB) is this command correct?
[14:46] <cbreak-work> ffmpeg_g and co are intended for debugging, right?
[14:46] <ubitux> yes
[14:46] <cbreak-work> something's seriously wrong, it's as if the meta data gdb shows doesn't fit the reality
[14:47] <cbreak-work> I stepped through ffprobe_g, and a format context pointer was 0x1
[14:47] <cbreak-work> ... and everything worked
[15:14] <burek> ffmpeg_g works but ffmpeg doesn't?
[15:17] <cbreak-work> no, libavformat doesn't give me correct results when I use it in my program, but when I use ffprobe it works
[15:18] <cbreak-work> and when I step through ffprobe, gdb shows very weird things, like the format context pointer being 1
[15:18] <Mavrik> the obvious answer is that you have several sets of libav* libs on the system and wrong ones are being loaded in your app
[15:18] <cbreak-work> well, 0.10.3 still works but...
[15:20] <cbreak-work> only one version is installed
[15:20] <cbreak-work> (in .dylib and .a format)
[15:21] <cbreak-work> hmm...
[15:23] <dmalice> Does anyone know if it's possible to run ffmpeg from the command line in android without having root access?
[15:27] <burek> dmalice, why don't you ask at android support channel/forum/center?
[15:36] <ironm> hello. May I ask what I am missing in the following command line? (as I am getting error message .. see further below)
[15:36] <ironm> ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0+100,200 -f alsa -ac 2 -i hw:0,0 -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le test.mkv
[15:36] <ironm> [matroska @ 0x13b9780] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 706 >= 706
[15:36] <ironm> av_interleaved_write_frame(): Invalid argument
[15:37] <ironm> I run ffmpeg version 0.8.2-6:0.8.2-1
[15:37] <ironm> on debian sid
[15:38] <burek> ironm,
[15:38] <burek> can you please use pastebin.com, to show your command line and its output?
[15:40] <ironm> burek, yes .. thank you. http://paste.debian.net/168043/
[15:41] <ironm> burek, oh .. it looks like it is working when the output file doesn't exist
[15:43] <burek> use .flv
[15:43] <burek> instead of .mkv
[15:44] <burek> and also uninstall libav
[15:44] <burek> and install ffmpeg
[15:44] <burek> to avoid any confusion
[15:44] <ironm> burek, I have had another issues with .flv and therefore used .mkv
[15:44] <burek> what issue
[15:44] <ironm> I have deinstalled already libav
[15:44] <ironm> let me run it again
[15:44] <ironm> please
[15:45] <burek> if you have problems, just download a static binary from http://ffmpeg.gusari.org/static/
[15:45] <burek> that way  you'll have the latest git version
[15:46] <ironm> burek, OK .. thank you. I have used debian pacakges for ffmpeg (sid)
[15:46] <burek> ok
[15:46] <burek> what flv issue do you have?
[15:46] <ironm> I have to run it again . a minute please
[15:48] <ironm> burek, [pcm_s16le @ 0x125f920] flv does not support that sample rate, choose from (44100, 22050, 11025).
[15:48] <ironm>  ... http://paste.debian.net/168046/
[15:48] <ironm> for such cli command: ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0+100,200 -f alsa -ac 2 -i hw:0,0 -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le test17.flv
[15:49] <burek> try updating your ffmpeg
[15:49] <ironm> OK .. thank you very much burek
[15:51] <burek> :beer: :)
[15:51] <ironm> the fourth one burek *_* ... you will get quite drunken ;)
[15:52] <burek> I practice enough :)
[15:54] <ironm> btw. when I am using "-i pulse" for audio there is an error message: ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[15:54] <ironm> however with "-i hw:0,0" I don't have audio :(
[15:55] <burek> then use -i hw:0 instead
[15:55] <burek> hm
[15:55] <ironm> I did .. but there is no audio ... and it works with recordmydesktop
[15:55] <ironm> I don't want to use recordmydesktop anymore
[15:56] <burek> try reading this http://ffmpeg.gusari.org/viewtopic.php?f=16&t=593
[15:56] <ironm> thank you :)
[15:56] <burek> :)
[15:58] <ironm> btw2: I have used the following cli commands to set audio: amixer -c Intel set "Mic" 85% on; amixer -c Intel set "Capture,1" 80% cap
[15:58] <ironm> just for T61p (ThinkPad)
[16:03] <ironm> hmm .. the following commad doesn't give me any sound: ffmpeg -f alsa -i hw:0,0 -acodec libmp3lame -ab 128k -ac 1 -ar 44100 -vn test.mp3
[16:04] <burek> ironm, read my reply to that topic
[16:04] <burek> and you'll know what to do
[16:05] <ironm> I am just following instructions in your link
[16:34] <dmalice> anyone know the proper call to sws_getCachedContext()? My JNI is bugging out
[16:35] <dmalice> I'm also confused because my header file for swscale.h doesn't actually have a typedef struct for SwsContext
[16:36] <dmalice> it just has one line "struct SwsContext"
[17:21] <Plorkyeran> the header only has a forward declaration for SwsContext because it's an opaque type that the client code is never supposed to do anything with directly
[23:06] <UngureanuVlad> hello!  i am having some trouble to transcode a mjpeg stream from an AXIS IP Camera to a video format which is working with the html5 video tag. I am trying to do that using ffserver and ffmepg, but unfortunately i cannot get ffserver config file good. can someone help me with some info ?
[23:08] <burek> UngureanuVlad, what output format do you use from ffserver
[23:08] <burek> and what is your error in general?
[23:09] <UngureanuVlad> burek: <Stream feed.ogg>
[23:09] <UngureanuVlad> my ffmpeg thread blocks when i enter my webpage where i can see the video
[23:09] <someone-noone> Hello. I'm writing a video-player using ffmpeg as a decoding part. Yes, I know about ffplay and I know how it works. I'm using xaudio2 for playing raw pcm. The main problem with this framework that it has huge delay (~5ms) in it's "buffer played end" event. So I need to insert several pcm buffers into play queue, to avoid "empty buffer playing" in that 5ms. The problem is that i'm synchronizing to external clock and i don't know how to make valid s
[23:10] <burek> UngureanuVlad,
[23:10] <burek> can you please use pastebin.com, to show your command line and its output?
[23:11] <UngureanuVlad> ok
[23:11] <UngureanuVlad> burek: http://pastebin.com/gEUQY3CA this is my ffserver.conf file
[23:11] <UngureanuVlad> burek: ffserver -f ~/Desktop/ffmpeg/doc/ffserver.conf
[23:13] <UngureanuVlad> and with this ffserver.conf file i get http://pastebin.com/Wd8SjEhe error from ffmpeg
[23:13] <abaratican> I can't get ffmpeg to stop outputting the metadata fro title, track, album, artist, media_type, and encoder... ffmpeg -y -i test.m4a -acodec copy -map_chapters -1 -map_metadata -1 test2.m4a
[23:14] <abaratican> it removes chapters, but not that last bit of metadata... cannot find any possible way to convince map_metadata to remove those fields.
[23:15] <burek> UngureanuVlad, TCP connection to localhost:8090 failed: Connection refused
[23:15] <burek> also, the reason for that might be _really_ ancient version of ffmpeg
[23:15] <UngureanuVlad> Thu May 10 00:15:27 2012 Feed stream has become desynchronized -- disconnecting
[23:15] <UngureanuVlad> Thu May 10 00:15:27 2012 127.0.0.1 - - [POST] "/feed.ffm HTTP/1.1" 200 8192
[23:15] <UngureanuVlad> burek: ^when i try to access
[23:15] <burek> svn is deprecated long ago
[23:16] <burek> aballier,
[23:16] <burek> can you please use pastebin.com, to show your command line and its output?
[23:16] <burek> abaratican*
[23:16] <abaratican> yea
[23:17] <abaratican> burek: http://codepad.org/ouNQgOuV
[23:19] <burek> ron paul rocks :)
[23:19] <burek> btw, you want to get rid of that global metadata?
[23:19] <abaratican> yes, every bit of it
[23:19] <abaratican> this started as part of somethign else I was doing, but then it became a battle of wit against ffmpeg, and I must emerge victorious. :)
[23:20] <burek> try -dn
[23:20] <abaratican> adding -dn just before the output filename didn't change the result.
[23:23] <burek> hm
[23:24] <burek> -map_metadata -1 should do it
[23:24] <burek> it's probably a bug
[23:24] <burek> try updating your ffmpeg
[23:24] <abaratican> atm the way I'm "removing" it that works is going to .aac then back, so it's a fresh container.. but yeah, seems like a bug to me but thought I'd check.
[23:25] <burek> try http://ffmpeg.gusari.org/static/
[23:25] <burek> download last static ffmpeg and run it with the same command
[23:25] <burek> see if it solves the problem
[23:28] <abaratican> it works with that one
[23:29] <abaratican> so that solves that issue... btw, what's -dn supposed to do?  didn't find it in man page.
[23:30] <burek> data stream no
[23:30] <burek> like -vn and -an
[23:30] <burek> for video and audio
[23:30] <abaratican> ah
[23:30] <burek> or -sn
[23:30] <burek> for subs
[23:32] <abaratican> latest ffmpeg in gentoo's portage is 0.10.2, so i supposed this was fixed recently as 0.10.3 was released 05/06
[23:32] <abaratican> well, that works.  Thanks man :)
[23:32] <burek> :beer: :)
[23:54] <tg2> quick command for converting the first 500 frames of an mkv file to a raw avi?
[23:54] <tg2> with no audio
[23:54] <cbsrobot> tg2: you wanna a testfile for x264 ?
[23:54] <tg2> yup
[23:54] <cbsrobot> choose y4m
[23:55] <burek> ffmpeg -i input.mkv -vframes 500 -f rawvideo out.avi
[23:55] <cbsrobot> ffmpeg -t 60 -i input.mkv -pix_fmt yuv420p output.y4m
[23:55] <tg2> does ffmpeg support -frames as avconv ?
[23:55] <cbsrobot> i guess so
[23:57] <tg2> nope
[23:57] <tg2> lol
[23:57] <tg2> ah it odes
[23:57] <tg2> my bad
[00:00] --- Thu May 10 2012


More information about the Ffmpeg-devel-irc mailing list