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

burek burek021 at gmail.com
Sun May 26 02:05:01 CEST 2013


[00:00] <maep> durandal11707: where is it reported? i've found nothing in avformat.h
[00:00] <maep> but maybe i've missed it
[02:42] <p4plus2> so lately I have been having problems with ffmpeg not running up to par and I am pretty sure it has to do with the way it was configured
[02:42] <p4plus2> http://www.p4plus2.pastebay.net/1234580  Here are the differences present between the two builds, would anybody have a guess as to which option is causing the second build to cap at 12FPS when recording vs 30+ I get with the manual build?
[02:43] <p4plus2> off hand I don't see what would cause such a large difference, I suppose it is also worth mentioning that my CPU usage only goes up to about 14% with the system version (about 19% using my build)
[02:43] <p4plus2> so its not a hardware limitation...
[02:49] <p4plus2> http://www.p4plus2.pastebay.net/1234589  <-- debug output on good
[02:49] <p4plus2> http://www.p4plus2.pastebay.net/1234590  <--debug output on bad
[02:49] <p4plus2> if thats of any help
[02:51] <llogan> the bad doesn't have --enable-x11grab, yet it can grab from x11?
[02:52] <p4plus2> yeah, and it does say its using x11-grab
[02:52] <llogan> why --disable-runtime-cpudetect ?
[02:52] <p4plus2> thats left over from the last build, but it made no difference whether it was there or not
[02:53] <p4plus2> though I will add that use flag back for the next build
[02:53] <p4plus2> it doesn't hurt for sure
[02:56] <p4plus2> [x11grab @ 0x13b8080] Estimating duration from bitrate, this may be inaccurate
[02:56] <p4plus2> this is the only major difference I notice on the debug output from the good file vs bad (it is present in the good one)
[02:57] <llogan> good uses 12 threads and bad uses 8
[02:58] <llogan> oh, you declared 8 threads, so your commands aren't the same
[02:58] <p4plus2> whoops sorry, though I just tested it
[02:58] <llogan> "-threads 0" is default, so you don't need to include that anyway.
[02:58] <p4plus2> forcing 12 threads on the other has no effect
[02:58] <p4plus2> oh okay, didn't know that
[03:00] <llogan> your configure is quite long. i just --enable-gpl --enable-a few external encoders and whatever extra license junk they need. also x11grab.
[03:01] <p4plus2> well its built via portage which is the gentoo package manager -- so it explicitly manipulates a lot of flags
[03:01] <p4plus2> I tried replicating the builds fairly closely
[03:02] <p4plus2> on the "good version" I can even take the preset to slow and maintain 30FPS perfectly fine
[03:02] <llogan> i don't know. you'll just have to try a process of elimination
[03:03] <p4plus2> thats kinda what I've been doing, though I guess I should keep going until I find a solution
[03:03] <llogan> also your "good" is using release 1.2 and bad is using recent from git.
[03:03] <llogan> you said both were from git
[03:04] <llogan> oh, maybw you didn't
[03:04] <p4plus2> whoops on that last test I didn't fast forward all the way to the most recent build
[03:04] <p4plus2> though the problem as been persistance since ever version past 0.10.3
[03:05] <p4plus2> every*
[03:05] <p4plus2> repulling to the current ffmpeg for mybuild
[03:06] <llogan> if current is slower, and if you don't think it's a configure issue, then see if it is a regression
[03:08] <p4plus2> I think its some configuration issue still, but I have no idea what.  As my manual builds only differ by two (completely unrelated) patches and configuration
[03:08] <relaxed> p4plus2: portage has been known to butcher ffmpeg installs. Try installing locally by hand.
[03:09] <llogan> relaxed: did you get a chance to review the ubuntu local install guide?
[03:10] <llogan> looks like some user(s) modified it already
[03:10] <relaxed> Yeah, it looked good. I don't use ubuntu but that shouldn't matter.
[03:10] <relaxed> IS it linked on the main wiki page?
[03:10] <p4plus2> relaxed: that seems to be what I am experiencing, I was just trying to get more to the root of the problem
[03:10] <p4plus2> I suppose I should try and file a bug report with gentoo and see if something can be done about whatever breaks ffmpeg on gentoo
[03:13] <relaxed> llogan: Really, people should be following that guide instead of uninstalling libav*, making system packages, etc...
[03:14] <llogan> relaxed: yes. and it replaced the old system install style.
[03:14] <llogan> although i'm ok with users uninstalling libav.
[03:15] <llogan> i've yet to overcome my laziness to update the older guides.
[03:16] <relaxed> llogan: Well, I say it's wrong to have them uninstall libav because there's tons of software compiled against it.
[03:16] <relaxed> In Ubuntu and Debian.
[03:17] <relaxed> Replacing libav with ffmpeg in that case could break those apps.
[03:17] <llogan> don't worry, the guide doesn't have them uninstall that junk. I'm just being an ass like usual.
[03:17] <relaxed> Oh, I thought it did.
[03:19] <relaxed> oh, libav-tools is just avconv, avplay, etc... Nevermind.
[03:19] <llogan> it doesn't touch that either.
[03:20] <relaxed> One of the guides says to remove it.
[03:20] <llogan> you're looking at one of the old ones that i didn't change yet.
[03:20] <relaxed> Is this local install guide? https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide
[03:20] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[03:20] <llogan> ah, centos. that one is next.
[03:21] <relaxed> One guide to rule them all.
[03:22] <llogan> that would be nice for me, but some users really need a step-by-step catered for their distro
[03:23] <llogan> "apt-get isn't working for me on my centos. i like ponies."
[03:23] <relaxed> On the latest ubuntu guide you have them installing libfaac-dev and compiling fdk-aac. Why not drop the former?
[03:23] <relaxed> I meant, "One local install guide to rule them all."
[03:24] <llogan> yes, that's what i figured
[03:25] <relaxed> You could have distro specific blurbs in it.
[03:25] <llogan> but then they'll ask "how do i install x package?" unless you make them compile all deps/external libraries
[03:25] <llogan> yeah. it becomes a quesiton of formatting it well. i'll try to think on that.
[03:27] <relaxed> Maybe have cross-compiling and static build info on the same page.
[03:29] <llogan> i removed libfaac
[03:31] <llogan> do you have a recommendation for the man pages?
[03:32] <relaxed> The "Install FFmpeg" link on https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide#FFmpeg takes you to the same page. (does nothing)
[03:34] <relaxed> I think the "\" breaking up long apt-get commands is fine but the "&& \" on installing from git should be removed.
[03:37] <relaxed> For the local installs I have a bash script that will convert man pages to text files. That might be better than modifying MANPATH and such.
[03:41] <llogan> those && were annoying me. i'll remove them and fix that link. i didn't want to touch manpath, but think some html files are generated, IIRC.
[03:43] <relaxed> http://pastie.org/7955861
[03:43] <relaxed> Er, that's for pdf. Hold on.
[03:45] <relaxed> http://pastie.org/7955871
[03:46] <llogan> thanks for that and the proofing.
[03:50] <relaxed> You're welcome.
[06:41] <mjsmith> I'm trying to use x11grab on a really low powered machine (dual core atom). anyone know how to squeeze out more performance, any cuda or opencl options available?
[09:08] <igm> What is the recomended blur filter to use with ffmpeg before downscaling 4k to 1080
[09:13] <thetruthisoutthe> 0
[09:14] <thetruthisoutthe> for downscaling you use interpolation, not blur
[09:15] <igm> hrmm
[09:16] <igm> is lanczos the best to use for that? im reading through all the different flags for the swscaler, there seem to be quite a few possibilities
[09:20] <Keshl> I think it's subjective. Personally I'd go with Lanczos, oÉo.
[09:21] <igm> I shot a video at 4k in extreme low light, so there's quite a bit of noise in the video, now i'm trying to downscale it to 1080 using the extra pixels to try to reduce noise..
[09:21] <Keshl> Interesting idea.
[09:21] <igm> not sure the best way to do that.. experimenting time :p
[09:21] <Keshl> Yeah, try them and see what works.
[09:21] <Keshl> Just to make it more interesting, you might wanna even try upscaling to 16k with a blur filter and then downscaling that using /no/ filter to 1080p.
[09:22] <thetruthisoutthe> noise removal filter may help before reducing resolution
[09:22] <igm> heh
[09:22] <thetruthisoutthe> assuming you want it compressed in h264
[09:23] <igm> yea i do, src is h264 as well
[09:23] <igm> (45 megabit from a gopro)
[09:24] <Keshl> o.O'
[09:24] <thetruthisoutthe> so there are many options for noise removal, and you can play with the settings
[09:24] <Keshl> Wtf, gopro records 4k?
[09:24] <igm> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p, 3840x2160 [SAR 1:1 DAR 16:9], 44961 kb
[09:24] <thetruthisoutthe> you have libx264 enabled ?
[09:24] <igm> yes
[09:30] <igm> use hqdn3d?
[09:32] <thetruthisoutthe> take your time, nobody knows how will it look like
[09:33] <igm> lol
[09:34] <thetruthisoutthe> grab a scene from your vid, and test them on it, conversion will be much faster...
[09:34] <igm> ive been running it on the first few seconds then pressing q to stop and seeing what the output looks like
[09:35] <thetruthisoutthe> you can also write a script and generate all variations you want to test, and go make dinner
[09:35] <igm> heh true that
[09:39] <relaxed> igm: use ffmpeg -i input -t $time_in_seconds ...
[09:39] <igm> thanks
[09:39] <relaxed> look at `ffmpeg -filters` and man ffmpeg-filters
[09:44] <lmarcetic> hey. so i recorded something on my DVB-T in a "PS" format, and I got several MPG files of up to about 900MB, and a few KiB big INFO.DVR file. What is it, and how do I concatenate the video files?
[09:50] <igm> how does one increase the frame rate, say from 14.99 to 60 and speed up the video 4x without dup frames
[09:51] <lmarcetic> 15*4 = 60. One in a hundred will have to be a dup though.
[09:51] <lmarcetic> (since it's 14.99, not 15)
[09:52] <igm> thats fine.. i'm getting more like half dup instead though
[09:52] <lmarcetic> ungh, i'm a noob. i just did the math, sorry
[09:52] <igm> :p
[09:52] <igm> i may have it figured..
[09:53] <lmarcetic> oh?
[09:53] <igm> or not
[09:53] <lmarcetic> oh.
[09:53] <igm> trying to use  "setpts=0.25*PTS"
[09:53] <lmarcetic> also, it's 1 in 1500
[09:55] <relaxed> lmarcetic: ffmpeg -i concat:1.mpg\|2.mpg\|3.mpg -c copy -f vob output.mpg
[09:56] <lmarcetic> relaxed, thanks mate
[10:00] <igm> seems everything ive tried is duplicating frames to maintain playback speed, when i want it to maintain frames and increase playbackspeed
[10:04] <igm> hrmm i may have to use imagepipe
[10:04] <igm> bah
[10:09] <igm> waaa that eats alot of ram :p
[10:09] <igm> 967+212 MB
[10:56] <luc4> Hi! I have a video which, when opened using vlc for instance, opens with the wrong aspect ration. I mean it seems to actually be 16:9, but it opens up as it was something near 4:3. Maybe there is something wrong with some metadata? Can I fix this with ffmpeg?
[11:00] <igm> hmm so with or without hqdn3d, the first frame of each video is exactly the same..
[11:09] <igm> http://pastebin.com/T8SFFTAg
[11:09] <igm> am i calling the hqnd3d correctly?
[11:14] <xlinkz0> damn libtheora is so slow :(
[11:14] <xlinkz0> doesn't even use all cores
[11:34] <relaxed> xlinkz0: why use it at all?
[12:26] <xlinkz0> relaxed: firefox on linux doesn't support h264 inside html5 video
[12:29] <relaxed> xlinkz0: doesn't firefox support webm?
[12:30] <xlinkz0> idk some colleague of mine told me it doesn't work out of the box
[12:30] <xlinkz0> doesn't work on mac either, inside firefox
[12:30] <xlinkz0> i think we'll just go with flash
[12:31] <relaxed> I find that hard to believe.
[12:31] <relaxed> https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats
[12:33] <xlinkz0> well still we'd have to practically double our storage usage
[12:33] <xlinkz0> just for mac and linux
[12:33] <xlinkz0> making webm videos
[12:34] <xlinkz0> idk if vp8 is even hardware decoded on most devices out there
[12:35] <mpfundstein> xlinkz0: is it for streaming or progressive download?
[12:36] <mpfundstein> xlinkz0: wowza can stream to flash. so you could pipe your input into ffmpeg, udp it to wowza and stream it to flash
[12:36] <xlinkz0> it's just for some video viewing
[12:36] <xlinkz0> nvm the web dev was just a little lazy
[12:37] <xlinkz0> and didn't want to fallback to flash :D
[12:44] <luc4> Hi! I have some videos I would like to transcode to h264 to save some space. Can you suggest some parameters I can use to increase the compression ratio keeping the quality similar to the source?
[12:45] <Mavrik> well, that's an oxymoron :)
[12:45] <luc4> Mavrik: what? quality and compression?
[12:45] <Mavrik> increasing compression without losing quality :)
[12:46] <luc4> Mavrik: afaik some compression techniques are lossless.
[12:46] <luc4> Mavrik: like bz2 :-)
[12:46] <Mavrik> do you have raw videos right now?
[12:47] <Mavrik> back in 30 mins
[12:47] <luc4> Mavrik: I have videos in various formats, like mpeg and so... I'm transcoding with ffmpeg to h264 and aac.
[12:47] <luc4> ok, no problem
[12:47] <Mavrik> luc4, I suggest you find a -crf value that looks good
[12:47] <Mavrik> luc4, and resolution that is acceptable for you and use the slowest preset (slow, medium) that you can still handle while transcoding
[12:48] <Mavrik> luc4, see this: https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
[12:48] <Mavrik> but use "-crf" values instead ob static bitrate with "-b:v"
[12:49] <xlinkz0> luc4: http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide
[12:49] <luc4> xlinkz0: read that already
[12:49] <luc4> xlinkz0: thanks
[12:49] <luc4> Mavrik: I'll read that, thanks!
[12:51] <luc4> ffmpeg uses high profile by default right?
[12:53] <relaxed> I think it depends on the input
[12:55] <luc4> relaxed: oh, thanks! And it is not clear to me the 1st pass here: https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/. Is it outputting to /dev/null? Maybe it modifies the original file?
[12:58] <relaxed> Yes, the first pass output isn't needed.
[13:21] <luc4> No way to get a progress bar from ffmpeg?
[13:58] <khali> I'm trying the removelogo filter for the first time
[13:59] <khali> it totally kicks asses
[14:00] <vldcnst> I have a x264 (MKV) stream that I'm trying to convert to JPEG snapshots (write to a file snapshots of the input at a selectable frame rate), is there a way I can do this with ffmpeg?
[14:38] <first-time-here> hi
[14:38] <first-time-here> i cant stream my webcam with ffmpeg :(
[14:38] <first-time-here> i try this command
[14:39] <first-time-here> ffmpeg -f v4l2 -i /dev/video0 -vcodec rawvideo -f mpegts udp://127.0.0.1:1234
[14:39] <first-time-here> i get frame=   63 fps= 31 q=0.0 size=   40757kB time=00:00:02.10 bitrate=158990.7kbits/s
[14:39] <ubitux> then it's working?
[14:40] <first-time-here> but i cant view the stream
[14:40] <first-time-here> i try with VLC
[14:40] <first-time-here> nothing.
[14:41] <first-time-here> i want to make this thing
[14:42] <first-time-here> http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20lightning%20%28thunderbolt%29%20with%20FFmpeg
[14:44] <ubitux> that delay option doesn't seem to work..
[14:45] <ubitux> oh well, with very recent versions, looks like a bug, but whatever
[14:46] <ubitux> anyway
[14:46] <first-time-here> ubitux: but i need this delay
[14:46] <ubitux> you likely want a server
[14:46] <ubitux> ffserver might work for you
[14:46] <first-time-here> what do you mean?
[14:47] <ubitux> a dedicated tool for serving stream, like ffserver
[14:49] <first-time-here> i need to stream all the time with a delay, and if i get a lighetning i record the last few seccends from the streaming.
[14:49] <ubitux> configure a ffserver to do that
[14:50] <ubitux> https://www.ffmpeg.org/ffserver.html
[14:52] <first-time-here>  how i install it?
[14:55] <ubitux> it's distributed with ffmpeg
[14:57] <Mavrik> (except on Windows?)
[15:00] <ubitux> no idea
[15:25] <first-time-here> someone can guide me about streaming my webcam?
[16:02] <first-time-here> someone can help me step by step how i can streme my webcam ?
[16:10] <arpu> hello
[16:10] <arpu> in the console i see bitrate=... is this audio + video bitrate or only the video bitrate ?
[16:12] <Mavrik> iirc it's the output bitrate
[16:12] <Mavrik> in some sliding window
[17:54] <funyun> hi. how do i use ffmpeg to convert an mp3 to .aif with PCM codec?
[17:54] <funyun> can it be done?
[17:55] <Mavrik> try something like
[17:55] <Mavrik> ffmpeg -i blah.mp3 -codec:a pcm_16le output.aif
[17:55] <Mavrik> check the exact name of pcm codec with ffmpeg -codecs
[17:56] <funyun> ffmpeg -codecs, very useful. thank you :)
[18:24] <ayaka> I want to use ffmpeg in android so I compile out bambuser's ffmpeg, but I don't know how to install it
[20:55] <durandal_1707> ayaka: why, there is something special needed for install
[20:55] <durandal_1707> ?
[21:08] <ayaka> durandal_1707, how to install it?
[21:11] <sacarasc> ayaka: Check the site where you got it from.
[21:12] <ayaka> sacarasc, ok I see
[21:13] <ayaka> sacarasc, are you sure that it has that doc?
[21:13] <sacarasc> No, because it's not an official ffmpeg thing, so who knows what it has?
[21:14] <ayaka> I know that project from https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20compile%20FFmpeg%20for%20Android
[21:14] <ayaka> is there a good way to install ffmpeg on android
[21:18] <sacarasc> I would assume once you have the binary, you'd install it like you would any other android application.
[21:19] <ayaka> but it doesn't build a apk
[21:59] <ayaka> thanks
[23:24] <Aprel> hi noticed while some files are being encoded I can't play them until the encoding's finished. Thought I saw somewhere that there's a compile option to allow output to be previewed while encoding is in progress?
[23:25] <Mavrik> uh
[23:25] <Mavrik> that depends on output container
[23:25] <Mavrik> nothing much to do with compile options
[23:26] <Aprel> hm, this happened with .mp4 container w x264 video and aac audio.
[23:27] <Aprel> What containers/codecs can be read while encoding? Is there a term I can google for a list?
[23:27] <sacarasc> MP4 makes its index when the file has completed encoding.
[23:27] <sacarasc> You can't play it without the index, so...
[23:27] <Aprel> ah i see
[23:28] <Aprel> Is there another container that can hold x264+acc that I could use?
[23:29] <sacarasc> Matroska. (.mkv)
[23:30] <Aprel> k, Matroska indexes the file in a way that can be played be while being encoded?
[23:31] <sacarasc> Yeah, I think so,.
[23:32] <Aprel> sorry to bother, but can .avi do this to? I'm just worried that Matroska might not play in many media players.
[23:34] <sacarasc> All decent software media players will play it. If you do AVI, you can't use B-frames or something...
[23:36] <Aprel> i see. Thanks for the info :) While I'm here, I have another q: if I have an mp4 file (w acc) and I want to dump just the audio to another file, does ffmpeg decode the acc audio to raw and then back to aac, or can it just dump the orginal acc?
[23:38] <Mavrik> usually MPEG2-TS container is used for streaming uses :)
[23:38] <Mavrik> but .mkv should work as well
[23:38] <Mavrik> Aprel, depends on what you tell ffmpeg to do with the stream
[23:38] <Mavrik> using "copy" as codec will just dump it without decoding
[23:39] <Mavrik> so "ffmpeg -i blah.mp4 -codec:a copy -vn output.m4a" will dump only audio track(s) to the m4a file without changing them
[23:43] <Aprel> Mavrik, sacarasc: great! Thank you for all the help.
[00:00] --- Sun May 26 2013


More information about the Ffmpeg-devel-irc mailing list