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

burek burek021 at gmail.com
Fri Oct 9 02:05:01 CEST 2015

[00:00:35 CEST] <andrelec1> " -I/usr/local/include "
[00:01:21 CEST] <JEEB> yeah, that's the cflags
[00:01:32 CEST] <JEEB> then you use --libs to get the linker flags
[00:01:48 CEST] <andrelec1> ok
[00:01:50 CEST] <JEEB> now you can see why pkg-config is useful :P
[00:02:06 CEST] <JEEB> it gets even more useful when you link against something that is linked against something etc
[00:02:21 CEST] <andrelec1> ok
[00:02:26 CEST] <JEEB> because as long as the pc files are done right, you will have all the things you need :)
[00:02:43 CEST] <JEEB> some people really hate pkg-config but I will never understand them
[00:02:58 CEST] <JEEB> beats manually adding all those flags for all I care :D
[00:04:48 CEST] <andrelec1> in code block i type -I/usr/local/include  or -I/usr/local/include  ?
[00:05:19 CEST] <JEEB> did you read my link? it seems like you can just tell code::blocks to use pkg-config?
[00:05:36 CEST] <JEEB> I'd say that's a much better alternative :P
[00:06:29 CEST] <andrelec1> ho the ` execute the command
[00:11:26 CEST] <andrelec1> fuuuuuuuuu
[00:11:43 CEST] <andrelec1> indefine reference ac_register_all -_-"
[00:11:56 CEST] <andrelec1> av*
[00:12:29 CEST] <JEEB> pastebin your compilation flags etc
[00:12:32 CEST] <JEEB> and link here
[00:12:55 CEST] <JEEB> basically the whole flags + compiler/linker output :P
[00:14:07 CEST] <andrelec1> that ? http://pastebin.com/x2DLmvpN
[00:14:43 CEST] <JEEB> uhh
[00:15:00 CEST] <JEEB> you are still not using pkg-config for the linker flags
[00:15:20 CEST] <JEEB> also why the flying fuck are you using the source directory manually
[00:15:45 CEST] <andrelec1> because don't work with pkg config too ...
[00:15:57 CEST] <JEEB> just fucking post that case
[00:16:00 CEST] <JEEB> link here
[00:16:45 CEST] <andrelec1> http://pastebin.com/G8QC8VA0
[00:17:11 CEST] <JEEB> uhh
[00:17:16 CEST] <andrelec1> ho
[00:17:22 CEST] <JEEB> didn't that link I posted tell you how to make code::blocks *run* pkg-config?
[00:17:55 CEST] <JEEB> also you still don't have it there for linker flags
[00:18:49 CEST] <andrelec1> g++ -L../ffmpeg-2.8 -o bin/Debug/CanalMoins obj/Debug/main.o  `pkg-config --cflags libavformat
[00:18:50 CEST] <andrelec1> /bin/sh: 1: Syntax error: EOF in backquote substitution
[00:19:53 CEST] <JEEB> beginning and end need to be marked with `
[00:20:06 CEST] <JEEB> as is shown in the answer I linked
[00:21:13 CEST] <JEEB> and please add both compiler and linker options, they are both mentioned in the SO answer I linked
[00:24:38 CEST] <andrelec1> well
[00:24:40 CEST] <andrelec1> http://ploof.eu/7daG
[00:24:58 CEST] <andrelec1> http://ploof.eu/77d6
[00:25:03 CEST] <andrelec1> wha more ?
[00:25:14 CEST] <JEEB> uhh
[00:25:26 CEST] <JEEB> see that tab that says "linker settings" :P
[00:25:44 CEST] <JEEB> you want linker options there most probably
[00:25:49 CEST] <JEEB> I mean, do you even read?
[00:26:03 CEST] <JEEB> also why are you already adding libavcodec?
[00:26:13 CEST] <JEEB> stick to lavf for now, unless you know you need libavcodec as well
[00:26:41 CEST] <andrelec1> ( its my first project with ffmpeg ... )
[00:27:10 CEST] <JEEB> this is not specific to FFmpeg in any way or form
[00:27:14 CEST] <andrelec1> ( i jute need to resize video in 640*480 =
[00:27:42 CEST] <JEEB> you just seem to lack the capability to properly digest what you are presented with
[00:28:05 CEST] <JEEB> you keep not reading things and I keep having to mention it to you
[00:28:45 CEST] <andrelec1> i read, but i thini don't understand ( i'm french )
[00:28:53 CEST] <andrelec1> think*
[00:29:14 CEST] <JEEB> and I'm a fat Finnish retard.
[00:29:28 CEST] <andrelec1> ^^
[00:29:38 CEST] <JEEB> now just add the libs to the linker flags and cflags to the compiler flags
[00:29:58 CEST] <JEEB> and it should work, unless you once again do not do what is mentioned
[00:30:32 CEST] <andrelec1> on compiler settings tab => `pkg-config --libs libavformat`
[00:30:51 CEST] <andrelec1> and on linker settings tab => `pkg-config --cflags libavformat`
[00:31:00 CEST] <JEEB> are you fucking with me?
[00:31:04 CEST] <andrelec1> nooooo
[00:31:46 CEST] <JEEB> then why the flying fuck do you not think? cflags are linker flags and libs are compiler flags!?
[00:31:52 CEST] <JEEB> please, think
[00:32:00 CEST] <andrelec1> normaly i work with .net and the fucking visual studio do this for me ...
[00:32:06 CEST] <JEEB> no
[00:32:13 CEST] <JEEB> visual studio does not handle dependencies
[00:32:40 CEST] <JEEB> people make their own custom scripts on windows so you can configure your build
[00:33:02 CEST] <andrelec1> with c#  i never do this
[00:33:27 CEST] <JEEB> because you have no 3rd party dependencies or you hardcode your dependencies somewhere :P
[00:34:08 CEST] <andrelec1> maybe
[00:34:21 CEST] <andrelec1> so
[00:34:37 CEST] <andrelec1> please telle me what i'm doing
[00:34:46 CEST] <andrelec1> i'm totaly lost
[00:34:54 CEST] <JEEB> 01:29 < andrelec1> on compiler settings tab => `pkg-config --libs libavformat`
[00:34:54 CEST] <JEEB> 01:30 < andrelec1> and on linker settings tab => `pkg-config --cflags libavformat`
[00:34:59 CEST] <JEEB> you don't see the issue here?
[00:35:13 CEST] <JEEB> you are giving LIBS to COMPILER, and CFLAGS to LINKER
[00:35:51 CEST] <andrelec1> IT WORKKKK
[00:36:14 CEST] <andrelec1> Ho good
[00:36:20 CEST] <JEEB> now you can remove the fucking manual flags you were adding
[00:36:26 CEST] <JEEB> like that ffmpeg source dir -L
[00:36:39 CEST] <JEEB> pkg-config gives you all you need
[00:37:10 CEST] <andrelec1> ok
[00:37:26 CEST] <andrelec1> why zero tuto say that
[00:37:50 CEST] <JEEB> fuck if I know, they are scared to tell you about it?
[00:39:25 CEST] <JEEB> also, do not just randomly add libraries unless you need them
[00:39:51 CEST] <JEEB> if you start needing things that are in some library, then add that library's cflags and libs to your build
[00:40:27 CEST] <andrelec1> ok
[00:41:22 CEST] <andrelec1> but its a fucking school project
[00:41:54 CEST] <JEEB> does it matter?
[00:42:05 CEST] <JEEB> anyways, you got it to compile and link
[00:42:31 CEST] <andrelec1> i didn't care if mu projet include unused lib
[00:43:06 CEST] <JEEB> and I don't give a fuck, just don't come crying if you get any issues regarding that kind of behavior
[00:43:20 CEST] <JEEB> I'm just trying to give you general good advice on development
[00:44:12 CEST] <andrelec1> i ipreciate that and thank you again ;)
[00:51:01 CEST] <andrelec1> do you have a simple tuto for create a simple programme fore reduce resolution of video ?
[00:52:00 CEST] <JEEB> there are fucking examples under docs
[00:53:42 CEST] <andrelec1> ok
[01:10:22 CEST] <llogan> damned lavfi buffer overflows
[03:07:32 CEST] <andrelec1> JEEB , i modify the exemple for scalling video
[03:07:34 CEST] <andrelec1> but
[03:08:30 CEST] <andrelec1> i got a file
[03:08:59 CEST] <andrelec1> and i need to execute ffplay commande
[03:09:12 CEST] <andrelec1> but how do this action in code ?
[03:12:34 CEST] <andrelec1> ( and my video its no good encoded ^^)
[03:13:23 CEST] <andrelec1> i think i don't understand how work encoding video
[03:54:43 CEST] <foreverska> So I don't replicate any work, is there a good gui for ffmpeg?  (not vlc)
[08:53:50 CEST] <Quadstrike> i'm trying to put a command line together for OBS (open boradcast software) and it's mostly the audio portion i need help with, i'm trying to add audio devices (windows mic devices) that either get added as another track to a file container that supports multitrack audio, or records an audio device (windows mic devices) and spits it out as a separate file (mp3/aac/ect) than the video i will be making.   so far i have -f dshow -i 
[08:54:44 CEST] <Quadstrike> and i know of a -map command to be used with #:# and as far as i understand the first number is the file number and the second is the track number
[09:27:48 CEST] <c_14> What's the problem?
[09:51:00 CEST] <c_14> Quadstrike: ^
[09:51:09 CEST] <Quadstrike> yes?
[09:51:15 CEST] <c_14> What's the problem?
[09:51:32 CEST] <Quadstrike> you want me to put what i did or did you read it?
[09:51:47 CEST] <c_14> Read it, don't know what you need/want/where the issue is.
[09:52:02 CEST] <Quadstrike> i need assistance with the structure
[09:52:17 CEST] <c_14> Do you have a command that isn't working?
[09:52:34 CEST] <Quadstrike> im learning ffmpeg so idk if im on the right track
[09:53:13 CEST] <Quadstrike> if i did
[09:53:14 CEST] <Quadstrike> -f dshow -i audio="Microphone" -map 1:0
[09:53:45 CEST] <Quadstrike> im saying it's going to be in file 1 (#2) track 0(#1) right?
[09:54:10 CEST] <c_14> yes
[09:55:03 CEST] <Quadstrike> how do i do that if i have 2 output files, how do i define that?
[09:55:20 CEST] <c_14> put the map in front of each output file
[09:55:36 CEST] <c_14> ie ffmpeg -f dshow -i audio="microphone" -map 1:0 out.mkv -map 1:0 out1.mkv
[09:56:02 CEST] <Quadstrike> ok, what about if i had a whole lineup of multiple audio devices?
[09:56:22 CEST] <Quadstrike> let's say i had 3 audio files i wanted to output?
[09:56:28 CEST] <Quadstrike> and 3 mics
[09:57:49 CEST] <Quadstrike> -f dshow -i audio="microphone" -map 1:0 out.mkv -f dshow -i audio="microphone" -map 2:0 out1.mkv ?
[09:57:51 CEST] <c_14> -f dshow -i audio="foo" -f dshow -i audio="bar" -f dshow -i audio="baz" -map 1 -map 2 -map 3 out.mkv (this is all on the assumption that you have a video stream or something before the first -f dshow -i, otherwise shift the maps over)
[09:58:21 CEST] <c_14> All the input "files" first, then the options for the first output and the first output, then the options for the second output and the second output etc
[09:59:59 CEST] <Quadstrike> ok x.x
[10:00:54 CEST] <Quadstrike> and i can make those sound devices wright to a soundfile rather than a vdieo file while my first file is a video?
[10:01:45 CEST] <c_14> yes, just set up the maps so the audio stream[s] go into the audio file and the video stream either isn't mapped or mapped to a separate video file
[10:02:32 CEST] <Quadstrike> alright
[10:02:48 CEST] <Quadstrike> thank you so much x.x
[10:03:00 CEST] <Quadstrike> i've been stressing about this for a week now
[10:03:17 CEST] <Quadstrike> got about 40 tabs of ffmpeg examples that won't tell me that clearly
[10:04:49 CEST] <Quadstrike> would encoding go right after the inputs?
[10:05:02 CEST] <c_14> before each output, just like the maps
[10:05:04 CEST] <Quadstrike> or with the map commands?
[10:05:07 CEST] <Quadstrike> ah.
[10:05:08 CEST] <Quadstrike> ok
[10:05:25 CEST] <Quadstrike> does it blow up if i put it before or after the map command?
[10:05:35 CEST] <c_14> doesn't matter
[10:05:48 CEST] <Quadstrike> and is it map,map,map codec,codec,codec
[10:06:00 CEST] <Quadstrike> or map,codec,map codec?
[10:06:05 CEST] <c_14> doesn't matter
[10:06:09 CEST] <Quadstrike> ok
[10:06:17 CEST] <Quadstrike> i HAVE to specify a codec right?
[10:06:19 CEST] <c_14> Insofar as you don't actually put any commas anywhere.
[10:06:21 CEST] <c_14> No.
[10:06:30 CEST] <c_14> If you don't specify one it uses whatever's the default for the output format.
[10:06:37 CEST] <c_14> At whatever settings are the default for that codec.
[10:06:40 CEST] <Quadstrike> oh
[10:06:49 CEST] <Quadstrike> ok
[10:08:33 CEST] <Quadstrike> you've been a life saver, thanks ^^
[10:08:55 CEST] <Quadstrike> now i just gotta type out the whole command line...
[10:18:21 CEST] <Quadstrike> c_14: how do i make the file output be the date an time timstamp? is it $t ?
[10:20:02 CEST] <c_14> You mean the name of the file?
[10:20:14 CEST] <Quadstrike> yes
[10:20:37 CEST] <Quadstrike> so $t.mp3 would be a time and date name generated
[10:21:05 CEST] <c_14> just use `date -I`.mp3 . Can't remember if ffmpeg has date expansion.
[10:22:14 CEST] <Quadstrike> tilda date input tilda ?
[10:22:17 CEST] <Quadstrike> `
[10:22:19 CEST] <Quadstrike> that thing
[10:22:21 CEST] <Quadstrike> not "
[10:22:27 CEST] <c_14> backtick. It's shell expansion
[10:22:34 CEST] <Quadstrike> alright
[10:22:41 CEST] <Quadstrike> just clarifying :)
[10:23:17 CEST] <Quadstrike> does the I need to be capital?
[10:23:24 CEST] <Quadstrike> it's refering to the input's time isn't it?
[10:23:28 CEST] <Quadstrike> date*
[10:24:12 CEST] <c_14> -I is an option to the date command that tells it to output the iso 8601 date
[10:26:13 CEST] <Quadstrike> got it
[10:26:18 CEST] <Quadstrike> `date +%s`.mp3
[10:26:33 CEST] <Quadstrike> according to https://ffmpeg.org/pipermail/ffmpeg-user/2014-March/020393.html
[10:28:45 CEST] <Quadstrike> i'll keep in mind what you recommended if it doesn't work
[17:20:14 CEST] <oreWizard> hello
[17:20:26 CEST] <oreWizard> i am using transcode__aac_8
[17:20:37 CEST] <oreWizard> but i cant write frame with audio and image
[17:20:40 CEST] <oreWizard> can someone helpme?
[19:13:50 CEST] <Ulrar> Hi, I have compiled ffmpeg 2.4.3 for a client who needed that specific version. I enabled freetype and the filter drawtext, and when I run his test script I get an error because the font doesn't exist. He says ffmpeg is supposed to pick a default one if the one given as a parameter doesn't exist, is that some compile or config option I should be using ?
[19:14:34 CEST] <sfan5> "To enable default font fallback and the font option you need to configure FFmpeg with --enable-libfontconfig"
[19:14:39 CEST] <sfan5> https://ffmpeg.org/ffmpeg-filters.html#drawtext-1
[19:14:41 CEST] <Ulrar> Thanks a lot !
[19:19:16 CEST] <Ulrar> That was it
[19:19:29 CEST] <Ulrar> Thanks again for the quick reply
[00:00:00 CEST] --- Fri Oct  9 2015

More information about the Ffmpeg-devel-irc mailing list