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

burek burek021 at gmail.com
Sun Jan 29 02:05:01 CET 2012


[00:05] <marteo> same thing. more accurately, i stopped after one second of input, and he gave me 1025 png's.
[00:05] <burek> with ffmpeg -re -i <input> -f image2 out%04d.png
[00:05] <burek> ?
[00:06] <marteo> yes
[00:06] <burek> with ffmpeg -re -i <input> -f image2 -r 25 out%04d.png
[00:07] <burek> no
[00:07] <burek> ffmpeg -re -r 25 -i <input> -f image2 out%04d.png
[00:07] <burek> and drop -re :)
[00:09] <marteo> no, you actually meant ffmpeg -i <input> -f image2 -r 25 out%04d.png
[00:09] <marteo> and it seems to work fine
[00:09] <burek> well it does, but it duplicates/drops frames
[00:09] <burek> when you apply it to the output
[00:09] <marteo> it drops most of them, yes
[00:09] <burek> when you apply -r to the input it reads the input more slowly (i guess)
[00:10] <marteo> my ffmpeg does not know -r option for the input
[00:10] <marteo> i'll take 50 .pngs per video second, and then i'll reassemble it proprely
[00:11] <burek> ok
[00:11] <burek> but then
[00:11] <burek> put -re back
[00:11] <burek> to slow down the input
[00:12] <marteo> -re does not do anything
[00:13] <marteo> because the input is already under realtime speed
[00:13] <burek> yes but when ffmpeg converts input file to output file, then it tries to do it as fast as possible
[00:13] <burek> not in real time
[00:13] <marteo> because the video has an absurd fps rate
[00:13] <marteo> ah
[00:13] <burek> real time means at the speed of watching the video
[00:14] <burek> so, it should create png images more slow, but I don't think it will influence output quality
[00:15] <marteo> right
[00:16] <marteo> well thanks, using png's was a great idea
[00:21] <burek> :beer: :)
[00:21] <marteo> come to paris and i'll get you ine
[00:21] <marteo> *one
[00:21] <burek> its a deal :)
[00:22] <burek> all for beer and beer for all :D
[00:22] <marteo> so long :-)
[01:01] <boo> Decoding dvb-t stream and passing it to rtmp server always crash ~ 5.2 sec, when I add  -analyzeduration 1500000000 then the time can be extended to 10.3 seconds, any ideas how to fix this? :/
[01:06] <pasteeater> does it crash if you output to a file instead of rtmp?
[01:35] <Jan-> Is it practical - I don't mean possible, I mean practical - to compile a useful ffmpeg on windows, including all the essential stuff that's generally external libraries?
[01:35] <Jan-> I assume it's possible but not really very worthwhile.
[01:36] <Jan-> Possible in theory, I mean, but not worth actually doing.
[01:49] <pasteeater> Jan-: it's easier to use this: http://ffmpeg.zeranoe.com/builds/
[01:49] <Jan-> uh, yeah
[01:50] <Jan-> the plan was to try and use some of its code in another project (open source and all) and I thought a reasonable first step would be to compile it vanilla to prove it can be done
[01:50] <Jan-> I assume it could in theory be done but from what I see on google it isn't often done.
[01:56] <Jan-> is "WARNING: pkg-config not found, library detection may fail." bad?
[02:01] <Jan-> is "array subscript is below bounds" bad?
[02:09] <Jan-> Welp, it produced an executable.
[02:09] <Jan-> Doubtless a useless one as it doesn't include any of the required external libraries.
[02:09] <Jan-> But hey, it produced an executable, which is more than I was expecting!
[02:12] <Jan-> what's a good test to see if an ffmpeg compile is "basically working"
[02:12] <burek> :)
[02:13] <burek> ffmpeg -version
[02:13] <Jan-> ffmpeg version 0.9.1.git
[02:13] <Jan-> built on Jan 28 2012 01:04:40 with gcc 4.6.1
[02:13] <Jan-> configuration: --disable-yasm
[02:13] <burek> I'm trying to build the static binary on linux for ffmpeg
[02:13] <burek> but I keep getting stuck
[02:13] <Jan-> isn't the "configuration" line usually a lot (lot, lot) longer than that
[02:14] <burek> Jan-, it depends on what you want your ffmpeg to be able to do
[02:14] <Jan-> I thought this basic version wouldn't even include things like mpeg-4, but I just ran "ffmpeg -i in.avi out.avi" and got a very bad FMP4 AVI as a result.
[02:15] Action: Jan- is absolutely astonished at how well this seems to be going
[02:15] <Jan-> what else should I add? And how?
[02:16] <drv> you should definitely install yasm; that affects speed a lot
[02:16] <Jan-> how?
[02:17] <Jan-> anyway I'm not that worried about speed
[02:17] <Jan-> oh, it's h.264 it doesn't have by default, right
[02:17] <Jan-> and vorbis, and...
[02:17] <Jan-> and some crypto stuff, right?
[02:19] <Jan-> hm it won't read h.264 with aac audio
[02:32] <Zeranoe> burek: stuck on what?
[02:45] <burek> with alsa
[02:45] <burek> it seems alsa links dinamically against some functions in time.h
[02:46] <burek> http://pastebin.com/Ld1SZWPX
[02:46] <burek> and this is in config.log about alsa: http://pastebin.com/e6hW0B2E
[02:47] <burek> that was for Zeranoe :)
[02:51] <Zeranoe> burek: can it find time.h?
[02:52] <burek> how can i check that
[02:56] <Zeranoe> burek: I'm checking into it niow
[02:57] <burek> thanks :)
[02:57] <MrNaz> relaxed i am now... what's up?
[03:36] <gretelmk2> i am trying to build a small frame grabbing program using the ffmpeg (version 0.10) libs and i am following the closest tutorial I can find, but my frames come up looking like near garbage
[03:37] <Jan-> At least you can actually get the libraries to... well, work, compile, appear at all :)
[03:37] <gretelmk2> if i use ffmpeg -i output.ps  what%d.jpg, each of the frames come out looking ok
[03:37] <gretelmk2> right
[03:37] <Jan-> I can just about get a crippled ffmpeg to compile with no external libraries.
[03:38] <gretelmk2> so, i am essentially having it properly guess the format for me and then i'm doing the avcodec_decode_video2
[03:38] <gretelmk2> oh
[03:38] <gretelmk2> i seem to be ahead of you ;p
[03:38] <Jan-> I'm not really a software engineer.
[03:38] <Jan-> Or rather I am, but I'm used to visual studio, which works a lot better.
[03:39] <gretelmk2> i use a half assed approach of installing the package from the repo then doing an ffmpeg and stealing the configure parameters and adding a few more on the end
[03:39] <gretelmk2> ah
[03:39] <gretelmk2> so then i uninstall the sucker and build my own
[03:40] <gretelmk2> that gets me to a fully functional ffmpeg if you want to try that
[03:40] <Jan-> I think I'll let it be for now
[03:40] <Jan-> they clearly don't want people compiling it under windows
[03:40] <gretelmk2> i thought there was a guide for it...?
[03:41] <gretelmk2> or is it a cross compile thing with mingw?
[03:41] <gretelmk2> i'm not really trying under windows ;p
[03:41] <gretelmk2> so I guess you won't be able to tell me why my frame looks like crap when I convert it to a jpeg? ;p
[03:42] <Jan-> no.
[03:42] <gretelmk2> it's like i'm looking at the same image kinda blended together 3 times or so
[03:42] <gretelmk2> it sucks
[03:42] <gretelmk2> everything looks right
[03:42] <Jan-> most windows builds are cross compiled
[03:42] <Jan-> I don't think it's ever built on windows really
[03:42] <gretelmk2> well, you could go the cygwin route... maybe.
[03:43] <gretelmk2> just give up on your windows ;p or better yet get yourself VirtualBox
[03:43] <gretelmk2> get the iso for the flavor of linux you know or can stand and use that
[03:44] <gretelmk2> i've been doing that even though I actually run linux... it just makes it easy for me to do across all machines if i can drag my VM around
[03:45] <gretelmk2> so... are you the only one talking around here?  has there been any other activity?
[03:45] <Jan-> very little
[03:45] <Jan-> Given how painful this whole compilation deal has been I'm really not tempted to try other linuxy things :)
[03:46] <gretelmk2> eh... this and VLC are the two toughest I've run across for compiling
[03:46] <gretelmk2> anything else is pretty easy
[03:46] <Jan-> I don't really want to compile ffmpeg anyway, I want to use the libraries it uses for something
[03:46] <Jan-> but it seemed like a good first step
[03:47] <gretelmk2> it's really the best step since most distros carry a crippled version of the thing
[03:47] <Jan-> well the version I had described itself as "crippled"
[03:48] <Jan-> and it had no external libraries
[03:48] <gretelmk2> yeah, that sucks
[03:48] <Jan-> I'm not sure how you'd have added them
[03:48] <gretelmk2> my little process above covered it
[03:48] <burek> Jan-, you could ask Zeranoe for help with windows builds
[03:49] <gretelmk2> it's half-assed, but you can't ignore the results
[03:49] <Jan-> this whole thing really does put the lie to the idea that "anyone can compile stuff"
[03:49] <burek> it is possible and it does take some knowledge to do it
[03:49] <Jan-> everyone has to be a software engineer in linux
[03:49] <burek> well windows runs only on 1 type of machines
[03:49] <gretelmk2> pfffft
[03:49] <burek> that's why everything "always works"
[03:49] <gretelmk2> i install linux on any machine that someone asks me to fix ;p
[03:50] <burek> linux has a lot of varieties so it's normal to be a little bit harder to get used to all that, but it pays off in the end
[03:50] <gretelmk2> "did you fix it", "Oh, I fixed it alright"
[03:50] <burek> :D
[03:50] <Jan-> this computer gets used for work stuff though
[03:50] <gretelmk2> use the VM option then ;p
[03:50] <Jan-> linux is OK for a hobby I guess
[03:50] <gretelmk2> yo, burek, got any ideas for my issue? ;p
[03:51] <burek> windows is good for games, i guess :)
[03:51] <gretelmk2> ha
[03:51] <gretelmk2> i've got one windows machine, just for games ;p
[03:51] <burek> anything even remotely serious is scary to run on windows
[03:51] <burek> well gretelmk2 did you try libav* libs?
[03:51] <gretelmk2> of course
[03:51] <gretelmk2> those are the ones
[03:51] <burek> which tutorials did you use
[03:52] <gretelmk2> pretty much trying to follow the example those guys did in ZoneMinder and also in the doc/examples/decode_encode.c taking in to consideration the recently deprecated functions in ffmpeg-0.10
[03:52] <burek> you could start off from here: http://ffmpeg.org/documentation.html
[03:52] <gretelmk2> started off there plenty ;p
[03:52] <burek> ok :)
[03:53] <gretelmk2> that's how i'm as far as i am
[03:53] <Jan-> it's open source
[03:53] <Jan-> don't expect docs
[03:53] <gretelmk2> some of the best docs i've seen have been from open source
[03:53] <burek> Jan-, why don't you pay Adobe to give you decent libs for your project?
[03:53] <burek> or Microsoft for that matter
[03:53] <Jan-> they just use quicktime
[03:54] <gretelmk2> that's not true, they use wma too :)
[03:54] <Jan-> well I could do it in directshow
[03:54] <Jan-> but that's completely unportable
[03:54] <Jan-> and I want a mac version.
[03:54] <gretelmk2> ew, macs ;p
[03:54] <burek> gretelmk2, did you try #libav ? :)
[03:54] <gretelmk2> didn't know it existed
[03:54] <Jan-> No. They won't support anyone using windows, I bet.
[03:55] <Jan-> I didn't hold out much hope here to be honest.
[03:55] <burek> well, why dont you contact apple and ask them to offer you their products/libs
[03:55] <burek> so you can have nice docs too
[03:55] <Jan-> They already do. Quicktime has great docs, it's just a bit of a hairy piece of software.
[03:55] <Jan-> 32 bit and only single threaded.
[03:55] <burek> well why dont you just pay for it and cut your pain :)
[03:55] <gretelmk2> i'm reading "terrible"
[03:56] <Jan-> but at some point it is possible to use quicktime
[03:56] <Jan-> I mean I have all the code for the libav libraries right here, but there's no info on how to actually get it into a state where I can use it.
[03:56] <Jan-> I'm just used to adding references in visual studio and things just ping into existence.
[03:56] <burek> Jan-, did you read http://ffmpeg.org/documentation.html
[03:56] <burek> I mean, I know you did, right? :)
[03:56] <burek> I'm just checking :)
[03:57] <Jan-> I skimmed it, but it's almost completely unhelpful.
[03:57] <Jan-> it's open source you don't expect docs
[03:57] <burek> blablabla
[03:57] <burek> you didn't even read it
[03:57] <Jan-> there are no examples or anything
[03:57] <burek> well, write one :)
[03:58] <burek> or donate to someone to write it for you :)
[03:58] <Jan-> I looked at libav.org too.
[03:58] <Jan-> There's nothing like you'd get on MSDN explaining how to implement anything.
[04:00] <Plorkyeran> the fun part is that by the time you finish writing something using ffmpeg, half the functions you used will be deprecated
[04:01] <Jan-> I'm just amazed that the whole IDE for linux appears to be "here's a big bunch of text files, you're on your own."
[04:01] <Jan-> I knew linux was pretty primitive, but this is just hilariously bad.
[04:03] <burek> omg..
[04:03] <pasteeater> someone probably got paid to write the MSDN docs
[04:03] <burek> if windows and msdn were so great, why are you even here Jan- ?
[04:03] <Jan-> I don't really care HOW they got there, I just care they exist.
[04:04] <burek> you are not even willing to read the docs
[04:04] <burek> you rather spend your time complaining
[04:04] <Jan-> There aren't really any docs
[04:04] <Jan-> I'm looking through the doxygen stuff right now and it's almost blank
[04:04] <burek> im a full to have this conversation with you at all
[04:04] Action: burek away
[04:04] <Jan-> Told you they wouldn't support windows development...
[04:08] <gretelmk2> eh, you need to be looking in the right doxygen files
[04:08] <pasteeater> the docs always need improvement. we are volunteers, but anyone can contribute.
[04:08] <Jan-> I think what I need to do is to write my own quicktime movie parser, sadly
[04:09] <Jan-> most of the types of file I need to use will have uncompressed audio, which is at least a plus
[04:09] <Jan-> the thing is I'd like to support various types of MPEG-4 streams as well, and at that point, it becomes kind of a big job to support them all.
[04:11] <burek> "mom, do I have to eat the dinner MYSELF? :crybaby:"
[04:11] <Jan-> jesus, do YOU want to independently develop quicktime and MPEG-4 TS readers?
[04:11] <gretelmk2> dude, the VM  you can totally do it... cross compile that and voila
[04:11] <Jan-> even if that's true (which I doubt, having tried it on linux before) that would just get me an ffmpeg executable
[04:12] <Jan-> what I want is to be able to write C code, in windows, using the libraries.
[04:12] <Jan-> I assume that's possible but there seems to be no easy way to do it, short of just #including every file in the damn thing.
[04:12] <gretelmk2> would it not provide each of the libraries as well in DLL form?
[04:12] <gretelmk2> i'm just taking a stab there
[04:12] <Jan-> I guess I'd end up writing makefiles and configure scripts which I have no idea how to do.
[04:13] <gretelmk2> that's the spirit!
[04:13] <Jan-> I did once play with gcc, notepad, and DLL files representing the libav libraries.
[04:13] <Jan-> The problem is that they never had debug symbols in them so if it breaks, and it will break, you're clueless.
[04:13] <gretelmk2> well, dump notepad and use eclipse with the CDT package
[04:13] <pythonirc101> if I have a video file (could be flv, mp4, etc) and I want to convert it to mp4, can I just do ffmpeg -I input.vtype output.mp4?
[04:14] <burek> :)))
[04:14] <Jan-> pythonirc101: basically yes.
[04:14] <Jan-> you may want to set some sort of better quality output as the default is very low quality.
[04:14] <Jan-> but I don't know how to do that.
[04:14] <burek> pythonirc101, try ffmpeg -codecs
[04:14] <Jan-> gretelmk2: I think I'd rather keep it simple.
[04:14] <pythonirc101> burek: there are too many
[04:14] <burek> and then ffmpeg -i input -vcodec <codec> output,mp4
[04:15] <burek> is mp4 an encoder or a format or both
[04:15] <Jan-> strictly speaking I could p/invoke the avcodec and avformat libraries from inside c# which would be by far the easiest way to go.
[04:15] <pasteeater> mp4 is a container format and can contain several video formats.
[04:15] <pasteeater> i assume you want H.264.
[04:15] <gretelmk2> eh... it's only really messy when you start changing code to get it to compile
[04:15] <pythonirc101> indeed I do
[04:15] <burek> and you just want to remux the input into mp4 format/container?
[04:15] <pythonirc101> sometimes my input is indeed mp4
[04:15] <Jan-> But doing that without information on what those libraries want by way of data types and what their calling conventions were, could get messy.
[04:16] <pasteeater> ffmpeg -i input -c:v libx264 -preset medium -crf 24 output.mp4
[04:16] <pythonirc101> I get variable types as input. I want to make sure the output is mp4+h264 with the same quality as the input
[04:16] <burek> pythonirc101, well do you want to reencode video or just to remux it
[04:16] <gretelmk2> that's all in doxygen
[04:16] <burek> i see
[04:16] <pasteeater> pythonirc101: 1. 17:49:54    @michaelni | pasteeater, also make sure you use url = gil at ffmpeg.org:ffmpeg-web
[04:16] <burek> pasteeater, gave you the answer then
[04:16] <pasteeater> oops. stupid paste.
[04:16] <burek> :)
[04:16] <pasteeater> i do that too often
[04:16] <gretelmk2> it's practically all in these:
[04:16] <gretelmk2> #include <libavcodec/avcodec.h>
[04:16] <gretelmk2> #include <libavformat/avformat.h>
[04:16] <gretelmk2> #include <libswscale/swscale.h>
[04:17] <gretelmk2> doxygen those and *bam*
[04:17] <codepython777> pasteeater: what if the input is indeed in mp4 format with 264...does that command just detect it and copy input to output?
[04:17] <pasteeater> you have to tell it: ffmpeg -i input -c copy output.mp4
[04:17] <Jan-> gretelmk2: oh if only it were that simple
[04:17] <codepython777> thanks
[04:18] <Jan-> I did try that
[04:18] <Jan-> gcc complained
[04:18] <gretelmk2> oops
[04:18] <pasteeater> pythonirc101: 1) use the highest crf value that still gives an acceptable quality
[04:18] <pasteeater> 2) use the slowest preset that you have patience for
[04:18] <Jan-> Christ on a bike
[04:18] <Jan-> avcodec has a HUGE number of functions in it
[04:18] <gretelmk2> yep
[04:18] <gretelmk2> shitload
[04:18] <gretelmk2> and like someone else mentioned already, they deprecate pretty fast ;p
[04:18] <Jan-> someone *has* done a p/invoke wrapper for it
[04:19] <Jan-> but it's somewhat old and I suspect wouldn't work with modern versions of the libraries.
[04:19] <gretelmk2> there is an ffmpeg-java project out there... if you put stock in that sort of thing
[04:19] <Jan-> The problem I would anticipate is that the people who write ffmpeg are likely to be openly hostile to that sort of thing and actively work to make it break.
[04:20] <Jan-> The same issue exists with using it in C#.
[04:20] <Jan-> (which is technically more or less the same thing)
[04:21] <Jan-> I mean look at this: http://www.koders.com/csharp/fid1F783E459768CCD8254F1DAF770A489D19327B0A.aspx
[04:24] <gretelmk2> eh, even if you're behind some, does it matter than much?
[04:24] <gretelmk2> i take the latest and greatest because I can, not because it's necessary
[04:24] <gretelmk2> though that sense of accomplishment is there ;p
[04:24] <codepython777> ` b09aSD
[04:25] <Jan-> That just makes life difficult.
[04:25] <Jan-> It's hard enough even to get hold of older versions.
[04:25] <Jan-> ah, fugheddaboudit
[04:26] <Jan-> another project nixed by opensource stupidity
[04:26] <gretelmk2> geez
[06:47] <vtorri> hey
[06:47] <vtorri> i'm cross compiling
[06:48] <vtorri> i have to set arch and cpu
[06:48] <vtorri> are those values the same than gcc options ?
[07:06] <plut0> is it possible to pass in x264 options to ffmpeg? such as sync-lookahead ?
[07:37] <vtorri> hmm, it's target-os that must be set
[09:44] <\DSAFEW\> I'm getting some issues trying to stream to justin tv using ffmpeg, it says the rtmp://live.justin.tv/app: No such file or directory for any rtmp file, I compiled it with rtmp libs, going to try it with native support next
[09:44] <\DSAFEW\> yep, same problem with native rtmp
[09:46] <\DSAFEW\> running a the command I found on some FAQ, with my options as the variables there, ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0  -f alsa -ac 2 -i hw:0,0 -vol 4096 -vcodec libx264 -vpre "$QUAL" -s "$OUTRES"  -acodec libmp3lame -ab 96k -threads 0 -f flv "rtmp://live.justin.tv/app"
[09:47] <\DSAFEW\> and I commented out the stream key and flashver option, simply because I was testing for syntax errors
[15:44] <\DSAFEW\> I'm getting some issues trying to stream to justin tv using ffmpeg, it says the rtmp://live.justin.tv/app: No such file or directory for any rtmp file, I compiled it with rtmp libs, going to try it with native support next
[15:44] <\DSAFEW\> same problem with native rtmp
[15:45] <\DSAFEW\> running a the command I found on some FAQ, with my options as the variables there, ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0  -f alsa -ac 2 -i hw:0,0 -vol 4096 -vcodec libx264 -vpre "$QUAL" -s "$OUTRES"  -acodec libmp3lame -ab 96k -threads 0 -f flv "rtmp://live.justin.tv/app"
[15:45] <\DSAFEW\> and I commented out the stream key and flashver option, simply because I was testing for syntax errors
[15:47] <Mavrik> hm, since you're using "-vpre"... just how old is your rrmpeg?
[15:47] <Mavrik> IIRC RTMP support is quite new in ffmpeg
[15:47] <\DSAFEW\> I'm just copying a command
[15:47] <solemnwarning> Hi
[15:48] <solemnwarning> Can anyone help me with encoding a series of PNG images and a wav file into uncompressed AVI?
[15:48] <\DSAFEW\> I've tried using the command with librtmp and with native support
[15:48] <\DSAFEW\> built on stable gentoo amd64
[15:48] <solemnwarning> I'm getting the video ok if I force pix_fmt to bgr24, but there's no audio and VLC sees the file as being 11:01 long (Is 1min worth of audio and video)
[15:49] <\DSAFEW\> ffmpeg-0.7.8 btw
[15:51] <Mavrik> \DSAFEW\, hmm... can you show the actual command line being executed with the exact output?
[15:51] <Mavrik> put it in a pastebin
[15:51] <Mavrik> (my local testing shows rtmp output working perfectly on ffmpeg 0.10)
[15:51] <\DSAFEW\> yeah I can do that, let me edit out my key
[15:52] <\DSAFEW\> http://paste.pocoo.org/show/542109/
[15:53] <Mavrik> not that
[15:53] <Mavrik> the EXACT command line that's run with all parameters
[15:53] <Mavrik> the EXACT ffmpeg output with all warnings
[15:53] <\DSAFEW\> that is the exact script I run, no parameters
[15:54] <\DSAFEW\> http://paste.pocoo.org/show/542110/
[15:54] <\DSAFEW\> output^
[15:54] <Mavrik> well
[15:54] <Mavrik> tell your script to print out exactly what's being executes
[15:54] <Mavrik> *executed
[15:55] <Mavrik> since as you see your parameters are wrong.
[15:55] <\DSAFEW\> wait a sec
[15:55] <\DSAFEW\> http://paste.pocoo.org/show/542111/
[15:55] <\DSAFEW\> sorry for the -v
[15:55] <\DSAFEW\> that was a mistake from me trying to troubleshoot
[15:56] <Mavrik> there's obviously something wrong with your generated command line
[15:57] <\DSAFEW\> compiling in the librtmp wrappers now
[16:01] <\DSAFEW\> http://paste.pocoo.org/show/542113/
[16:01] <\DSAFEW\> not sure but I suspect that's the same as before
[16:02] <Mavrik> as I said, your problem isn't an ffmpeg problem
[16:02] <Mavrik> fix your script.
[16:03] <solemnwarning> This is the command/output I'm trying to create an uncompressed AVI with: http://slexy.org/view/s2ZT45mh2G
[16:03] <\DSAFEW\> what's the proper syntax to do an flv stream on an rmtp protocol?
[16:04] <\DSAFEW\> I did read the man page, and I googled it for a few hours
[16:04] <Mavrik> solemnwarning, that's wierd... can you try specifying rate (-r) also after -i?
[16:04] <Mavrik> \DSAFEW\, nothing wrong with the syntax
[16:04] <Mavrik> something is wrong with how you're building the command line string.
[16:06] <solemnwarning> Mavrik: No change
[16:06] <solemnwarning> There's no audio or video data after the 1:00 mark I think, VLC just leaves the last frame displayed if I skip ahead
[16:07] <Mavrik> that's hellova wierd
[16:07] <solemnwarning> I can create x264 videos from the same input too, no problems
[16:08] <Mavrik> but only when trying to save them uncompressed?
[16:08] <Mavrik> you get the problem?
[16:08] <solemnwarning> Yeah
[16:08] <Mavrik> solemnwarning, it could be a problem with the .avi muxer
[16:08] <solemnwarning> I haven't tried x264 and PCM/AVI yet actually, I'll try that
[16:08] <Mavrik> solemnwarning, can you try to store the content in .mkv or something to see if it's indeed .avi issue?
[16:09] <solemnwarning> Sure
[16:12] <solemnwarning> x264/PCM in AVI has no audio, VLC warns that it doesn't support codec "undf" when I try playing the raw/pcm in an mkv, but it plays the audio fine
[16:14] <Mavrik> figured, containers don't support it :\
[16:16] <solemnwarning> As in AVI doesn't support raw audio? o_O
[16:16] <Mavrik> solemnwarning, more like raw video
[16:16] <Mavrik> at least in case of mkv it seems
[16:16] <Mavrik> sadly I can't help you much with AVI, never really did anything with that container :\
[16:17] <solemnwarning> x264/AAC in an AVI also has no audio
[16:19] <Mavrik> AVI has some serious limitations with modern formats, so check if you're not violating them
[16:19] <solemnwarning> Am I using a modern format with rawvideo/pcm_a16le?
[16:19] <solemnwarning> *pcm_s16le
[16:20] <solemnwarning> Or the bgr24 pixel format?
[16:20] <Mavrik> rgb support could be problematic, it usually is
[16:23] <solemnwarning> The default format (pal8) results in screwed up colours and no sound
[16:59] <elkng> is there options to "Rebuilds index of files" similar to "-idx" in mplayer ?
[17:09] <grepper> elkng: maybe by just using -vcodec copy -acodec copy ?
[17:24] <fling> hello :]
[17:24] <fling> i want to record a video from webcam and sound from two soundcards same time
[17:24] <fling> stereo from first and mono from second
[17:25] <fling> how to do that?
[17:25] <fling> this is my old script with single mono recording http://paste.pocoo.org/show/542158/
[17:26] <fling> how to record one more stereo track?
[18:01] <elkng> grepper: for ffplay
[19:22] <plut0> i want to encode a video to x264. i need to use the x264 app because certain flags aren't available in ffmpeg. seeing how x264 only does video, how can i merge the audio and video back together?
[19:26] <Mavrik> plut0, I suggest you use "x264opts" parameter for ffmpeg to pass the "missing" parameters to x264 instead of doing what you do
[19:26] <Mavrik> but otherwise you just use "copy" codec for video from source
[19:30] <plut0> Mavrik: hmm i think that worked. i tried x264opts last night without luck but maybe i was just tired
[20:24] <fling> Unknown input format: 'video4linux2'
[20:25] <fling> -f video4linux2 -s 864x480 -r 15 -i /dev/video0
[20:25] <fling> worked in the past... what is new value of v4l?
[20:29] <fling> [alsa @ 0x2547780] cannot set sample format 0x10000 2 (Invalid argument)
[20:37] <fling> ^ -f alsa -ac 2 -i hw:0,0
[20:37] <fling> but can record with audacity
[20:38] <fling> what am i doing wrong?
[21:23] <WilliamWS> I want to make a sound graph using C language. Someone can tell me a good way/library to do that?
[21:24] <relaxed> WilliamWS: try ##c
[21:25] <WilliamWS> relaxed, It is a sound bargraph
[21:25] <fling> still can't record... -f alsa -ac 2 -ar 48000 -i hw:0,0
[21:25] <fling> [alsa @ 0x14177c0] cannot set sample format 0x10000 2 (Invalid argument)
[21:25] <fling> hw:0,0: Input/output error
[21:25] <WilliamWS> I do not know how to call it in english... maybe a RTA
[21:29] <saste> WilliamWS: what type of "sound graph"?
[21:29] <WilliamWS> about 8 bars, each one for an specific frequence range
[21:31] <fling> what is 'sample format' ? why can't ffmpeg set it?
[21:32] <WilliamWS> something like this http://www.scifun.ed.ac.uk/pages/about_us/shows/tables/Hi-freq-large.gif saste
[21:32] <relaxed> WilliamWS: oh, like this? --> http://www.desktoplinux.com/files/article101/MandrakeMusicChapter/images/xmmsC9.png
[21:32] <WilliamWS> but with movement... in real time
[21:33] <WilliamWS> yes relaxed
[21:33] <fling> like projectM? :p
[21:33] <saste> WilliamWS: you can do that with an A->V filter
[21:33] <saste> check my thread on ffmpeg-devel about showaudio
[21:33] <relaxed> WilliamWS: ffplay does something like that when you play audio. have you seen it?
[21:34] <Mavrik> WilliamWS, you'll need to do FFT
[21:34] <Mavrik> WilliamWS, I think DSP books/resources will help you :)
[21:34] <WilliamWS> I can do it in real time using the microfone input or line in?
[21:34] <WilliamWS> fling what is Project AM?
[21:35] <fling> http://projectm.sourceforge.net/
[21:36] <WilliamWS> It is for a RTA.
[21:36] <WilliamWS> Real Time Audio Analyzer
[21:36] <WilliamWS> It theoreticaly will be used for audio tunning
[21:40] <WilliamWS> How can I get the audio from sound card and process it and display the image? Has any lib that do at least a bit of this work?
[21:51] <relaxed> WilliamWS: ffplay already does something like this.
[21:54] <WilliamWS> yeah
[21:54] <WilliamWS> hey can I get the signal from the line in with ffplay?
[21:55] <relaxed> I would say you should look at how ffplay does it in its source and go from there.
[21:55] <Mavrik> WilliamWS, you basically need a library that can grab audio from microphone (shouldn't be hard to Google), then use a DSP package to process that
[21:55] <WilliamWS> If ffplay do it I can use ffplay in the RTA.
[21:56] <Mavrik> tying to do that with ffmpeg will be... painful
[22:04] <saste> Williams: ffmpeg (and thus ffplay) supports reading from microphone through alsa/pulse/jack whatever
[22:05] <saste> best approach is an audio visualization filter
[23:14] <DelphiWorld> hello folks
[23:14] <DelphiWorld> what the best codec to use for low bandwith streaming ?
[23:15] <Mavrik> x264
[23:15] <Mavrik> with AAC
[23:16] <DelphiWorld> Mavrik: the audio is important, there's no video
[23:16] <WilliamWS> if I have a 9Kbp/s ?
[23:17] <DelphiWorld> Mavrik: what do you suggest for a streaming point, streaming server and client ?
[23:17] <DelphiWorld> WilliamWS: :)
[23:17] <DelphiWorld> seriously, any recomandation ?
[23:17] <DelphiWorld> i am setting a radio station
[23:17] <DelphiWorld> for blind users
[23:17] <Mavrik> DelphiWorld, for very low bitrates (64kbps or less) I've had great results with HE-AAC+
[23:18] <Mavrik> (also known as AAC+)
[23:18] <Mavrik> but that's not universally compatible
[23:18] <WilliamWS> DelphiWorld I used a 9kbp/s internet connection for about 6 months
[23:18] <Mavrik> sadly, i've mostly done video streaming not just audio
[23:18] <DelphiWorld> Mavrik: what should i use please
[23:19] <DelphiWorld> like i say is for a radio station for blind users community
[23:20] <mchinen> I am recording the deskop with ffmpeg via x11grab to x264 mp4 output (for youtube) and would like to simultaneously stream this justin.tv via rtmp x264 flv with ffmpeg - is there some more efficient way to do this than opening up two instances ffmpeg (which means two x11grabs and 2 x264 encoders)?
[23:21] <Mavrik> mchinen, just add another output parameter chain to the command line
[23:21] <mchinen> to make it a bit more complicated a new instance of the mp4 ffmpeg is started and stopped every 15 minutes (to fit the youtube length restrictions)
[23:21] <Mavrik> mchinen, right after the first output file
[23:21] <mchinen> Mavrik: Oh cool, I didn't know you could do that.
[23:22] <Mavrik> mchinen, so you do something like ffmpeg -i <something> -codec:v libx264 .... output.mp4 -codec:v libx264 ... -f flv rtmp://...
[23:22] <Mavrik> you just need enough CPU power :)
[23:22] <Mavrik> and be careful of parameter ordering ;)
[23:22] <DelphiWorld> so, i'm open for suggestion
[23:23] <mchinen> Mavrik: great, I'll try it, thanks!  We'll see how my cpu handles.
[23:23] <Mavrik> DelphiWorld, I gave you a suggestion.
[23:23] <DelphiWorld> Mavrik: client? streaming server? player ?
[23:23] <WilliamWS> vlc?
[23:24] <DelphiWorld> WilliamWS: sadly is bot too easy for blinds :(
[23:24] <DelphiWorld> QT...QT...QT... the worst
[23:24] <WilliamWS> why?
[23:25] <WilliamWS> what is the hard part of lc for blinds?
[23:25] <DelphiWorld> WilliamWS: the qt is not well accessible for blind users
[23:25] <WilliamWS> vlc*
[23:25] <DelphiWorld> mostly all blind users don't use it
[23:26] <WilliamWS> vlc can run in terminal...
[23:26] <WilliamWS> but it would be the same as ffmpeg, nosens sorry
[23:27] <DelphiWorld> WilliamWS: yes, and you expect users to listen through it?
[23:27] <DelphiWorld> no one can do that :)
[23:27] <DelphiWorld> need to make it too simple for blind users, maybe through web
[23:27] <Mavrik> use flash player then, and make sure it has accessibility features
[23:28] <DelphiWorld> Mavrik: yes, i allready use one for mp3
[23:28] Action: DelphiWorld love Mavrik
[23:29] <DelphiWorld> Mavrik: what about the streaming poing
[23:29] <DelphiWorld> Mavrik: what about the streaming point
[23:37] <DelphiWorld> Mavrik ?
[23:38] <cbreak> you want to use blind users as streaming point?
[23:39] <DelphiWorld> cbreak: yes, everything blind :)
[23:39] <DelphiWorld> streams, and listeners
[23:39] <cbreak> ffmpeg should be usable by blind people, as long as they have some means to read the terminal output
[23:40] <WilliamWS> I am thinking from the point that he have noa ccess to those blinds.
[23:40] <WilliamWS> if he does then vlc is suitable
[23:41] <DelphiWorld> WilliamWS: he's a windows user and he never used console :(
[23:41] <DelphiWorld> cbreak: he's a windows user. he use only gui ;)
[23:41] <WilliamWS> Is only 1 person?!
[23:41] <cbreak> gui for a blind person?
[23:41] <cbreak> isn't that kind of stupid?
[23:42] <DelphiWorld> cbreak: no, gui is usable a lot in windows
[23:42] <DelphiWorld> cbreak: i use gui also without any issue at all
[23:42] <DelphiWorld> cbreak: i am blind too
[23:42] <WilliamWS> cbreak touchscreen bro ahahaha
[23:42] <cbreak> touch screens have no feedback
[23:42] <cbreak> although I have seen some proto types
[23:42] <DelphiWorld> WilliamWS, cbreak Jaws for windows is the mostly used one
[23:42] <cbreak> but they didn't feel that interactive
[23:43] <DelphiWorld> cbreak: i use touchscreen but in iOs
[23:43] <cbreak> it was mostly just texture feeling
[23:43] <cbreak> and how do you know what to touch?
[23:44] <WilliamWS> you are blind not stupid ><
[23:44] <WilliamWS> te screen is a square
[23:44] <DelphiWorld> cbreak: i touch anything on the screen and i get a audio fidback
[23:44] <WilliamWS> you can make a image projection on your mind
[23:44] <DelphiWorld> but is not yet processed
[23:44] <DelphiWorld> i'm moving my finger
[23:44] <cbreak> so you're scanning the screen
[23:44] <DelphiWorld> looking for cbreak on my contact list
[23:44] <WilliamWS> not an image but a squared tate ideia
[23:44] <DelphiWorld> if i found cbreak, i can put a double touch into it and i'm done :)
[23:44] <DelphiWorld> same for all elemants
[23:45] <cbreak> sounds inefficient if you could just as well use a keyboard and a command line shell
[23:45] <WilliamWS> DelphiWorld is only 1 person?
[23:45] <DelphiWorld> cbreak: yes, i know but iOs... :P
[23:45] <DelphiWorld> WilliamWS: mean ?
[23:45] <WilliamWS> only 1 blind user for your intention?
[23:46] <cbreak> I use mplayer on the command line just fine, and I am not even blind.
[23:46] <DelphiWorld> WilliamWS: no, me, and lot of folks starting this station
[23:46] <WilliamWS> You want a radio or you only want stream audio for a singles person?
[23:46] <cbreak> (for playback)
[23:46] <cbreak> for streaming I've used cvlc, which is also a command line program
[23:46] <DelphiWorld> WilliamWS: a radio station like i say :)
[23:46] <DelphiWorld> but web
[23:46] <cbreak> but I've only used it for HTTP Live Streaming, although it supports a lot more
[23:46] <DelphiWorld> so i want blind users to be listening simply and easyly
[23:47] <WilliamWS> aha, vlc can stream to windows media player as well
[23:47] <WilliamWS> ffmpeg does the same
[23:47] <cbreak> HTTP Live Streaming supports iThings
[23:47] <DelphiWorld> yes i know WilliamWS but like i say, vlc is shit QT
[23:47] <WilliamWS> but with some effort to configure
[23:47] <DelphiWorld> and QT is not a accessible gui for blind users
[23:47] <cbreak> cvlc is console
[23:47] <WilliamWS> but you will be in the server not?
[23:47] <cbreak> (command line shell)
[23:47] <DelphiWorld> yes yes
[23:47] <DelphiWorld> any other solution for windows Os ?
[23:47] <DelphiWorld> but the server
[23:48] <DelphiWorld> i can do vlc no problem
[23:48] <WilliamWS> or the blinds will maintain the radio?
[23:48] <cbreak> you'd write a script that uses cvlc for streaming
[23:48] <DelphiWorld> but for the streaming point is too dificult
[23:48] <DelphiWorld> WilliamWS: server, no wory.
[23:48] <DelphiWorld> WilliamWS: server is me, but the radio is another streaming point that stream to the server like icecast
[23:48] <WilliamWS> cbreak I would suggest it but I was thinking he wanted to use a stream from his house for some blinds
[23:48] <DelphiWorld> and clients connect to icecast or some server and listen
[23:49] <cbreak> WilliamWS: so?
[23:49] <cbreak> cvlc can serve as streaming server
[23:49] <DelphiWorld> but what about the streamer
[23:49] <cbreak> it is a streamer.
[23:49] <cbreak> it streams.
[23:49] <WilliamWS> vlc is a streamming system not?
[23:49] <DelphiWorld> i don't want cvlc to stream from file or sound card, but to accept stream from a streamer and deliver it
[23:49] <WilliamWS> vlc is the most complete player (wqith gui) you will find
[23:50] <cbreak> I use cvlc to stream from a different program
[23:50] <DelphiWorld> :P
[23:50] <WilliamWS> it does...
[23:50] <cbreak> which I wrote myself
[23:50] <DelphiWorld> i see
[23:50] <DelphiWorld> let's browse arround and see
[23:50] <DelphiWorld> maybe i will try darwine streaming server
[23:50] <cbreak> if it spits out data that vlc can play, then cvlc can stream it
[23:50] <WilliamWS> vlc can get media from everywhere and send to everywhere.
[23:50] <WilliamWS> in every format
[23:50] <cbreak> not every
[23:50] <cbreak> but many
[23:50] <DelphiWorld> WilliamWS: what do you think about darwine streaming server
[23:51] <DelphiWorld> haha cbreak good catch:P
[23:51] <cbreak> I've only used darwin streaming server once
[23:51] <cbreak> it worked for files, then I switched to vlc. No particular reason.
[23:51] <WilliamWS> I do not know darwine sorry
[23:51] <cbreak> darwin streaming server is apple's streaming server
[23:51] <DelphiWorld> dss
[23:52] <WilliamWS> I am from Brasil, here we make the entire server many times ahahaha
[00:00] --- Sun Jan 29 2012


More information about the Ffmpeg-devel-irc mailing list