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

burek burek021 at gmail.com
Sun Oct 6 02:05:01 CEST 2013


[00:30] <braincracker> hai
[00:30] <braincracker> FEAR ? http://www.youtube.com/watch?v=0MAgfFjk5Z4
[00:36] <llogan> you spend too much time at yt
[03:11] <rypervenche> I've got a quick question. I've got a script that takes a screencast for me. It used to work just fine. Recently I noticed that while it looks fine for me, it's very short in length and it's very sped up for others. Here are the relevant lines: http://ryp.io/17 . Any ideas why this would be?
[03:22] <klaxa> weird, script looks fine
[03:25] <rypervenche> I'll make a quick video to show you and see if it does the same thing for you.
[03:29] <rypervenche> klaxa: I should probably put more stuff in the video to show the speed difference, but yeah: http://d.ryper.org/test.mkv
[03:30] <klaxa> it says here 5 seconds, 30 fps
[03:30] <klaxa> mouse seems rather fast, ffmepg outpur is also fast
[03:31] <klaxa> also doesn't match the ~4 fps encoding speed stated by ffmpeg
[03:31] <klaxa> what are your parameters?
[03:31] <klaxa> like for the variables in the script when you execute it
[03:33] <klaxa> rypervenche: ^
[03:33] <braincracker> October 1 2013 - 800 FEMA Camps in USA ran by Homeland security fully operational Last days  http://www.youtube.com/watch?v=1Q8IliKVOXM
[03:33] <braincracker> for every sane person
[03:37] <anon_> Hello, when I remux an mkv to another mkv, there is a 42ms container-based delay for all audio and video tracks in the output. How do I disable that?
[03:38] <rypervenche> klaxa: http://ryp.io/19
[03:39] <klaxa> hmm... weird
[03:39] <klaxa> can you paste ffprobe lossless.mkv and ffprobe test.mkv?
[03:39] <rypervenche> Sure. I deleted the raw one, let me recreate a file.
[03:39] <rypervenche> And thank you for your help by the way.
[03:44] <rypervenche> klaxa: lossless: http://ryp.io/1a  test2: http://ryp.io/1b
[03:45] <klaxa> hmm... that's really weird
[03:46] <klaxa> can you upload the lossless?
[03:46] <rypervenche> I'm not very knowledgable in this, but is it possible that it can't write to disk quickly enough?
[03:46] <rypervenche> SUre.
[03:46] <klaxa> in that case you would see "droopped x frames" during recording
[03:46] <klaxa> *dropped
[03:48] <rypervenche> klaxa: Ok, so here is the new video and the lossless: http://d.ryper.org/test2.mkv http://d.ryper.org/lossless.mkv
[03:49] <rypervenche> The seconds in the recording should be counting in real time shouldn't they? Because they're not for me. I'm on a pretty crappy laptop. I can try the same thing on my work laptop which has an i5.
[03:49] <klaxa> ah hmm... i think i know what the problem is
[03:50] <klaxa> you are recording at 30 fps, meaning ffmpeg will stuff 30 frames into one second
[03:50] <klaxa> your CPU is probably not fast enough to actually provide 30 frames per second to ffmpeg
[03:50] <klaxa> so it gives ffmpeg 3.6 frames and ffmpeg will wait until it has accumulated 30 frames and put those into one second
[03:51] <rypervenche> Ah, that would do it.
[03:51] <klaxa> if you try it with 3 fps it should be fast enough
[03:51] <klaxa> just for measurement now
[03:51] <klaxa> CPU shouldn't be at 100% too
[03:52] <klaxa> that's some weird behavior though
[03:52] <klaxa> for me ffmpeg would just drop a lot of frames
[03:52] <klaxa> i think
[03:53] <klaxa> ah no, it does the same thing for me
[03:54] <rypervenche> klaxa: http://d.ryper.org/test3.mkv looks to have been the issue.
[04:03] <rypervenche> klaxa: Do you know off hand if there's a way to have it lower my FPS automatically if it can't handle it?
[04:03] <klaxa> hmm...
[04:05] <klaxa> don't put the target framerate to the input?
[04:05] <klaxa> i.e. move the -r after the -i
[04:05] <klaxa> hmm or rather remove it at all i think?
[04:05] <rypervenche> Ok, I'll do some testing. Thanks a lot. :)
[04:05] <klaxa> if you remove it, it will result in a variable framerate file though
[04:06] <klaxa> you will re-encode anyway that will duplicate some frames
[10:34] <relaxed> fahadash: yes
[10:35] <relaxed> use pad to create a blank canvas next to one of the inputs and -filter_complex to overlay the second input in the padded area
[10:45] <ubitux> there is an example to that btw
[11:26] <realeyes> hey guys anyone have ffmpeg working on OSX?
[11:26] <realeyes> using homebrew?
[11:36] <Aspi> greetings. I am trying to compile ffmpeg with libfdk-aac. Sadly, ffmpeg gives me the error that it does not find "libfdk_aac", but the package I have compiled for it names itself "libfdk-aac". How can I resolve this? (I guess it would be more logical to tell ffmpeg to look for libfdk-aac, than to rename the original package)
[11:44] <JEEB> you should check config.log for what exactly fails
[11:44] <JEEB> I mean, I'm pretty sure it's not checking for package management package names
[11:45] <JEEB> pkg-config? possibly
[11:45] <JEEB> but in that case it should still check for headers and libraries
[11:49] <JEEB> also since the guy who wrote the fdk-aac wrapper in libavcodec also made the configure etc. systems for fdk-aac I'm pretty sure it is checking for the right thing if pkg-config is used to find it
[12:00] <Aspi> sorry, was offline
[12:00] <Aspi> darn, JEEb, you're here as well. hehe, remember you from x264-discussion
[12:02] <Aspi> oh. still, it says libfdk_aac was not found, and it should be looking for libfdk-aac
[12:02] <Aspi> I'll test around. ty for thoughts
[12:03] <Aspi> (not very used to compiling yet
[12:03] <JEEB> as I said
[12:03] <JEEB> look at config.log
[12:03] <JEEB> that one says exactly what failed
[12:03] <JEEB> libfdk_aac is the internal name for fdk-aac inside ffmpeg :P
[12:04] <Aspi> ok. "ERROR: libfdk_aac not found"
[12:04] <Aspi> ah. didn't find aacenc_lib.h
[12:04] <JEEB> just pastebin the whole config.log onto a pastebin site and link it here :P
[12:04] <JEEB> but yes, that sounds more like it
[12:05] <Aspi> http://pastebin.com/qv3PYPVe
[12:05] <Aspi> gotta go very soon, havenæt got much time
[12:06] <JEEB> yup, it fails to find the header
[12:07] <JEEB> as you can see the library it tries to link against when testing is fdk-aac
[12:07] <JEEB> so that part is just fine, after all the person who made the generally usable version of fdk-aac from the android sources is the guy who made the libavcodec wrapper as well :P
[12:07] <Aspi> got the source from sf though. should perhaps get it frmo github
[12:08] <JEEB> well, in either case after installing the thing you should have the headers and libraries.
[12:08] <Aspi> I'll troubleshoot more later
[12:09] <Aspi> (I'm also using Windows O:) )
[12:09] <Aspi> ty for help, cya around probably. so long!
[12:09] <JEEB> that shouldn't really matter
[14:57] <Chat0525> Hello
[15:16] <g0twig> hey
[15:17] <g0twig> I want to put the audio track of a mp4 file on the audio track of another mp4 file, with audio seeking 1 second, the new audio track should step in 1 second after the first  file
[15:17] <g0twig> how can I do that and how long will it take for a 2 hours movie
[15:18] <g0twig> oh the video from which I want the audio is a avi
[15:18] <zap0> avi is a container.
[15:21] <g0twig> can you help?
[15:22] <g0twig> Put the audio track of the avi file, and replace the audio track of the mp4 file.
[15:22] <g0twig> the new audio track however needs 1 second seek
[15:23] <g0twig> I used something like ./ffmpeg -ss 00:01:00 -i '/home/eduardgotwig/Downloads/Upside.Down.2012.1080p.BluRay.x264.anoXmous/Upside.Down.2012.1080p.BluRay.x264.anoXmous_.mp4' -i '/home/eduardgotwig/Downloads/www.torrent.to...Upside.Down.German.BDRip.MD.XViD-ViB/Upside.Down.German.BDRip.MD.XViD-VIB.avi'    -vcodec copy -acodec copy    -acodec copy    destination.mp4 but it dooesnt work
[15:24] <g0twig> hm....
[15:28] <g0twig> no idea?
[15:29] <g0twig> zap0: ?
[15:32] <g0twig> Maverick|MSG: hey
[15:32] <Maverick|MSG> hello
[15:33] <g0twig> Maverick|MSG: can you help?
[15:34] <Maverick|MSG> I'm definitely no ffmpeg master unfortauntely
[15:34] <g0twig> I want to put an audio file on a mp4 video, but only one second after the video already played
[15:34] <g0twig> any idea?
[15:34] <g0twig> replace the mp4 audio track
[15:36] <zap0> you sound like a pirate
[15:39] <g0twig> oh really xD no
[15:39] <g0twig> only member of pirate party
[15:51] <g0twig> so how can I replace the audiotrack of a movie with an audiofile
[15:52] <c_14> g0twig: You might want to try a remuxer instead of ffmpeg, I know you can do what you're trying to do with mkvmerge, but that will give you an mkv. If you want an mp4 you might want to search for an mp4 remuxer.
[15:53] <g0twig> just adding an audiotrack to a mp4 file :/
[15:59] <g0twig> I just do a mkv..
[16:00] <c_14> What you can try is mkvmerge -o output.mkv -D -y 1:100 fileyouwantaudiofrom.avi otherfile.mp4
[16:00] <c_14> That's off-topic here though, so either pm me or try and find a channel for that.
[16:09] <sponji> I'd like to understand why x11grab leaks memory, http://pastebin.com/sTA8G4Fa
[16:14] <sponji> not a big problem when using from commandline like that, but I noticed that while using it in my own program
[16:14] <sponji> and I want to open and close it whenever I want
[16:17] <dk0r> I have many pngs w/ transparent backgrounds. When I use the command in the following link, the video is produced w/ a black background. How may I change the color of the background used?  http://pastebin.com/tPp6Duhp
[16:30] <g0twig> seriously, I dont know what to do.. I just want to add an audiotrack to the movie, and get SOMETHING out, I dont even care anymore about the output format
[16:30] <g0twig> I also tried the mkvmerge tool..
[16:30] <g0twig> it seems my original video file has two audio tracks. I want to eliminate both, and just use my new audiotrack from the FLAC file..
[16:38] <g0twig> I just remove the fucking first audio track shit, and than add a new track
[16:39] <durandal_1707> dk0r: i think you could use overlay filter with color source filter
[16:41] <dk0r> durandal_1707: the man only referes to overlaying on top of video, not behind (as a background) http://ffmpeg.org/ffmpeg.html
[16:41] <dk0r> perhaps I'm missing something; I'm new to using ffmpeg
[16:43] <Mavrik> em, I think the doc is pretty clear:
[16:43] <Mavrik> It takes two inputs and one output, the first input is the "main" video on which the second input is overlayed.
[16:50] <durandal_1707> dk0r: why i was telling about overlay is because codec you use in mp4 does not have alpha component, and thus it is removed
[16:50] <durandal_1707> and ffmpeg does not use alpha plane at all when converting from say rgba to rgb24
[16:51] <dk0r> alpha is transparency %?
[16:51] <durandal_1707> yes
[16:51] <durandal_1707> so you need to use overlay filter to define what you will make use of transparency
[16:52] <dk0r> ty for info. i still don't see how to change background color of video so I just changed my source png files
[16:52] <durandal_1707> for example image could be full transparent with black circle, you would got just black frame when converting...
[16:52] <dk0r> right; that's essentially the problem I had
[16:54] <durandal_1707> ffmpeg -i pngs -f lavfi -i color=red:WxH(same size as pngs) -filter_complex overlay o.mp4
[16:54] <durandal_1707> or something like that....
[17:01] <Muzer> what is the status of MVC playback in ffmpeg? Is it being worked on?
[17:01] <Muzer> (I found someone's masters thesis about it from earlier this year, but not much else...)
[17:02] Action: durandal_1707 searching logs
[17:03] <Mavrik> MVC?
[17:03] <Muzer> stereoscopic H.264
[17:04] <Mavrik> ah
[17:04] <Mavrik> afaik the flags are supported, ffmpeg doesn't do any playback per se
[17:04] <Muzer> yeah, shouldn't have said playback
[17:05] <Muzer> but yeah, it's strange that after this time there's still no open-source software that does it. I can only assume there are few people with the necessary knowledge interested in 3D ;)
[17:06] <durandal_1707> in open-source its not about knowledge but about time and money, oss devs are not robots they are humans
[17:09] <Muzer> well, yes, but assuming for a minute it's not something you're getting paid for (I don't know how much ffmpeg development is paid for...), you'd need all three of time, interest and knowledge (of the system as a whole as well as relevant general knowledge, etc.) to make a contribution.
[17:12] <durandal_1707> Muzer: yes but money and time are more important
[17:12] <Muzer> fair enough.
[17:21] <Muzer> so yeah, does anyone know if there IS ongoing development? I've seen a few things that imply there is (as well as the aforementioned paper) but nothing concrete
[17:27] <durandal_1707> nobody come up and told: hey I'm working on MVC
[17:27] <durandal_1707> there was just some guy how was planed to work on it when he finds time
[17:27] <Muzer> ah, fair enough
[17:28] <durandal_1707> another one wanted to do it as GSOC13 but as ffmpeg was not accepted, nothing happened
[17:28] <Muzer> that's a shame
[17:29] <durandal_1707> somebody could work on it in secret, but i highly doubt that
[18:00] <fahadash> relaxed, ubitux: Can I tell it to skip first few seconds of video1 but play video2 from 00:00 ?
[18:11] <fahadash> Hello
[18:12] <fayisha> hi im trying to help fahadash
[18:12] <fayisha> you can use -filter_complex to merge two input files into one output file?
[18:13] <fahadash> fayisha: This channel is not very lively, people are generally quiet and when you've given up and gone to sleep you start getting respones :S
[18:13] <fayisha> oh
[18:13] <fayisha> well what fahadash is looking for is to not use an overlay but place the videos side by side
[18:13] <fahadash> I just read responses to my questions that I asked 7 hours ago
[18:14] <fayisha> the first example in the man page under -filter_complex is what we need but what other options are there besides overlaying?
[18:37] <durandal_1707> can you repeat what is your issue?
[18:41] <fayisha> we are trying to place two videos side by side with -filter_complex but in the example in the man page, it uses "overlay" we need the input streams to be placed side by side
[18:42] <fahadash> durandal_1707: <fahadash> I have a video of a squirrel that I shot in my patio with two different cameras set at different angles... I would like to merge them together so they play side by side on half the screen on each side
[18:45] <durandal_1707> video have two streams or that are two separate files?
[18:46] <fahadash> Two separate files
[18:47] <durandal_1707> ffmpeg -i video1 -i video2 -lavfi interleave=2,stereo3d=al:sbsl
[18:48] <fayisha> durandal_1707: can you explain that line please?
[18:49] <durandal_1707> what needs explanation?
[18:49] <fayisha> -lavfi interleave=2,stereo3d=al:sbsl
[18:51] <fahadash> It says: No such filter: 'sbsl'
[18:52] <fahadash> Oh wait I was using semicolon in front of sbsl, now corrected it. Got another error
[18:52] <manitu> hi ho.. i have some real "noob" questions.. most time i just used ffmpeg -i in.some out.output .. not i start getting deeper in ffmpeg it seems (i did read some already, but it's really hard if you know like nothing about encoding).. i have a "wlan-switch" here, which has ushare on it.. if i try to play mkv it really lags hard, because the device doesn't have much cpu and can read from the hdd up to ~3mb/s .. i have a 1080p mkv
[18:52] <manitu>  here and want to convert it to mp4 (since it seems to be played much nicer).. i already converte it with some options i found, but the quality is very bad (i saw pixels pretty much at the gradient).. what could i do against that?
[18:54] <manitu>     Stream #0:0: Video: h264 (High), yuv420p, 1916x1080 [SAR 1:1 DAR 479:270], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) goes to -> Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1916x1080 [SAR 1:1 DAR 479:270], q=2-31, 200 kb/s, 24k tbn, 23.98 tbc (default)
[18:55] <manitu> my options was -i, -map and -strict -2 -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300
[18:56] <fahadash> durandal_1707, fflogger: http://pastie.org/8380068
[18:56] <manitu> it does not have to be 1080p in the end, but it should be displayed nice at the tv :)
[18:57] <fahadash> durandal_1707: I guess the problem is different resolutions
[18:58] <manitu> http://pastebin.com/qCS6E4Sz << here is my full log
[18:58] <durandal_1707> fahadash: if they are in different resolution then you can use scale and overlay filter
[18:58] <fayisha> durandal_1707: we want mosaic
[18:59] <durandal_1707> what?
[18:59] <fahadash> Is -scale a switch ?
[18:59] <durandal_1707> overlay filter can put two videos side by side just fine
[18:59] <durandal_1707> fahadash: nope, scale filter
[19:00] <fahadash> Is there any infopages online ?
[19:00] <fayisha> side by side using pad
[19:01] <fayisha> i found this: -filter_complex "[0:v]pad=iw*2:ih:0[left];[left][1:v]overlay=W/2.0[fileout]" -map "[out]"
[19:02] <fahadash> what goes in [fileout] ?
[19:06] <fahadash> I scaled the video separately, now it seems to be working
[19:06] <fahadash> durandal_1707: It worked :)
[19:06] <fahadash> durandal_1707: One of my camera started recording a little bit earlier than the other... Is there any way I can tell this to skip a few frames/seconds on one video ?
[19:09] <fahadash> I spoke too soon, it did work and put first frames of both the videos side by side as still picture
[19:10] <durandal_1707> yes, i experience that same issue here, and trying to fix such nonsense
[19:11] <fahadash> Oh man, you are something
[19:12] <fahadash> fayisha: Yours work and is not doing still picture; However, its not scaling the smaller video, its adding a blank area
[19:13] <fahadash> Now I need to figure out how to skip first few seconds on video1
[19:13] <fayisha> https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos
[19:13] <fayisha> this page looks intersting
[19:14] <durandal_1707> that is for overlay
[19:14] <fahadash> https://www.dropbox.com/s/f6nbmztsvf3fca1/out2.mkv?m
[19:14] <durandal_1707> fahadash: you can do same thing with pad and overlay..
[19:14] <fayisha> durandal_1707: that is what i had said
[19:14] <fayisha> and that does use pad and overlay
[19:14] <durandal_1707> fahadash: what is your command now?
[19:15] <fahadash> ffmpeg -i video1.wmv -i video2.wmv -filter_complex "[0:v] pad=iw*2:ih:0[left];[left][1:v]overlay=W/2.0[fileout]" -map "[fileout]" out2.mkv
[19:16] <durandal_1707> what version are you using?
[19:18] <fahadash> Now comes the time when you guys would wanna kill me
[19:18] <fahadash> Because I am using a windows binary
[19:19] <fahadash> I am using: Zeranoe FFmpeg Build Version: git-e1f8184 (2013-10-04)
[19:19] <fahadash> http://ffmpeg.zeranoe.com/builds/
[19:20] <durandal_1707> nah, that is fine
[19:21] <pietro10> Hi. I'm trying to grab my entire screen with ffmpeg (jon severinsson's PPA on ubuntu 13.04/linux mint 15) x11grab and regardless of whether or not I set an input or output resolution it will only encode the upper left corner of my 1440x900 screen. What's going on? Thanks
[19:21] <pietro10> let me get the exact size it encodes...
[19:22] <pietro10> the upper 640x480
[19:23] <durandal_1707> fahadash: i cant reproduce issue here with overlay
[19:23] <pietro10> though setting the output resolution to anything else will just stretch this small portion of the screen
[19:24] <durandal_1707> pietro10: before asking questions read documentation
[19:24] <pietro10> I am, it says nothing about my issue
[19:24] <durandal_1707> what documentations you have read?
[19:24] <pietro10> I set the input and output resoliutsiont o various values and omit them entirely, same result - only the upper left corner of the screen gets recorded, stretched to the output resolution
[19:25] <durandal_1707> that is not what you asked
[19:25] <durandal_1707> read
[19:25] <pietro10> ...yes that is
[19:25] <pietro10> not sure wha tyou thought I asked
[19:25] <durandal_1707> http://ffmpeg.org/ffmpeg-devices.html#toc-x11grab
[19:26] <durandal_1707> it clearly mentions what is default video record size
[19:26] <pietro10> I read that when I first set up ffmpeg x11grab ages ago on another stream and have hceck various other places including elsewhere on ffmpeg.org
[19:27] <pietro10> ugh ok so it's a separate option
[19:27] <pietro10> thanks
[19:28] <fahadash> durandal_1707: http://pastie.org/8380134
[19:29] <fahadash> durandal_1707: Video output is already shared through dropbox
[19:29] <fahadash> If you want, I can share the source  videos
[19:31] <durandal_1707> fahadash: fell free to share it (by any mean), so it just show first frame?
[19:31] <fahadash> video1 : https://www.dropbox.com/s/50yuxlcksx6e4a5/video1.wmv
[19:31] <fahadash> video 2: https://www.dropbox.com/s/p0ciw1vszs8qhb7/video2.wmv
[19:43] <fahadash> Although fayisha's command works; it looks like it has bugs... One of the video was stuck after a few seconds
[19:43] <fahadash> I tried that on two videos of same resolutions; I found two videos someone was sharing online
[19:44] <durandal_1707> its probably because they have different pts
[19:44] <durandal_1707> in which case you need to use setpts filter on both inputs
[19:44] <fahadash> durandal_1707: I am a n00b. Whats pts ?
[19:44] <durandal_1707> exp if they are vfr
[19:44] <durandal_1707> pts = presentation timestamp
[19:45] <fahadash> I am now using two MOV files filmed using iPhone camera
[19:45] <fahadash> One is slightly longer than the other
[19:45] <fahadash> oh wait
[19:45] <fahadash> I think I put wrong videos in
[19:46] <fahadash> The reason 1 video comes to a complete halt is because its too small
[19:49] <fayisha> fahadash: pm
[19:50] <Geha3> Hi I have a problem about remapping audio streams It is lonher description so I uploaded it here http://bpaste.net/show/138032/ , Id like to have some info about it if you can.
[19:54] <durandal_1707> Geha3: if audio decodes/plays/sounds fine with ffmpeg there is nothing we can do to fix it for vlc
[19:55] <Geha3> durandal_1707, Wow now I get it, I agree.
[19:55] <Geha3> (It plays in mplayer)
[19:59] <Geha3> I guessed there is some error in avi which ffmpeg could fix.
[20:00] <durandal_1707> what about other players (not vlc,not mplayer ...)?
[20:00] <durandal_1707> if they do play it fine, there is really nothing ffmpeg can do
[20:00] <durandal_1707> so pick one player, like qt that do not use lavf&lavc
[20:18] <fahadash> In what format scale should be specified ?
[20:19] <durandal_1707> it is mentioned in documentation
[20:22] <fahadash> It doesnt look like I am using the scale filter.
[20:22] <fahadash> ffmpeg -i munna1.mov -i munna2.mov -filter_complex "nullsrc=size=1024x768 [base]; [0:v] setpts=PTS-STARTPTS, scale=1 [left]; [1:v] setpts=PTS-STARTPTS, scale=2 [right]; [base][left] overlay [tmp1]; [tmp1][right] overlay:x=512 [tmp2]" out6.mkv
[20:23] <fahadash> I am trying to keep video1's size but scale video2 to 2x
[20:23] <durandal_1707> scale filter is used to change video resolution
[20:23] <durandal_1707> fahadash: by default scale keeps same aspect ratio
[20:24] <fahadash> It did not
[20:24] <fahadash> Anyways, scaling is one of the issues; I have to synchronize the play of both the videos by skipping first few seconds of one
[20:25] <fahadash> does setpts do that ?
[20:25] <durandal_1707> you can use trim filter, or seek with -ss
[20:36] <fahadash> Docs say I can specify -ss before -i
[20:37] <fahadash> Its running right now, processing 0.5 mb per seconds
[20:38] <fahadash> durandal_1707: Can we write scripts save them in separate files and run with ffmpeg ?
[20:39] <fahadash> I would love to be able to have something like ffmpeg -s my_own_video_merger.ff -arg1=a -arg2=filename.mov
[20:43] <durandal_1707> yes
[20:44] <durandal_1707> -filter_script file
[20:45] <durandal_1707> ffmpeg -i ....  -filter_script file output...
[20:59] <fahadash> cool
[21:00] <fahadash> durandal_1707: Is there any switch to rotate 90 degree clockwise ?
[21:00] <durandal_1707> fahadash: look at other filters
[21:01] <fahadash> Can I use transpose=1 just like that ?
[21:02] <fahadash> ffmpeg -i munna1.mov -f transpose=1 -i munna2.mov  -f transpose=1 -filter_complex "nullsrc=size=1024x768 [base]; [0:v] setpts=PTS-STARTPTS, scale=1 [left]; [1:v] setpts=PTS-STARTPTS, scale=2 [right]; [base][left] overlay [tmp1]; [tmp1][right] overlay:x=512 [tmp2]" out6.mkv
[21:02] <durandal_1707> transpose is filter
[21:03] <durandal_1707> so you put into filtergraph when you want to transpose frmae
[21:03] <fahadash> ok
[21:32] <fayisha> how do you specify x,y coordinates with overlay option when using -filter_complex
[21:33] <fayisha> i have tried overlay:x=512 , overlay x=512 , overlay_x=512 , overlay-x=512 , overlay;x=512 everything i could think of but nothing works
[21:35] <fayisha> overlay=x=512 seems to go fine until i get: Output pad "default" with type video of the filter instance "Parsed_overlay_4" of overlay not connected to any destination
[21:37] <durandal_1707> some filter outputs is not connected to anything...
[21:41] <fayisha> i am doing:
[21:41] <fayisha> ffmpeg -i munna1.mov -i munna2.mov -filter_complex "nullsrc=size=200x100 [background]; [0:v] setpts=PTS-STARTPTS, scale=100x100 [left]; [1:v] setpts=PTS-STARTPTS, scale=100x100 [right]; [background][left] overlay=shortest=1 [background+left]; [background+left][right] overlay=shortest=1:x=100 [left+right]" out.mov
[21:41] <fahadash> durandal_1707, I am trying one of the example from the docs and it is telling me that output of some overlay is not connected to anything
[21:42] <durandal_1707> what example?
[21:42] <fahadash> fayisha: That is exactly what I just tried and its giving me Output pad "default" with type video of the filter instance "Parsed_overlay_6" of overlay not connected to any destination
[21:42] <fayisha> yep
[21:42] <fahadash> durandal_1707: http://ffmpeg.org/ffmpeg-filters.html#Examples-24, the one that says "Compose output by putting two input videos side to side:"
[21:43] <saste> fahadash, fayisha are you the same person, because it's a bit confusing
[21:43] <fayisha> no we aren't but i am working on this with fahadash
[21:43] <saste> i blame ubitux for that example, it lacks an output
[21:43] <fayisha> he is using windows and i am using linux
[21:44] <fahadash> And it works on neither
[21:44] <fahadash> durandal_1707: http://pastie.org/8380364
[21:44] <saste> fahadash, please read -filter_complex docs
[21:47] <fayisha> we already have
[21:47] <saste> fayisha, you can ignore the ending label, or reference it with -map
[21:48] <saste> [left+right] after overlay
[21:49] <fahadash> mapping works
[21:49] <fahadash> I added -map "[left+right]" and its busy now
[21:49] <fahadash> wow, it nailed it
[21:52] <fayisha> fahadash: post complete command for me
[21:53] <fahadash> ffmpeg -i munna1.mov -ss 4 -i munna2.mov -filter_complex "nullsrc=size=200x100 [background];[0:v] setpts=PTS-STARTPTS,scale=100x100 [left];[1:v] setpts=PTS-STARTPTS,scale=100x100[right];[background][left]overlay=shortest=1[background+left];[background+left][right]overlay=shortest=1:x=100 [left+right]" -map "[left+right]" out.mkv
[21:55] <fayisha> that does work
[21:57] <fayisha> it works but the videos need to be rotated and then scaled to look decent
[21:59] <fahadash> And synced
[21:59] <fahadash> Do MOV files carry timestamps from system time ?
[22:00] <fahadash> If they are filmed with iPhone camera
[22:00] <fahadash> fayisha: I added transpose=1 on both the labels and it rotated the videos
[22:00] <fahadash> ffmpeg -i munna1.mov -ss 4 -i munna2.mov -filter_complex "nullsrc=size=1024x768 [background];[0:v] setpts=PTS-STARTPTS,transpose=1,scale=512x768 [left];[1:v] setpts=PTS-STARTPTS,transpose=1,scale=512x768[right];[background][left]overlay=shortest=1[background+left];[background+left][right]overlay=shortest=1:x=512 [left+right]" -map "[left+right]" out.mkv
[22:01] <fayisha> transpose did not work for me earlier
[22:01] <fahadash> saste: The example puts video1 or the first -i filename on [left] right ?
[22:02] <fahadash> Did you put transpose=1 before the scale ?
[22:02] <fayisha> yes
[22:02] <fayisha> and idk
[22:03] <fayisha> doing that now
[22:04] <saste> fahadash, can't parse your question
[22:04] <fahadash> Which video goes into [left] in the example ?
[22:05] <fahadash> Ok I get it now
[22:06] <fayisha> the scaling did not work, and the quality looks bad
[22:06] <fayisha> although the transpose worked
[22:09] <Aspi> greetings. I have problems compiling ffmpeg with fdk-aac on Cygwin. it quits with the message "ERROR: libfdk_aac not found". config.log says ".../i686-pc-cygwin/bin/ld: cannot find -lfdk-aac"
[22:09] <Aspi> does anyone have a clue to how I can compile this beast, with this less of a beast fdk-aac library?
[22:09] <JEEB> well, the error itself is rather straightforward
[22:10] <JEEB> couldn't link against that library because a library file matching the general naming conventions + "fdk-aac" was not found in the library search paths
[22:10] <JEEB> this might sound like a weird question, but how did you compile fdk-aac?
[22:10] <JEEB> compile and install
[22:11] <Aspi> hi again. after some problems, I configured with --prefix as well. tried both with --enable-shared and --disable-shared
[22:11] <Aspi> error all the times
[22:12] <Aspi> so basically, yes, compile and install
[22:12] <JEEB> now actually answer my question
[22:12] <JEEB> HOW did you do it?
[22:12] <fayisha> fahadash: nevermind, i did not have your new scaling options
[22:12] <Aspi> git cloned, ./configure -> make -> make install. nothing more
[22:12] <Aspi> no, downloaded from sourceforge
[22:13] <Aspi> under Cygwin, all this
[22:13] <fahadash> -ss 00:00:03.333 <-- 3 would be 300 milliseconds or 3 milliseconds ?
[22:13] <fayisha> that looks like 3 seconds
[22:14] <fayisha> imo
[22:14] <fahadash> Sorry my question is little bit messed up lol
[22:14] <fahadash> -ss 00:00:03.5 <-- 5 would be 3 seconds and 500 milliseconds or 3 seconds and  5 milliseconds ?
[22:15] <fahadash> ignore the first '5' above
[22:15] <Aspi> my most current config.log: http://pastebin.com/YyqWX2vT
[22:16] <klaxa> fahadash: 00:00:03.5 == 00:00:03.500
[22:17] <fayisha> fahadash: the original videos are 1920x1080, so i scaled both videos to 960x540 and the first file is cut off and the middle of the video plays, then the second video is wide but does not cover the whole background, and both are pixely
[22:18] <fayisha> a lot of the background space is just transparent
[22:18] <Aspi> FYI, I also git cloned x264, compiled with my current setup, and it fails too. I compiled the exact same way under Linux, and everything just worked. sigh.
[22:19] <Aspi> Are you experienced in compiling in Cygwin environments?
[22:19] <fayisha> do you need cygwin
[22:20] <Aspi> and how are the official windows ffmpeg compiled, Win32 API (MinGW style) or through compat-layer (Cygwin style)?
[22:20] <Aspi> I don't really need Cygwin. It's just that I have a ready Cygwin setup, and would like to use it in that
[22:21] <Aspi> what are the tools needed for library linkage? I need to check if I have all the tools needed for library linkage
[22:21] <JEEB> Aspi, you have
[22:21] <JEEB> I think it's more about the default linker search path :P
[22:22] <JEEB> and include
[22:22] <Aspi> is "ld.exe" the locator?
[22:22] <JEEB> Aspi, check if the directory you installed to is listed here http://stackoverflow.com/questions/9922949/how-to-print-the-ldlinker-search-path
[22:22] <JEEB> as in, listed in your linker
[22:22] <JEEB> it is the linker and thus the locator, yes
[22:23] <JEEB> if it doesn't contain the directory you installed to
[22:23] <JEEB> then you most probably have to add it to the compiler and linker
[22:23] <JEEB> which in case of ffmpeg would be
[22:23] <JEEB> --extra-cflags="-I/your/prefix/include" --extra-ldflags="-L/your/prefix/lib"
[22:23] <JEEB> /your/prefix being the place you installed to
[22:24] <Aspi> it probably doesn't. there's no ldconfig here. thanks a lot for the switches, 2 secs I'll try
[22:25] <JEEB> you should be able to get the library search paths from ld itself, too
[22:26] <JEEB> didn't notice that thing talked about ldconfig, which is for dynamic library indexing
[22:27] <JEEB> Aspi, this is related to headers, but it's pretty sure that the linker looks at the similar places http://stackoverflow.com/questions/344317/where-does-gcc-look-for-c-and-c-header-files
[22:27] <JEEB> so you could check that
[22:27] <JEEB> and yes, most probably a case of compiler/linker not looking to the place you installed the headers/libraries to
[22:28] <JEEB> I think the default prefix with most things is /usr/local
[22:28] <JEEB> which also is included in most linux distros
[22:28] <JEEB> (in default search paths)
[22:29] <Aspi> config.log said something about /usr/lib/.... problem is that /usr/lib doesn't exist.
[22:29] <Aspi> "/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/bin/ld"
[22:30] <fahadash> fayisha: There was another parameter that you had to change to 960
[22:30] <Aspi> still, it is kind of a valid path, since that very path exists, given the go-backs of the ..   still I don't know if it fails because of the first paths non-existance
[22:30] <JEEB> no
[22:31] <JEEB> just check your goddamn gcc search paths already instead of trying to make weird theories :P
[22:31] <Aspi> $ gcc -print-prog-name=fdk-aac
[22:31] <Aspi> fdk-aac
[22:31] <Aspi> if that's what you're referring to
[22:32] <fayisha> fahadash: what was that?
[22:32] <JEEB> Aspi, at times like this I wish there was a protocol to punching people over IRC
[22:32] <Aspi> haha xD
[22:32] <fahadash> fayisha: The last line of Example had overlay=shortest=1:x=100 , <-- that 100 needs to be changed to the value half the width of the total width of output
[22:33] <Aspi> it doesn't even make sense for anything to be searching where I installed, I made up the directory.
[22:33] <JEEB> well then of course
[22:33] <fahadash> JEEB: If there was, many people would wish Bill Gates was on IRC
[22:33] <JEEB> but you know
[22:33] <Aspi> with your custom c and ld flags, it SUCCESSFULLY configured! :D
[22:33] <JEEB> I still don't goddamn get it how you thought you could replace cc1/cc1plus with fdk-aac
[22:34] <fayisha> okay, is the output video 1920x1080 and both video get 960x1080 ?
[22:34] <Aspi> oh, that's what you meant
[22:34] <JEEB> and yes, since it most definitely was a case of just files not being found
[22:34] <fahadash> fayisha: Here is the final version...ffmpeg -i munna1.mov  -ss 2.4 -i munna2.mov -filter_complex "nullsrc=size=1920x1080 [background];[0:v] setpts=PTS-STARTPTS,transpose=1,scale=960x1080 [left];[1:v] setpts=PTS-STARTPTS,transpose=1,scale=960x1080[right];[background][left]overlay=shortest=1[background+left];[background+left][right]overlay=shortest=1:x=960 [left+right]" -map "[left+right]" out1.avi
[22:35] <Aspi> was custom flags a requirement, or just a exremely annoying bug on using windows compat layers (Cygwin, don't punch me for category theories as well)?
[22:35] <fayisha> does that produce the video that you are looking for ?
[22:35] <Aspi> "$ gcc -print-prog-name=cc1
[22:35] <Aspi> /usr/lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe" if you'd like
[22:36] Action: JEEB facepalms
[22:36] <JEEB> did you not read the goddamn link
[22:36] <JEEB> I'm pretty sure you didn't
[22:36] <JEEB> and don't goddamn paste the output of whatever it says at least here, because that would end up being pretty long :P
[22:36] <fahadash> saste, fayisha, ubitux and eveyrbody else... I got it working finally. Thanks
[22:36] <fayisha> :)
[22:37] <JEEB> also custom flags are a requirement if you install things outside of the default search paths
[22:37] <JEEB> not specific to windows or cygwin or anything else
[22:37] <fahadash> I wonder if there was a way to add a text overlay on both the clips like "Camera 01" and "Camera 02"
[22:37] <fahadash> s/was/is
[22:37] <Mavrik> fahadash, well add the filter on each of the filter chains that adds that text
[22:39] <Aspi> JEEB, my apologies. I did not read carefully
[22:39] <Aspi> I got it right now, and I won't paste it
[22:40] <fahadash> Mavrik: Which filter adds text ?
[22:40] <Mavrik> *sigh*
[22:40] <fahadash> fayisha: Yes it does; right one was shot with iPhone 4 crappy camera; there is nothing we can do about that
[22:40] <Aspi> JEEB: well, was interesting. bet I'll get around to bug you in the future as well. thanks a lot!
[22:42] <fahadash> or may be I should try 640x720 on both clips
[22:42] <fayisha> idk, you know how to scale the videos now
[22:43] <fahadash> fayisha: We should shrink the larger one to match the smaller one's size; that way it won't look that bad
[22:45] <fahadash> The smaller size is 1280x720, so we output would be 1280/2 = 640 on each side by 720
[22:46] <fahadash> LoL it looks crappier now
[22:46] <fahadash> iPhone camera sucks
[22:47] <fayisha> lolol
[22:47] <fahadash> Its amazing what command line can do
[22:48] <fayisha> ya
[22:48] <fahadash> I bet they launched Little Boy over Hiroshima through the command line
[22:48] <fahadash> They didn't have GUIs back then
[22:49] <fahadash> They probably still do "launch -endeavor1 -time 00:00:02 --full-throttle" at NASA
[22:53] <fayisha> haha
[23:03] <peanuter> the audio is out of sync on any avi that i convert to ogg format. any suggestions to correc this?
[00:00] --- Sun Oct  6 2013


More information about the Ffmpeg-devel-irc mailing list