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

burek burek021 at gmail.com
Fri Aug 3 02:05:01 CEST 2012


[00:47] <burek> rexbron, are you sure you want to use -ss 01:00:00 after the -i ?
[00:48] <burek> because the duration of your input is: Duration: 00:09:07.21
[00:49] <burek> silly_, try updating your ffmpeg
[00:50] <burek> also, this might be your issue: bind(port 2210): Address already in use
[00:50] <burek> are you running 2 ffservers?
[02:16] <rexbron> burek: I tried -ss 00:00:08 but there is also a timecode track and timecode metadata with the 1st frame of the program starting at 1 hour. Thought -ss might work with the timecode
[02:16] <rexbron> -ss and a rate override ended up working
[02:19] <burek> rexbron, your input is 9 minutes long
[02:20] <burek> what's with "1 hour" ?
[02:20] <burek> anyway if you managed it to work, then we are both happy, I guess :)
[02:20] <rexbron> burek: convention within brodcast and film is to have the 1st frame of what you want to show at 1 hour. anything before that is pre-roll for identifcation
[02:22] <rexbron> ffmpeg displays the timecode track, I was hoping that it might also pick it up with -ss
[02:23] <rexbron> easier to say "start at 1h" than have to determin how much pre-roll there is per file
[03:20] <Aikar> https://gist.github.com/3232211  with this - how can i get it to record my system audio and mic? is pulse going to just record mic only?
[03:24] <llogan> Aikar: i don't know, but consider adding "-pix_fmt yuv420p" as an output option otherwise you'll probably get yuv444p.
[03:24] <llogan> and i doubt twitch.tv can use that
[03:33] <Aikar> llogan: Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p'
[03:34] <llogan> ignore that
[03:34] <llogan> oh, i see. you're probably using an older ffmpeg then.
[03:34] <Aikar> so put it before the -f flv part?
[03:34] <llogan> sure
[03:34] <Aikar> w/e is default in 12.04 with restricred exras
[03:34] <llogan> oh, you're not even using ffmpeg from FFmpeg then
[03:35] <Aikar> it  wrapper for avconv?
[03:35] <Aikar> seems like the flags changed for avconf so didnt switch commands...
[03:35] <llogan> i don't know anything about the "ffmpeg" that was provided by libav
[03:35] <Aikar> so how would i add an audio source of a playback device? I want to also record game sound
[03:36] <llogan> good question. i can never remember this. where's burek when you need him?
[03:36] <Aikar> removing tghe -i -hw and only having -i pulse is working for my mic
[03:40] <burek> Aikar, you have a tutorial on the ffmpeg's wiki
[03:40] <burek> but it might not apply for avconv
[03:40] <burek> I dunno
[03:40] <burek> llogan :beer: :)
[03:42] <llogan> burek: what's the beer for today?
[03:42] <burek> the cold one :)
[03:43] <llogan> do you have a good burek recipe?
[03:44] <burek> http://en.wikibooks.org/wiki/Cookbook:B%C3%B6rek
[03:44] <burek> :)))
[03:45] <Aikar> burek: yes but that only lists input devices
[03:45] <Aikar> if i list a device from aplay -L it says [alsa @ 0x663000] cannot open audio device hw:CARD=XFi,DEV=1 (No such file or directory)
[03:45] <burek> Aikar, if your sound card supports recording from the "stereo output" or "what you hear" then it will show under recording devices too
[03:45] <burek> use alsamixer
[03:45] <Aikar> when using -f alsa -ac 2 -i hw:CARD=XFi,DEV=1
[03:46] <burek> not aplay
[03:46] <burek> arecord
[03:46] <burek> read the tut
[03:46] <llogan> i'll try it. thanks.
[03:46] <Aikar> ive got mic working, im not trying to do that
[03:46] <burek> :beer: :)
[03:46] <Aikar> im trying to record my output
[03:47] <burek> llogan, there are a lot of variants.. so it's really just a matter of choice :) usually it's a meat pie :) that's all :)
[03:52] <Aikar> burek so how can i take the device on aplay -L and use it?
[03:52] <burek> Aikar, for the 3rd time, read the tutorial
[03:52] <Aikar> i did...
[03:52] <Aikar> ive got that part working :/
[03:53] <burek> aplay won't help you
[03:53] <Aikar> http://ffmpeg.org/trac/ffmpeg/wiki/Capturing%20audio%20with%20FFmpeg%20and%20ALSA
[03:53] <burek> [03:47:10] <burek> Aikar, if your sound card supports recording from the "stereo output" or "what you hear" then it will show under recording devices too
[03:53] <burek> if not, throw it away and buy one that can do it
[03:53] <burek> or play with jack audio, crate virtual devices and connect output to input :)
[03:53] <Aikar> I have a Creative Xfi... its not that bad.
[03:53] <burek> (use google for that) :)
[03:54] <Aikar> so your saying ffmpeg cant read an output device?
[03:54] <burek> nobody can
[04:06] <Aikar> burek: http://aikar.co/devices.txt ive tried hw:CARD=XFi,DEV=0, dsnoop ones, dmix, tons. what do you suggest?
[04:06] <burek> to read the tutorial
[04:06] <Aikar> err crap wrong command, I thought i was looking at arecord
[04:07] <burek> use alsamixer
[04:07] <burek> and select your recording device
[04:08] <Aikar> how do i get the device name to use there?
[04:08] <burek> its most probably listed there
[04:09] <Aikar> I get a gui with alsamixer
[04:10] <burek> well of course
[04:10] <burek> first examine if your card can do it
[04:10] <burek> press tab, select recording devices
[04:11] <burek> use f6 to switch cards
[04:11] <burek> if needed
[04:11] <burek> and see that list of recording devices
[04:11] <Aikar> i have master, pcm, line, mic, spdif
[04:11] <burek> if it says somewhere "stereo output" or something
[04:11] <burek> pcm
[04:11] <Aikar> http://www.twitch.tv/aikaradora
[04:11] <Aikar> you can see where im at atm
[04:12] <burek> move to pcm and press space
[04:12] <Aikar> took capture off
[04:12] <burek> turn it on
[04:12] <Aikar> was already on
[04:12] <burek> now exit with esc
[04:13] <burek> and use -f alsa -i hw:0
[04:13] <burek> that's it
[04:13] <Aikar> cannot open audio device hw:0 (Device or resource busy)
[04:13] <burek> can you pastebin arecord -L
[04:14] <Aikar> http://aikar.co/arecord.txt
[04:15] <burek> hw:0 should work
[04:15] <burek> but try this too "front:CARD=SB,DEV=0"
[04:16] <Aikar> device busy too
[04:17] <burek> well, reboot the machine or something.. you have some other process accessing it too
[04:17] <Aikar> mic works fine when using -i pulse
[04:17] <burek> well then use pulse
[04:17] <burek> to change mic to stereo output
[04:27] <Aikar> ok so i got it recording the sound now
[04:31] <llogan> Aikar: how did you do that?
[04:32] <Aikar> setting my output hardware to be duplex, then switched the input to be the stero out as burek said
[04:39] <FunkyELF> Anyone have a good set of parameters for youtube upload of 720p video?  I output a project from kdenlive as FFV1.
[04:42] <llogan> i assume the ffv1 file is too big for upload?
[04:42] <FunkyELF> lol... yeah
[04:42] <FunkyELF> 3 gig
[04:43] <llogan> FunkyELF: ffmpeg -i input -c:v libx264 -preset medium -crf 18 -c:a copy output.mkv
[04:43] <FunkyELF> I have tried various setting but I can't get audio to work
[04:43] <llogan> what's the audio in the input?
[04:43] <FunkyELF> is -c:v like -vcodec ?
[04:43] <llogan> yes
[04:43] <llogan> adjust preset as your patience allows
[04:44] <FunkyELF> the audio on the input is FLAC
[04:44] <FunkyELF> Unrecognized option 'c:v'
[04:44] <llogan> you can copy it if it isn't too big or re-encode
[04:44] <llogan> you're using an old ffmpeg then
[04:44] <FunkyELF> I'm using Fedora 16
[04:44] <llogan> just use -vcodec
[04:45] <llogan> and -acodec instead of -c:a
[04:45] <FunkyELF> okay... will do -t 15 to see how it works
[04:45] <Aikar> ok, burek i got it working w/ w/e is the first audio input, how can i have 2?
[04:46] <FunkyELF> hmmm.... still no audio
[04:46] <FunkyELF> seems like ffmpeg doesn't like the FLAC input
[04:48] <llogan> if you want to re-encode the audio use: "-acodec libvorbis -aq 7" or "-acodec libmp3lame -aq 1" or "-acodec libfaac -aq 100".
[04:48] <FunkyELF> hmm... when I did an "ffmpeg -i untitled.avi -acodec copy audio.flac" it extracted it and the .flac file played with mplayer
[04:49] <llogan> what do you mean by, "ffmpeg doesn't like the FLAC input"
[04:50] <FunkyELF> well... the original .avi plays with sound with mplayer... but when I copy it to an mp4 or mkv file and convert the video the sound doesn't work
[04:50] <llogan> doesn't work in mplayer or youtube?
[04:50] <FunkyELF> still no audio when I convert it to vorbis either
[04:50] <FunkyELF> in mplayer
[04:52] <FunkyELF> llogan, http://pastebin.ca/2176707
[04:55] <llogan> FunkyELF: i don't see why mplayer wouldn't like that.
[04:56] <FunkyELF> let me try totem
[04:56] <llogan> or ffplay
[04:56] <llogan> or just upload it to youtube
[04:57] <FunkyELF> it is 3.3G
[04:59] <llogan> the 15 second H.264/vorbis MKV you just made?
[04:59] <llogan> i'm not talking about the FFV1/FLAC file
[05:00] <FunkyELF> the 15 second mkv file doesn't play in mplayer or totem... to me that means it is not valid
[05:00] <FunkyELF> ... it plays, but no audio
[05:00] <llogan> worksforme
[05:00] <FunkyELF> lol
[05:01] <llogan> does it play in ffplay?
[05:01] <llogan> and it doesn't matter if it doesn't play in your mplayer or totem as long as it works in youtube.
[05:01] <llogan> although it's quite odd that mplayer doesn't like it.
[05:04] <FunkyELF> in ffplay the audio is really short and loud and lasts a fraction of a second
[05:04] <llogan> does ffplay like the FFV1/FLAC file?
[05:05] <FunkyELF> yes... but video is choppy because file is huge probably
[05:05] <llogan> but the audio is ok?
[05:06] <FunkyELF> yeah
[05:07] <llogan> hmm...i don't know.
[05:07] <svm_invictvs> Heya
[05:07] <svm_invictvs> http://blog.grio.com/2012/01/fast-and-slow-motion-video-with-ffmpeg.html
[05:07] <svm_invictvs> I'm trying that guy's example and ffmpeg complains that -vf is not a valid option.
[05:07] <llogan> FunkyELF: and it's crappy with libmp3lame too?
[05:09] <FunkyELF> yeah... no audio
[05:09] <svm_invictvs> http://mysticpaste.com/private/gF7XoFT4GV/
[05:09] <svm_invictvs> llogan: Got it
[05:10] <svm_invictvs> fwiw: ffmpeg -i ./data/video/android/City/AAA03.mp4 -vf setpts=2*PTS ./data/video/android/City/AAA03_slow.mp4
[05:10] <llogan> svm_invictvs: does "ffmpeg -filters" show a filter list?
[05:10] <Aikar> what map command would i use to have 2 audio streams with my 1 video
[05:10] <llogan> svm_invictvs: your ffmpeg might be too old, but i don't remember
[05:11] <svm_invictvs> llogan: no filters
[05:11] <svm_invictvs> llogan: Ah, okay.  Well, I have another machine with the filters I need :D
[05:11] <llogan> also, i recall -vf may have been called something else at one time...or maybe i'm making that up
[05:12] <llogan> FunkyELF: you could try encoding video and audio separately and mux them together.
[05:12] <llogan> or try a newer ffmpeg
[05:13] <llogan> or just upload one of those short videos and test 'tube
[05:20] <llogan> svm_invictvs: note that the default quality settings will probably look bad.
[05:20] <llogan> but it depends on your output format and your ffmpeg version
[05:28] <svm_invictvs> so now I get this: http://mysticpaste.com/private/MTaxq44vca/
[05:34] <Aikar> https://gist.github.com/3233082  < how do i do the map commands to properly merge the 2 audio streams? I'm only hearing 2.0 since that was what got mapped
[05:34] <powerNET> is it possible to compile ffmpeg lgpl with commercial version of libx264? I want to before buying commercial license for x264
[05:50] <svm_invictvs> Silly ffmpeg
[06:25] <soulstitchmmo> Hello Everyone, Recently I've modified my Streaming Code: http://pastebin.com/uYdpcKAb and now can no longer transmit sound. Can someone help me figure out why I can no longer transmist sound?
[06:41] Last message repeated 1 time(s).
[07:00] <mikos> hi there
[07:02] <mikos> i just switched from ffmpeg to avconv is there a channel for that or can i ask for help here? :)
[07:02] <mikos> i m getting
[07:02] <mikos> Incompatible pixel format 'argb' for codec 'mpeg1video', auto-selecting format 'yuv420p'
[07:02] <mikos> and the video looks really bad quality now and renders twice slower
[07:04] <mikos> is there anyone around?
[07:05] <ZzBuntu> I recognize that.. via a webcam I assume.. I fixed a while ago but dont remember how
[07:06] <mikos> similar, it s via an air app
[07:06] <mikos> did you get a really low res renders?
[07:06] <mikos> from the best hd before...
[07:07] <soulstitchmmo> Hello Everyone, Recently I've modified my Streaming Code: http://pastebin.com/uYdpcKAb and now can no longer transmit sound. Can someone help me figure out why I can no longer transmist sound?
[07:11] <mikos> the two codes you pasted are the same
[07:11] <mikos> cmd F ...
[08:50] <soulstitchmmo> I have lost the ability to record sound in both my local recording, and my streaming.
[09:28] <silly_> burek, was already asleep when you answered. the bind is cause i allready started /this/ server. not an issue, when i kill it and then run the command again, this line is missing, rest is the same.
[09:29] <silly_> and i got this version of ffmpeg freshly compiled from AUR
[09:35] <DexterLB> hello.. is it possible for ffmpeg to take an input, transcode all video streams to, say, h264, and all audio streams to ac3, and copy all other streams?
[09:35] <DexterLB> or do I need to write a script that takes a list of streams and tells ffmpeg what it has to do with each stream 1 by 1?
[10:17] <soulstitchmmo> Can someone explain to me why all of a sudden I can no longer record sound? ffmpeg -f x11grab -s $INRES -r 35 -i :0.0+0,0 -f alsa -ac 2 -i pulse -vcodec libx264 -preset:v $QUAL -s $OUTRES -acodec libmp3lame -ab 128k -ar 44100 -threads 4 -b 5000k -f flv local_record.flv
[10:22] <ubitux> are you using a recent version? can you pastebin the full output?
[10:23] <codinho> guys, is it possible to force audio decoder to output 8 channels always?
[10:23] <ubitux> DexterLB: what's "all other streams"?
[10:24] <burek> Aikar, http://ffmpeg.gusari.org/viewtopic.php?f=25&t=611
[10:24] <ubitux> -c:v libx264 -c:a ac3 -c:s copy maybe
[10:25] <ubitux> codinho: with af pan i guess
[10:25] <codinho> ubitux, I mean in the code
[10:25] <codinho> ubitux, not using ffmpeg app
[10:27] <ubitux> use af pan within the code
[10:27] <ubitux> i don't think you can force any decoder to output 8 channels if the input has a different number
[10:28] <ubitux> so use some filtering, see doc/examples/filtering_audio.c
[10:28] <burek> *snip* "<mikos> i just switched from ffmpeg to avconv" and "<mikos> and the video looks really bad quality now and renders twice slower"...
[10:28] <burek> those just might be related :)
[10:29] <codinho> ubitux, thanks
[10:31] <burek> DexterLB, I think you need -map, since there is not cmd line switch that selects all video/audio streams.. by default ffmpeg selects "the best pick" audio and video (1A + 1V) and that's it.. if you want something else, you have to use -map
[10:31] <burek> -not +no
[11:36] <DexterLB> ubitux: thanks, that's perfect
[11:51] <bartbogdan> Hi all
[11:52] <bartbogdan> I'm have just build ffmpeg from the nightly tar and I am using it to convert videos to theora
[11:53] <bartbogdan> Somehow Chrome fails to load the ogg theora videos I am creating, Firefox and other videoplayers have no problem
[11:53] <bartbogdan> Any users with experience on theora?
[11:54] <bartbogdan> And where to look for a solution?
[11:55] <zap0> sounds like the problem is Chrome
[11:55] <bartbogdan> Yes I know, but there might be users here that have encountered this as well
[11:56] <JEEB> I would personally recommend you to look at VP8/libvpx instead of theora by now, as the crowd that needs/wants to use theora has taken VP8 in as their newest thing of choice
[11:57] <iive> bartbogdan: does chrome play other theora videos?
[11:58] <bartbogdan> JEEB: thanks for that info, I'll look into that if I can't get this working
[11:59] <bartbogdan> live: Yes, if I do the conversion on another machine (with a slightly older ffmpeg), then it works
[12:01] <iive> could you be bothered with findins when did it stop working?
[12:01] <iive> it may be some regression
[12:03] <bartbogdan> iive: I'll try to do a checkout of the older version and see if works with that. If so, then I could look into that.
[12:03] <iive> thank you :)
[12:05] <bartbogdan> iive: I have built it without --enable-gpl right now, could that be of any influence?
[12:07] <iive> it should not.
[13:00] <tesla888> hello, Help me anyone with ffserver+ffmpeg+dvb-t
[13:02] <tesla888> please
[13:32] <JyZyXEL> rendering artifacts ;-;
[13:44] <bartbogdan> iive: This is what I found so far: 0.9.2 works, current master doesn't
[13:47] <iive> could you try 10.3 and 10.4 ?
[14:18] <bartbogdan> iive: 10.4 works, now building 11.1
[14:31] <bartbogdan> iive: Good news, 0.11.1 works, current master does not
[14:31] <iive> do you know how to use git bisect ?
[14:32] <bartbogdan> iive: So that greatly reduces the timespan. It must have been a change after 0.11 was split off
[14:32] <bartbogdan> iive: no
[14:33] <iive> man git-bisect
[14:34] <iive> you give it that 11.1 is ok, and current is bad, and it starts binary search.
[14:35] <iive> checkouts a version in the middle between bad and good. you compile it and test it. then say if it is bad or good. then it repeats.
[14:35] <iive> hopefully it can narrow it down to a single commit.
[14:38] <bartbogdan> I see
[14:39] <bartbogdan> Well, I'm afraid I don't have the time to dig into it that deep
[14:40] <bartbogdan> But maybe I can post my findings so far somewhere?
[14:40] <bartbogdan> Might be helpful once someone else bumps into this problem in the near future
[14:45] <bartbogdan> Shall I file it in trac?
[14:48] <saste> bartbogdan: yes, with as much information as possible
[14:49] <saste> (useful information of course)
[15:00] <JyZyXEL> oh what fun to keep encoding over and over with different x264 settings because some of them generate artifacts
[15:00] <JEEB> dealing with pesky hardware?
[15:00] <JEEB> on decoding side
[15:00] <JyZyXEL> not that i know
[15:01] <JyZyXEL> it just seems there is this one part of the video that is very prone to generating artifacts
[15:01] <JEEB> uhh
[15:01] <JEEB> what kind of artifacts are you speaking of?
[15:01] <JyZyXEL> leik weird colors appearing on top of the video
[15:01] <JEEB> compression artifacts or artifacts that come from the decoder mis-decoding the encoded output?
[15:01] <JEEB> oh
[15:01] <JEEB> sounds like the second :P
[15:02] <JEEB> how are you checking your output?
[15:02] <JyZyXEL> VLC
[15:02] <JEEB> is it up-to-date?
[15:02] <JyZyXEL> yeah
[15:02] <JEEB> as in?
[15:02] <JEEB> version?
[15:02] <JyZyXEL> 2.0.3
[15:03] <JEEB> are you on windows per chance?
[15:03] <JyZyXEL> yeah
[15:03] <JEEB> do you have hardware decoding enabled?
[15:03] <JyZyXEL> of that i do not know
[15:03] <JEEB> check the settings
[15:04] <JyZyXEL> if i can manage to find it
[15:04] <JEEB> also you might want to check out lachs0r's mplayer2 builds, while VLC has gotten way better since the 0.8x and 1.x times, I'd still be vary of having it as the only thing to check against
[15:04] <JEEB> http://mplayer2.srsfckn.biz/
[15:04] <JyZyXEL> well doesn't really matter as the output has to work with VLC
[15:05] <JEEB> I'm really surprised though, current VLC should more or less be OK. Thus, make sure to disable hardware decoding when testing, that can be REALLY derp depending on the vendor
[15:05] <JEEB> otherwise you might want to pastebin what you're using to encode right now command-line wise
[15:05] <JyZyXEL> i shall check the configurations
[15:07] <bartbogdan> saste: Enough info like this: https://ffmpeg.org/trac/ffmpeg/ticket/1595 ?
[15:08] <saste> bartbogdan: uhm no, complete output missing
[15:08] <saste> the blurb with all the info about configuration options and all
[15:08] <saste> you can also use -report and send the report file
[15:09] <bartbogdan> Ok, will do that
[15:09] <bartbogdan> First, some coffee..
[15:09] <JyZyXEL> where might i find some example x264 lines?
[15:10] <saste> bartbogdan: also usually in these cases the problem is in the decoder
[15:10] <saste> especially if you can decode the file with other tools (ffplay, vlc, mplayer, younameit)
[15:11] <iive> bartbogdan: something else you can try, process same input using same options and post the 2 different files. keep the files small.
[15:13] <JyZyXEL> like example command lines for doing x264
[15:13] <Mareod> Hello! is anyone able to help me with a problem I'm having with Kostya's ProRes encoder?
[15:13] <JEEB> JyZyXEL, <rate control of your choice with a value> <preset of your choice, as in the slowest that fits your expectations>
[15:13] <JEEB> that's the basics
[15:13] <JEEB> anything else is limited to specific needs
[15:14] <JEEB> -crf 20 -preset veryslow for as an example (naturally lolslow and that's a bit on the lower side for a crf value for HD, for example)
[15:14] <JEEB> if you are then aiming for streaming/hardware decoding, you might need to limit more
[15:14] <JEEB> but I have no idea of what you're doing, now do I?
[15:15] <JyZyXEL> i just want the 10GB Huffyuv to something more usable :D
[15:15] <JEEB> lol
[15:15] <iive> Mareod: nobody can help you, until you say what the problem is. ;)
[15:16] <JEEB> JyZyXEL, then you can leave preset alone at first, and find your preferred crf value (default is 23, higher is 'use higher quants, compress more and (possibly) worsen the quality', lower is 'use lower quants, compress less, (possibly) highen the quality)
[15:17] <JEEB> the reason for the (possibly) is because there's an area where your eyes don't see a difference
[15:17] <JEEB> and there there is no reason why you wouldn't use a higher value
[15:17] <JEEB> (the idea is to just find the highest value that still looks good for you)
[15:17] <JEEB> you can encode a few thousand frames out of the clip for testing
[15:17] <JEEB> somewhere with various content
[15:19] <Mareod> that's true. right so I have no problem encoding with the standard ProRes encdec codec but that doesn't have any multi threading support. I then tried out Kostya's encoder but it crashes with the libavcodec library in function prores_fdct_c() (line 57 libavcodec/proresdsp.c). I did find a ticket from 5 months back here http://ffmpeg.org/trac/ffmpeg/ticket/1097 that matches the problem I'm having
[15:19] <Mareod> but thought someone might have some insight into why this might be happening
[15:19] <Mareod> within*
[15:20] <JEEB> seems like it wouldn't happen on every setup, but it was indeed duplicated
[15:21] <Mareod> That thread only contains debugging dumps but it does pin down the exact line where it segfaults. That line is line 64 "block[y * 8 + x] = tsrc[x];"
[15:24] <JEEB> if you could check if it happens with libav's avconv as well, you could poke kshishkov himself
[15:24] <Mareod> ok i'll give that a go
[15:31] <JyZyXEL> JEEB: everything else plays it correctly than VLC :D
[15:32] <JEEB> JyZyXEL, unfortunately for some reason I'm not surprised
[15:32] <JyZyXEL> its funny how some videos it plays without any artifacts
[15:33] <JEEB> make sure the hardware decoding is off in VLC, although I have no idea about it being off/on by default
[15:33] <JEEB> also, I guess it's worth trying a nightly from VideoLAN
[15:34] <JyZyXEL> funny thing is i don't have any control over the VLC installed in the machine where the video will be displayed :p
[15:37] <JEEB> JyZyXEL, what kind of muxing are you using btw?
[15:37] <JEEB> (as in, what are you muxing into?)
[15:37] <JyZyXEL> MPEG-4 AVC
[15:38] <JEEB> and that's a container?
[15:38] <JyZyXEL> AVI container
[15:38] <JEEB> no
[15:38] <JEEB> don't do that
[15:38] <JEEB> use mp4/flv/mkv
[15:38] <JyZyXEL> oh!
[15:40] <JyZyXEL> thats a great idea
[15:42] <JEEB> basically AVI is really an old design
[15:42] <JEEB> you _can_ do it, as the same thing was more or less done for MPEG-4 Part 2 (xvid/divx are encoders for this standard), but it's... not really a good idea as many people just don't make the support for that well, for the obvious reason that it's not what's recommended
[15:43] <Aikar> woot for being in a relationship... forgot to wake pc up from suspend, getting fiancee to do it >_>
[15:43] <Aikar> im trying to get amerge to work but having problems :/
[15:43] <bartbogdan> saste: iive: Done, https://ffmpeg.org/trac/ffmpeg/ticket/1595
[15:45] <Aikar> https://gist.github.com/3237217  using ffmpeg version 0.10.4-6:0.10.4-0ubuntu0jon2   from the ubuntu PPA recommended.
[15:45] <saste> bartbogdan: looks fine
[15:45] <Aikar> i get [amerge @ 0x1fb2a60] Media type mismatch between the 'Parsed_amerge_0' filter output pad 0 and the 'out' filter input pad 0
[15:45] <Aikar> Cannot create the link amerge:0 -> buffersink:0
[15:47] <saste> Aikar: -vf "[1][2] amerge"
[15:47] <saste> doesn't make sense
[15:47] <Aikar> thats the syntax i was finding on many articles
[15:48] <saste> -vf is for *video* filters
[15:48] <Aikar> so i need af?
[15:48] <saste> you tell it
[15:48] <Aikar> i saw someone say use -vf instead of -filter_complex for older versions
[15:50] <saste> Aikar: -af is not supported in older versions, depending on how older the version is
[15:50] <Aikar> hmm -filter:a looks like its working
[15:51] <Aikar> well its streaming but im not at home to test if audio is merged haha
[15:52] <Aikar> https://gist.github.com/68fd4532a19a411a934a
[15:52] <Aikar> does this look like its working?
[15:53] <Aikar> basically im capturing desktop sound and microphone sound and want to merge them
[15:53] <Aikar> pulse is my desktop and hw:0 is mic
[15:56] <Aikar> lol well desktop sound works, i used espeak and heard it over my stream
[15:57] <Aikar> i wonder if i just freaked my fiancee out
[15:57] <JyZyXEL> ffmpeg -i INPUT.AVI -acodec libfaac -vcodec libx264 -vpre default -crf 20 OUTPUT.mkv
[15:57] <JyZyXEL> would that be ok?
[15:58] <Aikar> ok the idea of being able to do TTS messages to my fiancee is great haha
[15:58] <Aikar> i hope i dont have the speakers all the way down ;(
[15:58] <Aikar> http://www.twitch.tv/aikaradora  < im using ffmpeg to stream desktop to twitch
[15:59] <Aikar> so saste thanks for the help, looks like it MAY be working. I can hear desktop sound
[15:59] <Aikar> I guess I can flip the sound order (as I always only heard the first input before) and see If i can still hear desktop when its 2nd
[15:59] <Aikar> since she doesnt seem to be wanting to get out of bed to speak into the mic
[16:00] <Aikar> ugh its not working, now i hear mic and i can hear the TTS messages through mic :(
[16:02] <Aikar> https://gist.github.com/3237217  < where im currently at
[16:05] <JyZyXEL> File for preset 'default' not found
[16:05] <JyZyXEL> how can there not be a default
[16:06] <Aikar> JyZyXEL: try -preset instead of -vpre, that hit me when i upgraded to .10
[16:06] <JyZyXEL> unknown encoder libfaac
[16:11] <JyZyXEL> i can't figure out a way past this
[16:12] <JyZyXEL> ok its "aac"
[16:14] <JyZyXEL> this is isanely hard
[16:15] <Aikar> i need someone who knows how to properly do amerge :(
[16:15] <JyZyXEL> -preset was wrong
[16:15] <JyZyXEL> deleted that, then it wanted me to add -strict and -2
[16:15] <Aikar> everything seems to want to use -f lavfi -i with files, but i need the input streams
[16:15] <JyZyXEL> aparrently some of the codec im using is "experimental"
[16:16] <JyZyXEL> but it didn't tell me which one of them
[16:18] <Mareod> JEEB: ah.. after getting it installed and everything I have now noticed that libav does not include support for ProRes encoding, only decoding. :)
[16:18] <Aikar> newaudio was removed?
[16:18] <JyZyXEL> im just assuming it is using some kind of default values now
[16:20] <JEEB> Mareod, uhh
[16:20] <JEEB> it does
[16:20] <JEEB> it has a prores encoder
[16:21] <Mareod> oh.. i did a avconv -codecs and it has prores listed as decoder only.. let me recheck it
[16:21] <JEEB> Mareod, http://git.libav.org/?p=libav.git;a=blob;f=libavcodec/proresenc.c;h=f82153309b6dd2e86ded49f92e8c0ecb7f8121e1;hb=HEAD
[16:21] <JEEB> proresenc.c :P
[16:21] <JEEB> this is kostya's
[16:24] <Mareod> ok yep its not in the latest libav release (0.8.3).. I'll grab HEAD
[16:29] <JyZyXEL> im really starting to hate VLC
[16:43] <JyZyXEL> im starting to run out of ideas
[16:44] <JyZyXEL> i've tried avidemux, ffmpeg, videolan x264
[16:44] <JyZyXEL> none of them produce a H264 video that plays correctly on VLC
[17:13] <Mareod> JEEB: sorry it took a while, had some issues with shared libraries on the Linux machine I'm using. anyway avconv works fine. I was able to transcode a clip to ProRes with no issues..
[17:14] <JEEB> ok, so it's ffmpeg specific
[17:14] <JEEB> then you might want to poke the ffmpeg trac issue that you're still having a problem with it
[17:15] <Mareod> ok
[17:18] <rainmaker1> Hi, I try to save rtmp stream to a number of files (using segment format) with a fiex time duration of segments. However the very first segment is ok but every after segment when player in vlc first wait to pass segment duration and then start to play normally.
[17:19] <rainmaker1> Maybe I didn't explained my problem very well so if anyone can help I will be glad to provide more info with samples :)
[17:20] <Mareod> thanks for the help JEEB :)
[17:32] <JyZyXEL> JEEB: http://img853.imageshack.us/img853/37/vlcsnap2012080218h30m57.png
[17:34] <saste> rainmaker1: that seems the "right behavior" according to VLC
[17:35] <saste> since the following segments will start with a timestamp != 0, VLC seems to wait until the starting time is reached
[17:35] <saste> did you try the same with ffplay/mplayer?
[17:35] <saste> but usually non-starting-from-0 files are not a problem, assuming A/V are synched
[17:36] <saste> if not, i could add an option for resetting timestamp values for each new segment
[17:41] <Aikar> its a tjholowaychuk o.o
[17:41] <JEEB> JyZyXEL, and that's with which container? :D
[17:41] <Aikar> saste: https://gist.github.com/3237217 < I'm here but its not merging my audio :/ I still only hear the first input source
[17:42] <JyZyXEL> JEEB: MKV
[17:42] <JyZyXEL> i even tried the VideoLan x264 encoder straight up
[17:44] <JEEB> JyZyXEL, try pushing the matroska file through mkvmerge
[17:44] <JEEB> http://www.bunkus.org/videotools/mkvtoolnix/downloads.html#windows
[17:45] <JyZyXEL> what will that do?
[17:47] <JyZyXEL> i figured it was a problem with the H264 stream and VLC not decoding it properly?
[17:48] <saste> Aikar: seems like a pulse/also problem
[17:48] <saste> pulse/alsa*
[17:50] <JEEB> JyZyXEL, some demuxers have problems with non-mkvmerge muxing
[17:50] <JEEB> dunno if that's the case in this case
[17:50] <JEEB> but it's worth a shot
[17:50] <JyZyXEL> i guess!
[17:51] <Aikar> saste: both the inputs work fine, whichever is first works. I want to merge them into 1 stream though
[17:51] <Aikar> so its the amerge part that doesnt seem to be working
[18:34] <emerica> Is there something I could change setting wise in ffmpeg when creating mp4's to have the size of the moov atom to become smaller? Running into a problem with some devices having issues when a moov atom is larger than 6mb. When doing long movies 1.5-2 hours we start to break that 6mb. The mdia and trak atoms get rather large. Any ideas ?
[18:39] <soulstitchmmo> can anyone help me figure out why I can't record sound any more?
[18:58] <brontosaurusrex> how would i go compiling fdk-aac with ffmpeg, any guides?
[19:02] <JEEB> not different from any other library
[19:02] <JEEB> https://github.com/mstorsjo/fdk-aac -> create the configure with autoreconf -> compile -> install -> compile ffmpeg with the needed configuration
[19:03] <powerNET> what is the best aac library
[19:03] <powerNET> that is lgpl compliant
[19:04] <JEEB> until fraunhofer's license has been re-checked libavcodec's internal aac encoder is the "best" there is
[19:04] <JEEB> fraunhofer made a custom license which depending on what they meant is either LGPL compatible or not
[19:06] <brontosaurusrex> ok autoreconf is doing something
[19:07] <JEEB> it'll create the configure script
[19:12] <Macey> anyone got an example of how to reencode a mp3 stream from http please/or can point me in the right direction#?
[19:12] <Macey> oops ?
[19:13] <brontosaurusrex> JEEB: --enable-nonfree ?
[19:13] <JEEB> yes
[19:14] <brontosaurusrex> and this thing will do he aac and pc aac as well right?
[19:14] <brontosaurusrex> ps*
[19:15] <JEEB> lc, yes, hc, yes -- and a whole lot of other stuff
[19:15] <brontosaurusrex> like?
[19:15] <brontosaurusrex> 5.1?
[19:15] <JEEB> ...you were just talking about types AAC
[19:15] <JEEB> now you're talking about channel sets?
[19:15] <JEEB> anyways, yes -- various channel configurations should work
[19:16] <brontosaurusrex> afaik build in aac encoders can only do 2 channel
[19:16] <JEEB> no, libavcodec can afaik do more
[19:16] <JEEB> vo-aacenc was limited
[19:16] <deuxbierre> hello, i've got a problem to convert files .flv to files.avi for an archos 2 vision, , sorry if my english isn't perfect
[19:17] <llogan> Macey: ffmpeg -i http://192.168.1.159/input.mp3 -c:a libmp3lame -q:a 4 output.mp3
[19:17] <powerNET> people keep saying libvo-aacenc isnt that good quality
[19:17] <powerNET> i cant tell the difference though
[19:17] <llogan> also it doesnt work with -q:a
[19:17] <llogan> AFAIK
[19:18] <JEEB> powerNET, libavcodec and vo-aacenc are pretty similar, and heck -- libavcodec's could even be better.
[19:18] <JEEB> faac would probably be better with lower bit rates, but nothing really special. fraunhofer's aac encoder is the only one that'll probably stand out in the end
[19:20] <llogan> libfdk-aac with ffmpeg doesn't seem to like "-flags +qscale"
[19:20] <llogan> to use -global_quality
[19:21] <JEEB> I think it supports quality-based encoding, but I don't remember what exact setting was to be used for that
[19:21] <llogan> http://www.hydrogenaudio.org/forums/index.php?showtopic=95989
[19:21] <JEEB> yes
[19:21] <JEEB> d404 made that thread for testing
[19:22] <JEEB> and I now just saw that it uses that setting, it could be different in ffmpeg, I don't know >_>
[19:22] <llogan> so the syntax is possibly different now?
[19:22] <llogan> ah
[19:22] <JEEB> possible syntax differences between libav and ffmpeg? dunno
[19:22] <JEEB> in any case, the quality-based encoding should definitely still be there
[19:24] <brontosaurusrex> JEEB: do you use libav or ffmpeg?
[19:24] <Macey> hey llogan, i need to do it on a binarystream rather than as a file
[19:25] <JEEB> I mostly use libav, but I test ffmpeg as well from time to time. Most help I can give isn't specific to any project so I am around both projects.
[19:25] <llogan> JEEB: http://pastebin.com/uckpwjqD
[19:25] <powerNET> how do i inbuilt aac codec inside ffmpeg?
[19:25] <powerNET> without external library
[19:26] <brontosaurusrex> JEEB: cool
[19:26] <JEEB> powerNET, as long as you haven't disabled it specifically and at least have LGPL enabled it should be enabled
[19:26] <brontosaurusrex> got my osx compile now, but no clue how to even test it
[19:26] <JEEB> 'aac' codec
[19:26] <powerNET> this is lgpl compliant?
[19:26] <JEEB> yes?
[19:26] <JEEB> it's the libavcodec encoder I've been talking about >_>
[19:27] <JEEB> it's on par if not better than vo-aacenc
[19:27] <powerNET> i tried using "-acodec aac" but that doesnt seem to work
[19:27] <llogan> -strict experimental or -strict -1 (I think)
[19:27] <Macey> llogan, is it easy enough to take a mp3 stream (like you had) and transcode to mp2 programatically? I just don't want to write into a file
[19:28] <JEEB> llogan, it seems to say -2 nowadays
[19:28] <JEEB> but experimental is more readable, yeah
[19:28] <Macey> i want to call a getBytes() or something
[19:28] <llogan> JEEB: i can never remember the exact value
[19:28] <JEEB> which is why the word-based thing is better off :3
[19:28] <JEEB> also in case the number changes in the future it'll still work
[19:29] <llogan> Macey: i have no experience with using FFmpeg programatically
[19:29] <Macey> ah ok no worries, ta. Is this the right channel or should i be in -devel?
[19:29] <llogan> not -devel
[19:29] <Macey> ok
[19:29] <llogan> that's for discussion of development and patches
[19:30] <Macey> ic
[19:30] <Macey> i'm just a little stuck
[19:30] <llogan> another alternative is the mailing lists
[19:30] <Macey> can't find any good examples
[19:31] <llogan> you could ask on libav-user mailing list (the list for using the libraries programatically)
[19:32] <JEEB> s/libav/ffmpeg/ if you're using ffmpeg :)
[19:34] <Macey> ok thanks!
[19:34] <llogan> https://lists.ffmpeg.org/mailman/listinfo/libav-user/
[19:35] <llogan> libav-user and ffmpeg-user are both offered by ffmpeg
[19:35] <JEEB> lol
[19:35] <llogan> it's legacy
[19:37] <brontosaurusrex> any good example on how to use fdk-aac from ffmpeg cli, a link perhaps? my google fu is failing me
[19:37] <deuxbierre> sorry
[19:38] <deuxbierre> llogan, fflogger, http://pastebin.com/mXutS0uZ
[19:38] <JEEB> brontosaurusrex, set audio codec to libfdk_aac and set other settings as usual, maybe check up with llogan on how to use quality-based rate control with it. bitrate-based doesn't seem any different
[19:38] <llogan> i haven't been able to get quality based working, but i only tried for a minute or so
[19:40] <brontosaurusrex> ffmmpeg -i <input> -c:a libfdk_aac -flags +qscale -global_quality 5 -afterburner 1 <output>       ?
[19:40] <llogan> deuxbierre: you are using ffmpeg like it is mencoder.
[19:42] <llogan> deuxbierre: ffmpeg -i input -vcodec mpeg4 -s 176x220 -acodec mp2 -ar 44100 -ac 2 -ab 64k -r 18 -qscale 4 output.mpg
[19:42] <deuxbierre> and for out put .avi ?
[19:43] <llogan> i don't know what the Archos 2 supports.
[19:43] <llogan> i just copied the video information from your paste
[19:44] <llogan> brontosaurusrex: did it work for you?
[19:44] <brontosaurusrex> llogan: just reading around currently
[19:45] <deuxbierre> ok, llogan new paste with the command i'm trying with mencoder http://paste.ubuntu-fr-secours.org/src-108378
[19:45] <llogan> heh. if i try -q:a 5 it complains "[libfdk_aac @ 0x2152040] VBR quality 590 out of range, should be 1-5"
[19:46] <brontosaurusrex> 0.5 perhaps then?
[19:46] <llogan> no. i was just screwing around. there might be a bug or i'm doing something dumb.
[19:47] <llogan> (regarding the way its supposed to be done)
[19:47] <deuxbierre> i'll trying to ajust better that commands
[19:48] <brontosaurusrex> perhaps -global_quality:a 5
[19:48] <brontosaurusrex> lmao
[19:48] <brontosaurusrex> whatever this means:      global_quality[:stream_specifier] integer (output,audio,video)
[19:49] <deuxbierre> thanks
[19:51] <llogan> deuxbierre: that's similar to what i gave you but a few differences: -s 320:-1 -r 15
[19:52] <deuxbierre> i don't understand , i going to read the man and infos
[19:54] <llogan> brontosaurusrex: Daemon404 says: you cant use 1 (lowest bitrate vbr mode) with aac_low profile
[20:05] <Sashmo> is there a way to output audio and video into seperate files from a input file?
[20:08] <brontosaurusrex> llogan: huh?
[20:09] <JyZyXEL> the MKV tool didn't help
[20:09] <JEEB> ok
[20:09] <brontosaurusrex> so there is 0 *** docs as usual ...
[20:09] <JEEB> and everything else plays it fine, like mplayer2?
[20:09] <JyZyXEL> yeah
[20:10] <JEEB> try mp4/flv
[20:10] <JEEB> mp4 should be "good enough"
[20:10] <JyZyXEL> mp4 is rendering
[20:10] <JEEB> k
[20:10] <JEEB> you could've just used ffmpeg to remux tho
[20:10] <JEEB> -c:v copy -c:a copy
[20:10] <JyZyXEL> would that even help because the file was produced by ffmpeg in the first place
[20:10] <JEEB> why not?
[20:10] <JEEB> I mean
[20:10] <JEEB> you only need to switch containers
[20:11] <JyZyXEL> oh
[20:11] <JEEB> so your input would be derp.mkv
[20:11] <JEEB> and output derp.mp4
[20:11] <JyZyXEL> ha funny :p
[20:11] <JyZyXEL> i somehow have a feeling its the h264 decoder in VLC thats being buggy
[20:11] <JyZyXEL> tried it now on 3 different computers with buncha different VLC versions
[20:12] <JyZyXEL> it happens in all of them exactly the same
[20:12] <JEEB> well, if mp4 fails too then it's for sure
[20:12] <JyZyXEL> i don't know what im gonna do then
[20:12] <JEEB> mkv had problems in the past, although they've rewritten the mkv parser lately
[20:12] <JEEB> (for 2.x)
[20:15] <JyZyXEL> an there we go mp4 fails too
[20:16] <JEEB> durf
[20:20] <Meelu> i want to convert from multiple video formats if possible all popular ones to mp4/flv the format flash video players support. Anyone know any python scripts or something similiar for this?
[20:22] <someone-noone> Hello! Can anyone tell me real bitrate for h264 hd and full hd stream with best and average quality?
[20:23] <sacarasc> Bitrates can vary enormously depending on the content.
[20:24] <GA-Flix> Good day everyone. Can anyone tell me where I get a mingw32 compiler for ubuntu? (and how i choose that compiler for compiling ffmpeg)
[20:24] <someone-noone> sacaras, I understand& But there should be some avarage value. For example, if we are talking about movie
[20:25] <sacarasc> someone-noone: High action? Low action? Animated?
[20:25] <someone-noone> sacaras, avarage and high action
[20:25] <sacarasc> You could just use a quality based thing, and forget about setting a bit rate at all...
[20:27] <cbreak> someone-noone: forget about bitrate
[20:27] <cbreak> and just use crf
[20:27] <cbreak> you don't seem to need bitrate anyway
[20:27] <llogan> someone-noone: 1. choose a preset 2. choose a crf value 3. use these same settings for the rest of your videos
[20:27] <someone-noone> sacaras, I need to calc how much my service will cost (internet-traffic). For this I need some avarage value to make calculation. I understand it depends on lot of factors, anyway I should understand low, avarage and hight bitrate for 720p and 1080p
[20:27] <cbreak> let's say crf 20 or so. Lower if you want better quality, higher if you want smaller files
[20:29] <someone-noone> Can I make assumption, that most of HD files with h264 has bitrate ~2mbps?
[20:29] <llogan> Meelu: you don't need a python script to do that. just use ffmpeg directly.
[20:29] <cbreak> bitrate will probably between 500kbit/s and maybe 20mbit/s
[20:29] Action: GA-Flix needs help with cross compiling
[20:29] <Meelu> llogan, i know but i thought there may be many diff commands and a script would have them ready
[20:30] <llogan> GA-Flix: http://ffmpeg.zeranoe.com/blog/?p=106
[20:30] <GA-Flix> llogan, can i use w64 script to build 32bit program?
[20:31] <llogan> GA-Flix: i don't know. i'm a linux luser.
[20:31] <GA-Flix> okay, i'll try
[20:31] <GA-Flix> thank you
[20:32] <llogan> Meelu: ffmpeg -i input -c:v libx264 -preset medium -crf 23 -c:a libmp3lame -aq 4 -ar 44100 output.flv
[20:32] <llogan> adjust crf and preset if desired
[20:33] <Meelu> would this be like youtube ones
[20:33] <llogan> similar, but better looking. probably -crf 29 for youtube quality
[20:33] <Meelu> alright thanks
[20:34] <llogan> or: ffmpeg -i input -c:v libx264 -preset medium -crf 23 -c:a libfaac -q:a 100 output-temp.mp4 && qt-faststart output-temp.mp4 final-output.mp4
[20:35] <llogan> use the slowest preset you have patience for and the highest crf value that still gives an acceptable quality
[20:35] Action: llogan needs to get off ass and finish that x264 encoding guide
[20:35] <llogan> i'll do it later
[20:35] <Meelu> lol
[20:35] <GA-Flix> llogan, thanks, i can choose between x86 and x64 =D
[20:46] <llogan> Sashmo: yes. probably something like: ffmpeg -i IronMan.mkv -map 0:0 -c copy output-video.mkv -map 0:1 -c copy output-audio.mka
[20:54] <Sashmo> thanks llogan
[20:58] <subanomic> hi
[20:59] <subanomic> I have a problem with ffmpeg for Ubuntu 10.04. When trying to convert a wmv to vcodec libx264, it tells me "Unsupported codec for output stream #0.1"
[20:59] <subanomic> I do have libx264 installed
[21:00] <subanomic> okay. I have to figure out a way to copy from a vm...
[21:01] <JEEB> subanomic, you will need to have libavcodec-extra installed for that
[21:01] <JEEB> if you are using the distro package
[21:01] <JEEB> IIRC
[21:01] <subanomic> I do have that installed as well
[21:01] <JEEB> ok...
[21:01] <JEEB> then yeah, pastebin would be nice
[21:12] <subanomic> okay, here we go. I wasn't able to SSH into the machine, I wasn't able to copy from it and for some weird reason I wasn't able to pipe the ffmpeg output into a text file
[21:12] <subanomic> so I had to do a screenshot: http://www1.picturepush.com/photo/a/8882929/1024/Anonymous/ffmpeg-screenshot.jpg
[21:13] <llogan> subanomic: it's having trouble with the audio output
[21:14] <subanomic> oh, okay
[21:14] <llogan> also, -crf and -b are mutually exclusive
[21:15] <llogan> so you probably want to remove -b 1500k
[21:15] <llogan> try giving it an -acodec, such as "-acodec libfaac -aq 100"
[21:16] <llogan> (that is if your libavcodec-extra-52 is from medibuntu)
[21:16] <subanomic> unknown encoder libfaac. I'll search for the ubuntu packages, just a minute...
[21:17] <llogan> http://ubuntuforums.org/showthread.php?t=1117283
[21:17] <llogan> option C
[21:18] <llogan> or use "-acodec libmp3lame -aq 4"
[21:19] <subanomic> I need the videos to play under HTML5 compatible browsers, so I need AAC
[21:21] <Mista_D> Demuxed a TS file, can't mux it back toghether again. http://pastebin.ca/2176913
[21:21] <subanomic> so is this due to the fact that the ffmpeg version I'm using didn't have --enable-libfaac when it was compiled?
[21:21] <subanomic> I did install a libfaac package, but still the same error
[21:22] <JEEB> yes
[21:23] <subanomic> thanks everyone! The medibuntu version from llogan's link works
[21:23] <JEEB> ugh
[21:23] <JEEB> medibuntu
[21:23] <JEEB> although I guess that's better than debian-multimedia
[21:25] <subanomic> JEEB: the other ffmpeg version still doesn't have --enable-libfaac
[21:25] <subanomic> must have been something else
[21:25] <JEEB> well, without libfaac enabled you can't use faac, naturally
[21:27] <llogan> subanomic: an alternative solution: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideLucid
[21:27] <JEEB> and you might just compile ffmpeg with fdk-aac
[21:27] <JEEB> if you compile yourself :)
[21:27] <subanomic> I don't know how ffmpeg works. But isn't there some standardized interface for all the codecs, such that one could just install the codec libraries and ffmpeg can use them without having to compile support for that particular codec into ffmpeg?
[21:27] <JEEB> nope, doesn't work like that
[21:28] <JEEB> if you enable it and don't have the library at runtime it'll just crash
[21:28] <JyZyXEL> is it better to put xvid in avi or mkv?
[21:28] <llogan> i will add a fdk-aac section (and possibly a note about -global_quality 1)
[21:29] <JEEB> JyZyXEL, the b-frames in avi hack is something most people are used to, so it shouldn't matter -- but I would prefer mkv as it's "proper"
[21:29] <JyZyXEL> ok
[21:29] <subanomic> but then, again, I'm wondering why the ffmpeg version from medibuntu didn't have "--enable-libfaac" in the configuration section that it prints when I run it
[21:30] <JEEB> because it's nonfree?
[21:30] <JEEB> as in, can't be distributed
[21:31] <subanomic> no, you misunderstood me. I mean the working version from medibuntu. It did convert the video with -acodec libfaac just fine. But it didn't say "--enable-libfaac" in the configuration section
[21:31] <JyZyXEL> im trying xvid with 9216kbps two pass now
[21:31] <JyZyXEL> thats good, right?
[21:32] <powerNET> so i cant redistribute ffmpeg with lib-faac or lib-aacplus?
[21:32] <JEEB> subanomic, pastebin of its output?
[21:32] <JEEB> powerNET, indeed
[21:32] <JyZyXEL> ok the projections are saying it might be a bit too good haha
[21:32] <JEEB> they are nonfree
[21:32] <JEEB> JyZyXEL, OVER NINE THOUSAND!
[21:32] <powerNET> yeah. I'm just wondering if the built-in encoder is fine to redistribute... i guess i'd have to get some aac licenses
[21:32] <JyZyXEL> yeah its gonna be way too big :D
[21:33] <powerNET> patent*
[21:33] <JEEB> powerNET, uhhh the libavcodec one is LGPL just fine
[21:33] <JEEB> liaacplus and libfaac were found to just copy the reference code
[21:33] <JEEB> which is not GPL-compatible
[21:33] <JEEB> thus they were made nonfree
[21:33] <JEEB> but
[21:33] <JEEB> patent licenses and software licenses are different
[21:33] <powerNET> wait so aac doesnt have any patent licenses
[21:34] <JEEB> ...
[21:34] <JEEB> read my last line
[21:34] <powerNET> well im guessing there isnt any software licenses for using libavcodec one
[21:35] <JEEB> ...
[21:35] <JEEB> ok, I'll say it in a different way
[21:35] <powerNET> yeah im really retarded sorry
[21:35] <JEEB> patent licenses and software licenses are completely separate things
[21:36] <JEEB> software license is the license under which you can use the software in general terms, whether or not by local laws and patents you have to license your usage of certain formats is a complete separate issue
[21:36] <JEEB> nonfree means that the code isn't compatible with the software license(s)
[21:36] <JEEB> (which makes it impossible for you to distribute the binary)
[21:37] <powerNET> but if i want to distribute ffmpeg lgpl to do aac encoding
[21:37] <JEEB> has nothing to do with whether or not there are patents on something and/or if someone wants you to license certain formats
[21:41] <llogan> JyZyXEL: why are you performing two passes? why not just use a quality based single pass encode?
[21:42] <JyZyXEL> i thought two pass was the cool thing to do?
[21:43] <JEEB> llogan, with xvid?
[21:43] <llogan> -qscale
[21:43] <JEEB> hmm
[21:43] <JEEB> wasn't that just constant qp?
[21:44] <JEEB> JyZyXEL, it used to be the only way of getting good enough quality for file size with certain encoders... libx264 f.ex. has the crf rate control mode, which is as good quality-wise, but is suited for "quality-based" encoding
[21:44] <JyZyXEL> i thought x264 was totally awesome
[21:44] <JEEB> it is
[21:45] <JyZyXEL> until i opened the resulting file in VLC...
[21:45] <JEEB> I haven't seen other encoders with a mode similar to libx264's crf
[21:45] <JyZyXEL> thats when it all turned into.. poop
[21:45] <JEEB> well, VLC be VLC
[21:45] <JEEB> as you could see only it fails
[21:45] <JEEB> and I'm surprised why it's failing for you
[21:45] <JyZyXEL> for all my machines
[21:45] <JEEB> all of the streams I've made and played with it have worked
[21:46] <JyZyXEL> only thing i can think of maybe the source material has something to do with it?
[21:46] <JEEB> JyZyXEL, can you share how you were encoding those H.264 streams?
[21:46] <JyZyXEL> its Huffyuv 2.1.1
[21:46] <JEEB> no
[21:46] <JyZyXEL> JEEB: i tried all the tools i could think of
[21:46] <JEEB> command line for ffmpeg and ffmpeg's terminal output
[21:46] <JEEB> if possible
[21:46] <JyZyXEL> ffmpeg, avidemux and the x264.exe
[21:46] <JEEB> for what you were doing
[21:46] <JEEB> I would like to try and replicate it myself, and/or see if you have set anything stupid
[21:46] <JyZyXEL> i already closed the command lines but the resulting output was same always
[21:47] <Mista_D> encoded TS file with x264 and faac; demuxed it; can't mux it back to TS... MP4/AVI are ok.  http://pastebin.ca/2176923
[21:47] <JyZyXEL> i used default settings only setting the quality controls
[21:47] <JEEB> if you can do a favor to me and start one up once again, to get your command line and the output ffmpeg does when it starts encoding, you can stop in the middle unless you remember getting some extra messages
[21:50] <JyZyXEL> yeah i guess i can work it out from memory
[21:51] <JyZyXEL> it wasn't a very nice user experience with all the syntax errors my commands gave
[21:51] <JyZyXEL> fix one thing and a next error appears
[22:11] <llogan> i added fdk-aac to the ubuntu guide (but not the older ones for lucid 'n hardy).
[23:15] <powerNET> it seems libvo_aacenc is the best lgpl compliant encoder
[23:16] <powerNET> its very close my original source at 128 kb/s bitrate compared to libmp3lame and libavcodec
[23:16] <JEEB> k
[23:16] <JEEB> it can be close to libavcodec's internal at times tho
[23:18] <powerNET> hmm well what i did was i had a flac file at 320kbps.. converted to 3 different files
[23:18] <powerNET> opened up audacity and then inverted my original track.. lined all 3 coverted ones
[23:19] <powerNET> and ideally it there should be no sound in the exported file
[23:20] <powerNET> i'm assuming the more sound the exported file has, the more lossy encoding
[23:20] <powerNET> i could be wrong though
[23:21] <JEEB> you should really be doing blind listening tests
[23:21] <JEEB> there was one done lately'ish and it showed that libavcodec's encoder was actually surprisingly good
[23:22] <JEEB> it does have some features disabled tho, as those are broken. But even without them :D
[23:27] <powerNET> blind testing?
[23:27] <powerNET> i mean they all sound pretty much the same :)
[23:28] <powerNET> but yeah libavcodec was second best. worst was mp3.
[23:33] <Jax> hello.. is there an easy way to extract a couple seconds from an MTS movie? i don't usually do video stuff.
[23:46] <llogan> JEEB: do you have a link to that test?
[23:46] <llogan> i'm guessing its japanese
[23:46] <JEEB> yeah, it's the japanese one
[23:46] <llogan> i don't know it, but kamendo2 (sp?) 'n friends seem to be on top of the testing
[23:47] <llogan> Jax: ffmpeg -i input -t 4 -ss 12 -c copy output
[23:49] <Jax> thanks llogan!
[23:49] <llogan> Jax: -t duration, -ss offset time
[23:50] <llogan> you may have to replace "-c copy" with "-vcodec copy -acodec copy" depending on your ffmpeg version
[23:50] <Jax> 0.7.11
[23:51] <llogan> i don't remember what versions use what syntax
[23:53] <llogan> JEEB: i hope his next one includes fdk-aac
[23:54] <teratorn> "-c copy" that is nice syntax
[23:54] <teratorn> thanks!
[23:55] <llogan> http://d.hatena.ne.jp/kamedo2/20120729
[00:00] --- Fri Aug  3 2012


More information about the Ffmpeg-devel-irc mailing list