[Ffmpeg-devel-irc] ffmpeg.log.20121201
burek
burek021 at gmail.com
Sun Dec 2 02:05:01 CET 2012
[00:22] <MrPopinjay> hello
[00:23] <MrPopinjay> I'm trying to raise the volume of a ogv video
[00:23] <MrPopinjay> I tried $ ffmpeg -i file.ogv -vol 512 file2.ogv
[00:23] <MrPopinjay> But it *really* compressed the video
[00:24] <MrPopinjay> I want to keep it at the current HQ 720p
[00:24] <MrPopinjay> Does anyone know how I would do this?
[00:26] <ubitux> it is recommended to use -af volume
[00:26] <ubitux> and for your video problem, -c:v copy should help
[00:27] <MrPopinjay> Hi ubitux
[00:27] <MrPopinjay> Sorry, I'm rather bad at this
[00:27] <MrPopinjay> What do I need to type?
[00:27] <ubitux> http://ffmpeg.org/ffmpeg.html#volume
[00:28] <MrPopinjay> The problem is not the volume, it's the video compression
[00:28] <ubitux> see the second sentence
[00:28] <ubitux> add -c:v copy as output option
[00:29] <ubitux> ffmpeg -i file.ogv -af volume=2 -c:v copy file2.ogv
[00:29] <ubitux> you might want to play with the audio codec options too
[00:29] <MrPopinjay> Ah, thank you
[00:30] <MrPopinjay> ffmpeg is such an amazing tool, I wish I could wrap my head around it a little better
[00:31] <MrPopinjay> Unrecognized option 'af'
[00:31] <MrPopinjay> Failed to set value 'volume=2' for option 'af'
[00:31] <MrPopinjay> Is what I've got back
[00:36] <MrPopinjay> it's also not recognising c:v
[00:38] <dericed> ?
[00:39] <MrPopinjay> I seem to have quite an old version, 0.8
[00:39] <MrPopinjay> Would that have soemthing to do with it?
[00:39] <dericed> -c:v is >=0.9 IIRC
[00:39] <klaxa> the -c:v portion is pretty new
[00:39] <JEEB> does the version say Libav or Ffmpeg?
[00:40] <JEEB> if it's libav, and 0.8 -- then use avconv as the binary and not ffmpeg
[00:41] <JEEB> (Libav is a fork of ffmpeg used in at least debian-based systems right now by default)
[00:41] <MrPopinjay> Right, I'll try again
[00:41] <teratorn> anyone know why I can't seem to open an AVCodecContext for libvorbis, with AV_SAMPLE_FMT_S16
[00:41] <JEEB> uhh, that's not the answer I was looking for
[00:42] <teratorn> AV_SAMPLE_FMT_FLT is the only one that seems to be allowed...
[00:42] <JEEB> MrPopinjay, the same line that has the version entry
[00:42] <JEEB> at the end
[00:42] <teratorn> surely you can create vorbis streams with 16-bit samples?
[00:42] <JEEB> it says which project created it
[00:42] <MrPopinjay> Still getting Unrecognized option 'af'
[00:42] <JEEB> ok, so it was indeed a libav binary?
[00:42] <MrPopinjay> It says labav developers
[00:42] <JEEB> yeah
[00:42] <MrPopinjay> libav*
[00:42] <JEEB> then you use avconv for the more up-to-date thing
[00:43] <MrPopinjay> I'm on ubuntu 12.04 here
[00:43] <JEEB> they didn't remove the ffmpeg binary they left to rot there before after the 0.8 release >_>
[00:43] <JEEB> so that version has both, where only one was updated
[00:43] <MrPopinjay> That doesn't sound ideal...
[00:43] <JEEB> ea
[00:43] <JEEB> yeah
[00:43] <JEEB> I don't know why libav did that
[00:43] <MrPopinjay> politics?
[00:44] <JEEB> well, no... I would have expected them to have just renamed the whole thing and only left the updated avconv there
[00:44] <JEEB> instead they left the same source code there until after the 0.8 release >_>
[00:44] <MrPopinjay> Either way, avconv -i file.ogv -af volume=2 -c:v copy file2.ogv doesn't seem to work
[00:44] <JEEB> (for the 'ffmpeg' tool)
[00:44] <JEEB> lemme see
[00:44] <JEEB> also, libav has its own channel - #libav
[00:44] <JEEB> lemme see their docs...
[00:45] <MrPopinjay> So wait- although my version is outdated ffmpeg is still being developed?
[00:45] <MrPopinjay> Can I not grab a new version from somewhere?
[00:46] <JEEB> both libav and ffmpeg are developed, and most of the libav updates get merged
[00:47] <ubitux> JEEB: ah? libav is still in development? ;)
[00:47] <JEEB> hehe
[00:47] <MrPopinjay> Would the previously recommendation work if I nabbed a new version of ffmpeg from somewhere?
[00:48] <JEEB> yes, the reason why -af doesn't work is because libav doesn't seem to have that or the volume audio filter
[00:48] <ubitux> try this maybe
[00:48] <JEEB> ^ basically here are the static builds I talked about
[00:53] <MrPopinjay> Right, well I have the ffmpeg version of ffmpeg now, 0.10
[00:54] <MrPopinjay> It's still not recognising the af option
[00:54] <ubitux> it's 2 major versions too old
[00:54] <ubitux> 0.10 0.11 1.0
[00:54] <MrPopinjay> huh
[00:55] <MrPopinjay> why is that
[00:55] <ubitux> that's called versionning
[00:55] <ubitux> and 1.0 is starting to get old btw
[00:55] <MrPopinjay> I just grabbed a PPA from the ffmpeg website
[00:55] <ubitux> just use the static build, or build it yourself with git
[00:56] <MrPopinjay> I'll get a static build I suppose
[00:56] <ubitux> or complain to your distro ;)
[00:56] <MrPopinjay> I'm not sure canonical gives a crap
[00:56] <MrPopinjay> Shall I just grab the most recent one?
[00:56] <ubitux> it's recommended
[00:57] <ubitux> if canonical doesn't give a crap about their users, maybe it's time to move to another distro
[00:57] <MrPopinjay> Well technically I'm using Mint
[00:57] <MrPopinjay> But it's all the same thing really
[00:57] <ubitux> if you share the packages with ubuntu/debian, sure.
[00:58] <MrPopinjay> Right, what do I do with this binary?
[00:58] <ubitux> you run it?
[00:58] <ubitux> ./ffmpeg ...
[00:58] <MrPopinjay> haha
[00:58] <MrPopinjay> Good enough
[00:59] <MrPopinjay> that was fast
[00:59] <MrPopinjay> very fast
[00:59] <MrPopinjay> Wow, perfect, thank you
[01:00] <MrPopinjay> Thanks for your help and patience everyone :)
[01:00] <JEEB> np
[01:37] <llogan> so much confusion for the users (and i'm not talking about currect option usage)
[01:42] <ubitux> :)
[01:46] <llogan> i'm not complaining, or making fun of the users. just an observation (or lamentation) of the current state from my perspective of their perspective.
[08:55] <Zeeflo> perhaps someone here will be more helpfull then the mencoder channel?
[08:56] <Zeeflo> I have xvids, i want to convert to h.264 mp4 with hard subs..
[08:56] <Zeeflo> at a set bitrate
[08:56] <Zeeflo> can someone help?
[08:57] <burek> ffmpeg -i input.xvid -c:v libx264 -crf 23 output.mp4
[08:57] <burek> if you have audio
[08:57] <burek> add -c:a copy
[08:58] <burek> to be safe, run like this: ffmpeg -i input.xvid -map 0 -c:v libx264 -crf 23 -c:a copy output.mp4
[08:58] <Zeeflo> what about the subtitle?
[08:58] <Zeeflo> (srt)
[08:58] <burek> crf 23 tells the quality level
[08:58] <Zeeflo> ok
[08:58] <burek> are subs embedded into video?
[08:58] <Zeeflo> no
[08:58] <burek> what does hard subs mean then?
[08:59] <burek> can you type: ffmpeg -i input.xvid
[08:59] <burek> and paste the output (full) at pastebin-like site
[08:59] <Zeeflo> like, if I encode with mencoder with the -x264encopts -subs blablabla sub.srt blabla.mp4 it burns the subtitles into the mp4
[08:59] <Zeeflo> yea sure
[09:00] <Zeeflo> http://pastebin.ca/2262199
[09:00] <burek> and you have those subs already burned onto the video, or you have srt files and you'd like to burn them on the output h264 video
[09:01] <Zeeflo> i have the srt files and i would like to burn them to the output h264
[09:01] <Zeeflo> (my goal is to stream mp4 files with burned subtitles)
[09:01] <burek> I'm not sure if ffmpeg supports the input of SRT files, but it supports ASS subs
[09:01] <Zeeflo> (from website)
[09:01] <Zeeflo> mencoder does
[09:01] <burek> luckily, you can convert those using: http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20convert%20subtitle%20from%20SRT%20to%20ASS%20format
[09:01] <burek> also http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20burn%20subtitles%20into%20the%20video
[09:02] <Zeeflo> yea, I can convert them with subtitle workshop
[09:02] <burek> or that
[09:02] <Zeeflo> so that would be no problem
[09:02] <Zeeflo> what would my commandline be then?
[09:02] <Zeeflo> in all
[09:02] <Zeeflo> with a bitrate around 1800
[09:02] <burek> ffmpeg -i input.xvid -map 0 -vf "ass=subtitle.ass" -c:v libx264 -crf 23 -c:a copy output.mp4
[09:02] <Zeeflo> or a target filesize perhaps?
[09:02] <Zeeflo> which is better?
[09:02] <burek> if you want to target a filesize use 2pass
[09:03] <Zeeflo> ok
[09:03] <burek> if you'd like to target quality use -crf
[09:03] <burek> if bitrate, use -b:v
[09:03] <Zeeflo> bitrate is better
[09:03] <Zeeflo> for web
[09:03] <burek> ffmpeg -i input.xvid -map 0 -vf "ass=subtitle.ass" -c:v libx264 -b:v 1800k -c:a copy output.mp4
[09:03] <Zeeflo> let me try and covert a subtitle, and then ill try the command :)
[09:05] <Zeeflo> ASS = Advanced Sub Station Alpha correct?
[09:05] <burek> yes
[09:08] <Zeeflo> no such filter 'ass'
[09:09] <Zeeflo> sure
[09:10] <Zeeflo> http://pastebin.ca/2262200
[09:11] <burek> your ffmpeg wasn't compiled with --enable-libass
[09:12] <burek> try using static builds if you just want to re-encode your videos
[09:12] <Zeeflo> so, I apt-get purge ffmpeg and compile a static build?
[09:13] <burek> no need to purge anything
[09:13] <burek> just download static build / extract / run as ./binary
[09:13] <burek> (from curr dir)
[09:13] <Zeeflo> ok..
[09:13] <burek> ./ffmpeg -i input.xvid -map 0 -vf "ass=subtitle.ass" -c:v libx264 -b:v 1800k -c:a copy output.mp4
[09:14] <Zeeflo> will it give the same result as a compiled ffmpeg?
[09:14] <sacarasc> It is a compiled ffmpeg.
[09:14] <burek> no, it will work for change :)
[09:14] <burek> it's like exe file on windows
[09:14] <Zeeflo> ah ok
[09:14] <Zeeflo> im just used to apt-get everything
[09:14] <Zeeflo> or make
[09:15] <Zeeflo> that works
[09:15] <Zeeflo> i wonder if i could use srt=blabal.srt ?
[09:15] <burek> i dunno if srt support has been added yet
[09:16] <burek> you can try :)
[09:17] <Zeeflo> does this look good? : http://pastebin.ca/2262203
[09:17] <Zeeflo> nope, no srt filter
[09:18] <Zeeflo> but ass will do i guess :)
[09:21] <burek> yes, just check the video quality
[09:21] <burek> if it is good enough, try higher -crf values
[09:21] <burek> until the video becomes bad
[09:21] <burek> you can add "-t 10" before "output.mp4", to produce 10 seconds of output
[09:21] <burek> in order not to wait for the entire movie to encode
[09:22] <Zeeflo> ahhh thats smart!
[09:22] <burek> to be able to check the quality
[09:24] <Zeeflo> so the higher the crf value the lesser the quality?
[09:24] <sacarasc> Yes.
[09:24] <burek> and lower the bitrate/file size
[09:25] <Zeeflo> i assume it will encoder faster as well?
[09:25] <Zeeflo> encode*
[09:27] <burek> use -preset
[09:27] <burek> !x264
[09:27] <Zeeflo> yea, im reading those now :)
[09:28] <Zeeflo> crf values 0-51
[09:28] <Zeeflo> etc
[09:28] <burek> preset influences compression speed/quality
[09:28] <burek> crf influences quality/bitrate/speed something
[09:28] <burek> meaning, faster preset will keep the same quality, but produce higher file size
[09:28] <Zeeflo> where would I insert the -preset value?
[09:28] <burek> due to weaker compression
[09:28] <burek> before -crf
[09:29] <burek> or -b:v
[09:29] <burek> whatever you used
[09:29] <Zeeflo> is the -crf needed if I use -preset ?
[09:29] <burek> yes
[09:29] <burek> crf controls image quality
[09:29] <burek> preset controls compression (output file size)
[09:29] <Zeeflo> ah ok
[09:29] <Zeeflo> ok
[09:31] <Zeeflo> at crf value 28 the file also becomes smaller than at 23
[09:31] <burek> well yes, due to less bitrate used
[09:32] <burek> but for same -crf value, using different -preset values will change file size
[09:32] <burek> on account of higher/slower cpu usage
[09:32] <Zeeflo> is there a preset for weboptimizing?
[09:33] <Zeeflo> im gonna stream from an amazon s3 server
[09:33] <Zeeflo> to a JW Player on a website
[09:33] <burek> look, -preset just saves you time, if you are encoding live stream and don't have much time (cpu time)
[09:33] <burek> it doesn't influence quality
[09:34] <Zeeflo> so, i could use -preset normal with crf 23 and see the result?
[09:34] <burek> well play around and see
[09:34] <Zeeflo> :)
[09:35] <Zeeflo> ahh yea.. With a preset it encodes alot faster
[09:35] <Zeeflo> about 30% more fps
[09:36] <burek> but, if you are encoding "offline" (like right now, when you want to re-encode your videos), then use some ultra slow preset
[09:36] <burek> to get the best quality
[09:36] <burek> and smaller file size
[09:36] <burek> (also use lower -crf if you can, since slower -preset will compress it better)
[09:37] <Zeeflo> its gonna take a looong time to encode over 1000 files :D
[09:37] <burek> leave it over night
[09:37] <Zeeflo> is it possoble to batch encode?
[09:37] <Zeeflo> possible*
[09:38] <burek> sure
[09:38] <Zeeflo> is there any documentation for that?
[09:39] <burek> just write a batch script (bash probably)
[11:49] <Zeeflo> would anyone be kind to view a webpage and start an encoded movie to confirm there is sound or not?
[11:56] <sacarasc> Zeeflo: What's the link?
[11:58] <Zeeflo> http://intranet.sofshop.dk/?p=63
[11:58] <Zeeflo> i think perhaps its because jw player does not support ac3
[12:00] <sacarasc> Nope, no sound.
[12:00] <Zeeflo> ok.
[12:00] <Zeeflo> i think i need to convert audio as well to aac
[12:00] <Zeeflo> if I paste you my convert command, will you help me with the audio convert command?
[12:01] <Zeeflo> ./ffmpeg -i file.avi -map 0 -vf "ass=subtitle.ass" -c:v libx264 -preset slow -crf 23 -c:a copy file.mp4
[12:04] <sacarasc> Do ./ffmpeg -codecs | grep aac
[12:04] <sacarasc> See which aac encoders you have and replace 'copy' with one of them. Then pick a bitrate too with -b:a 192k or whatever value you wish to use.
[12:06] <Zeeflo> AAC
[12:06] <Zeeflo> aac_latm
[12:06] <Zeeflo> so, it would just be aac then
[12:07] <Zeeflo> so, -c:a aac -b:a 192k
[12:12] <Zeeflo> that does not work.
[12:13] <Zeeflo> -b:a invalid argument
[12:17] <JEEB> see the ffmpeg version line in your command line output, and a) tell me the version as well as b) tell me if at the end you have "libav developers" or "ffmpeg developers"
[12:18] <sacarasc> They're using one of the builds from !download static...
[12:18] <Zeeflo> im using the 64bit static edition
[12:19] <JEEB> oh
[12:19] <JEEB> I just saw the guy joined just now :V
[12:19] <JEEB> so I didn't look at the backlog
[12:19] <Zeeflo> -c:v libx264 -preset slow -crf 18 -c:a libvo_aacenc -b:a 192k
[12:19] <Zeeflo> that does not seem to work
[12:20] <JEEB> full terminal line and command line output on pastebin of your choice, thank you
[12:21] <Zeeflo> http://pastebin.ca/2262217
[12:21] <Zeeflo> there you go
[12:22] <JEEB> well that is a "d'oh" one
[12:22] <JEEB> vo_aacenc sucks and can only encode 2ch audio
[12:22] <JEEB> you generally don't want to use it
[12:22] <Zeeflo> ok
[12:23] <JEEB> also I bet the error you got with -c:a aac wasn't what you think it is, try it again and see somewhat upwards from the last line
[12:23] <JEEB> there should most probably be another error unless "aac" maps straight to vo_aacenc
[12:23] <Zeeflo> if i just do the aac it tells me its experimental and i need to force
[12:24] <JEEB> yup, that's the reasl error and then you're getting the "aac" encoder
[12:24] <Zeeflo> so do i add the -strict -2 ?
[12:24] <JEEB> -strict experimental
[12:24] <JEEB> which is the same thing, but more readable :)
[12:25] <Zeeflo> where do i add that command? after the aac ?
[12:25] <JEEB> yes
[12:25] <JEEB> after -i
[12:25] <JEEB> also you'll end up encoding 5.1 channel audio so you most probably want to either make the bit rate higher, or you'll want to use -ac 2
[12:25] <JEEB> to downmix
[12:25] <JEEB> to stereo
[12:26] <Zeeflo> Stream #0:0 -> #0:0 (mpeg4 -> libx264)
[12:26] <Zeeflo> Stream #0:1 -> #0:1 (ac3 -> aac)
[12:26] <Zeeflo> i want to keep the 6 channels
[12:26] <Zeeflo> for better audio
[12:26] <JEEB> ok, then just make sure you are using enough bit rate. ffaac (the internal aac encoder) is not really good
[12:27] <JEEB> 64k for a channel generally is enough, methinks?
[12:27] <Zeeflo> yea
[12:27] <Zeeflo> i would probably need 448 k
[12:28] <Zeeflo> JEEB, if you were gonna watch a movie online, would you care to have 5.1 or 2.0 audio?
[12:28] <Zeeflo> or would you not give a sh*t
[12:28] <JEEB> I'm not even sure flash supports
[12:28] <JEEB> >2ch audio
[12:28] <JEEB> as in properly
[12:29] <Zeeflo> so i could do the -ac 2 to make it aac 2.0 stereo =
[12:29] <Zeeflo> ?
[12:29] <JEEB> yes
[12:29] <JEEB> also personally I would recommend just building ffmpeg yourself with libx264 and libfdk_aac if you want to use less bit rate for audio :) It's unfortunately set to nonfree, but it's the best AAC/HE-AAC encoder available for ffmpeg usage
[12:30] <JEEB> (fraunhofer added a line that says "you can't take money for this software", GPL doesn't limit that and you can't limit GPL more than it already does -> nonfree aka "not GPL compatible")
[12:30] <Zeeflo> excactly
[12:31] <JEEB> thus you'd have to build it yourself :)
[12:31] <JEEB> it can't be distributed in binaries
[12:31] <Zeeflo> would the quality be noticeably better with joint stereo only anyways?
[12:32] <JEEB> well, let's just say that fdk-aac is much, much better in all feature sets :)
[12:32] <JEEB> than the internal encoder
[12:33] <Zeeflo> ok
[12:34] <Zeeflo> "-c:a aac -strict experimental -ac 2 -b:a 192k" this will result in an AAC 2.0 stereo soundtrack correct?
[12:34] <JEEB> yes
[12:34] <Zeeflo> with 192k/s
[12:34] <JEEB> yup
[12:34] <Zeeflo> ok
[12:34] <JEEB> and that bit rate should be enough for the internal AAC encoder to finally stop failing :)
[12:34] <Zeeflo> this should definately be supported by jw player
[12:34] <JEEB> more like flash, not jw player
[12:34] <Zeeflo> yea, flash
[12:35] <Zeeflo> jw player is using flash right?
[12:35] <JEEB> as jw player really doesn't implement that much by itself
[12:35] <JEEB> yes
[12:35] <JEEB> you could in theory implement AC3 decoding in actionscript f.ex.
[12:35] <Zeeflo> i want to stream video from s3 from jw player
[12:37] <Zeeflo> then the server would need to decode when streaming?
[12:37] <Zeeflo> if i use an actionscript
[12:38] <JEEB> no... actionscript is flash...
[12:38] <Zeeflo> ah
[12:38] <JEEB> but you'd have to actually implement it :D
[12:40] <Zeeflo> im not good enough to be able to do that
[12:40] <Zeeflo> im pretty new with all this actually
[12:40] <JEEB> well, then you'd just have to use what flash gives you :)
[12:41] <Zeeflo> well, i think ive figured all this ffmpeg out!
[12:41] <Zeeflo> its all beginning to make sense now
[13:23] <joules> hi, does ffmpeg have an the equivalent of an mp:expand filter?
[13:23] <Mavrik> what does that do?
[13:24] <saste> joules, pad
[13:24] <joules> hmm
[13:24] <joules> :)
[13:26] <joules> whats the status of mcdeint? even though its a cow - it really does look good:)
[13:32] <vtwo> hi. i've compiled ffmpeg locally in a vm because i don't have root on the server i'm using. this is the configure i did before make: http://pastebin.com/PW3cHn1s and this is what i get after uploading the ffmpeg binary to my server and trying to use it: http://pastebin.com/QR2dSNAi
[13:32] <vtwo> how comes it looks for shared libaries if i have disabled them in the ./configure process?
[13:33] <JEEB> well, ffmpeg by default compiles itself static, but there is really no way to stop it from linking to a shared library if you've told it to link to it
[13:33] <JEEB> as in --enable-something
[13:33] <saste> joules: nobody is working on it, file a feature request if you want to track its status
[13:33] <JEEB> also, you don't need root to compile ffmpeg really
[13:33] <vtwo> so --disable-shared and --enable-static is bullshit?
[13:33] <JEEB> vtwo, it only affects ffmpeg itself
[13:33] <saste> joules: but you can already use mp=mcdeint
[13:33] <vtwo> oh great, thanks
[13:33] <JEEB> it's not bullshit, it just affects ffmpeg itself
[13:33] <sacarasc> vtwo: You'd have to do static builds of all the deps, too.
[13:33] <joules> saste: ok thanks.
[13:34] <JEEB> vtwo, also you don't need root to build ffmpeg
[13:34] <JEEB> you can use a prefix in your home folder
[13:34] <JEEB> unless of course the server has no compiler or anything
[13:34] <vtwo> so, say, i get all the .so.0 stuff onto my server into the same folder the ffmpeg binary is, will it work?
[13:34] <sacarasc> No.
[13:34] <JEEB> no
[13:34] <iive> JEEB: some distro mount home with noexec too.
[13:34] <JEEB> iive, fun
[13:35] <vtwo> the server has a compiler but i couldn't figure out the prefix stuff :(
[13:35] <vtwo> so setting up a vm seemed way easier for me
[13:35] <iive> but in that case he won't be able to execute it.
[13:35] <JEEB> well, most boxes I've seen don't limit that, surprisingly
[13:35] <sacarasc> ./configure --prefix=/home/user/ffmpeg
[13:35] <JEEB> make sure you are using --disable-shared --enable-static with all and what sacarasc said
[13:35] <sacarasc> Then it would get installed to ~/ffmpeg/bin
[13:36] <vtwo> well, see, do i use that configure with all the deps i have to compile myself or just ffmpeg?
[13:36] <iive> and home/user should be your <user> , aka /home/vtwo/ffmpeg
[13:36] <vtwo> because i would have to compile all deps on my own
[13:36] <JEEB> you have to compile all the dependencies you don't already have
[13:36] <JEEB> then you'll need to also possibly pass PKG_CONFIG_PATH=/your/prefix/lib/pkgconfig as well as possibly add -I/your/prefix/include as an --extra-cflags + -L/your/prefix/lib as an --extra-ldflags
[13:37] <JEEB> that's all you need, as long as you keep to static compiles
[13:37] <JEEB> shared are derp
[13:37] <vtwo> how do i pass the pkg_config_path?
[13:37] <vtwo> and the -I one
[13:38] <JEEB> PKG_CONFIG_PATH=/your/prefix/lib/pkgconfig ./configure --prefix=/your/prefix --extra-ldflags="-I/your/prefix/include" --extra-ldflags="-L/your/prefix/lib"
[13:38] <JEEB> is the base
[13:38] <JEEB> some things use the PKG_CONFIG_PATH
[13:38] <JEEB> others need the folders to be added manually with -I and -L
[13:39] <vtwo> and /your/prefix/ would be like /home/vtwo/ffmpeg/ as in the example above, correct?
[13:39] <JEEB> yes
[13:39] <vtwo> okay thanks, gonna try this then
[13:39] <JEEB> check for if you have git/yasm available first
[13:40] <JEEB> then start with one of those if you lack them
[13:40] <JEEB> then x264 with --disable-cli --enable-static
[13:40] <vtwo> yasm yes but no git
[13:40] <JEEB> how old yasm?
[13:40] <JEEB> yasm --version
[13:40] <vtwo> yasm 0.8.0.2194
[13:41] <JEEB> yeah... you'd want to build a new one
[13:41] <JEEB> grab the 1.2.0 tarball from yasm's site
[13:41] <JEEB> http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
[13:41] <vtwo> thanks
[13:41] <JEEB> also you probably want to add the directory you're building stuff into PATH like this
[13:42] <JEEB> after you build yasm
[13:42] <JEEB> and it creates the folders
[13:42] <JEEB> export PATH=/your/prefix/bin:${PATH}
[13:42] <JEEB> you can add it to your .bashrc as well if you like
[13:42] <JEEB> that way if you call app X, it will take precendence with the thing in /your/prefix/bin
[13:42] <vtwo> that link seems dead?
[13:43] <JEEB> fine to me
[13:43] <JEEB> the tortall one
[13:44] <vtwo> wget hangs on the http request part.. oh well i'm just gonna change servers next moth ._.
[14:59] <vtwo> JEEB: still around?
[15:01] <vtwo> i compiled all the stuff i think i need with --enable-static --disable-shared and prefix, made make and make install, now i try to compile ffmpeg from the git sources and get this: http://pastebin.com/pv1JPA1P
[15:02] <vtwo> there's just x264.h and x264_config.h in ~/include tho, no idea what it wants for libx264
[15:02] <fatpony> vtwo: which distro? you probably miss libx264-dev or something
[15:02] <vtwo> debian stable, can't install debs
[15:02] <vtwo> (not root)
[15:03] <vtwo> or can i install debs with a prefix?
[15:03] <fatpony> then you have to change CFLAGS i think or it won't detect your headers
[15:03] <fatpony> don't know about the local packages install...
[15:03] <vtwo> how do i do that? :/
[15:04] <fatpony> export CFLAGS=path/to/usr/include/
[15:04] <fatpony> and then re-reun .configure
[15:04] <vtwo> ah, i thought the extra ldflags was for that
[15:04] <fatpony> no, ldflags are for linking, that comes next
[15:05] <vtwo> ah i see, thanks, i'll try that
[15:05] <fatpony> maybe you can pass them to configure too
[15:05] <fatpony> actually that might be the right thing to do
[15:05] <vtwo> with export CFLAGS=/media/sdh1/home/roottoor/include/ it doesnt work
[15:06] <fatpony> yeah, in that case, look for an extra cflags option to configure
[15:07] <vtwo> hm no, added --extra-cflags="/media/sdh1/home/roottoor/include" and that doesn't work either
[15:08] <vtwo> that's in my ~/include = http://pastebin.com/rjp7zWDn
[15:08] <vtwo> --enable-libaacplus failed earlier as well so i took it off the configure
[15:08] <fatpony> -I/media/sdh1/home/roottoor/include
[15:09] <fatpony> i forgot the -I, sorry
[15:10] <vtwo> oh dear, it works
[15:10] <vtwo> thanks :)
[15:11] <Zeeflo> crap.... just broke a 247 day uptime on server :/
[15:12] <Zeeflo> it actually hurts more than i imagined ;)
[15:26] <joules> sorry, noob question "ffmpeg -c:v rawvideo -c:a pcm_s16le -i in.avi -vf scale=618:480,pad=640:480,setsar=4/3 out.avi" wants to override and create an mpeg4/mp3 avi?
[15:28] <vtwo> try -c copy
[15:28] <vtwo> (but i've no idea really)
[15:28] <joules> will the filters apply?
[15:28] <JEEBsv> no
[15:29] <JEEBsv> your problem is that you set codecs before -i
[15:29] <JEEBsv> which sets them for input/decoding
[15:29] <joules> sweet thanks.
[15:30] <joules> hope i don't need to align the pad
[15:55] <neufeld> Question: I'm trying to transcode some mythtv recordings to H.264 using ffmpeg in scripts. To rebuild the seek table, I need to give it an annex B stream. My input object at this point in the script is a .mkv file with three streams. An H.264 video stream, an ac3 audio stream, and a subrip (.srt) subtitle stream. I run this file through ``ffmpeg -i file.mkv -codec copy -bsf:v h264_mp4toannexb -f mpegts
[15:55] <neufeld> outfile.mkv'' Everything looks good, but the subtitle track is lost. ffprobe indicates that the subtitle track has been switched to an almost-empty dvbsub stream, which isn't a valid transformation as we go from text to bitmaps. Is there something about annex B that forbids the .srt track?
[16:00] <neufeld> fflogger: OK, thanks.
[16:09] <neufeld> OK, here it is. ffprobe on the input file, showing the srt stream. ffmpeg invocation to convert to annex B, which reports that stream #0:2 is being copied. ffprobe on the output file, showing that the subtitle stream has been clobbered. http://pastebin.com/4CWcuyXj
[16:12] <burek> neufeld, type ffmpeg -codecs | grep subrip
[16:12] <burek> and see if it is decoder only or encoder+decoder
[16:12] <burek> if decoder only, then this is expected behavior
[16:12] <neufeld> " DES... subrip SubRip subtitle"
[16:14] <burek> it might be a bug then
[16:14] <burek> consider reporting it to bug tracker
[16:14] <neufeld> burek: OK, thanks.
[16:16] Action: neufeld realizes he was thanking a bot earlier.
[16:18] <burek> it happens :)
[16:30] <ubuntuaddicted> i am trying to stream my desktop using ffmpeg but I keep getting this error Could not open 'rtmp://live.justin.tv/MYLIVEKEYHERE How can I tell if ffmpeg has the capabilities compiled in?
[16:30] <ubuntuaddicted> I am using FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1
[16:30] <burek> update your ffmpeg
[16:31] <burek> it's more than 1 year old
[16:31] <ubuntuaddicted> im afraid it will break kdenlive
[16:31] <burek> oh ubuntu :) well, blame canada :)
[16:31] <ubuntuaddicted> ?
[16:32] <burek> you can still use static builds
[16:32] <burek> if you really want to
[16:33] <ubuntuaddicted> that says for 64bit
[16:33] <ubuntuaddicted> i am using 2.6.35-22-generic kernel
[16:34] <ubuntuaddicted> can you at least tell me if my currently installed ffmpeg is capable of straming to twitch or justin.tv?
[16:35] <ubuntuaddicted> this is my ffmpeg compile options http://pastebin.com/ygMRgcxF
[16:37] <neufeld> OK, submitted #1983
[16:40] <ubuntuaddicted> can anyone tell me if this ffmpeg is capable to stream to twitch or justin.tv? http://pastebin.com/ygMRgcxF
[16:45] <JEEB> ubuntuaddicted, no
[16:45] <JEEB> that is from like 2009
[16:45] <JEEB> rtmp(e) support was added in 2012
[16:45] <JEEB> :D
[17:34] <ubuntuaddicted> JEEB, ok, thanks for answering
[18:19] <phretor> Hi. I used ffmpeg to "merge" a video (h624,mkv) and an audio (mp3) track, and what I obtain is a video which audio is vorbis. How could that be possible? More details at http://pastie.org/private/qoh7jqhcy6xl6bhcc7p1a
[18:19] <juanmabc> try -acodec copy
[18:20] <phretor> thanks juanmabc
[18:20] <juanmabc> it could just be the default encoding is set to vorbis
[18:20] <juanmabc> cool
[18:21] <phretor> I must quit b/c I'm on a mono-tasking terminal.
[18:22] <joecool> monotasking.... y o y do people not use screen
[18:43] <t4nk662> hello
[18:43] <t4nk662> I've a problem to build x264
[18:44] <t4nk662> when do "make" there's an error
[18:44] <t4nk662> I installed before a previous version
[18:45] <t4nk662> And I think to do a mistake installing new version without remove the previous
[18:45] <t4nk662> Any idea ?
[18:45] <JEEB> pastebin all of the terminal log :P
[18:46] <t4nk662> yasm -f elf -m amd64 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=1 -I./common/x86/ -o common/x86/predict-a.o common/x86/predict-a.asm yasm -f elf -m amd64 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=1 -I./common/x86/ -o common/x86/quant-a.o common/x86/quant-a.asm yasm -f elf -m amd64 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=1 -I./common/x86/ -o common/x86/cpu-a.o common/x86/cpu-a.asm yasm -f elf -m amd6
[18:46] <t4nk662> too small
[18:46] <t4nk662> wait
[18:47] <t4nk662> /root/src/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:103: undefined reference to `vorbis_synthesis_init' /root/src/ffmpeg-source/ffmpeg/libavcodec/libvorbisdec.c:104: undefined reference to `vorbis_block_init' /usr/local/lib/libavcodec.a(vaapi.o): In function `commit_slices': /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:97: undefined reference to `vaCreateBuffer' /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:106: undef
[18:47] <t4nk662> /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:61: undefined reference to `vaBeginPicture' /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:65: undefined reference to `vaRenderPicture' /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:69: undefined reference to `vaRenderPicture' /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:74: undefined reference to `vaEndPicture' /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:52: undef
[18:47] <t4nk662> /usr/local/lib/libavcodec.a(vaapi.o): In function `commit_slices': /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:97: undefined reference to `vaCreateBuffer' /root/src/ffmpeg-source/ffmpeg/libavcodec/vaapi.c:106: undefined reference to `vaCreateBuffer' collect2: ld returned 1 exit status make: *** [x264] Error 1
[18:47] <t4nk662> collect2: ld returned 1 exit status make: *** [x264] Error 1
[18:48] <JEEB> uhh, pastebin >_>
[18:48] <JEEB> not on the damn channel
[18:49] <JEEB> I mean, everything since you wrote 'make'
[18:49] <JEEB> :V
[18:49] <JEEB> also pastebinning means using a pastebin site like f.ex. pastebin.com
[18:50] <JEEB> and then linking that long long text here
[18:50] <JEEB> so I can read it
[18:50] <JEEB> instead of pasting shit on the damn channel
[18:50] <t4nk662> yea ... I need few moment to create the log
[18:54] <t4nk662> http://pastebin.com/ffSkpuHq
[18:54] <JEEB> ok, it's trying to link the x264 command line encoder with libav*
[18:55] <JEEB> do you need the x264 encoder app (not the library)
[18:55] <JEEB> also, do you really need the shared lib?
[18:55] <t4nk662> How can I install them ?
[18:55] <JEEB> install what?
[18:56] <t4nk662> I need x264 lib for ffmpeg
[18:56] <JEEB> yes, then you don't need x264
[18:56] <JEEB> build x264 with --disable-cli
[18:56] <JEEB> make clean and then reconfigure
[18:57] <JEEB> x264 as the command line x264 app
[18:59] <t4nk662> GREAT !!!!!!!!!!!!!!!
[18:59] <t4nk662> It works
[19:00] <JEEB> no shit :P
[19:00] <JEEB> if you don't need the x264 app, you do --disable-cli
[19:03] <t4nk662> I don't the x264 app
[19:03] <t4nk662> with --disable-.cli make works
[19:07] <t4nk662> I don't need x264 app (sorry)
[20:37] <vtwo> hi, small problem, i'm streaming to a rtmp server as flv. when streaming .mp4 files (x264?) it works great but when trying .mkv (h.264?) it's all pixelated (still watchable but ugly), is there something i could try?
[20:42] <vtwo> mediainfo of the .mp4: http://pastebin.com/e3UNY73D and the .mkv: http://pastebin.com/EkAUusBC
[20:47] <vtwo> that's the console output from the streaming: http://pastebin.com/uucna70B
[20:58] <cronix> hi all
[20:58] <cronix> is this possible to accomplish using ffmpeg or ffserver?
[20:58] <cronix> http://www.image-hoster.org/image-65F0_50BA6150.jpg
[21:08] <david__> using openSUSE 12.2 downloaded FFMPEG from git://source.ffmpeg.org/ffmpeg.git but when I use ./configure it says "yasm not found, use --disable-yasm for a crippled build"
[21:08] <JEEB> install yasm for x86 assembly optimizations
[21:08] <JEEB> you really want it
[21:08] <JEEB> if your yasm available is too old (<= 1.0
[21:08] <JEEB> then grab the 1.2 tarball from yasm's site
[21:08] <JEEB> and compile that first
[21:09] <david__> Ok thx for the fast awnser
[21:29] <Mista_D> How to extract subtitlees from bluray in srt format? http://pastebin.ca/2262310
[21:38] <klaxa> cronix, i don't see why that shouldn't be possible
[21:38] <klaxa> take a look at the ffserver sample config
[21:39] <cronix> well the thing is i have no idea how to start :C
[21:39] <cronix> i want a single stream from client to server
[21:39] <cronix> and the server should split that to 3 or more streams
[21:39] <cronix> is the example config anywhere online available?
[21:40] <klaxa> http://ffmpeg.org/sample.html
[21:41] <cronix> oh well
[21:41] <cronix> that config is named after cptn. obvious :C
[21:41] <cronix> i feel like a newb now thanks :D
[21:42] <cronix> ffserver will still run and wait for a new connection if the input stream drops?
[21:43] <klaxa> i think so
[21:44] <cronix> what client is recommented to stream to the ffserver?
[21:44] <cronix> vlc should work?
[21:45] <klaxa> i think you are bound to use ffmpeg
[21:46] <cronix> mhm
[21:46] <cronix> can ffmpeg use a webcam on windows as input device for video?
[21:46] <klaxa> very good question, i know it should work on linux, not sure on windows
[21:46] <cronix> and sound from the line-in
[21:46] <cronix> well i dont have a choice
[21:46] <cronix> sadly
[21:47] <cronix> there are no good DJ programms for linux
[21:47] <cronix> and USB midi controllers dont like wine
[21:47] <klaxa> heh, yeah
[21:49] <cronix> well
[21:49] <cronix> worst case would be use VLC to capture webcam + line in of sound card and write that to a file then use ffmpeg on that file to stream it to ffserver
[21:50] <cronix> but that would be fugly as hell and way more CPU intensive than nessecary
[21:55] <klaxa> i'd guess more I/O intensive than cpu intensive
[21:55] <cronix> oh great
[21:55] <cronix> it works for windows webcams
[21:55] <cronix> -f vfwcap
[21:56] <cronix> then a selection window pops up to select the webcam to capture from if you have more than oen
[21:56] <cronix> *one
[21:56] <cronix> now just need to tune the Bitrate and quality
[21:56] <cronix> its damn ugly atm
[22:02] <cronix> meh
[22:15] <david__> Ok got ffmpeg installed and have downloaded the missing libs that should make me able to use x11grab, so do I need to uninstall ffmpeg before it detects it?
[22:19] <llogan> david__: you installed libx11, libxext, and libxfixes?
[22:20] <llogan> (or -dev/-devel) versions if you use a distro with split packages
[22:21] <david__> Yes but I did it after I used ./configure and make install for ffmpeg
[22:22] <llogan> you have to: make uninstall, make distclean, ./configure --enable-gpl --enable-x11grab, make
[22:22] <david__> cause I did not have this issue when running KDE but now Im using XFCE
[22:23] <david__> Ok trying that now:) thx
[22:23] <llogan> run those commands i gave you in your ffmpeg source code directory
[22:23] <llogan> make uninstall may require sudo or whatever, but not the others
[22:26] <david__> reinstalling now, hope I get better luck now:)
[22:26] <llogan> what's your distro?
[22:27] <david__> openSUSE 12.2 with XCFE winmanager
[22:28] <llogan> i've never used opensuse
[22:30] <david__> Ive used it over 1 year now, I like Yast but it feels like linux community see it as a entery distro
[22:36] <david__> Thank you very much llogan works just fine now:)
[22:39] <llogan> david__: glad you got it working
[22:40] <cronix> if i use this command to capture video from webcam, can i combine that with the default cmdline switches for bitrate / buffering ?: ffmpeg -f vfwcap -i 0 output.mpg
[22:41] <cronix> and if ffmpeg runs on a diffrent PC than ffserver, how do i get the video from the client with ffmpeg to the server with ffserver?
[22:41] <cronix> or wont that work?
[22:48] <llogan> cronix: yes, you can add additional options to your command....unless i didn't understand your question
[22:50] <cronix> ffmpeg on client
[22:50] <cronix> captures webcam video
[22:50] <cronix> streams it to server in the internet where ffserver is running
[22:50] <cronix> does that work?
[23:19] <llogan> cronix: i don't know. i've never used ffserver. https://ffmpeg.org/trac/ffmpeg/wiki/Streaming%20media%20with%20ffserver
[23:48] <dericed> Are there any image formats that store data in CMY?
[23:52] <cbreak> PDF can do that afaik
[23:53] <cbreak> and post script of course
[23:55] <dericed> cbreak: thanks
[00:00] --- Sun Dec 2 2012
More information about the Ffmpeg-devel-irc
mailing list