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

burek burek021 at gmail.com
Mon Apr 1 02:05:01 CEST 2013


[01:19] <langoliers> http://kellyallisonjones.blogspot.hu/2011/02/real-ladies-amuse-themselves-with.html
[01:19] <langoliers> :)
[04:32] <fortress_> hello, I'm having some trouble with audio and video being out of sync while capturing using ffmpeg.
[04:33] <fortress_> i'm capturing raw video from a PCI card (S-Video in) and capturing the audio using my sound card's line in.
[04:33] <fortress_> I've managed to get everything capturing properly (all lossless) to a file, but the audio and video are out of sync right from the start by about 0.7 seconds
[04:33] <fortress_> any idea how I can fix this, or what might be causing it ?
[04:37] <fortress_> here is the command I am running: http://pastebin.com/3mZUNe6n
[04:38] <klaxa> what is causing it? probably hardware-delays, how to fix it? have a look at -itsoffset, you will probably have to adjust the value for -itsoffset for every recording you make
[04:40] <fortress_> klaxa: i tried using itsoffset and it didn't seem to change anything. where is the correct place to insert that parameter?
[04:40] <klaxa> uh... i think before the -i option, should work for any stream
[04:41] <fortress_> my video capture card has audio in, but I wasn't about to figure out how to grab the audio from it using ffmpeg, that's why i'm putting the audio through the soundcard.
[04:41] <fortress_> do you know how I might access the PCI card's audio port? perhaps there will be no syncing issues that way
[04:41] <klaxa> hmm... no idea actually, see if alsa lists any input devices
[04:42] <fortress_> alsa does not
[04:42] <fortress_> it's only accessible via video4linux2
[04:42] <klaxa> huh? that sounds weird
[04:42] <klaxa> is there a way to playback the audio from the PCI input?
[04:42] <fortress_> it's a BT8x8 PCI capture card (pretty old)
[04:43] <fortress_> I have not found a way yet
[04:44] <klaxa> does lspci list something like this:
[04:44] <klaxa>    0000:02:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
[04:44] <klaxa>       (rev 02)
[04:45] <fortress_> one moment
[04:45] <fortress_> yes precisely.
[04:47] <klaxa> did you come across this page? http://www.tldp.org/HOWTO/html_single/BTTV/
[04:47] <klaxa> you might have to load the "btaudio" module
[04:47] <fortress_> klaxa: yes i've been over it a few times
[04:47] <klaxa> :S
[04:47] <fortress_> ah, i will check that
[04:47] <klaxa> check if it is already loaded with lsmod
[04:48] <klaxa> it's weird though, alsa should list it as a soundcard then
[04:48] <fortress_> it's not, and it's not installed or in any of the repositories
[04:49] <klaxa> what happens if you do "sudo modprobe btaudio" ?
[04:49] <fortress_> klaxa, how do you list alsa devices again? i am sure i checked but maybe i didn't use the right way
[04:49] <klaxa> um... dunno? lemme check
[04:49] <fortress_> module not found
[04:49] <klaxa> aplay -l
[04:50] <klaxa> uh... wait...
[04:50] <fortress_> or with capital L, i just found it as well
[04:50] <klaxa> maybe "arecord -l" is more apropriate
[04:50] <fortress_> let me check the output
[04:50] <fortress_> it's not listed there
[04:51] <fortress_> i have built in intel audio, and a soundblaster audio card. they both show up
[04:52] <fortress_> i think btaudio is for audio out
[04:52] <klaxa> http://forum.linhes.org/viewtopic.php?f=5&t=4156#p30327
[04:52] <klaxa> maybe this helps?
[04:54] <klaxa> http://www.mythtv.org/pipermail/mythtv-users/2004-September/053482.html
[04:54] <klaxa> this mail suggests that using the recording card's audio output is a bad idea
[04:54] <fortress_> one moment
[04:56] <fortress_> yeah, sounds like btaudio sucks anyways. i bet the sound quality from the PCI capture card is terrible compared to my soundblaster XFI card
[04:56] <fortress_> so it's back to dealing with the hardware latency that is somehow cropping up
[04:56] <fortress_> this is troublesome; you believe it will vary with each individual recording?
[04:56] <klaxa> i would think so
[04:56] <klaxa> i could be wrong though, test with a few values
[04:57] <fortress_> i'm going to try using -itsoffset and see what happens. i was able to sync the audio in VLC to see what the delay way, though it's not terribly precise
[04:57] <fortress_> *was
[05:02] <fortress_> klaxa: okay, i've got it synced using itsoffset, thank you for your help
[05:02] <klaxa> no problem :)
[05:02] <fortress_> do you know of any other ways to deal with sync issues?
[05:02] <fortress_> i read a bit about async, but i read it has been deprecated?
[05:02] <klaxa> yes, you are supposed to use a more advanced audio filter, one sec lemme find the documentation
[05:03] <fortress_> i also tried async and nothing changed, but i'm not sure i put it in the right place
[05:03] <klaxa> http://ffmpeg.org/ffmpeg-filters.html#asyncts
[05:03] <fortress_> thank you
[05:03] <klaxa> hmm yes this might be because the timestamps are "correct"
[05:03] <klaxa> when in fact they are actually delayed
[05:03] <fortress_> I see I see
[05:04] <fortress_> i'm going to get a timebase corrector for improving the video feed soon, i wonder if this will help or make things worse
[05:04] <klaxa> >This filter is not built by default, please use aresample to do squeezing/stretching.
[05:05] <klaxa> looking at this makes me guess that you will have to compile ffmpeg
[05:05] <fortress_> oh i see
[05:05] <fortress_> i'm making a note of that
[05:05] <fortress_> before i play with that, maybe you can help me with another issue
[05:05] <klaxa> sure
[05:06] <fortress_> when i play the captured video back in VLC the aspect ratio is incorrect
[05:06] <fortress_> it's displaying the pixel ratio, it's not in 4:3
[05:06] <fortress_> i've tried different things to get it to automatically consider it 4:3
[05:06] <fortress_> what is the correct method for doing this?
[05:06] <klaxa> hmm maybe -aspect 4:3 ?
[05:07] <fortress_> i've tried that, where do i put it in the command?
[05:07] <klaxa> after the video input
[05:07] <fortress_> okay one moment
[05:07] <klaxa> i think? i'm never too sure about argument placement myself
[05:07] <klaxa> most of the time i'm lucky and i put it in the right place
[05:08] <klaxa> usually it's like this: ffmpeg -f <format> <input options> -i <input> <output options> <output>
[05:08] <fortress_> wow that worked this time, i had it elsewhere in the command before
[05:08] <fortress_> thanks!
[05:08] <klaxa> nice
[05:09] <fortress_> that's a huge help
[05:09] <fortress_> hmm so compiling with async, maybe that will fix my sync problems perfectly
[05:09] <fortress_> that would be exciting
[05:09] <fortress_> so I guess, I need to remove ffmpeg, and compile it myself then install?
[05:10] <klaxa> you don't have to remove ffmpeg (i guess it would actually be quite the hassle since a lot of other software depends on ffmpeg)
[05:10] <fortress_> yeah that's what i was thinking
[05:10] <klaxa> you can just put it in a different directoy, you can specify a prefix during ./configure
[05:10] <fortress_> does analog video even send timestamps?
[05:10] <klaxa> i sure hope so
[05:11] <fortress_> oh i see, you mean, i can basically install a second copy of ffmpeg and run it with a different command?
[05:11] <klaxa> you don't even have to install ffmpeg at all, you just compile it and then specify the absolute path to the binary
[05:11] <klaxa> yeah
[05:11] <klaxa> be aware though, compiling itself isn't the hard work (well for your CPU it is), what i find most tiring is finding the correct parameters for ./configure
[05:12] <fortress_> i see, i don't exactly understand
[05:12] <fortress_> i haven't done a lot of manual compiling and installation before
[05:12] <fortress_> i will find the tarball
[05:12] <klaxa> hmm would be best if you checked out the git repo
[05:13] <klaxa> that way you can be sure to have the latest features and such
[05:13] <fortress_> i just got the nightly tarball
[05:13] <klaxa> about the ./configure thing, if you run ffmpeg without arguments (or even with arguments) it outputs a large chunk of text saying "Compile with --enable-libx264" and a lot of other strings formatted like "--asdfsadf-asdfasdf"
[05:14] <klaxa> those are the options specified with the ./configure script
[05:14] <fortress_> okay
[05:14] <klaxa> these options determine what parts of ffmpeg get compiled and what other libraries get linked to the binary (i.e. what other programs ffmpeg will be able to use, for example libx264)
[05:14] <fortress_> so copy those, and add the one i need?
[05:14] <klaxa> if you are lucky that works
[05:15] <fortress_> is there a way to see what the currently installed ffmpeg was compiled with, so i can make sure i retain all current functionality?
[05:15] <klaxa> you will need the development packages of the libraries that will be used, for example if you specify --enable-libx264 you will need the development files for libx264
[05:16] <fortress_> wow, okay
[05:16] <klaxa> yes if you run ffmpeg the stuff listed in the "compiled with" line are the options enabled at compile-time
[05:16] <klaxa> if you don't understand something, don't hesitate to ask
[05:17] <fortress_> alright, thank you for being so helpful and polite
[05:17] <klaxa> :)
[05:17] <fortress_> okay, yes i have the huge list of compile stuff from my ffmpeg
[05:18] <klaxa> alright, open a terminal and navigate to the ffmpeg source directory
[05:18] <klaxa> then run ./configure <all the options from your current ffmpeg>
[05:18] <klaxa> i would guess there will be errors
[05:18] <klaxa> missing libraries and such
[05:20] <fortress_> one sec, i'm trying to understand if i need some of these things listed
[05:20] <fortress_> i will pastebin
[05:20] <fortress_> http://pastebin.com/v0sJNfgk
[05:21] <fortress_> are the parts that are like " libavcodec     54. 59.100 / 54. 59.100" configuration options as well?
[05:21] <klaxa> >Hyper fast Audio and Video encoder
[05:21] <klaxa> i lol'd
[05:21] <fortress_> haha so did i actually
[05:21] <klaxa> hmm some of that stuff looks actually unneeded
[05:22] <fortress_> the parts that are on separate lines and have numbers following them, are those part of the configuration options, or something else?
[05:22] <fortress_> do i need to paste those?
[05:23] <klaxa> no those are the versions of the libraries ffmpeg was built with
[05:23] <fortress_> okay good
[05:23] <fortress_> so the last part is "--disab" ?
[05:23] <klaxa> ffmpeg and many other open-source video and audio related projects use one big library called libav (which itself is seperated into other libraries)
[05:23] <klaxa> yeah that looks truncated
[05:24] <fortress_> i see
[05:24] <fortress_> not good.
[05:25] <klaxa> if you compile this version of ffmpeg do you want to use that primary? otherwise we could strip it down to a rather specialized build just for recording that video card
[05:26] <klaxa> that would require a lot less development libraries to be installed
[05:26] <fortress_> yes that's fine, would it help if i outline to you my exact needs ?
[05:26] <klaxa> yes indeed it would :)
[05:28] <fortress_> I only need to do this: capture video from the BT8x8 PCI card, from both (not simultaneously) the composite and s-video inputs and encode it losslessly with huffyuv. The audio needs to be recorded from alsa and can either be a copy of the audio stream or flac.
[05:28] <fortress_> capturing the video requires video4linux2 to access the /dev/video device
[05:29] <klaxa> are you sure you want to use huffyuv?
[05:29] <fortress_> i am not
[05:29] <klaxa> what is your CPU?
[05:29] <fortress_> i just want lossless capture with a smaller file size than raw
[05:29] <fortress_> i7-3770
[05:29] <fortress_> i just built this computer for video encoding, haha
[05:30] <klaxa> ha nice, in that case i would suggest using x264
[05:30] <fortress_> is it lossless?
[05:30] <klaxa> it supports lossless settings and probably has the best encoding results
[05:30] <klaxa> compression wise
[05:30] <fortress_> interesting
[05:30] <klaxa> or do you want to postprocess it heavily?
[05:30] <klaxa> in that case x264 might not be too smart
[05:31] <fortress_> i only want it lossless because i will be converting later using avidemux to mpeg for burning to DVD. i specifically am using this old card because it does not have a hardware mpeg encoder
[05:31] <fortress_> as i can do it much better myself
[05:31] <fortress_> i will need to post process quite a bit sometimes
[05:31] <klaxa> hmm well how much harddrive storage do you have?
[05:32] <fortress_> consider it infinite
[05:32] <klaxa> i'm not too sure myself, but huffyuv might be the better option in that case, provided you have fast disk IO
[05:33] <fortress_> i think a 2 hour movie come close to 50 - 80 GB or so with huffyuv (based on rough calculations)
[05:33] <fortress_> yeah
[05:34] <fortress_> well, let's add support for huffyuv, rawvideo, and x264 just to be safe
[05:35] <klaxa> okay i'm running some compile configurations right now to see if all the stuff is covered
[05:35] <fortress_> i just don't want to encode the video or audio in any way while capturing
[05:35] <fortress_> i mean, in a lossy manner
[05:36] <fortress_> okay, thank you :)
[05:36] <klaxa> okay so, the encoders include flac, huffyuv and libx264
[05:36] <klaxa> among a lot of others which are compiled by default
[05:36] <fortress_> what about rawvideo
[05:36] <fortress_> does that count?
[05:37] <klaxa> yes
[05:37] <klaxa> that too is covered
[05:37] <fortress_> okay, excellent
[05:37] <klaxa> so what i ran was: --prefix=/usr/local --extra-cflags='-O2' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-pthreads
[05:37] <klaxa> uh... wait...
[05:37] <klaxa> no
[05:37] <klaxa> ./configure --prefix=/usr/local --extra-cflags='-O2' --enable-gpl --enable-pthreads --enable-libx264
[05:37] <klaxa> that one
[05:37] <fortress_> does that include the async part?
[05:37] <klaxa> ah good thinking, no it does not :P
[05:38] <fortress_> haha, indeed. thanks for your help, this looks like it will be quite lithe
[05:40] <klaxa> hmm for some reason the filter asyncts is not enabled, updating source...
[05:42] <klaxa> that's weird, although i specify --enable-filter=asyncts it doesn't get enabled in the configuration
[05:42] <fortress_> yikes
[05:44] <fortress_> is it a current bug (known or unknown maybe)? are we at a dead end?
[05:44] <klaxa> i don't know, we're defintely not at a dead end (yet)
[05:44] <fortress_> i'll try it on my end
[05:44] <klaxa> i ran: ./configure --prefix=/usr/local --extra-cflags='-O2' --enable-gpl --enable-pthreads --enable-libx264 --enable-filter=aresample --enable-filter=asyncts
[05:45] <fortress_> "yasm not found" ..... "disable yasm for a crippled build"
[05:45] <fortress_> haha
[05:46] <klaxa> ah well yes better install yasm :P
[05:47] <fortress_> done. libx264 not found. i'll install that as well
[05:47] <fortress_> actually it is installed.
[05:47] <fortress_> do i need the sources or something?
[05:47] <klaxa> yes install the development package
[05:47] <klaxa> that is needed
[05:48] <fortress_> okay
[05:49] <fortress_> it completed successfully
[05:49] <fortress_> so, under enabled filters, i should look for asyncts?
[05:49] <klaxa> yes
[05:49] <fortress_> it is absent.
[05:49] <klaxa> indeed it is... i changed it in the config.h header file, let's see how this turns out
[05:50] <fortress_> question, the command i just ran, did it install anything?
[05:50] <fortress_> or change anything on my system
[05:50] <klaxa> no
[05:50] <fortress_> or is it just the preparation for installation
[05:50] <klaxa> it's a preparation for the compilation
[05:50] <fortress_> if i run ./configure again with new options, will it overwrite the one i just ran? or should i do something to clear it?
[05:50] <klaxa> it will overwrite the files it created
[05:50] <fortress_> okay
[05:51] <fortress_> okay excellent, thank you for clarifying
[05:51] <klaxa> it created the config.* files and the Makefile
[05:51] <klaxa> and probably some more i don't know about, those are the most important ones though
[05:51] <klaxa> at least according to my knowledge
[05:51] <fortress_> at what stage do we choose the command name for the ffmpeg we are compiling?
[05:52] <fortress_> is it being configured to install into /usr/local?
[05:52] <klaxa> hmm... after compilation you can create a symbolic link in /usr/bin
[05:52] <klaxa> at the moment, yes
[05:52] <klaxa> you don't have to install it though
[05:52] <fortress_> okay
[05:53] <klaxa> you can simply create a link so it will be called if you call like "ffmpeg-custom" or something, if you create a symbolic link called "ffmpeg-cumstom" in a directory in your $PATH variable
[05:53] <fortress_> right, thank you
[05:53] <fortress_> did you idea work?
[05:53] <fortress_> *your
[05:53] <klaxa> can't tell yet, still compiling
[05:53] <klaxa> i don't have an i7 :P
[05:54] <fortress_> it's funny, beside my new technology here, i have a stack of VCRs, a laserdisc player, betamax player etc
[05:54] <klaxa> okay i ran across a compilation error...
[05:55] <klaxa> that is generally not good... hmm...
[05:55] <fortress_> hmm strange.
[05:59] <klaxa> hmm i also think my little "hack" didn't work as intended
[06:00] <fortress_> i'm looking around online, it seems that asyncts has been replaced with aresample
[06:00] <fortress_> maybe i should try using that
[06:00] <klaxa> well it's not exactly replaced by aresample
[06:00] <klaxa> asyncts should be used in combination with aresample
[06:01] <klaxa> so you don't get gaps in your audio but it gets stretched and squeezed (i.e. resampled) instead of cut off hard
[06:01] <fortress_> reading about aresample, it doesn't seem to be the same thing...
[06:01] <klaxa> at least, that's how i'd interpret it
[06:01] <klaxa> i think best would be to file a bugreport or wait for the devs to show up
[06:01] <fortress_> it doesn't sound like the solution i need
[06:02] <fortress_> okay, interesting
[06:02] <fortress_> the cool thing about asyncts is you can use -async 1   and it solves a lot of a/v sync problems (so i have read online)
[06:02] <klaxa> best would be to create a paste including the command you ran and the configuration output, point out that asyncts was not enabled although it was specified
[06:03] <fortress_> okay
[06:03] <klaxa> also create a paste of the config.log file
[06:03] <klaxa> that might help them, i'm not involved into development at all
[06:04] <fortress_> alright, i'm just looking for how to register on the bug report site
[06:05] <fortress_> i did a search and this issue has not yet been reported
[06:10] <fortress_> do you think maybe if we try using asyncts with what we've configured, it will just work anyways?
[06:10] <fortress_> maybe it's just not showing up in the filters list, but is actually present
[06:13] <klaxa> mmh i doubt that since there is libavfilter/af_asyncts.c which didn't get compiled
[06:13] <fortress_> ah i see
[06:14] <klaxa> and it says in the config.h "#define CONFIG_ASYNCTS_FILTER 0"
[06:14] <fortress_> anything else i should add to the report?
[06:15] <klaxa> i think that should suffice, maybe specify the version number
[06:15] <fortress_> what component is this
[06:15] <fortress_> build system?
[06:16] <klaxa> hmm yes that might be of interest too, is there some sort of drop-down menu or something? if not specify what gcc version you ran, what kernel, distribution and processor
[06:17] <klaxa> that should cover everything that is of interest
[06:17] <fortress_> there's a dropdown list for component
[06:17] <fortress_> has: ffmpeg, build system, avfilter, avcodec.... etc... many others
[06:18] <klaxa> hmm...
[06:19] <klaxa> build system should be the right one
[06:19] <klaxa> judging from other bugreports specifying that component
[06:22] <fortress_> does this summary title seem appropriate? : "asyncts not enabled despite being flagged during configuration"
[06:22] <klaxa> yes sounds good
[06:22] <klaxa> ah
[06:22] <klaxa> maybe make it asyncts filter
[06:23] <klaxa> so "asyncts filter not enabled despite being flagged during configuration"
[06:25] <fortress_> okay
[06:29] <fortress_> https://ffmpeg.org/trac/ffmpeg/ticket/2420
[06:29] <fortress_> there it is
[06:30] <fortress_> let me know if i should add or change anything
[06:30] <klaxa> hmm well a developer might tell you through the ticket if something is missing
[06:31] <fortress_> okay :) i really appreciate all your help, you've been very kind. thank you klaxa
[06:31] <fortress_> i really hope I can get this working smoothly
[06:32] <klaxa> you are welcome, you were also patient and precise with your descriptions of your problems
[06:32] <klaxa> which are both key features of successful trouble shooting
[06:32] <fortress_> :) thank you, of course, I must supply you with the best data possible
[06:33] <fortress_> do you work as a software developer?
[06:34] <klaxa> i work in an IT department as a research assistant at university
[06:34] <klaxa> it's not exactly software development, but i develop some software in my spare time
[06:34] <klaxa> i haven't been heavily involved into big open source projects yet though
[06:35] <fortress_> that's cool, i'm just finishing my first year of comp sci
[06:35] <klaxa> i finished my 3rd semester, well not completely there's still exams
[06:36] <fortress_> i am certainly procrastinating a bit here, fiddling with this PCI card i found today... haha
[06:36] <klaxa> heh
[06:36] <klaxa> yeah i could have been studying all day too
[06:36] <klaxa> instead i baked a laptops motherboard to fix the graphics chip
[06:37] <fortress_> nice, thinkpad?
[06:37] <klaxa> sony vaio
[06:37] <fortress_> success?
[06:37] <klaxa> indeed :)
[06:37] <fortress_> haha congrats, i've read about that procedure
[06:38] <klaxa> exact description is sony vaio vgn-fz31j
[06:38] <fortress_> it's right up there with putting failing hard drives in the freezer to try to recover just one more time
[06:38] <klaxa> that series was prone to GPU failure because of broken batches produced by nvidia
[06:38] <fortress_> there was a run of thinkpads that had the same issue, and same solution
[06:39] <klaxa> it showed a lot of graphical glitches on boot and wouldn't run with proper drivers
[06:39] <fortress_> fascinating. will we get in trouble for off topic?
[06:39] <klaxa> but if you ran it with some framebuffer driver and strained the GPU a bit, the graphical glitches would disappear
[06:39] <klaxa> not really, since nobody is needing help right now anyways
[06:40] <fortress_> alright, cool
[06:40] <klaxa> anyways, after the graphical glitches disappeard one could reboot the laptop and even run it with the correct nvidia drivers
[06:40] <klaxa> until the GPU got too cold and locked up...
[06:40] <klaxa> well all fixed now
[06:40] <fortress_> what a satisfying hack
[06:40] <fortress_> you baked the hell outta that chip
[06:40] <fortress_> i guess it reflows the solder?
[06:40] <klaxa> indeed, was a fun experience, a friend came over and helped me
[06:41] <klaxa> i think? at least that would make sense
[06:41] <fortress_> i think I read that is what fixes it
[06:41] <klaxa> i like how so many people don't believe it works
[06:41] <klaxa> but now i have the proof lying next to me in my bed
[06:41] <fortress_> it does sound like an urban legend made up to cause people to destroy their computers in a humorous fashion
[06:42] <fortress_> you can also do it with a heat gun
[06:42] <fortress_> that's the uhh... more refined method
[06:42] <klaxa> heh yes it does, however after i heard of so many people baking their PS3s and someone else i know put their xbox 360 in a towel to overheat
[06:42] <fortress_> haha
[06:43] <fortress_> haha, never heard of the towel one before
[06:43] <klaxa> well it's basically the same effect
[06:43] <fortress_> "xbox 360 sauna fix"
[06:43] <klaxa> funny thing is, we dusted the internals of the laptop of course
[06:43] <klaxa> so now it handles heat even better than my current laptop
[06:44] <klaxa> GPU stress test max temperature was 69°C CPU stress test max temperature was 71°C and CPU idle temperature is around 42°C
[06:44] <fortress_> but of course, you've tempered it in your forge. it is now +4 resistant to heat attacks
[06:44] <klaxa> :D
[06:53] <fortress_> i just found a post online that says using -i pulse instead of -i hw:n,n eliminated their audio / video sync issues
[06:53] <fortress_> i tried setting it to pulse, but the audio volume was VERY low. I had to turns my speakers up to a scary level to hear anything
[06:53] <fortress_> do you know how I can set up pulse audio so it will be the correct volume?
[06:54] <klaxa> do you have the program pavucontrol installed?
[06:54] <fortress_> i do
[06:54] <klaxa> you can set recording volume with that GUI
[06:54] <klaxa> in the tab "Input Devices"
[06:54] <fortress_> the recording volumes are at 100% already
[06:55] <klaxa> hmm...
[06:55] <klaxa> well you can exceed 100%...
[06:55] <klaxa> that might introduce clipping though
[06:56] <fortress_> i think i figured it out. i think the sound was some kind of bleed through from the soundblaster card to the onboard line input (which was set to fallback, thus was probably what pulse was listening to?)
[06:56] <fortress_> i'm going to try something
[06:59] <fortress_> omg, it worked
[06:59] <fortress_> perfect a/v sync
[06:59] <fortress_> oh no wait.....
[06:59] <fortress_> i still have itsoffset in there :P
[06:59] <fortress_> my mistake
[07:00] <fortress_> but i got pulse audio to be loud enough
[07:03] <fortress_> no luck, still out of sync.
[07:04] <klaxa> well i always post process my recordings
[07:05] <klaxa> so as long as the tracks have everything i wanted to record i can shift them accordingly
[07:05] <fortress_> i'm just worried i won't shift it perfectly
[07:07] <klaxa> a reasonable worry, but i guess your shift would be closer to perfect sync than what your card produces
[07:07] <klaxa> at least for now it looks like it
[07:14] <fortress_> exciting development! when i play the files using ffplay, the audio is in perfect sync
[07:14] <fortress_> it's only out of sync in vlc
[07:14] <fortress_> any ideas?
[07:14] <klaxa> um... try mplayer or even better mplayer2
[07:15] <fortress_> do you think this means the a/v sync is correct, just vlc is screwy?
[07:15] <klaxa> maybe
[07:16] <fortress_> and i shall install mplayer2
[07:19] <fortress_> yep audio sync is correct in mplayer2 as well!
[07:19] <fortress_> most excellent!
[07:20] <klaxa> great!
[07:27] <klaxa> alright, heading off to sleep for it is after 7 am over here o/
[07:42] <fortress_> night klaxa, thanks again! :)
[13:54] <DisColow> Hi
[13:54] <DisColow> Do anyone know how to convert a video from any format to another without losing quality ? I'm using the ffmpeg -i file.flv file.webm command line but the video's quality is way worse on the output file
[13:56] <DisColow> Or maybe am I the only one in here
[13:56] <relaxed> DisColow: you can copy the streams if they're compatible with the container. ffmpeg -i input -map 0 -c copy output.webm
[13:57] <LithosLaptop> only Vorbis and VP8 is supported in a WebM container
[13:57] <relaxed> DisColow: Be patient on irc, we're not all hovered over our computers waiting to help you at moment's notice
[13:57] <LithosLaptop> I doubt the flv will have one of those
[13:59] <LithosLaptop> I don't really think it is possible to do transcoding without some quality loss, even if the source codec is the same as the output codec
[14:00] <LithosLaptop> DisColow: you could try to specify slightly higher bitrates than the source video
[14:00] <relaxed> well, there's lossless but that doesn't apply here.
[14:00] <relaxed> the default bitrate for ffmpeg, last I checked was 200k
[14:00] <LithosLaptop> if that doesn't work then keep on raising the bitrates until it looks good, also you could try two-pass encoding
[14:00] <relaxed> so specify a higher bitrate
[14:01] <DisColow> Do you know how I could raise the bitrate on windows ? I don't really know how ffmpeg and video codecs work
[14:02] <FlowRiser> giving up so soon ?
[14:02] <LithosLaptop> -b:v
[14:03] <FlowRiser> DisColow, have you tried other codecs ? Or have you tried presets ?
[14:03] <LithosLaptop> like -b:v 650k
[14:03] <LithosLaptop> that would make it 650kbit/s
[14:04] <DisColow> @FlowRiser : I didn't try anything else, I'm kind of a noob with those things
[14:04] <DisColow> I'll try that Lithos thanks
[14:05] <FlowRiser> DisColow, you want to convert from any format to another format without loosing quality, well the standard these days are the x264, so you'll be on the safe side if you use that
[14:06] <LithosLaptop> LithosLaptop: what do you want to convert to?
[14:06] <FlowRiser> i.e.: ffmpeg -i file.flv -vcodec libx264 -threads 2 -y file.avi
[14:06] <DisColow> Do I have to download something if I want to run this command line ?
[14:06] <LithosLaptop> oops
[14:07] <FlowRiser> DisColow, yes you would have to install libx264
[14:07] <DisColow> I want to convert into .webm and .mp4 if I manage to
[14:07] <LithosLaptop> oh, for .mp4 you don't need to transcode
[14:07] <FlowRiser> that is true
[14:08] <DisColow> Hmmm then what should I do ?
[14:08] <LithosLaptop> ffmpeg -i file.flv -vcodec copy -acodec copy outfile.mp4
[14:08] <DisColow> Oh ok
[14:08] <DisColow> ty
[14:09] <DisColow> About the x264 codecs, what if I use the command line you gave me ? Would the output file have the same quality as the source file ?
[14:09] <FlowRiser> DisColow, yes, it will mostly be the same
[14:09] <DisColow> Ok I will try it
[14:09] <FlowRiser> you need to install the libx264-dev package
[14:10] <DisColow> Is it available on windows ?
[14:11] <FlowRiser> DisColow, yes, it is
[14:14] <DisColow> Is that this http://www.videolan.org/developers/x264.html ?
[14:16] <LithosLaptop> DisColow: http://ffmpeg.zeranoe.com/builds/
[14:17] <DisColow> Thanks
[14:22] <DisColow> Should this command line work with .webm output format ? ffmpeg -i file.flv -vcodec libx264 -threads 2 -y file.avi
[14:22] <LithosLaptop> nope
[14:23] <FlowRiser> definetely not, but you can just find a suitable codec
[14:23] <DisColow> hmm...
[14:23] <LithosLaptop> ffmpeg -i file.flv -vcodec libvpx -acodec libvorbis -threads 2 -y file.webm
[14:24] <DisColow> It works, thanks :)
[14:24] <LithosLaptop> not sure what bitrate it will use
[14:25] <DisColow> Looks like it uses the same as the source video
[14:25] <DisColow> Because the quality is similar
[14:25] <DisColow> But I will try with an hd video
[14:28] <DisColow> Nope quality is not the same
[14:28] <DisColow> Isn't there a way to specify the input video bitrate as a parameter in this command line ?
[14:28] <DisColow> "..\ffmpeg x264\bin\ffmpeg" -i "%%G" -b:v 2560k "..\Converti\%%~nG.webm" )
[14:29] <DisColow> I typed 2560 k because I used the -i file.flv in order to know what the source video's bitrate was
[14:30] <LithosLaptop> hmm don't know
[14:31] <LithosLaptop> libvpx might need a higher bitrate if the source video used h.264
[14:31] <LithosLaptop> you could try -sameq
[14:32] <LithosLaptop> what is the source video's audio codec and bitrate?
[14:33] <DisColow> hmm
[14:33] <relaxed> -sameq doesn't work and has been removed from recent versions.
[14:33] <LithosLaptop> oops
[14:34] <DisColow> yeah but when entering it it gives you the command you should use
[14:34] <DisColow> however it doesn't keep the same bitrate so the quality is worse :(
[14:34] <DisColow>   Metadata:     audiodelay      : 0     canSeekToEnd    : true   Duration: 00:02:46.20, start: 0.000000, bitrate: 2800 kb/s     Stream #0:0: Video: vp6f, yuv420p, 1280x544, 2560 kb/s, 29.97 tbr, 1k tbn, 1 k tbc     Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 163 kb/s
[14:34] <DisColow> (Informations about my video)
[14:35] <LithosLaptop> ahhh
[14:35] <LithosLaptop> vp6
[14:35] <LithosLaptop> VP6 is less efficient than VP8 used in WebM
[14:36] <LithosLaptop> you could actually lower the bitrate
[14:38] <DisColow> but I have to do this to a lot of videos
[14:39] <DisColow> Basically what I do is just pasting the videos I want to convert into a directory then I launch my .bat script which contains the command line   "..\ffmpeg x264\bin\ffmpeg" -i "%%G" -b:v 3000k "..\Converti\%%~nG.webm" ) and the videos are converted into another directory
[14:39] <DisColow> which means all of my videos will have a different bitrate
[14:39] <DisColow> that's why I would like to find how to keep the same bitrate as the source video
[14:40] <relaxed> ffmpeg -i input -c:v libvpx -b:v 2000k -c:a libvorbis -b:a 128k output.webm
[14:41] <DisColow> but 2000k is a number you entered yourself, and maybe some of my videos will have a slightly different one
[14:41] <LithosLaptop> ..\ffmpeg x264\bin\ffmpeg" -i "%%G" -c:v libvpx -b:v 2200k -c:a libvorbis -b:a 160k "..\Converti\%%~nG.webm"
[14:41] <LithosLaptop> you could also specify audio bitrate
[14:42] <LithosLaptop> sorry I am slow, I see relaxed already showed it
[14:42] <relaxed> you can also use -crf with libvpx
[14:42] <No_Miaus> hello, ffmpeg supports 'stereo' or only 'joint stereo' ?
[14:43] <relaxed> run `ffmpeg -h encoder=libvpx` for all of its options
[14:43] <DisColow> if I chose realtime will the bitrate be the same ?
[14:45] <Mavrik> No_Miaus, that's a very strange question
[14:45] <DisColow> I got my answer which is no
[14:45] <No_Miaus> why Mavrik?
[14:45] <Mavrik> No_Miaus, ffmpeg supports multiple channel configurations, "joint stereo" is a concept some formats have
[14:45] <Mavrik> so... what are you trying to do? :)
[14:46] <No_Miaus> i'm converting m4a to mp3 and if i check it on mediainfo i see 'joint stereo'
[14:46] <Mavrik> ah, so mp3 :)
[14:46] <LithosLaptop> No_Miaus: if you are talking bout mp3 then joint stereo should always be used
[14:46] <LithosLaptop> for best quality
[14:46] <No_Miaus> and i can't use 'stereo' only? ._.
[14:47] <LithosLaptop> I don't know
[14:47] <Mavrik> No_Miaus, looking at libmp3lame source code it's only joint stereo or mono
[14:47] <Mavrik> no stereo support
[14:47] <Mavrik> lame_set_mode(s->gfp, avctx->channels > 1 ? JOINT_STEREO : MONO);
[14:47] <No_Miaus> aw..
[14:48] <No_Miaus> so.. there isn't a way to do it?
[14:48] <DisColow> Well thanks for your help guys
[14:48] <grepper> The following works for me to output a frame every 5 minutes from an ntsc dvd video (for a static chapter menu):  -filter:v select="not(mod(n\,8991))",setpts="N/(29.97*TB)" .  What I am wondering is if its possible to output say 300 frames at interval N rather than just 1 frame ?
[14:48] <DisColow> I will use this command line to be sure :    "..\ffmpeg x264\bin\ffmpeg" -i "%%G" -b:v 3000k "..\Converti\%%~nG.webm" )
[14:50] <LithosLaptop> No_Miaus: you might be able to do it with the CLI lame encoder, but the question is why would one want to use stereo
[14:51] <LithosLaptop> I might get nightmares when I see a stereo MP3...reminds me of the 90s :)
[14:52] <LithosLaptop> some people used stereo at 128k back then...and it sounded very disturbing
[14:52] <DisColow> bye have a nice day
[15:04] <No_Miaus> LithosLaptop i normally use audiacity to convert m4a to mp3 320k
[15:04] <No_Miaus> and it sounds very good ._.
[15:04] <relaxed> as opposed to ffmpeg?
[15:05] <relaxed> because they're both most likely using libmp3lame
[15:05] <No_Miaus> no, but using audiacity i don't see the joint stereo and with ffmpeg yes so i was wondering why
[15:05] <No_Miaus> relaxed so using libmp3lame using ffmpeg i see that line 'joint stereo' on mediainfo xD
[15:06] <LithosLaptop> audiacity probably defaults to joint stereo
[15:06] <No_Miaus> if they use the same.. they must result the same but.. xD
[15:06] <No_Miaus> but you can use both LithosLaptop
[15:06] <No_Miaus> joint or only stereo
[15:07] <LithosLaptop> oh ok
[15:07] <No_Miaus> so.. if you used they use the same.. i could use the same, no? xD
[15:07] <No_Miaus> if you said*
[15:24] <No_Miaus> LithosLaptop could you explain me what you said of CLI lame encoder please?
[15:25] <LithosLaptop> http://www.rarewares.org/mp3-lame-bundle.php
[15:26] <LithosLaptop> LAME Command line interface
[15:26] <No_Miaus> oh, thank you LithosLaptop i'm gonna try it :)
[15:28] <No_Miaus> LithosLaptop one question, if i use lame then it's possible add the metadata.txt with ffmpeg?
[15:29] <LithosLaptop> No_Miaus: sorry, I have no idea
[15:30] <No_Miaus> i mean extract metadata.txt with ffmpeg, then use Lame to convert and finally ffmpeg to add the metadata
[15:30] <No_Miaus> okay :P
[15:57] <DisColow> Hi again guys. I came earlier and you explained me how to convert a video from .flv to .mp4 and gave me a command line which actually wouldn't transcode the file but kind of copy the stream. Could you give it to me again ? I lost it while trying a few things... It looked like : ffmpeg -i file.flv [something I forgot] file.mp4. Thanks
[16:01] <Mavrik> DisColow, "-codec copy" :)
[16:10] <DisColow> Hmm it doesn't seem to work
[16:10] <DisColow> I got an error
[16:10] <DisColow> Could not write header for output file #0 (incorrect codec parameters ?): Operat ion not permitted
[16:13] <DisColow> http://pastebin.com/b7AArzWb
[16:15] <relaxed> READING COMPREHENSION
[16:16] <DisColow> Hmm ?
[16:16] <DisColow> Oh ok sorry
[16:16] <Mavrik> relaxed, wow, I'm making a keybinding for that statement :D
[16:17] <relaxed> it's the new rtfm
[16:18] <DisColow> Better : http://pastebin.com/5hQWppf7
[16:19] <relaxed> Much. I don't think you can have vp8 in mp4.
[16:19] <relaxed> If you want mp4 for the web you need aac & h264
[16:20] <relaxed> webm is vorbis & vp8
[16:22] <relaxed> DisColow: -c:v libx264  -c:a libvo_aacenc
[16:22] <relaxed> On the up side, libx264 is faster and will give better quality than libvpx
[16:23] <relaxed> On the down side, libvo_aacenc is no where near libvorbis in terms of quality.
[16:23] <relaxed> but it will do :)
[16:24] <relaxed> you could compile ffmpeg with libfdk-aac support (a much better aac encoder), but given you're on Windows I wouldn't recommend it :)
[16:26] <DisColow> Okay thanks dude everything works :)
[16:27] <relaxed> you're welcome
[16:28] <relaxed> DisColow: http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide
[16:31] <relaxed> The wiki link should really be listed on the front page.
[16:37] <DisColow> Thanks I'll read it someday
[16:38] <No_Miaus> is this possible? => extract metadata.txt with ffmpeg, then use Lame to convert and finally ffmpeg to add the metadata
[16:43] <klaxa> why use lame to encode when ffmpeg can use libmp3lame?
[16:43] <No_Miaus> because libmp3lame use joint stereo
[16:43] <No_Miaus> and i want use stereo
[16:43] <klaxa> ah
[16:44] <No_Miaus> lame converts like i want but.. i lose the metadata, and ffmpeg do it ok
[16:44] <No_Miaus> so.. i'm getting crazy lol
[16:45] <sacarasc> Write a script for lame to use the metadata.
[16:46] <No_Miaus> lame can't do it 'alone' or is not possible what i asked?
[16:46] <No_Miaus> xD
[16:47] <sacarasc> Lame can do metadata.
[16:47] <No_Miaus> yes i know but can't copy (or i don't know how)
[16:47] <No_Miaus> ffmpeg do a copy of metadata, with lame manually..?
[16:53] <No_Miaus> what i saw is that lame has a limited capability to write.. not all tags..
[16:53] <No_Miaus> composer for example is not available
[17:29] <No_Miaus> hi? ._.
[17:30] <relaxed> No_Miaus: you can copy the stream and the metadate from another file.
[17:31] <No_Miaus> what you mean?
[17:31] <relaxed> ffmpeg -i file.with.metadate -i lame_output.mp3 -map_metadata 0 -map 1 -c copy lame_plus_metadata.mp3
[17:31] <relaxed> er, file.with.metadata :)
[17:31] <No_Miaus> i'm gonna try it thank you
[17:32] <relaxed> it works
[17:33] <relaxed> you should file a feature request with ffmpeg so this isn't necessary
[17:33] <relaxed> but from looking at the lame man page, all the high quality settings use joint, so why is this so important to you?
[17:35] <No_Miaus> looking the 'spectrum' on audiacity i see differents between stereo and joint that i don't like
[17:36] <No_Miaus> using joint sometimes does strange things that i don't like
[17:38] <No_Miaus> i'm testing what you said..
[17:41] <No_Miaus> ..
[17:41] <No_Miaus> relaxed thank you.. i love you *-*
[17:41] Action: relaxed blushes
[17:44] <No_Miaus> relaxed if i want add -id3v2_version 3 -write_id3v1 where..?
[17:44] <No_Miaus> in which order?
[17:44] <No_Miaus> before "-i lame_output.mp3" or where?
[17:45] <relaxed> after the last input
[17:45] <relaxed> since it applies to the output
[17:46] <No_Miaus> ffmpeg -i file.with.metadate -i lame_output.mp3 -map_metadata 0 -map 1 -c copy -id3v2_version 3 -write_id3v1 lame_plus_metadata.mp3
[17:46] <No_Miaus> ?
[17:46] <relaxed> sure
[17:46] <No_Miaus> thanks again :)
[17:47] <relaxed> you're welcome
[18:06] <No_Miaus> relaxed mmmh if i put -id3v2_version 3 -write_id3v1 i got an error
[18:07] <No_Miaus> it says something about the output file
[18:07] <No_Miaus> um i think i saw the mistake..
[18:08] <No_Miaus> solved :P
[18:17] <DrJ> Could not find codec parameters for stream 0 (Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, 1411 kb/s): unspecified sample format
[18:17] <DrJ> Consider increasing the value for the 'analyzeduration' and 'probesize' options
[18:17] <DrJ> anyone know how I can fix that
[18:18] <DrJ> what so type ffmpeg and paste the output?
[18:20] <relaxed> along with the command
[18:20] <stqn> no, the command you typed to get the error
[18:21] <relaxed> ubitux: who is in control of that bot?
[18:21] <DrJ> the command is generated by a script ... system("/usr/bin/ffmpeg -i /home/scanner/public_html/fire-pages/$f.2.wav -acodec libmp3lame -ab 32k /home/scanner/public_html/fire-pages/$f.mp3");
[18:22] <ubitux> relaxed: burek i think
[18:24] <DrJ> I may have just figured it out
[18:24] <No_Miaus> relaxed one question please, if i want add an -i "artwork.jpg".. where? :P
[18:25] <No_Miaus> i wrote it after the metadata.txt and i'm getting an error
[18:26] <DrJ> nvm
[18:26] <DrJ> I did not figure it out
[18:26] <DrJ> I think the problem is libmp3lame is not being used by ffmpeg
[18:27] <DrJ> I just installed it though, do I have to do something to make ffmpeg use it?
[18:27] <relaxed> No_Miaus: ffmpeg -i meta -i lame -i art (other options) -i cover.png -c copy -metadata:s:v title="Album cover"
[18:27] <relaxed> No_Miaus: ignore "-i cover.png"
[18:28] <No_Miaus> no error, but no added :/
[18:29] <relaxed> try, ffmpeg -i meta -i lame -i art -map_metadata 0 -map 1 -map 2 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" output.mp3
[18:30] <relaxed> DrJ: pastie.org the output
[18:31] <DrJ> http://pastebin.com/aWwpv0k7
[18:31] <DrJ> I'm recompiling with --enable-libmp3lame
[18:31] <DrJ> I think that's what I missed
[18:32] <No_Miaus> it worked thx
[18:32] <DrJ> I know if a few minute
[18:36] <relaxed> how's the hook shot?
[18:37] Action: relaxed fails, that was Kareem
[18:38] <DrJ> wow, compiling ffmpeg sure takes a while :)
[18:47] <DrJ> okay
[18:47] <DrJ> I recompiled with that
[18:47] <DrJ> still same error
[18:49] <relaxed> pastebin the command that's failing and all console output
[19:03] <DrJ> relaxed: http://pastebin.com/ANqCYHeW
[19:03] <DrJ> the command is: /usr/bin/ffmpeg -i /home/scanner/public_html/fire-pages/$f.2.wav -acodec libmp3lame -ab 32k /home/scanner/public_html/fire-pages/$f.mp3
[19:04] <DrJ> the variables in there are filled in by a script
[19:04] <relaxed> can you put the wav up somewhere?
[19:54] <DrJ> relaxed, do you mind if I PM you the link
[19:55] <DrJ> eh, nvm
[19:55] <DrJ> I think I see the problem
[20:32] <jimi_> For some reason my phone recorded this video at a weird angle. I need to flip it 90 degrees clockwise. Can I do this with ffmpeg?
[20:33] <Mavrik> mhm
[20:33] <Mavrik> check the transpose filter
[20:33] <davidvorick> I need help with sws_scale
[20:34] <davidvorick> http://pastebin.com/MiSyfaFt
[20:35] <davidvorick> Anytime the height of the new frame is less than the height of the old frame, not all of the lines get written
[20:38] <jimi_> Mavrik, I tried transpose=2  but i am getting weird hours
[20:38] <jimi_> Mavrik, like this ffmpeg -i input -vf transpose=2 output
[20:38] <Mavrik> hours?
[20:38] <Mavrik> davidvorick, hmm
[20:39] <jimi_> Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
[20:39] <Mavrik> jimi_, yeah, you have to reencode the video to rotate it of course
[20:40] <Mavrik> so you need to pass encoding parameters.
[20:40] <jimi_> Mavrik, spoon feed me :P
[20:41] <Mavrik> ugh
[20:42] <davidvorick> I have the resize function working in other contexts, I'm wondering if newFrame is initialized incorrectly? Or possibly something is stopping the original frame from being processed all the way?
[20:42] <Mavrik> yeah, looking at the code doesn't show any obvious errors
[20:43] <jimi_> Mavrik, http://pastebin.ca/2346449
[20:44] <Mavrik> hmm yeah, as you can see it's trying to encode your video to mpeg4 from h.264
[20:44] <Mavrik> (and you're using libav, not ffmpeg which we technically don't support here ;))
[20:45] <jimi_> Mavrik, oh, what's libav? i installed 'ffmpeg' w/ my package manager
[20:45] <Mavrik> yeah, blame ubuntu -_-
[20:45] <Mavrik> jimi_, try something in lines of ffmpeg -i <your video> -vf transpose=2 -vcodec libx264 -acodec copy out.mp4
[20:45] <Mavrik> oh, throw "-crf 23" in  there
[20:45] <jimi_> ty will try that
[20:52] <jezier> hi.. does ffmpeg have its own implementation of aes ctr (like for aes cbc) or do I have to use openssl?
[20:54] <Mavrik> jezier, um, check libavutil/aes.c if it does what you want
[21:00] <jezier> Mavrik: i've checked.. and it looks like there is only cbc.. just want to be sure
[21:04] <Mavrik> quite possibly, since I think most protocols use the CBC version :)
[21:04] <Mavrik> probably noone bothered to implement CTR
[21:17] <jimi_>  Mavrik, Unknown encoder 'libx264' .. but i have livx264-123 libs installed
[21:17] <Mavrik> hmm, yeah, but ffmpeg needs libx264 enabled when it's being compiled
[21:17] <jimi_> do i need the -dev packages?
[21:17] <Mavrik> it's usually in the libavcodec-extras or some such package
[21:18] <Mavrik> jimi_, it's way easier for you to just grab the pre-built versions
[21:18] <Mavrik> and use that
[21:18] <Mavrik> jimi_, grab this one and run it: http://dl.dropbox.com/u/24633983/ffmpeg/index.html
[21:19] <jimi_> got it, that works
[21:19] <jimi_> it's encoding
[21:21] <jimi_> Does the time= flag in the verbose output mean that's how far into the video it's processed?
[21:22] <relaxed> yes
[21:22] <Mavrik> yep
[21:22] <jimi_> damn, lol it's only 0.11 seconds in? :P
[21:23] <relaxed> use a faster preset, like -preset veryfast
[21:24] <Mavrik> jimi_, just how slow is your computer? :P
[21:25] <jimi_> Mavrik, lol no clue... this is weird.. i restarted it with -preset veryfast, and it's at 0.32 seconds now
[21:25] <jimi_> frame=61970 fps=550 q=33.0 size=    4383kB time=0.69 bitrate=52157.2kbits/s dup=61950 drop=0
[21:26] <Mavrik> uhhh
[21:26] <Mavrik> that's something going horribly wrong
[21:26] <jimi_> oh
[21:26] <jimi_> lol
[21:26] <Mavrik> it shouldn't duplicate 62 thousand frames
[21:26] <Mavrik> and encode at 550fps :D
[21:26] <jimi_>  ffmpeg -i 20130329_205724.mp4 -vf transpose=1 -vcodec libx264 -acodec copy -crf 23 -preset veryfast  out.mp4
[21:27] <Mavrik> huh
[21:27] <Mavrik> wierd
[21:27] <Mavrik> jimi_, can you paste the output again? let's see whats goin on :)
[21:28] <jimi_> http://pastebin.ca/2346463
[21:29] <relaxed> I thought you were using my static build?
[21:29] <relaxed> /path/to/ffmpeg -i ...
[21:29] <jimi_> oh, i thought i did ./
[21:32] <jimi_> frame= 3735 fps=323 q=-1.0 Lsize=   23284kB time=00:02:06.95 bitrate=1502.5kbits/s dup=1 drop=13
[21:32] <jimi_> is that better?
[21:33] <Mavrik> yes :)
[21:34] <Mavrik> the "dup" and "drop" value should stay around 0 :)
[21:42] <xintron> When streaming to my ffserver endpoint, should I stream the raw data and let the server transcode or should I transcode before sending it to the server?
[21:45] <Mavrik> xintron, um, you don't really have any choice
[21:45] <Mavrik> the transcoding will be done by the ffmpeg process that's streaming to the server and the server will provide parameters
[21:45] <xintron> Oh, that's great.
[21:45] <xintron> Thanks for clearing that up :)
[21:59] <bigmac> can i use ffmpeg to take a jpg file and convert to a smaller size for web viewing
[22:01] <stqn> bigmac: I dont know, but imagemagick seems appropriate for the task
[22:02] <bigmac> ffmpeg -i movie_cover.jpg -s 340x100 movie_cover.jpg
[22:02] <bigmac> that seems to work
[22:02] <bigmac> i got the -s wrong lol
[22:04] <stqn> just in case: http://www.imagemagick.org/script/convert.php
[22:05] <bigmac> i have a small webpage full of hundreds of movie covers... trying to have them load fast across the net is my focus
[22:05] <Mavrik> I suggest using imagemagicks convert as well
[22:06] <Mavrik> more options, better suited for images
[22:08] <bigmac> (input 54.9Kb).jpg  -s 480x320 tmp.jpg --> 27.1kb
[22:08] <bigmac> ill check it out
[22:08] <bigmac> i have used imagemagic before
[22:09] <relaxed> you can limit the jpg quality with -q (1 highest - 31 lowest)
[22:10] <bigmac> -q 1 not proper command?
[22:11] <bigmac> ffmpeg -h | grep quality
[22:11] <relaxed> try -qscale instead
[22:12] <bigmac> maybe its -cbr_quality
[22:12] <relaxed> In more recent versions -q is synonymous with -qscale
[22:12] <relaxed> I told you want it is
[22:13] <relaxed> s/want/what/
[22:18] <bigmac> does png load faster then jpg even if png file size is larger?
[22:27] <bigmac> just fr example what if 500 images was to load at once... what would be the best route
[22:27] <stqn> measure it?
[22:27] <viric> Hello
[22:27] <relaxed> I would think it would be dependent on size
[22:28] <viric> Can I link to a ffmpeg lib to use it for sound capture?
[22:28] <viric> (and thus, abstract whether it's alsa or directsound)
[22:29] <viric> libavdevice. humm
[22:29] <stqn> Ive been trying to do sound capture with alsa, no luck :(
[22:30] <stqn> (and with ffmpeg)
[22:30] <viric> no? oh.
[22:30] <xintron> I have a stream from my TV-box that I would like to transcode and stream with ffserver to a 3G connected device. What codec would be good for this case? I've tried libx264 + aac but then I get the following when streaming it to ffserver: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[22:31] <klaxa> you will need to provide more information
[22:32] <relaxed> "3G connected device"?
[22:32] <xintron> klaxa, http://pastie.org/private/hyttyv1dr39uadtpi17ria
[22:32] <stqn> viric: Ive read that it (often?) doesnt work with integrated audio
[22:32] <relaxed> does this device lack wifi
[22:32] <xintron> relaxed, I will be traveling :)
[22:32] <xintron> Will be speeds pending from 0.5->7.2Mbps
[22:32] <viric> what is 'integrated audio'?
[22:33] <stqn> viric: I was trying to capture the audio output of my pc, maybe it works fine if you want to capture microphone input for example.
[22:33] <viric> ah, I want the input, sure
[22:34] <relaxed> xintron: install dropbox on said phone and ffmpeg output the shows to your dropbox folder.
[22:34] <xintron> relaxed, and then play that "stream" over http?
[22:34] <relaxed> it won't be live but it will probably be much better than what you're sttempting.
[22:35] <xintron> I need it to be live though
[22:35] <relaxed> why?
[22:36] <xintron> Do I need a reason? The case is: I need to transcode my TV-stream and output it over HTTP so that I can stream it to a device connected over 3G
[22:37] <relaxed> You do not. I wish you the best on your adventure.
[22:37] <xintron> thanks.
[22:42] <relaxed> pastebin the complete output to get help
[22:50] <xintron> relaxed, http://pastie.org/private/9ly0ohi6ilkyntsnhtw3bw
[22:55] <relaxed> Hmm, you're version looks recent but this is an old error --> "broken ffmpeg default settings detected"
[22:55] <relaxed> er, your* version
[22:57] <xintron> relaxed, What would be the easiest way to take a stream, transcode it and serve it over HTTP (only one client will access it)?
[23:24] <relaxed> xintron: did you see http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide
[23:27] <xintron> relaxed, Got it to work (good enough for tomorrow at least). Will investigate more and find a better solution in the future. Thanks for the link!
[23:31] <viric> mh I'm trying my first ffmpeg program
[23:31] <viric> segfault, of course.
[23:35] <viric> a null pointer somewhere in avcodec_decode_audio4
[23:37] <viric> anyone sees anything very wrong? http://sprunge.us/UDJh
[23:37] <viric> it crashes on avcodec_decode_audio4
[00:00] --- Mon Apr  1 2013


More information about the Ffmpeg-devel-irc mailing list