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

burek burek021 at gmail.com
Fri Nov 1 02:05:01 CET 2013


[01:15] <smjd> why does 'volumedetect' filter lower bit-depth to 32-bit?
[01:21] <smjd> at least it adds lowers dynamic range to about 120dB
[01:22] <smjd> -adds
[01:28] <DrSlony> Hi, how do I get an animated gif to loop through the duration of the mp3 I want to couple it with?
[01:29] <relaxed> try ffmpeg -i audio.mp3 -loop 1 -i animated.gif ...
[01:34] <DrSlony> relaxed it says "option loop not found"
[01:34] <DrSlony> ffmpeg-1.2.4
[01:50] <relaxed> maybe, ffmpeg -i audio.mp3 -loop_input -i animated.gif ...
[01:56] <IsmAvatar> hey guys, I'm on Ubuntu and I'm trying to record my desktop audio (or at least audio from a specific window), but it keeps coming back dead silent. http://pastebin.com/PDt0SH2G If I replace the "hw:0,0" with "pulse", it captures my mic, but still not my desktop audio.
[02:07] <funyun> cbreak: ya there?
[02:59] <IsmAvatar> I'm ultimately trying to record desktop videos, as well, and that much is working, I just can't get ffmpeg to record desktop sounds.
[03:12] <klaxa> IsmAvatar, pulse or alsa? also if you are on ubuntu ffmpeg or avconv?
[03:15] <IsmAvatar> klaxa: not entirely sure. When I tell it -i pulse, it reads from mic, but still no desktop sound. I run the ffmpeg command, although it looks like it may be just avconv's wrapper to encourage you to use avconv instead.
[03:16] <klaxa> then it is avconv, head to #libav then, however, if you select -i pulse start pavucontrol and set the recording stream to your soundcard monitor
[03:17] <klaxa> in the recording tab there should be ffmpeg/avconv listed as a recording instance
[03:18] <IsmAvatar> I just installed pavucontrol a couple minutes ago. Recording tab says "No application is currently recording audio."
[03:21] <klaxa> that's weird
[03:21] <IsmAvatar> oh, my bad, forgot to select -i pulse
[03:23] <klaxa> okay does it correctly if you do -i pulse?
[03:23] <IsmAvatar> k, yeah, I can select my monitor. Actually I have 2 options, one for the HD controller, and one for built-in analog audio stereo, so I've selected the HD one,
[03:24] <IsmAvatar> 2 monitor options, that is
[03:24] <klaxa> well, you should select the one that actually plays back the audio
[03:24] <klaxa> you can see which one that is if you play back a sound (for example music) and check the output devices tab
[03:25] <IsmAvatar> there's only 1 thing listed in output devices, and it's the HD one
[03:25] <klaxa> then that one should work
[03:27] <IsmAvatar> hmm, nope, now it's generating a silent wav from pulse.
[03:28] <IsmAvatar> shouldn't the little volume bar in pavucontrol's recording tab be going up and down as the sound plays?
[03:29] <klaxa> it should
[03:29] <IsmAvatar> also, for -f, do I specify alsa or pulse? Because pulse just gives an error that "pa_simple_new failed: No such entity", but alsa chugs along and records.
[03:29] <klaxa> it does for me at least
[03:30] <klaxa> usually you do ffmpeg -f alsa -i pulse test.flac
[03:30] <klaxa> or something
[03:30] <IsmAvatar> yes. I chose .wav, but that can't affect anything.
[03:31] <IsmAvatar> aha
[03:31] <klaxa> true, well i don't know your exact setup though
[03:31] <klaxa> so... try playing around with that stuff, you'll figure it out eventually, i'm also way past my bedtime
[03:31] <IsmAvatar> It's a different monitor
[03:32] <IsmAvatar> I swear it wasn't there before, lol
[03:33] <IsmAvatar> success! Thanks. Hopefully I can still record from mic simultaneously now. Should be able to figure that out. Thanks a bunch, and good night ;-)
[03:34] <klaxa> oh heh... if you are lucky either someone else can help you with that, or you catch me tomorrow
[03:34] <klaxa> o/
[09:50] <disdi> I am facing some issue with the map command .map x:y - where x is the input file index and y the stream index in that file, both starting at 0.My objective is to get ffmpeg work for 2 video sources and 2 audio sources to direct the output to two different output files(having different audio and different video)-
[09:52] <disdi> I am issuing a command
[09:52] <disdi> ffmpeg \
[09:53] <disdi> -f video4linux2 -r 25 -i /dev/video0 \ -f mjpeg -i http://admin:dlink123@192.168.1.21:80/video/mjpg.cgi \ -f alsa -i plughw:PCH,0 -ar 22050 -ab 64k -strict experimental \ -f alsa -i plughw:CMI8738,0 -ar 22050 -ab 64k -strict experimental \  -map 0:v:0 -map 2:a:0 -map 1:v:0 -map 3:a:0 \ -acodec aac -vcodec mpeg4 \ -y webcam7.mp4 -y webcam8.mp4
[11:08] <cousteau> [off-topic]  so Cisco made the h.264 codec freely available.  What's that good for, since I've been able to see h.264 videos on MPlayer since forever?
[11:08] <relaxed> cousteau: http://lwn.net/Articles/572205/
[11:09] <cousteau> "We plan to open-source our H.264 codec, and to provide it as a binary module that can be downloaded for free from the Internet."
[11:10] <cousteau> I hope those are 2 separate sentences and that I don't have to explain them what open SOURCE means
[11:10] <klaxa> cousteau: firefox and other open-source shit can use it and decode h264 without paying royalties
[11:10] <JEEB> yes, because distributing binaries is what you need the license for
[11:10] <klaxa> something like that
[11:10] <cousteau> (unless, of course, they've edited the binary file with a hex editor manually, and thus the binary IS the source)
[11:10] <cousteau> klaxa, I see
[11:10] <JEEB> the thing will be open source it seems, but you have to grab the binaries from cisco
[11:11] <JEEB> otherwise you have to deal with the licensing stuff yourself
[11:11] <cousteau> so Firefox couldn't use ffmpeg due to royalty issues
[11:11] <zap0> , AND to provide..   thats a logical && ;)
[11:11] <klaxa> same reason firefox on linux doesn't support mp3 in html5 video/audio tags
[11:11] <durandal_1707> who will check what is actually in binary?
[11:11] <klaxa> all this licensing stuff is too complex for me :V
[11:12] <JEEB> it's not really that complex, the terms are rather simple. Sign a paper, and note how many copies you distro. If it goes over x thousand copies, you pay.
[11:12] <cousteau> klaxa, licenses are annoying and boring; it's something more for lawyers than for software engineers
[11:13] <JEEB> it's obviously meant for software you take money from in one way or another, which is why most open source software either only distributes source officially
[11:13] <JEEB> and other projects just set themselves up in places where they're legally "OK"
[11:13] <cousteau> JEEB, what if the copies are tree-shaped?  B,C,D download from A;  E,F,G from B;  H,I,J from C; K,L,M from D;  N,O,P from F...  exponential growth
[11:14] <JEEB> you only have to care about copies you distributed
[11:14] <cousteau> and none of them notices more than 3 downloads (x = 0.003)
[11:14] <cousteau> so...  what did ffmpeg do before?
[11:15] <JEEB> ffmpeg has always only distributed source code
[11:15] <cousteau> implement their own reverse-engineered software?
[11:15] <JEEB> which no-one cares about
[11:15] <JEEB> third parties have always handled binaries
[11:16] <JEEB> anyways, the cisco thing is only useful for things that really care about the licensing business, and didn't want to touch it with a long stick. And wanted something under a more liberal license than LGPL.
[11:16] <JEEB> (or GPL for the encoder part)
[11:16] <JEEB> for most of open source it really doesn't matter much at all :P
[11:19] <cousteau> hm, isn't LGPL liberal enough?  I thought it was the corporation-friendly version of GPL
[11:20] <durandal_1707> liberal for what?
[11:20] <JEEB> well, it wouldn't be for Firefox f.ex. tho, since they let you do more than LGPL lets you to do with their licensing
[11:21] <cousteau> such as?
[11:21] Action: cousteau checks the website for choosing licenses
[11:21] <cousteau> http://choosealicense.com/ - this one
[11:24] <cousteau> is there a channel for license discussion?
[13:55] <sspiff> Hi, I'm trying to extract dvb subtitles from an mpeg2 stream, but I can't seem to get it to work
[13:56] <sspiff> ideally, I'd want to extract them as bitmaps
[13:57] <sspiff> I'm using `ffmpeg -i input.ts -map 0:p:145:3 -f image2 foo%03.jpg`, but obviously jpeg isn't supported as an output format for subtitles
[14:02] <ubitux> sspiff: http://trac.ffmpeg.org/ticket/2024
[14:02] <ubitux> tl;dr: broken since forever, no one fixed it yet
[14:02] <ubitux> (patches welcome...)
[14:09] <sspiff> ubitux: I see, thanks for the swift and specific reply :)
[14:09] <sspiff> I'll be back in half an hour with more questions :)
[14:15] <sinn3r> hi, i need a little help to remove interlacing while converting a mp4 to a mov. i've tried -deinterlace and -vf yadif to no avail, the -ilme from the doc is not a valid option. i am using ffmpeg version 2.0.2
[14:31] <plm> Hi all
[14:33] Last message repeated 1 time(s).
[14:38] <IsmAvatar> klaxa, you here?
[14:43] Last message repeated 1 time(s).
[14:43] <IsmAvatar> oops, sorry
[14:43] <sinn3r> durandal_1707: http://pastebin.com/2PXGDuJb
[14:58] <Kn0wOne> I am having difficulties compiling  ffmpeg on LinuxMint15 for Serviio.  Have tried instructions on both web sites and it never compiles correctly.  Is there a dummies guide or step buuet proof guide for performing this procedure?
[15:01] <Kn0wOne> Thanks.
[15:07] <sspiff> ubitux (or anyone): So if I understand correctly, dvbsub input handling is broken at the moment?
[15:08] <ubitux> dvb sub are not well demuxed (or remuxed?) currently
[15:08] <sspiff> is there an issue or a wiki page or something where the current problems/state can be read?
[15:09] <ubitux> the trac url i gave you
[15:09] <ubitux> and see related ticket in one of the comment
[15:09] <ubitux> also: http://trac.ffmpeg.org/query?status=new&status=open&status=reopened&keywords=~dvbsub&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=component&order=priority
[15:10] <ubitux> i was willing to fix it but& ENOTIME
[15:10] <ubitux> also, i have no actual direct interest in it
[15:11] <ubitux> ...and most dev keep themselves away from the subtitles issues
[15:11] <ubitux> help welcome
[15:12] <sspiff> ubitux: I'll consider it, if I manage to figure out what's going wrong :)
[15:12] <ubitux> about outputting bitmap subtitles to pictures that could be nice; we currently have a enable-yourself-code in dvdsub code to do such thing, but that would be nice to have it generic
[15:16] <sspiff> I'm actually tasked by my employer to get this output-to-images thing, but they expected it to be present in some open source library already. If I can convince them to assign me the project & let me fix it in ffmpeg, I could solve my own ENOTIME issue for this.
[15:20] <IsmAvatar> I'm on Ubuntu and trying to get desktop and mic sound recorded. -i pulse was capturing mic before, and using pavucontrol I could get it to capture desktop, but now I can't figure out how to get mic too.
[15:21] <IsmAvatar> Is there a hw:*,* for it? lol
[16:44] <krokodilerian> streaming rtmp question (streaming to twitch.tv): looking at netstat, I see that ffmpeg is not reading from the socket and some stuff accumulates in the buffer, looking with wireshark, it's some kind of in-band ack. how do i fix that, it would be a problem for longer streams, afaik, is this something that librtmp, or in ffmpeg itself?
[17:36] <IsmAvatar> I'm trying to record both mic and desktop on Ubuntu. I've got mic working, and I can use arecord to record desktop, but how do I translate that to ffmpeg -i?
[17:37] <Mavrik> use x11 grab for video and alsa input for audio
[17:37] <Mavrik> check documentation for both protocols :)
[17:37] <IsmAvatar> I mean audio for both
[17:37] <Mavrik> so you want to merge audio?
[17:38] <IsmAvatar> yes
[17:38] <IsmAvatar> I assume I'd just list two -i flags, but I don't know what the desktop one would be
[17:39] <Mavrik> IsmAvatar, iirc -f alsa -i hw<id>,<device> should work for ALSA
[17:39] <Mavrik> ffmpeg -f alsa -i hw0,0 <output params>
[17:39] <Mavrik> you'll probably have to use the amix filter to merge audio from mic and desktop into a single stream
[17:40] <IsmAvatar> I assume you mean hw:0,0
[17:40] <Mavrik> mhm
[17:41] <IsmAvatar> seems it's just silence on that line.
[17:41] <Mavrik> well, the ID probably isn't correct then :P
[17:42] <Mavrik> I assume you KNOW which device and subdevice ID you need for alsa ;)
[17:42] <IsmAvatar> nope ^_^
[17:43] <IsmAvatar> I know I can just specify -i default or -i pulse to get the mic
[17:43] <IsmAvatar> and I know that I can use pavucontrol to remap pulse to the desktop audio.
[17:44] <Mavrik> then you should probably use pulse, not alsa protocol :)
[17:44] <IsmAvatar> that fails pretty hard. pa_simple_new failed: No such entity
[20:41] <brain0> does anyone have experience streaming to samsung TVs? my TV keeps saying "video codec not supported" when I select libx264 (mpeg2video works)
[20:41] <brain0> however, I can play h264 videos from hard drive or via dlna
[20:42] <brain0> anything regarding ffmpeg options I should try?
[20:45] <tg2> anyone know of any alternatives to wowza for generating hls segments on-the-fly from a source mp4?
[20:48] <llogan> tg2: http://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment
[20:49] <llogan> i mean http://ffmpeg.org/ffmpeg-formats.html#hls-1
[20:56] <tg2> this produces the segments from the mp4
[20:56] <tg2> and writes the m3u8 along with the .ts segements, right?
[20:57] <tg2> is there something that does this live?
[20:57] <tg2> without storing a second copy of everythign in .ts files on disk?
[20:58] <tg2> essentailly it has to produce the m3u8 file based on the mp4's keyframes
[20:58] <tg2> then produce the .ts file from the mp4 when the client requests it
[20:58] <tg2> Is there a way to get ffmpeg to only generate the m3u8?
[20:59] <tg2> i can probably wrap ffmpeg with a node server that will create the .ts chunks based on offset
[21:01] <llogan> i'm not sure
[21:01] <llogan> those two links are your best bet
[21:05] <tg2> ah, didn't check the firs tone
[21:05] <tg2> thx
[21:05] <tg2> i thought the second one was a correction for the first
[21:22] <brain0> okay, solved almost all my problems but one
[21:22] <brain0> when running ffmpeg -f x11grab and running a fullscreen video or opengl game, the screen sometimes flickers
[21:43] <tg2> http://nginx.org/en/docs/http/ngx_http_hls_module.html
[21:43] <tg2> found this instead
[21:43] <tg2> goodbye wowza
[00:00] --- Fri Nov  1 2013


More information about the Ffmpeg-devel-irc mailing list