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

burek burek021 at gmail.com
Thu Apr 12 02:05:02 CEST 2012


[00:11] <ButtDog> ffmpeg -i file.avi > test.txt
[00:11] <ButtDog> that just echos the output on screen and leaves an empty test file
[00:13] <silverrocker> when does avcodec_find_decoder fail?
[00:15] <silverrocker> to myself: when I forget to do avcodec_register_all()
[00:20] <pasteeater> iive: can you update topic? link to ubuntu compile guide has changed
[00:20] <pasteeater> https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[00:31] <iive> pasteeater: maybe you should ask michael, also... i'm not quite sure that the longer url would fit in the topic.
[00:33] <relaxed> pasteeater: http://goo.gl/
[00:34] <relaxed> Also, I vote pasteeater and I should have ops here.
[00:42] <silverrocker> I have  codec = avcodec_find_decoder(CODEC_ID_H264); and when I read somefile.h264 it gives cant read the frames, is there something I'm missing or is the file I have just bad
[00:44] <iive> relaxed: sorry, I'm not really administering this channel. I guess the rule is the same, developers get op.
[00:51] <relaxed> iive: I know. It would make sense though.
[00:54] <silverrocker> so if I have a file I've created with ffmpeg like so: 	  ffmpeg -i kate.avi -vcodec libx264 out.h264  , after that I want to load the file with avcodec_find_decoder(CODEC_ID_H264); this seems to give me errors, any ideas?
[01:27] <_genuser_> does ffmpeg allow you to possibly chop / join x264 vid?
[01:38] <pasteeater> iive: i meant via a short url. and thanks for the ops, but now i can't be lazy.
[01:39] <iive> not as lazy as me. It is not auto op. I need to check the current chanserv commands for that.
[01:40] <pasteeater> that's ok. either way is fine with me.
[01:44] <_genuser_> guys, I have a video, the audio is behind the video. so I use -itsoffset 00:00:02.0 before -i video.mp4 but no matter what value is used, it doesn't change _anything_.
[01:44] <_genuser_> muxing two files together. video.mp4 and audio.mp4.
[01:45] <_genuser_> video has only video stream, audio has only audio stream.
[02:04] <silverrocker> is it a good idea to use av_read_frame() even if the format is streambased?
[06:05] <rrivera> Hey guys, scratching my head over this one -- getting "Unable to find a suitable output format for 'rtmp://[host]'"
[06:05] <rrivera> Verified -protocols shows librtmp compiled in
[06:07] <rrivera> This is on Win32, am currently reading in my desktop via (-f gdi -i 0,0)
[06:07] <rrivera> (I added this support. Works fine writing to disk.)
[06:08] <rrivera> Guessing there's something goofy going on with rtmp url parsing
[07:38] <Durmush> Hi, how to troubleshoot "lib* not found" problems? i'm trying to build ffmpeg with enable-libxvid, and I installed libxvid from source to my crosstools sys-root, and yet, the configure script cannot find it.
[07:49] <tdr> Durmush, its probably a header file missing if you have the lib there
[07:52] <Durmush> well, the script checks first for the header, then the lib? it says in config.log:
[07:52] <Durmush> cannot find -lxvidcore
[07:53] <tdr> but the header check passes?
[07:57] <Durmush> tdr: i'm not very sure how to know if it passed or not. do you mind seening yourself? here is the output in pastebin: http://pastebin.com/BkBTWXAJ
[08:01] <tdr> Durmush, looks like the library itself, look at line 24, ld is trying to use it and fails
[08:02] <tdr> or do you have config.log ?
[08:05] <Durmush> tdr: the complete log? of course. here:  http://pastebin.com/Mssica0Y
[08:26] <Durmush> so tdr, any idea?
[11:22] <rrivera> Hey guys, still scratching my head over that "Unable to find a suitable output format for 'rtmp://[host]'", any troubleshooting paths I should be going down?
[11:22] <rrivera> Just to recap, verified -protocols shows librtmp compiled in, am on win32.
[11:47] <StaRetji1> hello folks, just need info, is libmpeg2 compiled by default with ffmpeg?
[11:47] <StaRetji1> thx
[12:17] <JamesJJ> OK... still struggling with a flv with G711 audio. the problem is that ffmpeg is seeing the audio track but doesn't reconise the codec - I can force it to use the right codec by adding -acodec pcm_mulaw, but it is also getting the frequency wrong - Stream #0.1: Audio: pcm_mulaw, 5512 Hz, mono, s16, 44 kb/s - is there a way to change the input frequency, as I as the input data is 8000 not 5500?
[13:11] <StaRetji1> any dev willing to help me out, I will pay for support
[13:11] <StaRetji1> thx
[13:26] <StaRetji1> I just need to know if ffmpeg uses libmepg2
[13:26] <StaRetji1> or I have to configure it during insta;;
[13:26] <StaRetji1> install
[13:26] <JEEB> it doesn't use any external libraries by default
[13:27] <JEEB> and I'm not even sure if it can use libmpeg2 as it has both its own decoder and encoder for mpeg-2 in libavcodec
[13:27] <StaRetji1> JEEB thx for reply
[13:29] <StaRetji1> I am able to decode mpeg2, but throws many errors such as [mpeg2video @ 0x3559f00] mpeg_decode_postinit() failure
[13:29] <JEEB> and as far as I can see there is no --enable-libmpeg2, thus it can be quite safely said that ffmpeg doesn't use libmpeg2 at all
[13:29] <StaRetji1> I am puling mpeg2 ts stream from dreambox satellite receiver, works just fin in vlc, but I have to make it work fine in ffmpeg too
[13:30] <StaRetji1> oh, that is bad news :/
[13:30] <JEEB> not necessarily
[13:30] <JEEB> try current git HEAD ffmpeg
[13:30] <StaRetji1> really?
[13:30] <StaRetji1> I did that
[13:30] <JEEB> with the files you are pulling
[13:30] <StaRetji1> ehm
[13:31] <JEEB> aka "try dumping the stuff into a file and see if it fails there too"
[13:31] <StaRetji1> I pull live stream from satellite receiver
[13:31] <JEEB> if yes, check the trac bug tracker for similar tickets.
[13:31] <JEEB> and if there are none, add one with a sample attached that fails
[13:32] <JEEB> (10-20MB)
[13:32] <StaRetji1> I'm affraid I'm not capable doing it, it is way above my knowledge
[13:32] <JEEB> not really
[13:32] <JEEB> VLC has the record button afaik
[13:32] <JEEB> which dumps the stream into a file :P
[13:32] <JEEB> should be "easy enough", no?
[13:32] <StaRetji1> ehm, yes, but let me read again what you wrote, to understand
[13:33] <StaRetji1> oh, got it
[13:33] <StaRetji1> dump dreambox stream to a file
[13:33] <JEEB> and the ffmpeg trac is over at https://ffmpeg.org/trac/ffmpeg/
[13:33] <StaRetji1> then instead of stream try to open the file
[13:33] <StaRetji1> omw
[13:33] <StaRetji1> thx JEEB
[13:33] <JEEB> yes
[13:34] <JEEB> also if it works with a dumped stream then it might be the input protocol (whatever you're using, http/udp/whatever)
[13:34] <JEEB> getting "samples" for that would be somewhat harder :D
[13:35] <StaRetji1> it is http
[13:35] <StaRetji1> btw, vlc doesn't offer to save it as is
[13:35] <StaRetji1> only convert, if I'm not wrong
[13:35] <JEEB> well, you can have it "convert" without doing anything to it, and mplayer can dump streams, too
[13:36] <StaRetji1> ah, yes, DUmp raw inpu
[13:36] <JEEB> http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html <- mplayer's example is like this btw
[13:38] <StaRetji1> i don't use mplayer
[13:38] <StaRetji1> because I restream this file to rmtp
[13:38] <JEEB> well, I'm just giving out options
[13:38] <JEEB> :P
[13:38] <JEEB> (for dumping samples)
[13:38] <StaRetji1> hehe, lol, well thx
[13:39] <StaRetji1> I appreciate help though
[13:41] <StaRetji1> JEEB, no errors with saved file
[13:41] <StaRetji1> vlc raw dump
[13:42] <StaRetji1> ran with ffmpeg console, no errirs
[13:42] <StaRetji1> what this means?
[13:44] <StaRetji1> I mean, I understand it means it is something with http. in vlc works fine as vlc uses libmpeg2, so I assume if I could make ffmpeg to use libmpeg2 that would be solution
[13:44] <JEEB> I think the problem isn't exactly in the decoder :P
[13:44] <JEEB> it's in the protocol
[13:44] <JEEB> or well, reading crap from http
[13:45] <JEEB> can you pastebin a full log with the command line you used on what happens when you read from http?
[13:45] <JEEB> also, what happens if you ghetto it with curl/wget and piping to ffmpeg?
[13:46] <StaRetji1> yes, moment
[13:48] <StaRetji1> http://pastebin.com/41HbMTnR
[13:49] <StaRetji1> I'm not sure how to pipe it to ffmpeg, but sound like a veryu good idea, might work
[13:49] <JEEB> curl http://10.0.1.18:31344 | ffmpeg -i -
[13:49] <JEEB> something like this?
[13:50] <JEEB> I think curl by default outputs to stdout, and thus you can pipe it to ffmpeg
[13:50] <JEEB> ffmpeg takes input from stdin when input is set to "-"
[13:50] <StaRetji1> got it, I will try it now
[13:52] <StaRetji1> same error with pipe
[13:53] <StaRetji1> curl http://10.0.1.18:31344 | ffmpeg -i "http://10.0.1.18:31344" -re -acodec libfaac -ar 22050 -vcodec libx264 -vpre ipod320 -f flv rtmp://10.0.1.123/live/livestream181792
[13:53] <JEEB> are you sure your encoding is going fast enough?
[13:54] <JEEB> also what's -re ?
[13:54] <StaRetji1> I don't know, I found this example on google
[13:54] <JEEB> lawl
[13:54] <StaRetji1> this worked well with test.ts file I created with vlc
[13:54] <StaRetji1> no errors
[13:54] <JEEB> VLC IIRC had some defaults for libx264 of its own
[13:55] <JEEB> anyways, try -preset:v veryfast
[13:55] <StaRetji1> ok
[13:55] <StaRetji1> I do it now
[13:56] <StaRetji1> ha, it wokrs
[13:56] <StaRetji1> no errirs!!!
[13:56] <StaRetji1> errors lol
[13:56] <JEEB> so I was right
[13:57] <JEEB> you were trying to use preset "medium" of libx264
[13:57] <StaRetji1> can you expmain please
[13:57] <StaRetji1> explain*
[13:57] <JEEB> and your cpu couldn't encode fast enough with that preset
[13:57] <JEEB> so it had to start dropping frames
[13:57] <StaRetji1> got it
[13:57] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset
[13:57] <JEEB> ^ listing of presets
[13:57] <JEEB> pick the slowest that still works for your realtime needs
[13:58] <JEEB> also, see vbv-maxrate and vbv-bufsize
[13:58] <StaRetji1> JEEB thank you so much dude!!!
[13:58] <JEEB> you will need those for streaming
[13:58] <StaRetji1> I really appreciate your help
[13:58] <StaRetji1> thx :)
[13:59] <JEEB> bufsize is basically how much you will be buffering, and maxrate is the maximum average bit rate within that buffer
[14:00] <JEEB> so basically if you set a bufsize of 1200k and maxrate of 300k, it means that if you buffer 1200kb once, and your transfer speed will always be over 300kbps, you will not have to stop for buffering any more
[14:00] <StaRetji1> got it
[14:02] <JEEB> also, you haven't set a rate control mode, and libx264 by default sets it to crf 23, for streaming you usually want to set it to a crf value that looks "good enough"
[14:02] <StaRetji1> hm
[14:02] <JEEB> (lower = more bitrate)
[14:02] <StaRetji1> yes
[14:02] <JEEB> of course, vbv limits will be held in any case
[14:02] <StaRetji1> I will play with the figures, but would gladly use your example
[14:03] <StaRetji1> if you want to share it? :)
[14:03] <JEEB> so if you set a too low crf for your content, it will just end up being limited by the vbv all the time :)
[14:03] <JEEB> well, dunno -- 23 already is a good place to start at
[14:04] <JEEB> if it looks bad, make it lower
[14:04] <JEEB> if it looks good, try making it higher
[14:04] <StaRetji1> Failed to set value 800k for option 'vbv-maxrate'
[14:05] <StaRetji1> Unrecognized option 'vbv-maxrate'
[14:05] <JEEB> heh, seems like vbv-maxrate is maxrate in ffmpeg
[14:05] <StaRetji1> lol, I'm noob, I admit
[14:05] Action: JEEB mostly uses x264 itself
[14:05] <JEEB> and vbv-bufsize is just bufsize it seems
[14:06] <StaRetji1> yes, you are right
[14:06] <JEEB> anyways, that's all you need for streaming: 1) fast enough preset 2) some kind of sane rate control mode (crf or bitrate, I'd usually go with crf) 3) some kind of vbv (both maxrate and bufsize need to be set) according to your needs
[14:07] <StaRetji1> thx once again, thx very much!
[14:07] <JEEB> np
[14:11] <JEEB> also, you can drop the vpre :P
[14:11] <JEEB> you're clearly not encoding for the first ipods
[14:11] <JEEB> lol
[18:01] <ckb> http://pastebin.com/7NGJ7jjJ
[18:01] <ckb> Can someone tell me what's wrong with this?
[18:04] <ckb> It seems like I only get this problem when a certain user runs this command...
[18:08] <ckb> anyone :\
[18:10] <sprzybilla> ckb: try using -minrate 1200k -maxrate 1200k -bufsize 400k
[18:10] <sprzybilla> I think you have to set all of those for a CBR stream
[18:10] <ckb> could it not be related to the stat file?
[18:11] <ckb> and a CBR stream?
[18:11] <sprzybilla> constant bitrate
[18:11] <ckb> ah
[18:11] <ckb> well, when I execute this encoding from my user, I don't have a problem, and it encodes fine
[18:11] <ckb> but when apache runs the encoding, I get the "Error while opening encoder for output stream"
[18:12] <sprzybilla> ahh - interesting
[18:12] <sprzybilla> permissions for the stats file write location maybe?
[18:12] <ckb> probably
[18:12] <sprzybilla> try runnin it as su
[18:12] <ckb> I'll change directory
[18:12] <ckb> I don't have SU access
[18:13] <sprzybilla> if that works you know its permissions for wherever that file is being written
[18:13] <sprzybilla> ahh
[18:13] <ckb> but I am running it as php /absolute/path/ as apache
[18:13] <ckb> and php script.php as my user
[18:13] <ckb> so that's MORE than likely the issue
[18:14] <ckb> wait a second
[18:14] <ckb> I'm already changing it
[18:15] <ckb> & :|
[18:17] <sprzybilla> maybe using the ffmpeg-php extension instead of calling it as a command would work better? http://ffmpeg-php.sourceforge.net/
[18:17] <sprzybilla> sorry, not too familliar with using it from a script
[18:17] <ckb> ahhh
[18:17] <ckb> I was changing it to the current script directory
[18:17] <ckb> not to the tmp directory that is 777'd
[18:17] <ckb> ^__^
[18:18] <sprzybilla> haha, yeah, that might help too. Best of luck!
[18:20] <ckb> thanks spry!
[19:52] <mcayland> hi everyone :)  does anyone have a sample cmdline for converting a video suitable for viewing on an android phone?
[19:53] <mcayland> i've got a sample video from the camera for comparison but can't quite work out the correct voodoo
[20:32] <mbradshaw> I have a question regarding the seeking in ffmpeg that I'd like to make sure I'm doing correctly before I submit a bug report (the last time I submitted a bug report it turned out I was just doing things wrong)
[20:32] <mbradshaw> Anybody familiar with seeking mpeg2video streams?
[22:18] <Mista_D> any way to supress "packet too large, ignoring buffer limits to mux it" while encoding MPEG2 to MP4. I'd like to see any other errors though, so "-v quiet" won't cut it.
[23:16] <Kingsy> guys, what would be a sample command to capture a webcam video stream from /dev/video0 to a file ?
[23:16] <Kingsy> just something basic basic basic..
[23:19] <ubitux> http://ffmpeg.org/ffmpeg.html#video4linux2
[23:20] <Kingsy> ubitux: I didnt think -input_format was a valid flag
[23:21] <Kingsy> for example ffmpeg: failed to set value 'mjpeg' for option 'input_format'
[23:25] <ubitux> it works for me
[23:25] <ubitux> maybe your ffmpeg is too old
[23:25] <ubitux> you can just leave it out anyway, it will just not use the mjpeg source
[23:25] <Kingsy> hmmm what would be a command that would work on all versions? ok
[23:26] <Kingsy> ubitux: so it says [video4linux2 @ 0x136b340] Cannot open video device /dev/video0 : No such file or directory   <-- but   /dev/video0   is the source.. I can open it with vlc
[23:26] <ubitux> the error is pretty explicit though
[23:27] <ubitux> is it a weird webcam?
[23:27] <Kingsy> I know.. but it doesnt really make sense.. if you can open vlc and type /dev/video0 in the source and it works..
[23:27] <Kingsy> ubitux: well I am not sure it is 100% supported.. but it seems to work in everything I have tried it in
[23:28] <ubitux> mplayer tv:// works?
[23:28] <Kingsy> oh it looks like the device had crashed..
[23:29] <Kingsy> weird..
[23:29] <burek> "hmmm what would be a command that would work on all versions? ok" ^^
[23:29] <burek> now, that's called optimism :D
[23:29] <Kingsy> haha
[23:29] <Kingsy> ok soo.. now i get    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
[23:29] <burek> can you please use pastebin.com, to show your command line and its output?
[23:29] <Kingsy> sure
[23:30] <ubitux> i leave it to you burek ;)
[23:30] Action: ubitux &
[23:30] <burek> :beer: :)
[23:30] <ubitux> :applejuice:
[23:30] <burek> ctrl+z && bg
[23:30] <burek> yes, I always forget :)
[23:30] <Kingsy> burek: http://pastie.org/3770714
[23:30] <burek> MPEG1/2 does not support 15/1 fps
[23:31] <burek> your webcam defaults to rawvideo (over usb I guess) and 15 fps
[23:31] <Kingsy> burek: so this webcam does not do anything better than 15fps ?
[23:31] <burek> try: ffmpeg -f video4linux2 -r 30 -i /dev/video0 out.mpeg
[23:31] <Kingsy> or it just defaults to that?
[23:31] <burek> or ffmpeg -f video4linux2 -i /dev/video0 -vcodec libx264 out.flv
[23:31] <burek> it defaults to that
[23:32] <burek> you can query capacity of your webcam using v4l2-ctl
[23:32] <burek> it is in v4l-tools or v4l-utils package
[23:32] <burek> I'm not sure
[23:33] <Kingsy> burek: ok, that worked great... really smooth.. but the quality was pretty terrible.. really blocky.. can we improve that ?
[23:33] <burek> yes
[23:33] <burek> which one did you use
[23:33] <burek> 1st or 2nd?
[23:33] <Kingsy> ffmpeg -f video4linux2 -r 30 -i /dev/video0 out.mpeg
[23:34] <burek> ffmpeg -f video4linux2 -r 30 -i /dev/video0 -b 1000k out.mpeg
[23:34] <burek> that means you want video bitrate to be 1 mbps
[23:35] <Kingsy> ok that isnt half bad..
[23:35] <Kingsy> still a bit blocky...
[23:35] <burek> increase it if you like
[23:35] <Kingsy> how far can you push usb 2.0 ?
[23:36] <burek> I think 480 Mbps
[23:36] <burek> right now you're at Stream #0.0: Video: rawvideo, yuyv422, 640x480, 73728 kb/s
[23:36] <Kingsy> wow.. and I am using 1 ?
[23:36] <burek> you are encoding to 1 mbps mpeg
[23:36] <burek> which is pretty high
[23:36] <burek> but try setting for example
[23:36] <Kingsy> oh ok
[23:36] <burek> 2,3,4 mbps
[23:36] <burek> or use libx264
[23:36] <burek> it's way better
[23:36] <Kingsy> yeah I just tried 2
[23:37] <Kingsy> so I can use    -b libx264 ?
[23:37] <burek> for example -f libx264 -crf 20
[23:37] <burek> without -b
[23:37] <burek> ffmpeg -f video4linux2 -i /dev/video0 -vcodec libx264 -crf 20 out.mp4
[23:37] <Kingsy> Unknown encoder 'libx264'
[23:37] <Kingsy> so I obviously don't have that
[23:38] <burek> did you apt-get install your ffmpeg or compiled
[23:38] <Kingsy> I apt-get
[23:38] <burek> hmh.. what distro
[23:38] <Kingsy> zubuntu
[23:38] <Kingsy> xubuntu**
[23:38] <burek> :D
[23:38] <burek> you can try static build if you like
[23:38] <burek> https://sites.google.com/site/linuxencoding/builds
[23:38] <Kingsy> well I will stick with a standard -b 1000k for now
[23:38] <Kingsy> burek: it looks ok, for testing
[23:39] <burek> ok
[23:39] <Kingsy> burek: one other thing..
[23:39] <burek> x264 is really the way to go
[23:39] <burek> if you want it really good
[23:39] <Kingsy> burek: and if you can get this as easy as you did that.. then I will eat my hat
[23:39] <burek> what
[23:39] <Kingsy> cos I have been trying to do this for 5 days
[23:39] <Kingsy> heh
[23:39] <burek> I hope your hat is made out of chocolate or something sweet :)
[23:40] <Kingsy> I also have a condenser mic plugged into   hw:2   (which I can record from using audacity so I know it works) and I want to add that to the video stream .. is that possible?
[23:40] <Kingsy> I am sick of trying to do with to vlc and mencoder so I was just going to sync and stitch them together seperately
[23:41] <burek> ffmpeg -f video4linux2 -i /dev/video0 -f alsa hw:2 -acodec aac -strict experimental -ab 128k -ac 2 -ar 44100 -vcodec libx264 -crf 20 out.mp4
[23:42] <Kingsy> argh I am getting that Unknown encoder 'libx264' again, can I do this with mpg ? or just avi ?
[23:42] <burek> ffmpeg -f video4linux2 -i /dev/video0 -f alsa hw:2 -acodec aac -strict experimental -ab 128k -ac 2 -ar 44100 -b 1000k out.mp4
[23:42] <Kingsy> unless you know how I can install x264 on ubuntu ?
[23:42] <Kingsy> ok
[23:42] <Kingsy> it says Output #0, alsa, to 'hw:2':
[23:42] <Kingsy> Output file #0 does not contain any stream
[23:42] <burek> you can install it using apt-get install libx264 libx264-dev
[23:43] <burek> can you please use pastebin.com, to show your command line and its output?
[23:43] <Kingsy> sure
[23:43] <Kingsy> http://pastie.org/3770776
[23:44] <burek> my bad
[23:44] <burek> ffmpeg -f video4linux2 -r 30 -i /dev/video0 -f alsa -i hw:2 -acodec aac -strict experimental -ab 128k -ac 2 -ar 44100 -b 1000k out.mp4
[23:45] <burek> -i was missing :)
[23:45] <Kingsy> burek: another different error --> http://pastie.org/3770791
[23:47] <burek> :)
[23:47] <burek> mono mic
[23:47] <burek> ffmpeg -f video4linux2 -r 30 -i /dev/video0 -f alsa -ac 1 -i hw:2 -acodec aac -strict experimental -ab 128k -ac 1 -ar 44100 -b 1000k out.mp4
[23:47] <Kingsy> oh yeah it is mono
[23:48] <Kingsy> burek: it works.. but its out of sync..
[23:48] <Kingsy> this is KINDA the situation I ended up with in mencoder.. but it was ALOT worse than that..
[23:49] <burek> well, since you are not taking the input from the same hardware device
[23:49] <burek> it is kinda difficult to sync
[23:49] <burek> but try playing around with -async and -vsync
[23:49] <Kingsy> yeah I was thinking that..
[23:49] <burek> http://ffmpeg.org/ffmpeg.html#Advanced-options
[23:49] <burek> scroll down a little bit for -vsync/async
[23:50] <Kingsy> burek: saying as though I am capturing from seperate devices.. would you just capture them seperatly using different programs at the same time and sync them afterwards?
[23:50] <burek> your best chance is using same process to capture both if possible
[23:50] <burek> syncing 2 processes is.. well.. interesting :)
[23:50] <Kingsy> burek: I just don't really know what I am doing with this is all
[23:51] <burek> also try switching inputs like:
[23:51] <burek> ffmpeg -f alsa -ac 1 -i hw:2 -f video4linux2 -r 30 -i /dev/video0 -acodec aac -strict experimental -ab 128k -ac 1 -ar 44100 -b 1000k out.mp4
[23:52] <Kingsy> naaa its still miles out of sync
[23:53] <burek> try this: ffmpeg -f alsa -ac 1 -i hw:2 -f video4linux2 -r 30 -i /dev/video0 -ab 128k -b 1000k out.mp4
[23:53] <Kingsy> burek: surely tho, if you just add -async 10 or whatever.. you could be on forever.. it could be ANY number
[23:53] <Kingsy> ok
[23:54] <Kingsy> burek: naaa still really far out of sync
[23:54] <burek> well, I would suggest you to file a bug report
[23:54] <burek> but they are going to ask you to use latest ffmpeg from git
[23:54] <burek> before you submit it
[23:54] <burek> so, if you can, try updating your ffmpeg
[23:55] <Kingsy> is this a bug? I thought it was just a limitation of using two seperate devices ?
[23:55] <ubitux> updating? you mean "using"? :)
[23:55] <ubitux> he is using libav, not ffmpeg :p
[23:55] <burek> isn't libav just a library
[23:55] <ubitux> ;)
[23:55] <ubitux> (are you serious or& ?)
[23:56] <burek> no, I don't know about libav tool
[23:56] <burek> i thought it's libav like lib for audio/video
[23:56] <ubitux> libav is the fork
[23:56] <burek> oh, so what's the diff?
[23:56] <Kingsy> I think this would be easier to just record these seperatly and put them together after or something.. I am just sick of this
[23:57] <burek> Kingsy, you can quickly try with latest static build if you want: http://ffmpeg.gusari.org/static/
[23:57] <burek> just download and run the same command
[23:57] <ubitux> burek: sorry i'm too lazy to enter in long explanation, maybe tomorrow ;)
[23:57] <burek> if it is still out of sync, well..
[23:57] <burek> :)
[23:57] <burek> ubitux, ok :) I'll take a look on Google :)
[23:59] <Kingsy> burek: 1 sec doing it now
[00:00] --- Thu Apr 12 2012


More information about the Ffmpeg-devel-irc mailing list