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

burek burek021 at gmail.com
Thu Oct 10 02:05:01 CEST 2013


[00:00] <llogan> sprite`: thanks. i'll have to recompile to test since i don't use libfaac
[00:00] <llogan> rmelo: can you provide the input file so i can attempt to duplicate the issue?
[00:01] <rmelo> its huge
[00:01] <rmelo> :|
[00:01] <sprite`> this is the one thats all distorted with libfaac: http://stream05.trillhd.com/trill/4636_240_5cwq9v18zj.mp4?start=40   vs the one i just made with aac experimental: stream05.trillhd.com/trill/4636_240_cr4k4esph2.mp4?start=40
[00:02] <rmelo> Is there any trick i can do, such as passing the wole file through ffmpeg (with some encoding)?
[00:05] <llogan> rmelo: sorry, i don't understand the question
[00:09] <rmelo> maybe converting the file with a different coding will help?
[00:10] <llogan> rmelo: i'm don't know why -ss appears to not be working for you. is the input file the only one giving you problems?
[00:13] <llogan> sprite`: i'll blame your faac build
[00:14] <llogan> consider using libfdk_aac instead since it appears you're compiling ffmpeg anyway
[00:15] <llogan> my faac doesn't cause the distortions
[00:15] <rmelo> I'll try with another
[00:17] <llogan> although ffaac was surprising better than i expected
[00:17] <sprite`> yeah it seems better
[00:17] <sprite`> thanks for the help
[00:17] <sprite`> :)
[00:18] <llogan> why 428 wide?
[00:18] <sprite`> it was 16:9 i was just trying to preserve the aspect ratio but it throws an error if i do it exact since it says it has to be divisible by 2 ?
[00:19] <llogan> maybe i should have asked, "why 240 height?"
[00:20] <sprite`> trying to make low quality small bandwidth versions of the videos because a lot of people who use the site are on terrible computers and setups and that's just the first thing i came up with
[00:20] <llogan> consider adding "-movflags faststart" so it can begin playback by the viewer before the file is completely downloaded
[00:22] <sprite`> ooh oakay
[00:22] <sprite`> i've been using MP4Box for that
[00:30] <llogan> rmelo: does -ss also get ignored if you re-encode? (remove -vcodec copy -acodec copy)
[00:56] <Maverick|MSG> if I'm using: -filter:a "asetpts=PTS-0.25/TB"
[00:56] <Maverick|MSG> and I want to copy the audio codec
[00:56] <Maverick|MSG> where could I put -c:a copy
[01:06] <klaxa> you can't copy the audio stream if you are changing it
[01:07] <Maverick|MSG> what codec is used then?
[01:07] <klaxa> whichever you specify
[01:07] <Maverick|MSG> how do I specify to use the same codec that is already being used?
[01:07] <Maverick|MSG> er, the one in use by the source
[01:08] <klaxa> you... can't really, you can use a codec that will produce the same format
[01:08] <klaxa> i.e. if the audio is aac, use libfdk-aac, if the audio is mp3, use libmp3lame
[01:09] <Maverick|MSG> there isn't a way to tell ffmpeg to autodetect it?
[01:14] <klaxa> i know of none
[01:14] <Maverick|MSG> ok, well what's the highest quality audio codec I could use then?
[01:15] <klaxa> highest quality will be lossless audio, in that case every lossless codec should be equivalently good
[01:15] <klaxa> otherwise, aac is good i think
[01:15] <klaxa> use libfdk-aac for encoding to aac
[01:15] <Maverick|MSG> ok, so I could do: -c:a libfdk-aac
[01:16] <klaxa> i suppose so
[01:16] <Maverick|MSG> would that have to come before or after the filter:a "asetpts=PTS-0.25/TB"
[01:16] <Maverick|MSG> or would it not matter?
[01:16] <klaxa> might want to specify a bitrate too
[01:16] <klaxa> hmm... i don't think that it really matters, it must be after the input and before the output though
[01:17] <Maverick|MSG> I think the most common audio input I'll see will be pcm_s16le
[01:18] <Maverick|MSG> @ 44100hz, ~1400kb/sec
[01:18] <klaxa> will you need the produced file for further processing?
[01:18] <Maverick|MSG> nope
[01:18] <Maverick|MSG> it is for uploading to youtube; I just want to make sure the audio is as close to the original as possible
[01:18] <klaxa> do you care about things being lossless for archiving? (i for one do)
[01:19] <Maverick|MSG> not really;  in this case it is an encoding from an original
[01:19] <klaxa> ah, well... youtube will encode it to a bunch of other codecs, including vorbis and aac
[01:19] <klaxa> do you care about upload time and disk space?
[01:19] <Maverick|MSG> not overly
[01:19] <klaxa> if not, go with flac
[01:19] <klaxa> flac will produce lossless output
[01:20] <Maverick|MSG> how much bigger is the file be?
[01:20] <klaxa> at about half the size of uncompressed pcm most of the time
[01:20] <Maverick|MSG> as compared to aac?
[01:20] <klaxa> 5-6 times larger maybe?
[01:20] <klaxa> depends on the bitrate you choose for aac
[01:20] <klaxa> if you go with 160 kbps, flac will probably be about 600-700 kbps
[01:20] <klaxa> but flac will be lossless
[01:21] <klaxa> aac won't
[01:21] <klaxa> if you choose like 256 kbps with aac it should be good enough for youtube i think
[01:21] <Maverick|MSG> ok, let me see if that works
[01:21] <klaxa> maybe upload a little sample and wait for them to process it completely, then check it out
[01:27] <Maverick|MSG> hm, whenever I specify that ffmpeg bails out
[01:28] <klaxa> can you pastebin the command with complete output?
[01:30] <Maverick|MSG> actually, the complete output is going to be an issue since I'm running it remotely
[01:31] <Maverick|MSG> I can pastebin the command though
[01:33] <Maverick|MSG> out of time for now, I'll hit this a bit later.  thank you for the help klaxa
[01:33] <klaxa> kk
[01:34] <Maverick|MSG> http://pastebin.com/WXyJYF1b
[01:34] <Maverick|MSG> there's the command; bbl
[01:35] <Maverick|MSG> adding the -c:a flac causes it to bail
[01:37] <dk0r> will someone please tell me what's wrong here?  https://gist.github.com/dk0r/6893699
[01:38] <dk0r> I'm receiving the error: "Could find no file with with path 'psi%d.csv.png' and index in the range 0-4 psi%d.csv.png: No such file or directory"
[01:39] <dk0r> if I just use psi*.csv.png then all of my pngs get changed to "psi000.csv.png"
[01:40] <klaxa> dk0r: needs to be psi%03d.csv.png
[01:40] <klaxa> %03d is the posix format string for a zero padded 3 digit value
[01:40] <dk0r> klaxa: where is documentation on that %03d syntax? couldn't find anything control-f'ing through the ffmpeg manualk
[01:40] <klaxa> it's posix, you should be able to find it in printf's manpage or something
[01:41] <dk0r> what's posix?
[01:41] <dk0r> I'm still learning linux
[01:41] <klaxa> http://en.wikipedia.org/wiki/POSIX
[01:41] <dk0r> k. ty
[01:54] <Memphizzzzzz> Can anyone please tell me the correct command to convert a mkv video to mp4 so the ps3 van play it without transcoding?
[01:56] <llogan> Memphizzzzzz: depends on the contents of the input file
[01:58] <Memphizzzzzz> llogan: How do i find out?
[02:04] <Memphizzzzzz> llogan: ok i found mkvtoolnix incl mkvinfo. mkvinfo show me a lots of information, what should i do now?
[02:06] <klaxa> Memphizzzzzz, pastebin the info
[02:06] <Memphizzzzzz> sec
[02:08] <Memphizzzzzz> http://pastebin.com/vpd9RyW1
[02:09] <klaxa> try: ffmpeg -i input.mkv -map 0 -c copy output.mp4
[02:09] <Memphizzzzzz> [NULL @ 0xd13be0] Unable to find a suitable output format for 'out.mp4'
[02:10] <klaxa> oh... right it has er... chapters
[02:10] <klaxa> oh and subtitles
[02:10] <klaxa> does mp4 support S_HDMV/PGS for subtitles?
[02:11] <Memphizzzzzz> in most cases i dont need subtitles if that helps
[02:11] <klaxa> then try: ffmpeg -i input.mkv -map 0:a -map 0:v -c copy output.mp4
[02:11] <klaxa> that will map only audio and video
[02:11] <klaxa> without chapters and subtitles
[02:11] <Memphizzzzzz> and if wouldnt need chapters as if it plays natively on the ps3 i can fast forward
[02:11] <Memphizzzzzz> ah ok, sec
[02:12] <Memphizzzzzz> [NULL @ 0xd13dc0] Unable to find a suitable output format for 'output.mp4'
[02:12] <klaxa> mmh can you pastebin the complete output of ffmpeg? with command
[02:12] <Memphizzzzzz> sure
[02:13] <Memphizzzzzz> hmm i cant pipe the output of ffmpeg
[02:13] <Memphizzzzzz> do i need a flag?
[02:13] <Memphizzzzzz> clear
[02:14] <klaxa> i mean the ffmpeg log
[02:14] <klaxa> can't you copy paste from your terminal?
[02:14] <klaxa> it should be sent to stderr though
[02:14] <Memphizzzzzz> the output is bigger than the terminal window and im in a tmux session
[02:15] <klaxa> so: ffmpeg <whatever command> 2> error.log
[02:16] <Memphizzzzzz> http://pastebin.com/MBWPGfaW
[02:17] <klaxa> what was the exact command?
[02:17] <Memphizzzzzz> ffmpeg -i The\ Iceman.mkv -map 0:a -map 0:v -c copy output.mp4
[02:19] <klaxa> still tries to sneak in the subtitle stream
[02:19] <klaxa> add -map -0:s
[02:19] <klaxa> so ffmpeg -i input.mkv -map 0:a -map 0:v -map -0:s -c copy output.mp4
[02:19] <sacarasc> Memphizzzzzz: -sn
[02:19] <sacarasc> No subtitles.
[02:20] <klaxa> ah or that
[02:20] <klaxa> seems easier after all
[02:20] <Memphizzzzzz> i tried both, still the same error "suitable output format"
[02:21] <Memphizzzzzz> ffmpeg -i The\ Iceman.mkv -map 0:a -map 0:v -map -0:s -c copy output.mp4
[02:21] <Memphizzzzzz> ffmpeg -i The\ Iceman.mkv -map 0:a -map 0:v -sn -c copy output.mp4
[02:22] <klaxa> maybe mp4 doesn't like the audio? :x
[02:23] <klaxa> hmm no it should, it's dts apparently
[02:23] <klaxa> can you run it with -loglevel debug and pastebin the output?
[02:24] <Memphizzzzzz> sure
[02:24] <Memphizzzzzz> the sn version?
[02:24] <klaxa> doesn't really matter, but yeah
[02:24] <klaxa> since my assumption that it tries to put in the subtitle was wrong
[02:24] <Memphizzzzzz> http://pastebin.com/wW3jeJuH
[02:25] <klaxa> uh... i seriously don't see what is wrong
[02:26] <Memphizzzzzz> output.mp4: Invalid argument, whats that supposed to mean? do i have to specify something like -o?
[02:27] <klaxa> nope, >Opening an output file: output.mp4.
[02:27] <klaxa> it's opening output.mp4 for writing alright
[02:28] <klaxa> but the container doesn't seem to like the codecs used
[02:28] <klaxa> although it should
[02:28] <klaxa> maybe we can try with one audio track first?
[02:28] <klaxa> change the -map 0:a to -map 0:a:0
[02:29] <Memphizzzzzz> nope
[02:29] <klaxa> i don't even...
[02:30] <klaxa> let's try video only then? this is obviously not what you want, but to confirm it's the audio messing up we can try it
[02:30] <Memphizzzzzz> ok
[02:30] <klaxa> ffmpeg -i input.mkv -map 0:v -an -sn -c copy output.mp4
[02:31] <llogan> Memphizzzzzz: you find out with "ffmpeg -i input"
[02:31] <Memphizzzzzz> nope same problem
[02:31] <klaxa> eh? mp4 doesn't like h264 anymore?
[02:32] <klaxa> sorry, i'm out of ideas :I
[02:32] <Memphizzzzzz> Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle): unspecified size
[02:32] <Memphizzzzzz> this is the thing where it stops isnt it?
[02:33] <Memphizzzzzz> or is it just the last stream displayed?
[02:33] <Memphizzzzzz> oh yeah it is.. :(
[02:34] <Memphizzzzzz> llogan: do you have any idea?
[02:36] <llogan> Memphizzzzzz: i'm guessing your build has too much stuff disabled
[02:36] <Memphizzzzzz> im on a netgear readynas box and this is the only build i got from apt-get
[02:37] <Memphizzzzzz> how can i install one without using apt-get?
[02:37] <llogan> you could try to cross-compile one
[02:38] <Memphizzzzzz> that sounds complicated :D
[02:38] <llogan> or compile on the device
[02:39] <Memphizzzzzz> is there a guide on how to do that?
[02:41] <llogan> get the source, ./configure --enable-gpl, make
[02:41] <llogan> "apt-get build-essential" first i guess
[02:42] <Memphizzzzzz> ok its installing :)
[02:46] <llogan> or maybe a linux build will work on it. i don't know.
[02:46] <Memphizzzzzz> im just clsoning get git repo
[02:46] <Memphizzzzzz> how can i see my kernel version?
[02:47] <llogan> uname -a
[02:47] <Memphizzzzzz> 3.0.87.RNx86_64.2.1 #1 SMP Fri Sep 6 11:31:20 PDT 2013 x86_64 GNU/Linux
[02:48] <Memphizzzzzz> Unknown option "--enable-gpl,".
[02:50] <Memphizzzzzz> ah seems the , is the problem
[02:50] <Memphizzzzzz> llogan: ok looks like i need yasm as well
[02:52] <Memphizzzzzz> so if the ./configure --enable-gpl, make does not work i have to run ./configure --enable-gpl and then ./configure make right?
[02:52] <klaxa> make is independent from ./configure
[02:52] <Memphizzzzzz> ah ok ./configure just finsihed
[02:52] <Memphizzzzzz> now im running make
[02:53] <fahadash> Hi Y'all
[02:53] <Memphizzzzzz> libavutils are part of ffmpeg right?
[02:54] <Memphizzzzzz> and libavfilter, i just hope im not compiling something else than ffmpeg
[02:54] <Memphizzzzzz> but i guess these are dependencies of ffmpeg, correct?
[02:54] <relaxed> yes
[02:54] <fahadash> Thank you so much for helping me with my video editing the other day... I added ffmpegdevs in Credits. At least 30 people are going to see it
[02:55] <llogan> burek: can you update the link to relaxed's builds for "!dl static"? http://johnvansickle.com/ffmpeg/
[02:56] <llogan> Memphizzzzzz: yasm would be nice to have if you're going to be doing any encoding on it
[02:56] <Memphizzzzzz> llogan: haha ok maybe only yasm was missing? :D
[02:57] <llogan> you probably have to compile it if the repo does not supply a recent enough version
[02:57] <Memphizzzzzz> once this make is done, where will the "executable" be? in the same folder as the source?
[02:57] <llogan> http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[02:58] <llogan> i guess i should have given that to you first
[02:58] <Memphizzzzzz> well i was able to get yasm through apt-get
[03:03] <Memphizzzzzz> wow compiling takes ages with this little atom cpu :D
[03:28] <Memphizzzzzz> llogan, klaxa: ok it finsihed compiling, do i need somethign else like this x264 encoder?
[03:28] <klaxa> not if you are just muxing files
[03:28] <Memphizzzzzz> lol
[03:28] <Memphizzzzzz> same error
[03:29] <Memphizzzzzz> no wait
[03:29] <klaxa> did you run it with ./ffmpeg ?
[03:29] <Memphizzzzzz> haha no that was the problem
[03:29] <Memphizzzzzz> ok its converting, transcoding, however you call it :)
[03:29] <klaxa> muxing :)
[03:29] <Memphizzzzzz> can i see a progress bar?
[03:29] <klaxa> there should be a counter telling at what time it is in the video
[03:30] <Memphizzzzzz> yup but i dont know the lenght :D
[03:30] <klaxa> i do though
[03:30] <klaxa> | + Duration: 6332.492s (01:45:32.492)
[03:30] <klaxa> how fast is it progressing?
[03:31] <Memphizzzzzz> wow this is cool, my first compilation :)
[03:31] <klaxa> nice
[03:31] <Memphizzzzzz> fps=434
[03:31] <klaxa> ah then it's good
[03:31] <Memphizzzzzz> thats fast?
[03:31] <klaxa> it's probably slowed down by your harddrive :P
[03:31] <Memphizzzzzz> well thats a raid0 in the NAS
[03:32] <klaxa> if it were somewhere lower like 30 or something it might be doing actual encoding work instead of just muxing
[03:32] <Memphizzzzzz> aha
[03:32] <klaxa> weird though, i'd think 1.2.2 should be recent enough
[03:32] <Memphizzzzzz> so for the future, how do i know the map stuff?
[03:33] <klaxa> http://www.ffmpeg.org/ffmpeg.html#Stream-selection
[03:33] <klaxa> it's actually rather simple
[03:34] <klaxa> -map [-]<input-number>:[<stream-number>|<stream-identifyer>:<stream-number>]
[03:34] <klaxa> all numbers start at 0
[03:35] <klaxa> input number is the input you want to map, you can specify multiple inputs by using -i more than once
[03:35] <Memphizzzzzz> oh shit i used the command witthout audio :D
[03:35] <klaxa> stream number is the... number of the stream in the input file
[03:35] <klaxa> lol
[03:35] <klaxa> anyway, the number of the stream in the input file can be of any type
[03:35] <Memphizzzzzz> ok these i can see by ffmpeg -i file.mkv
[03:36] <klaxa> stream identifier is something like "v" "a" and "s" for video, audio and subtitles respectively
[03:36] <klaxa> the stream number then again is the number of that stream of that type
[03:36] <klaxa> if you use a "-" in front of the input number that stream is not mapped
[03:36] <klaxa> actually the format i posted is wrong, let me fix that
[03:37] <klaxa> -map [-]<input-number>[<stream-number>|<stream-identifyer>[:<stream-number>]]
[03:38] <Memphizzzzzz> http://pastebin.com/BEPfCqCS
[03:39] <Memphizzzzzz> so in this case if i want video 0 and autdio 01 and 3, how would the command look like?
[03:40] <klaxa> -map 0:0 -map 0:1 -map 0:3 will map Stream #0:0(eng): Video: h264 (High), Stream #0:1(deu): Audio: dts (DTS-HD MA) and Stream #0:3(eng): Audio: dts (DTS-HD MA)
[03:40] <Memphizzzzzz> ah ok so i dont have to specify v a or s
[03:41] <klaxa> -map 0:v:0 -map 0:a:0 -map 0:a:2 will map the same streams
[03:41] <Memphizzzzzz> i see
[03:41] <relaxed> man ffmpeg | less +/'       -map'
[03:42] <Memphizzzzzz> lol now with audio its the same fps :D
[03:43] <Memphizzzzzz> well almost 401
[03:43] <klaxa> i always fail to find the relevant parts of the manpages :/
[03:43] <Memphizzzzzz> :D
[03:43] <Memphizzzzzz> and for the -c parameter?
[03:44] <relaxed> it's the same syntax
[03:45] <Memphizzzzzz> thats copy instead of convert right? so if its not h264 i can convert it to it?
[03:45] <llogan> http://ffmpeg.org/ffmpeg.html#Stream-copy
[03:46] <llogan> Memphizzzzzz: you can encode to H.264 video if you installed x264 and added --enable-libx264 to your ffmpeg configure
[03:47] <Memphizzzzzz> aha and what would the command be then? i mean it wont be copy then, simply -c x264?
[03:47] <llogan> -c:v libx264
[03:47] <Memphizzzzzz> nice :)
[03:47] <llogan> https://trac.ffmpeg.org/wiki/x264EncodingGuide
[03:47] <Memphizzzzzz> Well thank you very much guys
[03:47] <Memphizzzzzz> looks like i have to recompile :D
[03:48] <llogan> https://trac.ffmpeg.org/wiki/AACEncodingGuide
[03:48] <llogan> useful too probably
[03:48] <Memphizzzzzz> thats audio right?
[03:49] <Memphizzzzzz> looks like aac is the default audio format on the ps3
[03:49] <Memphizzzzzz> im going to check now if the new mp4 works as its dts
[04:11] <Memphizzzzzz> :( looks like for DTS the PS3 need transcoding
[04:14] <agllengreen> I convert  input.mp4 to ouput.ts(mpeg2 ts), but the output file is much smaller than the input file, (input: 37M, output: 10M),  how to avoid this problem?
[04:14] <agllengreen> ffmpeg -i input.mp4 -y -c:a libfdk_aac -vcodec h264 -f mpegts output.ts
[04:14] <agllengreen> sound like it is a bitrate problem.
[04:16] <sacarasc> Try setting some bitrates.
[04:16] <sacarasc> Also, you should use -c:v libx264 rather than -vcodec h264.
[04:18] <agllengreen> but if I don't wanna set specific bitrate value,  is there a option the make the input, output  same bitrate
[04:19] <sacarasc> Not really. What is the specs of your input file?
[04:20] <agllengreen> input file may varies.
[04:21] <sacarasc> If it's always H264 with AAC audio, you could just do ffmpeg -i input.mp4 -c copy output.ts
[04:21] <agllengreen> currently, input.mp4 is converted from a rmvb file.
[04:22] <agllengreen> no, the input av codec may varies, some of there are not h264 and aac.
[04:24] <Maverick|MSG> klaxa, are you still around?
[04:24] <klaxa> yes
[04:25] <Maverick|MSG> to get back to the issue i was having, using flac I get an error -1
[04:25] <Maverick|MSG> I apparently don't have libfdk_aac as you mentioned
[04:26] <Maverick|MSG> but libvo_aacenc works
[04:26] <klaxa> well there's two ways to go about this now
[04:26] <klaxa> either you recompile ffmpeg with flac support
[04:26] <klaxa> or you encode the audio with the flac cli tool itself
[04:26] <Maverick|MSG> what's plan c?
[04:27] <Maverick|MSG> I'm using the precompiled windows binaries
[04:27] <klaxa> uh... upload in pcm
[04:27] <klaxa> will take rather long though
[04:27] <klaxa> or use a different audio codec
[04:27] <klaxa> like... use mp3 with 320 kbps
[04:28] <klaxa> should be good enough
[04:28] <Maverick|MSG> so libmp3lame?
[04:28] <klaxa> yep
[04:29] <Maverick|MSG> actually, I think this build does have flac
[04:29] <Memphizzzzzz> klaxa: on ./configure of x264 what does --prefix and --bindir mean?
[04:29] <Maverick|MSG> Could not write header for output file #0 (incorrect codec parameters ?): Error
[04:29] <Maverick|MSG> number -1 occurred
[04:29] <Maverick|MSG> lemme pastebin the error
[04:29] <klaxa> Memphizzzzzz: it specifies where make will put the files
[04:29] <klaxa> default for --prefix is /usr/local/
[04:29] <Memphizzzzzz> if i leave them it puts them where the source is?
[04:30] <klaxa> ah you run "make install" to actually "install" the binaries
[04:30] <klaxa> where installing actually is putting the files in the right places in the filesystem
[04:30] <Memphizzzzzz> aha
[04:30] <Memphizzzzzz> and whats -enable-static?
[04:31] <Maverick|MSG> http://pastebin.com/rYVne4tH
[04:31] <Maverick|MSG> codec not supported in contained?
[04:31] <Maverick|MSG> *container
[04:31] <klaxa> ah... hmmm... just put it in .mkv i guess?
[04:31] <klaxa> youtube knows how to deal with mkv
[04:32] <klaxa> Memphizzzzzz: that will enable building static libraries i think
[04:32] <klaxa> there's a different between dynamic/shared and static libraries
[04:32] <Maverick|MSG> hm, is there another codec that'll give lossless in an mp4 format?
[04:33] <klaxa> DEA.LS dts                  DCA (DTS Coherent Acoustics) (decoders: dca ) (encoders: dca )
[04:33] <klaxa> try dca then
[04:33] <klaxa> mp4 should support dts
[04:34] <klaxa> apparently ffmpeg can encode it
[04:34] <klaxa> so give it a try
[04:34] <Maverick|MSG> ffmpeg says it is experimental
[04:35] <Maverick|MSG> y'know, just to be easy I'll just go with a high bitrate with mp3
[04:35] <klaxa> probably
[04:35] <klaxa> easier
[04:35] <klaxa> and i mean i can't hear the difference between 320 kbps mp3 and lossless
[04:35] <klaxa> hell, i can't even tell the difference between 192 kbps vorbis and lossless
[04:36] <Maverick|MSG> yeah, I figure after youtube manhandles it it'll probably be lower anyway
[04:36] <klaxa> i keep everything in lossless if possible though for archiving purposes
[04:37] <Maverick|MSG> the original format is pcm_s16le; not overly familiar with that
[04:37] <klaxa> well it's just raw pcm
[04:37] <klaxa> samples are stored uncompressed
[04:38] <klaxa> the direct digital equivalent to the analog source
[04:38] <klaxa> http://en.wikipedia.org/wiki/Pulse-code_modulation
[04:39] <Maverick|MSG> looks like if I don't choose an audio codec ffmpeg uses libvo_aacenc @ 128kb/sec
[04:39] <Maverick|MSG> what is s16 (and s16p)?
[04:40] <klaxa> s16 means signed 16 bit integers
[04:40] <Maverick|MSG> and the p?
[04:40] <klaxa> dunno 'bout that p
[04:40] <Maverick|MSG> k
[04:41] <klaxa> there's an "le" at the end
[04:41] <klaxa> that means little endian and describes the byte order
[04:41] <Maverick|MSG> gotcha
[04:41] <klaxa> i forget which one is which all the time
[04:42] <Maverick|MSG> trying to decipher all the abbreviations in the ffmpeg output is mind bloggling
[04:45] <Maverick|MSG> according to wikipedia aac is better than mp3?
[04:46] <Maverick|MSG> would it be better to use that at 320kb instead of mp3 then?
[04:46] <klaxa> i don't think it really makes a difference, especially given that libvo_aacenc is probably not as sophisticated as lame
[04:47] <Maverick|MSG> is libvo_aacenc the best (or only) codec for ffmpeg?
[04:47] <klaxa> libfdk-aac is considered the best aac encoder
[04:47] <klaxa> https://trac.ffmpeg.org/wiki/AACEncodingGuide
[04:48] <Maverick|MSG> hm, pretty sure I don't have that available in the windows binary
[04:51] <Maverick|MSG> yup, nevermind on that
[04:51] <Maverick|MSG> I need to stop perseverating on this and move on
[04:54] <Maverick|MSG> thanks again klaxa, much appreciated
[04:54] <klaxa> no problem :)
[05:04] <Memphizzzzzz> klaxa: i compiled yasm 1.2.0 as its needed by x264, then i compiled x264 but now if i run ./configure --enable-gpl --enable-libx264 on ffmpeg it tells me libx264 not found, any idea why?
[05:04] <klaxa> did you run make install in the x264 source directory?
[05:04] <Memphizzzzzz> yes
[05:05] <Memphizzzzzz> http://pastebin.com/EqkdUwPn
[05:05] <Memphizzzzzz> this is what came out when i did x264 make install
[05:06] <klaxa> can you run "ldconfig | grep x264" and see if that outputs libx264?
[05:07] <Memphizzzzzz> it doesnt
[05:07] <klaxa> run ldconfig without parameters once then
[05:07] <klaxa> it should update its cache
[05:07] <Memphizzzzzz> nothing
[05:07] <klaxa> yeah it will not output anything
[05:08] <klaxa> did you try to run configure again in ffmpeg's source directory?
[05:08] <Memphizzzzzz> thats what im trying
[05:08] <klaxa> i see, then maybe the directory /usr/lib is not in your library path
[05:09] <Memphizzzzzz> i did not add --prefix="$HOME/ffmpeg_build" when runing configure on x264 do i need it?
[05:09] <klaxa> you should have a file /etc/ld.so.conf
[05:09] <klaxa> it should contain a line like "include /etc/ld.so.conf.d/*.conf"
[05:09] <Memphizzzzzz> thats the only line in there
[05:09] <klaxa> that's good
[05:10] <klaxa> now you will create a new file in /etc/ld.so.conf.d/ called usr-local.conf or just about anything ending with .conf
[05:10] <klaxa> that file will contain one line, this one: /usr/local/lib
[05:11] <klaxa> no quotes, no trailing slash
[05:11] <klaxa> then run ldconfig again and try building ffmpeg
[05:11] <Memphizzzzzz> still the sam error :(
[05:12] <klaxa> did you run ldconfig ?
[05:12] <Memphizzzzzz> yes
[05:12] <relaxed> Memphizzzzzz: --extra-cflags="-I/path/to/prefix/include" --extra-ldflags="-L/path/to/prefix/lib"
[05:12] <Memphizzzzzz> whats path to prefix?
[05:12] <relaxed> in your case, /usr/local/include and /usr/local/lib
[05:14] <Memphizzzzzz>  ./configure --enable-gpl --enable-libx264 --bindir="/bin" --extra-cflags="-I/usr/local/include"
[05:14] <Memphizzzzzz> --extra-ldflags="-L/usr/local/lib"
[05:14] <Memphizzzzzz> still the same error :(
[05:14] <relaxed> "make distclean" and try again
[05:15] <Memphizzzzzz> /usr/local/include does have a files x264_config.h and x264.h
[05:15] <Memphizzzzzz> /usr/local/lib contains files: libx264.a
[05:15] <relaxed> I know
[05:16] <Memphizzzzzz> in which folder do i have to run make distclean?
[05:16] <relaxed> top level of ffmpeg's source
[05:16] <Memphizzzzzz> i ran it in ffmpeg but ./configure still gives the same error
[05:17] <relaxed> you checked out x264 from git?
[05:17] <Memphizzzzzz> i ran git clone --depth 1 git://git.videolan.org/x264.git in the ffmpeg folder
[05:18] <Memphizzzzzz> then i had a x264 folder and did the ./configure --bindir="/bin" --enable-static
[05:18] <Memphizzzzzz> and then i had to get yasm 1.2.0, configure, make, make install
[05:19] <Memphizzzzzz> after that i was able to ./configure --bindir="/bin" --enable-static again which worked
[05:19] <Memphizzzzzz> then i did make and make install
[05:19] <Memphizzzzzz> and now im trying to configure ffmpeg
[05:20] <relaxed> pastebin your config.log
[05:20] <Memphizzzzzz> from which folder?
[05:21] <relaxed> Memphizzzzzz: oh, never mind.
[05:22] <relaxed> you need  --extra-ldflags="-ldl -L/usr/local/lib" --extra-cflags="-I/usr/local/include"
[05:23] <Memphizzzzzz> aha!
[05:23] <Memphizzzzzz> ok now its make-ing again :)
[05:24] <Memphizzzzzz> relaxed: what are these flags and why do i need them only if i want to include x264
[05:24] <relaxed> llogan: please make a note under the "x264" section of https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide that says you need --extra-ldflags="-ldl"
[05:27] <relaxed> llogan: I know it's included in the ./configure there but for people using it as a reference it will save them/us headaches.
[05:29] <relaxed> actually, the requirements for each external lib would be great. For example, Under "x264" have --extra-ldflags="-ldl" & --enable-gpl
[05:30] <Memphizzzzzz> so would my ./configure have worked without the /usr/local/include stuff by only adding --extra-ldflags="-ldl"?
[05:30] <relaxed> Depends.
[05:30] <Memphizzzzzz> on wether or not /usr/local/lib and include are in my path?
[05:31] <Memphizzzzzz> what does -ldl do?
[05:36] <relaxed> it's needed for libx264 to open a dynamic library
[05:37] <relaxed> for opencl
[05:37] <relaxed> if you compile x264 with --disable-opencl then it's not needed.
[05:40] <Memphizzzzzz> relaxed: i guess its faster with opencl :)
[05:42] <Memphizzzzzz> klaxa, relaxed, llogan: Thanks for all your help! Im going to sleep now as its pretty late already, my NAS is currently compiling ffmpeg which is going to take some time, but i will try converting my mkv to mp4  and aac tomorrow again and will let you know how it goes :) Thanks again! Gn8
[06:41] <Zeranoe> Is tcp streaming broken on Windows? I'm getting an "Unknown error" with: "ffmpeg -i "vid.mp4" -f mpegts tcp://localhost:5596"
[07:48] <BoomerBile> http://dranger.com/ffmpeg/ <-- i was trying to follow this tutorial, typed in all the code, read through it.... it's far more out of date than the guy claimed... so I decided to fix it up using what i could dig up out of ffmpeg header files... I've got it to compile, here's the output http://pastebin.com/sDQfhzPW
[07:48] <BoomerBile> http://pastebin.com/pJGtX80d <-- here's the new source code i've come up with, but i'm doing something wrong
[07:48] <BoomerBile> the program outputs ppm files and they are readable by any image editor, however they are all black.
[07:49] <BoomerBile> anyone care to help a newb?
[08:13] <BoomerBile> Ha! got it
[08:13] <BoomerBile> thanks anyway
[08:21] <SnowRaptor> Hey there! Is it possible to add hard subtitles but keep the original codec options?
[08:48] <zap0> yes
[08:54] <SnowRaptor> zap0, thanks, it worked!
[08:54] <zap0> im glad my help was so informative.
[08:55] <allengreen> where can I find the prebuild ffmpeg binaries for linux(with libx264,  fdk_aac)
[08:57] <SnowRaptor> zap0, I googled deeply while waiting and blindly tried somethings ;)
[08:59] <mark4o> allengreen: the licenses of libx264 and fdk_aac are not compatible
[09:00] <Katharsi1> hi
[09:00] <mark4o> allengreen: you can build your own ffmpeg that includes both, but distributing it would violate the license
[09:00] <Katharsi1> this is the line which i use for recoring my screencasts
[09:00] <Katharsi1> http://wklej.to/4xQ3f/text
[09:01] <allengreen> I just wanna test the binaries.
[09:01] <Katharsi1> audio is out of sync, can you tell me why?
[09:01] <Katharsi1> file out: .mp4
[09:02] <allengreen> mark4o, there are binaries include libx264, but without libfdk_aac.
[09:02] <allengreen> I need both.
[09:03] <mark4o> allengreen: right, libx264 is GPL, which is compatible with ffmpeg's LGPL license, but fdk_aac license is not compatible with GPL
[09:03] <Katharsis> i'm recording on linux (debian 7+)
[09:16] <Katharsis> anybody help me?
[09:18] <relaxed> allengreen: build your own
[09:20] <BoomerBile> Katharsis, i had the same problem, i just split the audio and video and adjusted it... my split method is way out of date, but here ya go...  http://pastebin.com/Jbyi4HUc
[09:21] <Katharsis> python code ;]
[09:22] <BoomerBile> yeah i use it to help other people by making them movies of what to do... however it's a work in progress and very messy... sorry about that
[09:22] <BoomerBile> runs great in gentoo, probably debian as well
[09:23] <BoomerBile> it will produce an mkv and an mp4 file on it's own... i did that so i could have a high quality file and one to upload to my web server (size issue)
[09:24] <Katharsis> BoomerBile: what's about -async arg?
[09:25] <Katharsis> I don't want to split it out, doesn't have a time for merge
[09:25] <BoomerBile> been a long time since i edited this, not sure why i put the async arg in there... probably to try and fix the sound issue, i'd have to look it up
[09:26] <BoomerBile> it's commented out as you can see
[09:28] <BoomerBile> i never use sound anyway that's why i commented out the sound split routine
[09:29] <JoeGibken> Hi! I've been googling and searching for a while (around 30mins already LOL), but can't seem to find how to combine 3 videos into. Not concatenate, but join them using layers. Is that possible using ffmpeg?
[09:31] <BoomerBile> http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=1208 <-- JoeGibken
[09:40] <BoomerBile> http://broadcasterproject.wordpress.com/2010/05/18/how-to-layerremix-videos-with-free-command-line-tools/ <-- JoeGibken
[09:40] <BoomerBile> hope that helps
[09:55] <JoeGibken> BoomerBile: Thank you! Lemme check that out :D
[09:55] <BoomerBile> JoeGibken, go for the second link i posted, much nicer
[09:56] <JoeGibken> BoomerBile: Will do. Thanks again ^o^/
[10:02] <allengreen> if I don't compile ffmpeg with enable-libx264 can ffmpeg do h.264 encoding?
[10:06] <BoomerBile> allengreen, i don't believe so
[10:07] <BoomerBile> allengreen, i run gentoo, that means i compile everything i run... if i don't use enable-libx264 i get no h.264
[10:09] <allengreen> get it.
[10:24] <JoeGibken> BoomerBile: Hmm... Let me re-explain my problem at the moment - I have a video that is in 4:3 that is 720x480 from a DVD. But I have another footage of the same scenes that is recorded in 1280x 720.
[10:24] <JoeGibken> I'm trying to make the 720x480 into 1280x720 so I upscaled it to 1080x720 - but there are black borders padded on the left and right the upscaled 1080x720
[10:25] <allengreen> I config ffmpeg with --disable-static --enable-shared , but when I run ffmpeg, It always says "error while loading shared libraries: libfdk-aac.so.0"
[10:25] <JoeGibken> I don't want the black borders on the side
[10:25] <BoomerBile> allengreen, you need to install the fdk-aac libraries
[10:25] <JoeGibken> Instead, made blurred version of the upscaled 1080x720 with black borders on the left (so that's the 2nd video )
[10:25] <allengreen>  --disable-shared --enable-static
[10:26] <BoomerBile> allengreen, that would build ffmpegs static libraries for you to use to write your own programs and not build the shared ones
[10:26] <allengreen> I don't wanna insatll fdk-aac, I wanna contain it into ffmpeg binary. just one executable.
[10:26] <JoeGibken> And then made a blurred version of the upscaled 1080x720 with black padded borders on the right (so it's the 3rd video)
[10:27] <BoomerBile> one sec JoeGibken reading your stuff here
[10:27] <allengreen> I just wanna build all third party av codecs into one binary.
[10:27] <JoeGibken> So I need the video 1 upscaled (1080x720) and the 2 upscaled blurred 1280x720 (sorry, not 1080x720) on the left and right - so merging them together
[10:28] <BoomerBile> you want your compilers -static (gcc) option for linking
[10:28] <JoeGibken> BoomerBile: No problem. I'm already thankful you're helping :D
[10:28] <BoomerBile> allengreen, in order to build a static version of ffmpeg you will also need all of the supporting libraries built statically
[10:30] <allengreen> if I build fdk_aac both statically and shared, how to choose the static one?
[10:30] <BoomerBile> you link to the static library instead of the shared library
[10:32] <allengreen> only one place I can choose is --enable-libfdk_aac,  but how to specify the static one?
[10:32] <BoomerBile> JoeGibken, still a bit confused as to your final goal... you want the videos overlaid one on top of another? or you want to resize your video without the black borders?
[10:34] <BoomerBile> allengreen, you have to tell your linker to statically link it... you can usually point directly at the static library (usually called <something>.a) i've never been able to build any static programs so you're kind of asking the wrong guy...
[10:34] <BoomerBile> allengreen, i have ffmpeg installed and after you asked the question i simply enabled fdk with a use flag (in gentoo) and rebuilt ffmpeg, now i have x.264 and fdk in my ffmpeg install
[10:35] <BoomerBile> building a static binary is a tricky job
[10:35] <allengreen> I'll try again.
[10:35] <JoeGibken> BoomerBile: What I'm trying to achieve is that the the upscaled 4:3, originally 720x480 - which I upscaled to 1080x720, will be 1280x720 16:9, but not with black borders, but very very blurred borders of the original video
[10:35] <BoomerBile> i've been trying for months to build a static binary of the game i wrote just using sdl for libraries... i still can't get it to link properly
[10:35] <JoeGibken> Basically, the padding of the borders are not black, but the borders are the very very blurred version of the original file
[10:36] <BoomerBile> JoeGibken, so you want to resize the video and add fuzzy (blurred) borders to it
[10:36] <JoeGibken> BoomerBile: Exactly, yes :D
[10:38] <BoomerBile> leme see what i can come up with
[10:40] <geomyidae> how much of a file does ffprobe need?
[10:40] <geomyidae> is there a set number of minimum bytes needed?
[10:42] <zap0> it likely reads something like 4k
[10:42] <geomyidae> ok, I have to grab 64K anyway
[10:44] <JoeGibken> BoomerBile: Thank you :D
[11:05] <JoeGibken> BoomerBile: Have you by chance found anything I can use?
[11:06] <BoomerBile> working on the crop option
[11:06] <JoeGibken> Or I'm thinking, BoomerBile, I'll just crop the left and right borders that are superblurred
[11:06] <JoeGibken> Then patch them both to be the borders
[11:06] <JoeGibken> But sadly, I'm not sure what commands I could use to do that
[11:08] <BoomerBile> i'm working on resizing and changing the aspect ratio, along with cropping the black borders off, then i'll add a blur filter
[11:13] <JoeGibken> BoomerBile: Wow! You can do that in only 1 line?! Amazing! *A* Thank you for being fantastically brilliant BoomerBile! I'm really grateful for the power of ffmpeg <3
[11:14] <BoomerBile> alright, i took a 720x540 video and resized it to 1920x1080 with aspect 16:9, no borders left... now to work on the blur filter
[11:17] <JoeGibken> BoomerBile: Thanks! Looking forward <3
[11:27] <BoomerBile> some days i really hate nvidia
[11:32] <nlight> BoomerBile, me too, on the other days I merely despise them :D
[11:32] <surf> hi guys I am running debian wheezy and I wonder if I can convert an ogv file into an mpeg one without proprietary codecs... should I enable deb-multimedia and download from there the codecs?
[11:32] <BoomerBile> nlight, freeking sli mosaic keeps causing segfaults in the driver
[11:33] <BoomerBile> locks my computer and blanks the screens one at a time
[11:41] <JoeGibken> BoomerBile & nlight - I know EXACTLY what you mean. No wonder Linux Torvalds said this - http://www.youtube.com/watch?v=O0r6Pr_mdio
[11:42] <JoeGibken> *Linus Torvalds
[11:43] <BoomerBile> is that the f* nvidia video?
[11:44] <BoomerBile> if so yeah i was so proud
[11:44] <allengreen> here is my config.log gcc -L/home/lei/coding/ff1/build/lib -static -Wl,--as-needed -o /tmp/ffconf.KwgCwrDj /tmp/ffconf.zr87JJ3f.o -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lspeex -lfreetype -lm -pthread -lz -lrt
[11:44] <allengreen> /home/lei/coding/ff1/build/lib/libx264.a(opencl.o): In function `x264_opencl_load_library':
[11:45] <allengreen> opencl.c:(.text+0x46f): undefined reference to `dlopen'
[11:45] <allengreen> then configure failed.
[11:45] <BoomerBile> ffmpeg -i <video in> -vf crop=in_w:in_h*0.5,scale=1920:1080 <video out>    <-- there is most of what you need JoeGibken, you will have to play wth the 0.5 a bit to get the desired crop (this example will crop the top and bottom)
[11:46] <JoeGibken> BoomerBile: Yeah! Haha - I always rewatch that whenever I curse at my Nvidia haha
[11:47] <JoeGibken> Okay - thanks BoomerBile! Lemme try that - thank you for being brilliant for helping me :D
[11:47] <allengreen> may I should add -ldl  to extra-ldflags
[11:47] <BoomerBile> the crop option works like crop=<width you want from input>:<height you want from input>:<start from x positon of input (width)>:<start from y position of input (height)>
[11:47] <JoeGibken> But BoomerBile, I don't think I need cropping of the original 4:3 video you see
[11:47] <JoeGibken> I just did some upscaling, there are no borders on the 4:3 video you see
[11:48] <BoomerBile> ahh
[11:48] <BoomerBile> then all you should have to do is -vf scale=<desired width>:<desired height>
[11:48] <BoomerBile> as for the faded edges, i'd recommend using a png overlay
[11:48] <BoomerBile> and that overlay tutorial i showed you
[11:48] <BoomerBile> just overlay a blurred edge png file over the video
[11:49] <JoeGibken> Oh, but the borders on the left and right are png files? Not the video itself?
[11:50] <JoeGibken> I'm actually trying to achieve that the borders on the left and right came from the original 4:3 just cut off, but very very blurred
[11:50] <JoeGibken> What you mean win the png files are static images? I'm actually trying to achieve borders that are still from the original 4:3 video, just very very blurred
[11:50] <BoomerBile> well, you just make a png file that is the size of the desired output video, blur effect the edges of the transparent png file, then overlay it on top of the video... everything in the middle stays the way it is, everything on the sides gets blurred
[11:56] <JoeGibken> Thanks again BoomerBile! I'll try it and will get back to you if I achieved it.
[12:15] <BoomerBile> http://imgur.com/bZnLx0p <-- JoeGibken something like that right?
[12:16] <BoomerBile> only instead of a white border you want it blurred
[12:24] <JoeGibken> BoomerBile: Ah no no. Not like that
[12:24] <JoeGibken> Kindly wait
[12:32] <superware> I'm getting "[rtp @ 01e708a0] Unable to receive RTP payload type 96 without an SDP file describing it", is there NO WAY to play h264 rtp over udp without a physical SDP file? even directly with the ffmpeg lib?
[13:17] <curfont> Hi, whether i put --enable-static or --disable-shared or --enable-shared, libavcodec.a comes out the same size, is this normal?
[14:02] <Mavrik> curfont, of course.
[14:02] <Mavrik> libavcodec.a is a static library
[14:03] <Mavrik> if you build another shared one, it won't have an effect :P
[14:09] <curfont> Mavrik: when I try to link it against zoneminder, it gives me strange "undefined references" such as libva and others
[14:09] <curfont> Shouldnt that not happen if its static?
[14:10] <curfont> /ffmpeg_sources/ffmpeg/libavcodec/vaapi.c:61: undefined reference to `vaUnmapBuffer'
[14:10] <curfont> for example
[14:15] <Mavrik> nop
[14:15] <Mavrik> if you say static
[14:15] <Mavrik> you mean "make libav* libraries static"
[14:15] <Mavrik> not "make ALL dependencies static as well"
[14:16] <Mavrik> if you don't have static dependencies available, the .a files will link to dynamic libs anyway
[14:16] <LLckfan> Does any1 know how to get a stale house smell out of a clean house without opening windows as fresh air is of no help?
[14:16] <Mavrik> and obviously your libva is dynamic only
[16:30] <MichaelP> i was told i could use ffmpeg as a desktop recorder
[16:33] <sacarasc> You were told correctly.
[16:34] <MichaelP> sacarasc: it's cammand line right or is there a gui ?
[16:34] <sacarasc> Command line.
[16:36] <MichaelP> Hows the commandline work for it
[16:36] <microchip_> MichaelP: read the wiki
[16:36] <microchip_> there are examples
[16:37] <durandal_1707> it done with x11grab, which does not work on Windows
[16:37] <durandal_1707> *it is
[16:37] <sacarasc> There is a windows version, too.
[16:37] <durandal_1707> really?
[16:39] <sacarasc> I believe so.
[16:39] <sacarasc> https://trac.ffmpeg.org/wiki/How%20to%20grab%20the%20desktop%20(screen)%20with%20FFmpeg
[16:39] <sacarasc> Seems to be there.
[16:40] <durandal_1707> that depends on specific dshow device which may not always be present
[16:42] <MichaelP> This is what it giving me   http://dpaste.com/1410958/
[16:48] <MichaelP> Got it working with ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpg .. But it not clean clear quality
[16:52] <durandal_1707> you are resizing vga to cif
[16:52] <durandal_1707> please read x11grab documentation
[16:53] <durandal_1707> -video_size WxH sets capture resolution
[16:53] <durandal_1707> default is vga, which is 640x480
[18:52] <Insayne> hello, i am trying to compile ffmpeg with libmp3lame (on FreeBSD), i enable it during make config, then i make install clean, yet it does not include libmp3lame ?
[18:52] <Insayne> any idea why ?
[18:55] <durandal_1707> make config and make install are not part of ffmpeg build process, they are part of ports
[19:07] <captainastro> If you're working from git clone or a release tarball you need to call configure with "--enable-libmp3lame".  Look at configure for a full list of parameters.
[19:16] <Insayne> im working from ports
[19:16] <MichaelP> can't get ffmpeg to grab the hole screen... http://imgur.com/PwSCsPx ...  ffmpeg -f x11grab -r 50 -s 1024x768 -i :0.0 out.mpg
[19:16] <Insayne> make configure is what i do
[19:17] <Insayne> i then get a list of options, and choose it, but yeah...
[19:19] <Insayne> how else am i supposed to do so ?
[19:23] <Insayne> any ideas ?
[19:23] <MichaelP> I think they fell asleep
[19:24] <Insayne> well you get yours to compile at least :P heh
[19:24] <MichaelP> no.. i used rpms from my distro
[19:29] <durandal_1707> Insayne: you are asking for help using ffmpeg ports on wrong channel
[19:29] <durandal_1707> nobody here use FreeBSD ports to install ffmpeg
[19:33] <MichaelP> anyone have any idea how i get ffmpeg to grab full desktop insted of half ?
[19:33] <Insayne> okay, from souce, it does not find libmp3lame
[19:33] <durandal_1707> Insayne: it should if it is installed
[19:34] <durandal_1707> MichaelP: you need to use correct command, required args are explained in documentation: hint: use: -video_size
[19:35] <durandal_1707> but i already told you this
[19:35] <durandal_1707> perhaps i need to write full command for you...
[19:37] <MichaelP> durandal_1707: that wiki is not the best
[19:37] <durandal_1707> yes i believe you now
[19:39] <MichaelP> That would be nice
[19:40] <durandal_1707> what would be nice?
[19:41] <MichaelP>  <durandal_1707> perhaps i need to write full command for you...
[19:42] <durandal_1707> MichaelP: have you read wiki?
[19:42] <MichaelP> yes
[19:47] <durandal_1707> what link?
[19:47] <MichaelP> http://ffmpeg.org/ffmpeg-devices.html#x11grab
[19:49] <durandal_1707> there is -video_size mentioned there
[19:49] <durandal_1707> use it
[19:53] <Insayne> hrm, it doesnt find lame.h
[20:06] <durandal_1707> Insayne: the ./configure or port system?
[20:20] <Insayne> well now i get gcc: -l/usr/local/include: linker input file unusued because linking not done
[20:20] <Insayne> and i fail the C test
[20:21] <Insayne> any idea what i can do about that ?
[20:23] <durandal_1707> Insayne: unlikely as nobody can see what commands you actually typed
[20:24] <durandal_1707> anyway ports system should find lame
[20:24] <durandal_1707> and i assume stuff they do is actually tested
[20:25] <Insayne> its not
[20:25] <Insayne> okay, i cant sadly paste
[20:25] <Insayne> so i write it for you
[20:25] <durandal_1707> but you need to set both extra-ldflags and extra-cflags...
[20:25] <Insayne> i did
[20:25] <Insayne> and then the c compiler fails
[20:26] <Insayne> if i dont do it, it doesnt fail the gcc test
[20:26] <Insayne> let me type you my command:
[20:26] <durandal_1707> use pastebin
[20:26] <Insayne> i cant paste...
[20:26] <Insayne> i just told you so, heh
[20:27] <Insayne> ./configure --enable-libmp3lame --disable-yasm --enable-static --disable-shared --extra-ldflags=-l/usb/local/lib --extra-cflags=-l/usr/local/include
[20:27] <Insayne> for which it screws up... with gcc
[20:28] <durandal_1707> obviously as your -extra stuff is done wrong
[20:28] <Insayne> how so ?
[20:28] <Insayne> whats wrong ?
[20:28] <ubitux> -l ’ -I for includes
[20:29] <ubitux> at least..
[20:29] <ubitux> lol @ --disable-yasm
[20:30] <durandal_1707> without yasm  you make bunch of stuff extra slow
[20:31] <Insayne> so... : ./configure --enable-libmp3lame --enable-static --disable-shared --extra-ldflags=-l/usb/local/lib --extra-cflags=-I/usr/local/include
[20:31] <Insayne> is correct ?
[20:31] <durandal_1707> nope
[20:31] <Insayne> whats wrong there now then ? i thought that was what you said
[20:31] <Insayne> heh
[20:31] <Insayne> i am really really confused here
[20:31] <durandal_1707> also better install yasm if it is not available
[20:32] <durandal_1707> me too
[20:32] <Insayne> how come? you said its wrong
[20:32] <durandal_1707> s/l/L
[20:33] <Insayne> oooh that did work
[20:33] <Insayne> heh
[20:33] <Insayne> thank you, both
[20:35] <Insayne> and now I can make it ?
[20:35] <Insayne> as in "make install" ?
[20:40] <durandal_1707> if you are right directory, maybe.....
[20:40] <mittens> you know it says /usb/local not /usr/local?
[20:42] <durandal_1707> probably typo
[20:58] <mittens> yeah probs
[21:36] <Insayne> welp
[21:36] <Insayne> that does not work
[21:37] <Insayne> it complains about makefile requireing an operator, etc
[21:38] <Insayne> what am i doing wrong ?
[21:39] <durandal_1707> what you are doing?
[21:39] <Insayne> after the ./configure that was successfull, i typed
[21:39] <Insayne> make install
[21:39] <durandal_1707> gmake install
[21:39] <Insayne> oh
[21:39] <Insayne> heh, thank you
[21:40] <Insayne> is there a way, that the port system gets the --extra-ldflags=-l/usb/local/lib --extra-cflags=-I/usr/local/include passed on ?
[21:41] <durandal_1707> that is offtopic
[21:42] <Insayne> is there a channel you know of where i could ask this ?
[21:42] <durandal_1707> maybe on #freebsd
[21:42] <Insayne> ok
[21:42] <Insayne> thank you very much
[21:44] <Insayne> and lastly, where do the compiled files get put ?
[21:45] <Insayne> nvm, where they belong :D
[22:15] <SILASSARSD> Just installed ffmpeg on centos 6 and followed the compilation guide
[22:16] <SILASSARSD> everything works fine when as user root, but as user apache i can run the command ffmpeg
[22:16] <SILASSARSD> on antother server i can do it
[22:16] <SILASSARSD> the permissions for the binary ffmpeg are exactly the same
[22:16] <SILASSARSD> only the location of the file is different
[22:17] <llogan> the centos guide makes a "local" install in the home of the user who compiled it if that makes any difference to your setup
[22:17] <SILASSARSD> the one not working is in /root/bin/ffmpeg and the other is in /usr/local/bin
[22:17] <SILASSARSD> how can i give apache access to it
[22:18] <llogan> you said apache can run the command
[22:19] <SILASSARSD> yes on the other server
[22:19] <SILASSARSD> and there it is in /usr/local/bin
[22:19] <SILASSARSD> which is a root directory
[22:22] <SILASSARSD> http://pastebin.com/3PsvrFV2 on the working server i can execute ffmpeg as apache as you can see in: http://pastebin.com/3PsvrFV2
[22:24] <llogan> sounds like a permissions issue and less of a ffmpeg specific issue? try ##linux or #apache
[22:26] <SILASSARSD> http://www.pastebin.ca/2464688 you can see the other server, all permissions are the same
[22:27] <klaxa> i doubt apache has read/execute permissions for /root/
[22:27] <klaxa> or rather, it shouldn't have by default
[22:35] <SILASSARSD> what is the best method
[22:35] <SILASSARSD> to install if I wnat to run as user apache
[22:35] <SILASSARSD> create a user ffmpeg
[22:35] <SILASSARSD> and set the /home/ffmpeg to 755
[00:00] --- Thu Oct 10 2013


More information about the Ffmpeg-devel-irc mailing list