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

burek burek021 at gmail.com
Sat Jul 4 02:05:01 CEST 2015


[00:31:47 CEST] <janicez> h
[00:47:45 CEST] <Nolski> Hey, for some reason when I try to use the overlay filter I get 'Option 'overlay_w' not found'
[00:48:01 CEST] <Nolski> but that doesn't make sense. overlay_w looks to be an option in the docs
[00:51:01 CEST] <Nolski> Same happens with using 'w' as an option
[00:51:27 CEST] <c_14> That's not an option, that's a variable. iirc
[00:51:39 CEST] <c_14> yep
[00:51:47 CEST] <c_14> It's a variable that you can use in the x and y expressions
[00:52:17 CEST] <Nolski> Ah, so if I want to change the width of the video, I need to do that before hand?
[00:52:17 CEST] <c_14> If you want to control the size of the overlay, scale/crop/pad it before the filtler.
[00:52:22 CEST] <c_14> *filter
[00:52:28 CEST] <Nolski> cool cool. That makes sense.
[00:52:44 CEST] <Nolski> Thanks c_14 I honestly don't know what I'd do without ya haha
[03:45:15 CEST] <polyphagia> what is gop_size?
[03:45:19 CEST] <polyphagia> for -g
[03:45:41 CEST] <c_14> https://en.wikipedia.org/wiki/Group_of_pictures
[03:46:37 CEST] <polyphagia> does it have a default value?
[03:46:45 CEST] <c_14> Depends on the encoder
[03:47:19 CEST] <polyphagia> oh alright this makes sense, thanks c_14
[03:55:59 CEST] <DHE> aka the keyframe interval
[06:05:33 CEST] <MarkCourtenay> Does anyone know of a good way to run a playlist through ffmpeg without concatenating a bunch of files into one?
[06:14:12 CEST] <relaxed> MarkCourtenay: what are you trying to do?
[06:16:01 CEST] <Darkfire113> Hey guys! I just recently got ahold of ffmpeg and I notice that just using -i input.mp3 output.m4a works, but I was wondering if it's possible to get an even smaller file. Is there anything I can do or..? I'm very new to codecs and ffmpeg as an fyi.
[06:18:42 CEST] <relaxed> ffmpeg -i input.mp3 -map 0:a -b:a 64k output.m4a
[06:20:09 CEST] <Darkfire113> Thanks! Though may you explain it? I'd like to properly learn instead of just use.
[06:21:52 CEST] <relaxed> map only the audio to output (exclude cover art if there is any), and set the bitrate to 64k
[06:22:51 CEST] <relaxed> Darkfire113: https://trac.ffmpeg.org/wiki and https://ffmpeg.org/documentation.html
[06:24:02 CEST] <Darkfire113> Is it possible to keep the covert art? I'm willing to lose a bit of space for it. Also.. Do you have any suggestions on were to start off?
[06:24:13 CEST] <Darkfire113> Regarding the wiki/docs
[06:25:59 CEST] <MarkCourtenay> relaxed: I'm trying to essentially simulate a TV channel...play one episode of a show (ie, 1 file), then another, then another in a specified order. Right now, I can concat all the files together into one big file but I am getting errors in playback. And that is not ideal in terms of HDD space.
[06:26:55 CEST] <relaxed> Darkfire113: what does this return, ffmpeg -codecs 2>&1| awk '/DEA.*aac/'
[06:28:01 CEST] <Darkfire113> awk isn't recognized, running Win7.
[06:28:27 CEST] <relaxed> oh, nevermind then
[06:28:54 CEST] <Darkfire113> Ehe, trust me I'd be running Debian if all my games supported it.
[06:28:59 CEST] <relaxed> remove -map 0:a if you want to keep the cover art
[06:29:42 CEST] <Darkfire113> Alright, thanks. Now to read lots of doc and wiki's..
[06:29:53 CEST] <relaxed> MarkCourtenay: why not create a playlist for your media player?
[06:30:14 CEST] <MarkCourtenay> relaxed: I'm trying to run this from server command line
[06:30:28 CEST] <MarkCourtenay> to RTMP output so I can stream on my site
[06:34:21 CEST] <relaxed> write a for loop that sends each video through rtmp
[06:38:33 CEST] <MarkCourtenay> OK...would that leave a gap between each file in playback?
[06:38:58 CEST] <relaxed> probably
[06:39:00 CEST] <MarkCourtenay> Or would the shows play one immediately after the other?
[06:39:09 CEST] <MarkCourtenay> hmm
[06:39:33 CEST] <relaxed> give it a shot with some samples
[06:41:20 CEST] <relaxed> if they're all encoded the same way you could pipe each one to an ffmpeg instance that's sending the rtmp stream
[06:44:57 CEST] <MarkCourtenay> relaxed: Thanks! I
[06:45:01 CEST] <MarkCourtenay> I'll give that a shot.
[06:45:33 CEST] <relaxed> which is basically concat :)
[06:51:12 CEST] <prelude2004c> hey guys.. quick question.. i don't know if this is a dev problem or something.. i am trying to ffmpeg -i m3u8 location and output to rtmp
[06:51:21 CEST] <prelude2004c> when playing back the stream it stuttering and cutting out like crazy
[06:51:32 CEST] <prelude2004c> when i input the m3u8 straem to vlc directly it goes on quick and right away
[06:51:36 CEST] <prelude2004c> not sure why
[06:51:45 CEST] <prelude2004c> ffmpeg doesn't like the m3u8 for some reason?
[06:51:54 CEST] <prelude2004c> flc seems to be ok with it
[06:55:44 CEST] <thomedy> okay so i need to know when i am adjusting dimensions i am best servd by what consistent dimensions
[06:56:57 CEST] <thomedy> so for example the user inputs a phone video.... that may be tall not wide
[06:57:06 CEST] <thomedy> is it custom to adjust that or ckeep dimensions
[06:57:17 CEST] <thomedy> and if so what is the common dimensions to adjust im thinking big to shrink
[09:48:53 CEST] <bertieb> Huh. Why might ffmpeg get stuck generating one frame (incrementing drop number) when invoking overlay filter as specified by the 0.3 red example in 'filters' (http://www.ffmpeg.org/ffmpeg-filters.html#Examples-55) ?
[09:50:38 CEST] <bertieb> Or does the filter just keep producing frames until told not to?
[09:55:03 CEST] <bertieb> Yep, I missed the "repeatlast" option, my bad
[12:34:47 CEST] <rrooij> Hello, I was wondering if there are any plans to add a demuxer for the "smooth streaming" ISML playlists? ffmpeg is already capable of muxing them, but it is not capable of demuxing them.
[12:34:53 CEST] <rrooij> Example file: http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_1080p.ism/Manifest
[12:35:19 CEST] <rrooij> It would enable people to move away from Silverlight and use other media players to play back streaming content.
[12:35:28 CEST] <rrooij> (Except the ones protected by DRM, of course)
[12:36:09 CEST] <BtbN> Is this another DASH/HLS thing?
[12:36:31 CEST] <sfan5> "It would enable people to move away from Silverlight"
[12:36:36 CEST] <sfan5> not really
[12:36:47 CEST] <sfan5> the media server would still be running something silverlight related
[12:37:14 CEST] <rrooij> BtbN: It is the same concept, but another format, as far as I know.
[12:37:25 CEST] <rrooij> sfan5: Yes, that's true. I was talking about the clients.
[12:40:47 CEST] <rrooij> Of course, Silverlight is already deprecated and servers are already moving to DASH/HLS. So I don't know if it is worth the effort at all. Probably not, but I was curious if there were some people working on it.
[15:33:52 CEST] <pothibo> Does ffmpeg allow me to load a stream and trigger recording at moment's notice? The goal would be to be connected to a stream and a user could start/stop recording for later replay.
[15:37:29 CEST] <pothibo> Basically, I would like to have the library loaded in memory and streaming configuration already parsed so when a user press start, it could record it right away
[17:42:14 CEST] <pothibo> I'm trying to get ffmpeg to capture and record a multicast stream  (UDP) https://gist.github.com/anonymous/af5c2228f13432ef08a2 ANy help?
[17:43:34 CEST] <DHE> no @ required
[17:44:09 CEST] <pothibo> I know it was a quick copy, the problem doesn't lie there anyway
[17:44:27 CEST] <DHE> a few errors at the start is actually kinda normal since joining the feed will not start with a keyframe
[17:45:39 CEST] <pothibo> ok
[17:45:46 CEST] <pothibo> so I can wait and it will resolve itself?
[17:46:38 CEST] <pothibo> oh yeah, it works. good
[17:46:48 CEST] <pothibo> just thought they were critical errors ;(
[17:47:31 CEST] <pothibo> Can I tell ffmpeg to start recording when it catches a keyframe?
[19:03:02 CEST] <hwd> hello, when using libavcodec avfft (in my case rdft -- DFT_R2C), is the calculated rdft post-scaled , or do I need to do that (and by post scaling meaning something like real and imag.  /= 2 * fft_size)  !?
[19:33:23 CEST] <bofh> hi there! What is the best way to merge multiple audio streams with no overamplifying? I use "pan=stereo:c0=c0+c2+c4+c6:c1=c1+c3+c5" and that results in "cracking" sound effect
[19:38:58 CEST] <durandal_1707> you can't just sum up values
[19:40:02 CEST] <durandal_1707> pan doesn't clip values
[19:40:30 CEST] <bofh> ok, so what do I do then?
[19:45:07 CEST] <bofh> ffmpeg -y -i ad5e9655f912bb49c969ba25.mp3 -i 9d5a96551f88fc9ba97f095a.mp3 -i 9d5a96551f88fc9ba97f095a.mp3 -filter_complex [0]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,2.20,159.69),0.00000 * (t - 2.20) + 1.00,1)':eval=frame,atrim=2.20:12.20,apad[0:out];[1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,0.00,8.57),0.00000 * (t
[19:45:13 CEST] <bofh>  - 0.00) + 1.00,1)':eval=frame,atrim=0.00:6.40,adelay=3600|3600|3600|3600,apad[1:out];[2]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,0.00,8.57),0.00000 * (t - 0.00) + 1.00,1)':eval=frame,atrim=0.00:8.57,apad[2:out];[0:out][1:out][2:out]amerge=inputs=3,pan=stereo:c0=c0+c2+c4:c1=c1+c3+c5,atrim=duration=10.00 -shortest -ac 2 -vn track.mp3
[19:45:19 CEST] <bofh> oh, sorry
[19:45:28 CEST] <bofh> http://pastie.org/private/jbo1ncwgckxw6z7dgmqeqw
[20:33:28 CEST] <durandal_1707> bofh: use clip in expressions of channels
[20:36:02 CEST] <bofh> durandal_1707: can you please elaborate?
[20:37:52 CEST] <durandal_1707> clip(c0+c1...., -1, 1)
[20:38:21 CEST] <bofh> oh, coo, didn't know about that
[20:38:54 CEST] <bofh> I added this (from examples) Ò compand=.3|.3:1|1:-90/-60|-60/-40|-40/-30|-20/-20:6:0:-90:0.2
[20:38:58 CEST] <bofh> seems to works fine, too
[20:41:53 CEST] <durandal_1707> there is another maybe better example after that one
[20:42:59 CEST] <durandal_1707> but what you are trying to do?
[20:47:39 CEST] <spl33n_> hello all i want to convert video to gif but output gif file has a very low quality. i use this command, ffmpeg -i input -pix_fmt rgb24 output.gif , how can i have dif file has a hight quality ?
[20:49:28 CEST] <kepstin-laptop> if you want high quality, don't use a gif ;) that said, you'd want to look into the two-pass mode that precalculates a palette, and play with the dithering options.
[20:50:37 CEST] <durandal_1707> spl33n_: look at palettegen and paletteuse filter
[20:53:27 CEST] <bofh> durandal_1707: I just need to overlay several audiotracks
[20:57:24 CEST] <spl33n_> durandal_1707: ok i look this, i come for feedback
[22:22:31 CEST] <StatiQ> ii found this site: https://github.com/JayH5/android-ffmpeg-cmdline but my andraied is 2.2 not 4 to use the interface. the ffmpeg cmd instead is working on here and now i have reall aac music :D
[22:23:33 CEST] <StatiQ> very interesting. static unix.  it will work in some another arch? soon i will try.
[22:25:22 CEST] <chungy> android 2.2? damn
[22:25:37 CEST] <chungy> static binaries generally only work on the OS and arch they're built for.
[22:46:18 CEST] <Q3> Hello, I was wondering if "ffmpeg -i test.dtshd -c:a flac out.flac" was using the lossless part or if I was doing lossy -> lossless?
[22:48:41 CEST] <chungy> "-c:a flac" is unnecessary for an out.flac file (though it does no harm). If your input has multiple streams, it will be using the first one; use -map to select a different one. ffprobe can tell you what streams are in the file
[22:49:34 CEST] <Q3> I mean one stream of dts-hd ma, or dts-ma, but they have a lossless core and a lossy fallback; I just don't know if libdca can use the lossless core.
[22:51:06 CEST] <durandal_1707> force libdcadec decoder
[22:51:33 CEST] <Q3> Is this mandatory? How do I know when the core of the fallback is used?
[22:52:24 CEST] <durandal_1707> native dca xll is not bitexact
[22:52:43 CEST] <StatiQ> chungy: i have two versions of ffmpeg in static bin now. one is from 2012 without aaclib and now this version 2013 from this link. and one other more in threaded emulation with shared libraries like unix, :D
[22:53:14 CEST] <durandal_1707> paste debug output to see which decoder is used
[22:53:17 CEST] <StatiQ> 3 differente versions and none compiled in my os
[22:54:41 CEST] <StatiQ> unix is unix.
[22:55:06 CEST] <kepstin-laptop> StatiQ, however, linux isn't really unix at all ;)
[22:55:07 CEST] <Q3> Input #0, mpegts, from '00001.m2ts':
[22:55:07 CEST] <Q3>   Duration: 00:29:10.75, start: 6009.000000, bitrate: 44499 kb/s
[22:55:08 CEST] <Q3>   Program 1
[22:55:08 CEST] <Q3>     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2
[22:55:10 CEST] <Q3>     Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
[22:55:13 CEST] <Q3>     Stream #0:2[0x1101]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), fltp
[22:55:16 CEST] <Q3>     Stream #0:3[0x1102]: Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, stereo, fltp, 448 kb/s
[22:55:19 CEST] <Q3>     Stream #0:4[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
[22:55:21 CEST] <Q3>     Stream #0:5[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080
[22:55:24 CEST] <Q3> [matroska @ 0x7f912705f940] Codec for stream 0 does not use global headers but container format requires
[22:55:27 CEST] <Q3> Output #0, matroska, to 'Rurouni Kenshin - Meiji Kenkaku Romantan - Tsuiokuhen/02.mkv':
[22:55:30 CEST] <Q3>   Metadata:
[22:55:33 CEST] <Q3>     encoder         : Lavf56.36.100
[22:55:34 CEST] <kepstin-laptop> Q3, *pastebin*, don't flood the channel :(
[22:55:35 CEST] <Q3>     Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fp
[22:55:39 CEST] <Q3>     Stream #0:1: Audio: flac ([172][241][0][0] / 0xF1AC), 48000 Hz, 5.1(side), s16, 128 kb/s
[22:55:42 CEST] <Q3>     Metadata:
[22:55:44 CEST] <Q3>       encoder         : Lavc56.41.100 flac
[22:55:47 CEST] <Q3> Stream mapping:
[22:55:49 CEST] <Q3>   Stream #0:0 -> #0:0 (copy)
[22:55:52 CEST] <Q3>   Stream #0:2 -> #0:1 (dts (dca) -> flac (native))
[22:55:54 CEST] <Q3> Sorry, but i was aked to paste, how should I do it?
[22:56:18 CEST] <durandal_1707> See native decoder is used
[22:56:54 CEST] <Q3> So that doesn't work?
[22:57:07 CEST] <StatiQ> kepstin-laptop: i know.  but if i do something besed on unix , the only different thing during compilation of binaries and "archs" is the directory tree. mathematics things are only one
[22:57:56 CEST] <durandal_1707> Compile ffmpeg with libdca enabled and dca decoder disabled
[22:58:15 CEST] <StatiQ> i am not talking about this aberration android.
[22:59:15 CEST] <Q3> durandal: Well, if libdcadec can't do it, it won't even be useful. I tried the VLC website, but it wasn't talking about the features.
[23:01:40 CEST] <kepstin-laptop> Q3, according to the summary on https://github.com/foo86/dcadec the external libdcadec supports lossless decoding.
[23:02:25 CEST] <Q3> Thanks a lot
[23:03:53 CEST] <StatiQ> kepstin-laptop: try to run this: https://github.com/JayH5/android-ffmpeg-cmdline extract the raw ffmpeg only and put in some executable directory from your phone, set chmod to 755 an callit like linux in terminal emulator.
[23:04:42 CEST] <kepstin-laptop> StatiQ, sure, that's a linux binary compiled for arm arch, so I assume it would work on most android phones
[23:05:04 CEST] <kepstin-laptop> now, if I had one of the (relatively rare) intel based phones, it wouldn't work ;)
[23:05:25 CEST] <StatiQ> kepstin-laptop: try first he says android 4.1 but i am on 2.2
[23:06:18 CEST] <kepstin-laptop> the fancy android gui frontend probably needs android 4.1 for some libraries. But the ffmpeg binary doesn't really care about the android version...
[23:06:53 CEST] <StatiQ> kepstin-laptop: i know!  is where unix is unix
[23:06:58 CEST] <StatiQ> :D
[23:08:34 CEST] <kepstin-laptop> ...
[23:08:51 CEST] <StatiQ> kepstin-laptop: i am using this binary with shell scripts like zenity (SManager) with all conversion rules in a widget folder or nenu shortcuts
[23:10:08 CEST] <StatiQ> androind needs only two things to be acceptable: zenity (xdialog) and XUL nothing more
[23:10:23 CEST] <StatiQ> ..
[23:11:29 CEST] <kepstin-laptop> XUL? I'm kind of wondering why android needs mozilla's xml user interface markup language for anything ;)
[23:12:51 CEST] <StatiQ> kepstin-laptop: is because XUL is REAL source opened and we are able to create and edit things without re-compilation/installation.
[23:13:15 CEST] <durandal_1707> Q3: it can
[23:15:14 CEST] <StatiQ> kepstin-laptop: i have in XUL an interface app (created by me) for convert media using static ffmpeg. i have in extension for mozilla browser,  and in app format to use ffmpeg without terminal dependency
[23:16:13 CEST] <StatiQ> only because this. XUL is REAL OPENED and simply editable
[23:16:56 CEST] <StatiQ> Zenity is similar to xul
[23:17:08 CEST] <StatiQ> but only for unix...
[23:18:57 CEST] <kepstin-laptop> not actually true, you can use zenity on linux, windows, mac os, as well as unix ;)
[23:22:19 CEST] <StatiQ> kepstin-laptop: >>Actually<< ...
[23:23:04 CEST] <StatiQ> zenity is the .net framework of linux.
[23:23:25 CEST] <StatiQ> i will use. net to create windows apps
[23:23:47 CEST] <StatiQ> i prefer XUL because it runs in all OS
[23:25:27 CEST] <chungy> zenity just lets you create gtk dialgos
[23:25:47 CEST] <chungy> but yeah, why does android need any of that? it has a perfectly fine UI toolkit on its own
[23:26:46 CEST] <kepstin-laptop> heh, apparently the firefox folks are working towards reimplementing the ui in html instead of xul.
[23:27:13 CEST] <kepstin-laptop> they already try to get extension devs to use apis for ui controls rather than include xul stuff.
[23:28:34 CEST] <StatiQ> kepstin-laptop: is serious. i have a panel to manipulate all media type from simple. amv to aac+ is something like this: https://addons.mozilla.org/pt-br/firefox/addon/video-downloadhelper/
[23:30:17 CEST] <StatiQ> xul is a Jit compiler we don't need to compile nothing more than the static-unix-binaries/and libraries. ah they have compiler too
[23:30:37 CEST] <StatiQ> we don't nedd only gcc
[23:31:04 CEST] <StatiQ> gcc is the error of "archs"
[23:32:21 CEST] <StatiQ> xul is something similar to java port to unix on phones but is horrible
[23:32:35 CEST] <StatiQ> java is horribility
[23:32:54 CEST] <StatiQ> javascript is the xul engine
[23:33:21 CEST] <kepstin-laptop> well, xul is only useful if you have xulrunner, which is a rather gigantic C++ project that includes a javascript engine (spidermonkey), layout & rendering engine (gecko), image libraries, xml and html libraries, and must be compiled with a c++ compiler like gcc's to native code.
[23:35:10 CEST] <StatiQ> kepstin-laptop: not so giant than these horrible MB occupied by Navigators in phone. my xulrunner have 15MB and my ffmpeg 10MB and my app 35 MB
[23:36:12 CEST] <StatiQ> xulrunner in andraid is a menace to gogle. this is why they don't have
[23:36:37 CEST] <kepstin-laptop> StatiQ, technically, you can run xulrunner on android, https://www.mozilla.org/en-US/firefox/android/ ;)
[23:37:30 CEST] <StatiQ> kepstin-laptop: i know. i tried but i have to get 512MB OF RaM to get freedom.
[23:37:34 CEST] <kepstin-laptop> (what's really funny is that the browser builds of xulrunner can, in some cases, actually link in ffmpeg as native code - indirectly, via gstreamer, but still)
[23:38:11 CEST] <kepstin-laptop> ("via gstreamer" means it's often actually libav rather than ffmpeg, but whatever)
[23:38:22 CEST] <StatiQ> i don't have 2000 dollar today to buy a ne phone
[23:38:54 CEST] <StatiQ> kepstin-laptop: firefox is for 512MB of RaN
[23:39:34 CEST] <StatiQ> i will not pay stupid price in a ridiculous phone for me these apparatus have not value
[23:40:10 CEST] <StatiQ> samsung is a lie motorola is another worst lie.  etc..
[23:41:02 CEST] <StatiQ> xulrunner pure without firefox or apps. we don't have.
[23:41:24 CEST] <StatiQ> for phones like pc xulrunner haves
[23:41:58 CEST] <kepstin-laptop> it's actually kind of interesting that in firefox os, they explicitly chose not to expose xul to phone apps, but rather require them to use html.
[23:42:30 CEST] <StatiQ> Xhtml
[23:42:49 CEST] <StatiQ> :D
[23:43:01 CEST] <kepstin-laptop> nah, the xml serialization of html has fallen out of favour. it added complexity with really no gain.
[23:43:58 CEST] <StatiQ> kepstin-laptop: ok. correct
[23:45:40 CEST] <StatiQ> kepstin-laptop: i tried an example app using firefox to see if xulrunner is frozen on andraid and i seen that works. any suggestion without firefox in phone?
[23:46:42 CEST] <StatiQ> allright! they won't will construct xulrunner for phones. i don't know why.
[23:46:57 CEST] <StatiQ> won't or will?
[23:49:22 CEST] <StatiQ> andraeid 2.2 armv6 Vfp modded firefox /28/29 version (highly slow). if was only the xulrunner it may works
[23:50:16 CEST] <StatiQ> if i found xulrunner for phones i will construct an interface for ffmpeg like i don on pc in my pendrive.
[00:00:00 CEST] --- Sat Jul  4 2015


More information about the Ffmpeg-devel-irc mailing list