[Ffmpeg-devel-irc] ffmpeg.log.20120701
burek
burek021 at gmail.com
Mon Jul 2 02:05:02 CEST 2012
[01:30] <mikatalk> hi ffmpegers!
[01:30] <mikatalk> i have a question for the bravest! :)
[01:31] <mikatalk> i m having issues encoding a serie of argb bytearray to video, could someone help me with the input settings?
[01:31] <mikatalk> that would be really appreciatted, + i might be able to keep my job :)
[01:32] <mikatalk> nap time i guess?
[01:32] <iive> what is the problem?
[01:32] <mikatalk> hey hey
[01:33] <mikatalk> i m exporting images from a Air app on linux
[01:33] <mikatalk> exporting png or bmp from air is really heavy at encoding the bytearray
[01:33] <mikatalk> so i decided to export the bytearray from BitmapData.getPixels() directly to a file
[01:33] Action: iive have no idea what air is.
[01:34] <mikatalk> AIr is the flash platform for desktop
[01:34] <mikatalk> flash basically
[01:34] <iive> aha.
[01:34] <mikatalk> but some cool feature to run command line and stuff directly from it
[01:35] <mikatalk> anyways, long story short, I have those frames render and i can decode them with imagick but ffmpeg is more tricky
[01:36] <mikatalk> can i show you my Image Magick command hoping you could guide me to same stuff in ffmpeg?
[01:36] <Lydia_K> hey guys, I've been trying to get some ffserver streaming working all day, I can't seem to find this answer on the web, and I've tried multiple different versions of ffmpeg, but it doesn't seem to be writing the headers despite me specifying flags +global_header for both audio and video
[01:36] <mikatalk> here it goes :)
[01:36] <mikatalk> convert -depth 8 -size 640x380 rgba:frame_280.argb -color-matrix "0 1 0 0, 0 0 1 0, 0 0 0 1, 1 0 0 0" -background black rendered.jpg
[01:37] <mikatalk> so this is Imagick, anyone knows how to do similar with ffmpeg?
[01:38] <mikatalk> i know it s saturday but comon people :) a little help would be great
[01:39] <mikatalk> lydia what s your issue?
[01:39] <Lydia_K> Codec for stream 0 does not use global headers but container format requires global headers
[01:39] <mikatalk> at least i got it to install maybe i coul help you
[01:39] <mikatalk> ha& nevermind...
[01:39] <Lydia_K> is what I get when I try to connect to the stream, it's not writing the headers for some reason, but I have the option in the config file which is supposed to force it to write the headers
[01:40] <iive> mikatalk: i'm not good with the cli ffmpeg, I though you were using the encoder directly from applications.
[01:41] <mikatalk> my goal is to use from an app, but my first step would be to get it run in CLI first
[01:41] <sparo> hi, i'm trying to compile ffplay (and i compiled sdl-1.2.15 allready) on windows with mingw, but the compiled .exe binary don't execute and don't show ANY output, any idea ?? :|
[01:41] <iive> anyway, is convert depth 8 for 8 bit per component, or for 8bpp palette mode?
[01:41] <mikatalk> a bunch of frames into a video file
[01:41] <iive> jpg don't have palette afair.
[01:41] <mikatalk> my air app will be streaming a bitmap bytearray via socket
[01:42] <mikatalk> not even sure
[01:42] <mikatalk> i think 8 bit
[01:42] <mikatalk> do you want me to see what happen with other depth?
[01:42] <iive> mikatalk: ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg ; this is the standard form for converting images to video
[01:43] <iive> now, I'm not sure if it supports multiple raw files. I'll have to look it up.
[01:43] <mikatalk> ok but how to tell your sending raw image data (no header) and it s ARGB
[01:43] <mikatalk> hm
[01:44] <iive> yes, the black background may need somebody more skilled. I know ffmpeg supports alpha channel pixel formats, not sure if there is video filter than can manipulate them.
[01:44] <iive> than/that
[01:45] <mikatalk> i won t need background, all my images should be opaque anyways
[01:45] <mikatalk> ok i m gonna give it a try and brb
[01:48] <mikatalk> i get an error :(
[01:48] <iive> image2 seens to support raw images, not sure how to specify the parameters (format, width, height). keep looking up.
[01:48] <mikatalk> Invalid pixel format string '-1'
[01:48] <mikatalk> Error opening filters!
[01:48] <mikatalk> ok that definitely seem to get further! thanks a lot
[01:48] <iive> IL il
[01:50] <iive> "pixel_format" "video_size" and even "framerate"
[01:52] <alyawn> is the h264 decoder threaded by default when used from libavcodec?
[01:52] <iive> "-s 640x380" seems to be the same as "video_size"
[01:54] <iive> you may want to rename your files so they end up with .raw
[01:55] <mikatalk> ok
[01:55] <Lydia_K> huh.. I don't understand, even running this: avconv -i pi_visuals1-2.avi -vcodec libx264 -y tmp.mp4
[01:55] <Lydia_K> gives me a broken file with no headers..
[01:56] Action: Lydia_K is starting to realize she's been barking up the wrong tree trying to fix ffserver
[01:57] <mikatalk> i arbitrarily called them .argb do you think it matters?
[01:58] <iive> mikatalk: you may need to specify vcodec otherwise. have in mind, the placement of options does matter.
[01:58] <mikatalk> but how do i know what codec i need?
[01:59] <iive> so if you place it at the start it would mean, input codec, if you place it at the end, it would mean encoder.
[01:59] <mikatalk> my data is a raw array of argb uint
[01:59] <iive> rawvideo I guess.
[01:59] <mikatalk> but they are frames
[01:59] <mikatalk> in each file
[01:59] <iive> yes, image2 reads separate files.
[01:59] <mikatalk> i have over 2000 of those .argb files to render into a video
[01:59] <iive> and makes then into a packet stream.
[01:59] <mikatalk> oh ok sorryi m a bit confused
[02:00] <iive> then they are fed to a decoder, rawvideo, that doesn't do anything.
[02:00] <iive> then it goes through video filter system (if there are filters).
[02:00] <iive> then it goes into encoder.
[02:00] <mikatalk> ok so i got ffmpeg -f image2 -s 640x380 -i frame_%d.argb a.mpg so far
[02:01] <iive> then the packets from the encoder goes into muxer that writes them into a file.
[02:01] <mikatalk> about to switch them to .raw
[02:01] <mikatalk> ok
[02:01] <iive> you need -pixel_format argb (i hope).
[02:01] <mikatalk> crossing my fingers!
[02:02] <mikatalk> i get Unrecognized option 'pixel_format'
[02:03] <mikatalk> ffmpeg -f image2 -pixel_format argb -s 640x380 -i frame_%d.raw a.mpgn
[02:04] <mikatalk> omg !!! pix_fmts
[02:06] <mikatalk> IO... argb 4 32
[02:06] <mikatalk> ??
[02:08] <mikatalk> this is weird it displays a long list of pixels formats but stop right there with no error and no render &
[02:08] <mikatalk> admins-MacBook-Pro-2:capture_output mika$ ffmpeg -f image2 -pix_fmts IO... argb -s 640x380 -i frame_%d.raw a.mpg
[02:12] <iive> mikatalk: i told you i'm not good at cli. -pix-fmts just prints the supported pixel formats.
[02:12] <mikatalk> yeah you re right i just figured& i m obviously no bueno either...
[02:12] <mikatalk> but you ve helped a lot
[02:13] <mikatalk> making progress here i appreciate
[02:18] <mikatalk> ok this seems to work
[02:19] <mikatalk> ffmpeg -f image2 argb -s 640x380 -i frame_%d.raw video.mpg
[02:19] <mikatalk> but i have the follwoing eror
[02:19] <mikatalk> frame_%d.raw: No such file or directory
[02:19] <mikatalk> any clue?
[02:21] <iive> sorry, argb may be parsed as something else, not what you want it to be.
[02:21] <iive> also, %d should be used as printf format, aka frame0.raw
[02:22] <iive> one advice. try to make it work with png, then move to the raw.
[02:22] <iive> having less unknowns this way.
[02:23] <mikatalk> frame_2.raw: Invalid data found when processing input
[02:23] <mikatalk> ':(
[02:49] <mikatalk> hey i m getting the folowing
[02:49] <mikatalk> Could not find codec parameters (Video: [0][0][0][0] / 0x0000, argb)
[02:49] <mikatalk> does anyone know what that could mean?
[02:52] <Lydia_K> damn... well I fixed my issue with not writing the headers when I write to a file, I can now produce an mp4 file that plays properly, but I still have the same "no codec headers" error from ffserver..
[02:56] <mikatalk> OK it works!! Thanks a lot IIVE!!
[02:56] <mikatalk> ffmpeg -f image2 -pix_fmt argb -vcodec rawvideo -s 640x380 -i frame_%d.raw -s 640x380 aavideo.mpg
[02:58] <iive> great :)
[03:00] <mikatalk> it can render faster than live playing, this is huge!
[03:00] <mikatalk> thanks a lot!
[03:13] <Lydia_K> no ideas on this whole "Codec for stream 0 does not use global headers but container format requires global headers" ?
[03:13] <Lydia_K> I'm running out of things to try here..
[03:25] <iive> n8 ppl.
[03:26] <iive> Lydia_K: your descriptions are quite sketchy. but i'm even less familiar with ffserver.
[03:28] <Lydia_K> well I don't want to flood the channel if no one has any experience with ffserver :p
[03:39] <teratorn> Lydia_K: is that causing a problem?
[03:39] <teratorn> Lydia_K: I think we ignore that in a system here..
[03:39] <teratorn> what codecs are you running?
[03:39] <Lydia_K> libx264 and libmp3lame
[03:40] <teratorn> what container?
[03:40] <Lydia_K> what do you mean your are ignoring that? has development of ffserver come to an end? (I saw a few people saying something like that in a few threads)
[03:40] <Lydia_K> I was trying for mp4
[03:40] <teratorn> i'm not using ffserver
[03:41] <teratorn> weve got some webm experiments
[03:41] <teratorn> and ignore that error
[03:41] <Lydia_K> I've also got the error "time base not set"
[03:41] <teratorn> *warning
[03:41] <Lydia_K> and "Error writing output header"
[03:41] <teratorn> that could be a real problem
[03:42] <teratorn> bbl good luck
[03:42] <Lydia_K> haha, thanks :)
[03:42] <Lydia_K> I'll need it :p
[10:43] <automatical> hey guys, got a quick question - is it possible to use ffmpeg to embed inside another video, for example, a video plays on the bottom left of another video?
[10:50] <zap0> picture in picture
[11:45] <burek> automatical, yes it is, use overlay video filter
[11:47] <burek> Lydia_K, did you try -flags +global_header
[11:47] <burek> or AVOption +global_header
[11:48] <burek> AVOption flags +global_header
[13:41] <automatical> burek: awesome, cheers :)
[13:42] <burek> :beer: :)
[16:50] <Lydia_K> burek: I have tried both AVOption flags +global_header and AVOption +global_header
[16:53] <burek> Lydia_K, the first one
[16:53] <Lydia_K> I did not try -flags, I'll do that now
[16:56] <burek> Lydia_K, AVOptionAudio flags +global_header
[16:56] <burek> AVOptionVideo flags +global_header
[16:56] <burek> my bad
[16:57] <Lydia_K> same problem, alsong with "time base not set" and "Error writing output header"
[16:58] <burek> btw, your chances are better using vlc
[16:58] <burek> ffserver is unstable right now
[16:58] <burek> and needs a lot of rewrite
[16:58] <Lydia_K> dang...
[16:59] <Lydia_K> vlc seems to such an encoding, it uses practically twice as much CPU as ffmpeg
[17:00] <burek> no it doesn't
[17:01] <burek> maybe you did something wrong
[17:01] <burek> and tell it to do it double
[17:01] <burek> how did you use ffmpeg? which cmd line did you use
[17:02] <Cyp_> Hi, what does it mean when trying to use -f x11grab, and I get "Option channels not found." printed to the console, underlined, in dark red? (Most of ffmpeg's errors are in bright red, bold, such as "Unrecognized option 'squirrels'", and I wasn't using -channels on the command line, whatever that would mean.)
[17:02] <Lydia_K> actually, now that you mention it, ffserver never actually got to the proper encoding part since it wouldn't connect the stream
[17:03] <burek> well, what do you need to accomplish?
[17:03] <Cyp_> The exact same command line used to work, but now doesn't anymore, after upgrading some things in the system (don't know which things).
[17:03] <burek> Cyp_, can you please use pastebin.com, to show your command line and its output?
[17:04] <Lydia_K> I'm attempting too pull video from a capture card, encode it into h264, and stream it
[17:05] <burek> Lydia_K, well there are a lot of examples for that thing on vlc wiki
[17:05] <burek> so check that out
[17:05] <Lydia_K> I've had this working with an older version of vlc, but that version had a bug that forced the framerate to 25 frames per second and made it aweful
[17:05] <Cyp_> burek: http://pastebin.com/hWQJqdY0 , but the last line is dark red and underlined, which pastebin (obviously) doesn't show.
[17:05] <Lydia_K> Oh believe me, I have burek, I was trying to reimpliment on ffserver/ffmpeg as it's generally a more solid platform (at least in my experience)
[17:06] <burek> cyndis, your cmd line is wrong
[17:06] <burek> consult the ffmpeg docs first
[17:06] <burek> section "Syntax"
[17:06] <Lydia_K> I appreciate your help burek :)
[17:06] <burek> Lydia_K, well
[17:07] <burek> the most simple example is: vlc v4l2:///dev/video0 --sout='#transcode{vcodec=h264}:std{mux=ts,dst=remoteip:port}'
[17:07] <Cyp_> burek: Cyp_, not cyndis, I assume? Is it obvious which specific part is wrong, so I know which part to read?
[17:07] <burek> yes Cyp_
[17:08] <burek> well, -f is usually followed by the -i
[17:08] <burek> in your case it's not
[17:08] <burek> so you canceled your first -f
[17:08] <burek> with 2nd -f
[17:09] <Cyp_> Didn't see there were two -f's, and didn't know order could make a difference.
[17:09] <burek> oh man..
[17:09] <burek> you really should first read the docs, trust me
[17:09] <burek> it will save you days
[17:09] <Cyp_> I've looked at the docs, and figured that searching for command lines that work would save me weeks.
[17:09] <burek> or that
[17:10] <burek> The generic syntax is: ffmpeg [global options] [[infile options][-i infile]]... {[outfile options] outfile}...
[17:10] <Lydia_K> hrmm..
[17:10] <Lydia_K> I'll have to do some testing
[17:10] <burek> this means: ffmpeg -f ... -i ... -f ... -i ... output.avi
[17:10] <burek> also Lydia_K you might check out #videolan channel :)
[17:12] <Lydia_K> Well, if the ffmpeg guys are telling me to stick with vlc, then perhaps I should :p
[17:12] <burek> Cyp_, also you can look here: http://ffmpeg.gusari.org/viewtopic.php?f=25&t=594
[17:12] <Cyp_> After rearranging to "ffmpeg -f x11grab -i ':0.0+893,23' -ac 2 -r 30 -s 1024x768 -vcodec libx264 -vpre lossless_ultrafast -threads 0 -f alsa -acodec pcm_s16le output.mkv", it says "File for preset 'lossless_ultrafast' not found" instead.
[17:13] <burek> Cyp_, your -ac 2 is misplaced
[17:13] <burek> the order of options DOES matter
[17:13] <burek> Lydia_K, it's just easier, trust me.. I've lost months on ffserver..
[17:13] <burek> and I wouldn't suggest it if it wasn't the case really..
[17:14] <Lydia_K> :p
[17:14] <Cyp_> Same error with "ffmpeg -f x11grab -i ':0.0+893,23' -r 30 -s 1024x768 -vcodec libx264 -vpre lossless_ultrafast -threads 0 -f alsa -ac 2 -acodec pcm_s16le output.mkv". The http://ffmpeg.gusari.org/viewtopic.php?f=25&t=594 link shows .flv as the output, which doesn't sound like the best format.
[17:14] <burek> Cyp_, take a look at the link I gave you
[17:14] <Lydia_K> I know the feeling... I'be been battling with this setup on and off for months myself
[17:14] <Lydia_K> always so close, and yet always so far..
[17:14] <burek> me too..
[17:14] <burek> along the way found several segfaults
[17:15] <Lydia_K> >.<
[17:15] <burek> and got replies from some developers to check out vlc myself
[17:15] <burek> until that thing is rewritten
[17:15] <burek> it's obviously in a bad shape :(
[17:16] <Lydia_K> tell me about it.. I've got six different versions of ffmpeg built here, all giving slightly different results, sometimes one version won't work at all, or will segfault :p
[17:16] <burek> :)
[17:16] <burek> at least it's never boring ^^
[17:17] <Cyp_> Changing it to "ffmpeg -f x11grab -i ':0.0+893,23' -r 30 -s 1024x768 -vcodec libx264 -threads 0 output.mkv", throwing out the audio options (thought it used to complain if I didn't give audio options, despite not wanting anything to do with audio), and throwing out the "-vpre lossless_ultrafast", seems to work. Don't know whether it's still lossless.
[17:17] <burek> Cyp_, 2 things.. your answer is on that link..
[17:17] <burek> so read it
[17:17] <burek> 2nd, use the pastebin
[17:18] <Lydia_K> burek: LOL!
[17:19] <Lydia_K> I'll check out the #videolan channel, thanks again burek
[17:19] <burek> :beer: :)
[17:19] <Lydia_K> but I think my box just doesn't have the horsepower for this..
[17:20] <Lydia_K> burek: hahaha, after working all yesterday got drunk in front of the computer and passed out *DEFEATED*
[17:20] <burek> Lydia_K, well, check out also options like -crf -preset -tune
[17:20] <burek> they map directly to x264 options (same name)
[17:20] <burek> so you can read about them: x264 --help
[17:20] <burek> and fine tune your encoding
[17:20] <burek> so it can work on your machine
[17:21] <Lydia_K> sweet man, thanks! :)
[17:21] <burek> :martini: :))
[17:22] <Lydia_K> 'll mess with vlc some more before I bother the #videolan channel :)
[17:22] <burek> ok :)
[17:22] <Lydia_K> gah.. and this new install + fluxbox has that crazy input issue that drives me nuts.. I need to figure out what that is and fix it..
[17:22] <Cyp_> burek: Seems to work now, thanks. (Horribly laggy, but my system is currently horribly laggy whether or not I'm recording video, so it's probably unrelated. Since it says -preset ultrafast is for slow computers, I'll leave it off for now, then.) Anyway, thanks.
[17:23] <Lydia_K> like, the window has focus, but until I hit a key it doesn't actually take input, so I lose the first letter of whatever I type if I'm not careful.
[17:23] <Lydia_K> anyway, different issue ;)
[17:23] <burek> Cyp_, well 1st step is capture and then when you capture it, then re-encode to whatever you want over the night :)
[17:24] <burek> Lydia_K, I have no idea what are you talking about :)
[17:24] <Lydia_K> burek: window manager woes :p
[17:24] <Lydia_K> no worries, just an odd issue I've experienced before which is *really* annoying
[17:25] <Lydia_K> but totally off topic for this channel! *shuts up now*
[17:25] <Cyp_> burek: Can reencode slightly faster than real-time, but I'll still leave it as a seperate step for now. (At least, I could last time I tried, don't know if my reencoding command line will still work.)
[17:26] <burek> :)
[17:26] <Cyp_> :
[17:26] <burek> Cyp_,
[17:26] <burek> 1st time leave it as ultrafast and lossless
[17:27] <burek> to not overuse your cpu
[17:27] <burek> while capturing
[17:27] <burek> when you finish capturing
[17:27] <burek> use -crf and -preset slow
[17:27] <burek> to encode it to something you like
[17:27] <burek> but it will take some time, so I said "over the night" :)
[17:32] <ozone89> hello!
[17:32] <ozone89> i'm trying to split a m2ts file, but i get video only
[17:32] <ozone89> ffprobe result and CLI line here http://pastebin.com/dFbThkVd
[17:33] <burek> ozone89, can you please use pastebin.com, to show your command line and its output?
[17:33] <ozone89> burek, pasted one line above yours :D
[17:33] <burek> ozone89, if you can't, then don't expect any help
[17:33] <ozone89> <ozone89> ffprobe result and CLI line here http://pastebin.com/dFbThkVd
[17:34] <burek> full uncut result
[17:34] <burek> not your cherry pick
[17:34] <burek> you left out all the important things
[17:34] <ozone89> i just skipped the config flags
[17:34] <ozone89> gimme a sec
[17:34] <ozone89> here it is http://pastebin.com/bGCJzRxx
[17:35] <burek> that command is just fine
[17:36] <ozone89> yup, found somewhere, but i get no audio
[17:36] <burek> ffprobe won't ever give you any audio lol
[17:37] <burek> do you know what ffprobe is for?
[17:38] <ozone89> yes, i know what is for, in fact, last line of ffprobe gives me audio INFO, while the CLI line is ffmpeg
[17:38] <burek> where do you ffmpeg in your paste? :)
[17:38] <burek> you see*
[17:38] <ozone89> last line
[17:38] <ozone89> line 20 of the pastebin
[17:38] <burek> oh man..
[17:39] <burek> you really don't get it easily
[17:39] <burek> let's go again...
[17:39] <burek> ozone89, can you please use pastebin.com, to show your command line and its output?
[17:40] <ozone89> running command
[17:49] <ozone89> here it is http://pastebin.com/3eWwRmB4
[17:50] <burek> it took you that long? :)
[17:50] <ozone89> yes and no, had to clean the blank spaces form output to make it readable :P
[17:50] <burek> well the command looks just fine
[17:51] <ozone89> yet i have no audio
[17:52] <ozone89> do you want a paste of the ffplay output?
[17:52] <burek> well, also, your ffmpeg is 6 months old
[17:52] <burek> so you might update it
[17:52] <burek> if the updated ffmpeg also doesn't produce the audio correctly
[17:52] <burek> then you can report a bug
[17:53] <ozone89> ok, i'll think about
[17:53] <ozone89> now i'll try an experiment, let's see if putting "flac" in acodec gives me audio...
[17:54] <ozone89> at least i'll have lossless easy-re-encodable sound :)
[18:00] <ozone89> ok, using m2ts container doesn't work BUT mkv does, so I guess it's ok with me :D
[18:01] <ozone89> burek, while encoding, ffmpeg outputs this line:
[18:01] <ozone89> Stream #0:1: Audio: flac, 48000 Hz, stereo, s16, 128 kb/s
[18:01] <ozone89> what is the 128 kb/s field for? that's not the encoded stream bitrate, right?
[18:10] <sparo> hi, i'm trying to compile ffplay (and i compiled sdl-1.2.15 allready) on windows with mingw, but the compiled .exe binary don't execute and don't show ANY output, any idea ?? :|
[18:11] <sparo> i configured ffmpeg with ./configure --enable-libopus
[18:30] <rik316> When is the nb_streams member of an AVFormatContext structure actually set?
[18:33] <yx> Hello
[18:33] <yx> i have a problem when recording from pulseaudio
[18:33] <yx> Using the solution here: http://ubuntuforums.org/showthread.php?t=1392026
[18:34] <yx> The error (2 lines so i decided not to use a pastebin for it)
[18:34] <yx> [alsa @ 0x62e1a0] cannot open audio device pulse (No such file or directory)
[18:34] <yx> pulse: Input/output error
[18:47] <Kate> Greets, what are ya'lls opinion on php-ffmpeg? (PHP module)
[18:48] <burek> yx, can you please use pastebin.com, to show your command line and its output?
[18:48] <burek> Kate, what exactly do you need
[18:49] <Kate> Just wasn't certain if you'd recommend the use of php-ffmpeg. A friend is having a hell of a time compiling it so I was wondering.
[18:50] <burek> what do you need it for
[18:52] <yx> burek: here: http://pastebin.ca/2166099
[18:53] <burek> yx, you don't have pulse installed
[18:53] <burek> use -i hw:0 instead
[18:53] <burek> and type arecord -l
[18:53] <burek> (small L)
[18:53] <Kate> Website to convert videos on demand based on user agent.
[18:53] <burek> to get the list of alsa recording devices you can use
[18:53] <yx> wait
[18:53] <yx> ps aux | grep pulseaudio
[18:54] <yx> oops, thought this was the terminal
[18:54] <burek> ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM pulse
[18:54] <yx> anyway, that command shows pulseaudio is running
[18:54] <burek> then your ffmpeg wasn't compiled with pulse
[18:54] <burek> either way that won't work for you
[18:54] <burek> try what I suggested
[18:54] <yx> okay
[18:54] <burek> Kate, you can always use shell_exec() or exec()
[18:54] <burek> and call ffmpeg directly
[18:54] <burek> no need for php-ffmpeg
[18:58] <yx> burek: it records successfully but the output does not have audio
[18:58] <Kate> The complaint that I heard over *exec is that SIGCHLD, and SIGINT and SIGQUIT will be ignored.
[19:01] <burek> yx, can you please use pastebin.com, to show your command line and its output?
[19:02] <burek> also, yx, did you use alsamixer
[19:02] <burek> to check if you are recording from the correct device
[19:02] <burek> and it is not muted, etc
[19:02] <yx> wasn't that pastebin.ca link okay?
[19:02] <burek> Kate, if you use exec() and shell_exec() you can control processes how you like
[19:02] <burek> no need for sigs
[19:02] <burek> yx, with pulse?
[19:03] <yx> ooh you mean the new command line
[19:03] <burek> well if it works with pulse too
[19:03] <burek> then configure your pulse
[19:03] <burek> :)
[19:06] <yx> it does not work with pulse.
[19:06] <yx> Here is the commandline and the output of the hw:0 recording
[19:07] <yx> http://pastebin.com/qaaB14sE
[19:07] <burek> your output looks fine
[19:07] <burek> you need alsamixer
[19:07] <burek> to check if you are getting the input from the correct device
[19:08] <yx> hmm
[19:08] <yx> alsamixer shows 3 devices:
[19:08] <yx> "-": pulseaudio
[19:09] <burek> well, use <tab> to switch to recording devices
[19:09] <yx> "0": my sound card which my speakers are connected to
[19:09] <burek> find the one you need
[19:09] <burek> and <space> to select it
[19:09] <yx> "1": HDMI output
[19:09] <burek> up/down to volume up/down
[19:09] <burek> and F6 to change the device
[19:09] <burek> that's all
[19:09] <burek> then repeat your ffmpeg cmd
[19:09] <burek> with correct -i hw:<number>
[19:10] <burek> (the number of the audio card that you get using: arecord -l)
[19:10] <burek> small L
[19:11] <yx> the output of arecord -l: http://pastebin.com/cbKFk5i4
[19:13] <yx> hw:0 must be right
[19:13] <yx> also i made sure nothing is muted in alsamixer
[19:17] <yx> burek: should i try to compile ffmpeg myself with pulse support?
[00:00] --- Mon Jul 2 2012
More information about the Ffmpeg-devel-irc
mailing list