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

burek burek021 at gmail.com
Thu Oct 8 02:05:01 CEST 2015

[00:01:15 CEST] <BBk> I'm not sure that ffmpeg can do that
[00:01:27 CEST] <c_14> Read the page I linked.
[00:02:28 CEST] <BBk> Yes, i'have read it and thanks for the link
[00:03:32 CEST] <BBk> but it's about makeing a signle audio output, with costum channel layout like "2.0, 5.1,...", not multiplexion audio channel for mpeg-ts
[00:05:10 CEST] <c_14> I don't know what you want.
[00:05:19 CEST] <BBk> I know my question is not really an encoding question, it's more a transport question
[00:05:47 CEST] <BBk> imagine that you have a live stream with 4 language, on main, and 3 translation live
[00:06:08 CEST] <BBk> you input one video, and 4 audio with a capture car like a blackmagick of osprey card
[00:06:24 CEST] <BBk> so you have one DSHOW video input and 4 DSHOW audio input
[00:06:57 CEST] <BBk> the idea is to make an MPEG TS stream with all that input bundled in on stream
[00:08:12 CEST] <c_14> What's the problem? mpegts is just a format and supports an arbitrary amount of streams
[00:08:34 CEST] <BBk> then stream the mpeg-ts to something like wowza streaming engin who is able to demux the stream end send only one video and on audio
[00:08:50 CEST] <BBk> yes it is
[00:09:06 CEST] <BBk> but I dont find the way to multiplexe the audio output
[00:09:36 CEST] <c_14> map?
[00:10:22 CEST] <BBk> sorry, what do you mean by map ?
[00:10:56 CEST] <BBk> the ffmeg param -map ?
[00:11:28 CEST] <c_14> https://ffmpeg.org/ffmpeg.html#Advanced-options
[00:13:13 CEST] <BBk> yes it's like that, but the audio input will not be from one single file
[00:13:43 CEST] <BBk> if that it's like the reverse idee of the map exemple
[00:14:14 CEST] <c_14> You want several audio streams in one mpegts file, right?
[00:14:28 CEST] <BBk> yes
[00:14:36 CEST] <c_14> How is that the reverse of the map?
[00:14:40 CEST] <BBk> the input will be by driect show
[00:15:25 CEST] <BBk> make take a channel from an input source that have multiple channel and put it to the ouput
[00:15:34 CEST] <BBk> map not make sorry
[00:15:47 CEST] <c_14> No, map takes streams
[00:15:49 CEST] <c_14> Not channels
[00:18:30 CEST] <BBk> so you think that I can use multiple "-i INPUT" for my audio from multiple dshow audio and map them to fixed channel for one single ouput ? like "-map 0.1 -map 0.2 ..." ?
[00:19:12 CEST] <c_14> Just map them to streams?
[00:20:41 CEST] <BBk> a yes but I dont exactly see how to do that (sorry...)
[00:21:14 CEST] <c_14> ffmpeg -i video -f dshow -i blah -f dshow -i blah -f dshow -i blah -map 0 -map 1 -map 2 -map 3 -f mpegts out.mpegts
[00:21:56 CEST] <BBk> oh, this work ?
[00:22:56 CEST] <BBk> so each -map refer to the respective -i ?
[00:23:03 CEST] <c_14> yes
[00:23:24 CEST] <BBk> ah ok... I've not understand that on the -map exemple
[00:23:57 CEST] <BBk> maybe I also can use the "-map_channel" audio command ?
[00:24:19 CEST] <BBk> if I also want to extract only the right channel of one of the input ?
[00:24:47 CEST] <BBk> to split a stereo input 2 mono and them map each mono to a separate stream ?
[00:25:16 CEST] <BBk> ..split a stereo input into 2 mono...
[00:25:40 CEST] <c_14> https://trac.ffmpeg.org/wiki/AudioChannelManipulation#stereo2monostreams
[00:25:59 CEST] <BBk> yes ok its more logic to use that solution yes
[00:26:40 CEST] <BBk> hum I me a big noob with ffmpeg, but now with your help I see how I can try it
[00:27:19 CEST] <BBk> I can just give a big thanks for your help
[00:41:31 CEST] <BBk> I just try with default input config, and it seem to work very well
[00:42:35 CEST] <BBk> now i just need to tweak the config for quality...
[00:42:48 CEST] <BBk> Thanks a lot for your help
[02:01:04 CEST] <techtopia> hello
[02:01:25 CEST] <techtopia> im encoding 25fps source content, to x264 at 25fps
[02:01:41 CEST] <techtopia> but the encodes are coming out with a variable frame rate instead of constant
[02:01:59 CEST] <techtopia> well the encodes are 25fps, but are reported as variable in media info
[02:02:04 CEST] <techtopia> anyone know whats up?
[02:10:06 CEST] <techtopia> http://pastebin.com/XXFmeYM7
[02:10:19 CEST] <techtopia> klaxa thats my command and it's output
[02:11:29 CEST] <klaxa> hmm... doesn't look wrong, maybe specify -r 25 additionally?
[02:11:43 CEST] <techtopia> i just removed -r 25 from the line
[02:11:59 CEST] <techtopia> it was there before with same issue, so i tried removing it to the line in the pastebin
[02:12:02 CEST] <techtopia> and again the same issue
[02:12:24 CEST] <klaxa> hmm
[02:12:46 CEST] <techtopia> the encoded video is definatly 25fps as i can go through it frame by frame and check
[02:12:59 CEST] <techtopia> but it gets reported in media info as variable frame rate
[02:13:27 CEST] <klaxa> you can try using -framerate instead of -r, but i'm not sure if that'll change the flag for that
[02:15:37 CEST] <techtopia> yeah will give it a go
[02:16:48 CEST] <techtopia> same issue
[02:37:17 CEST] <techtopia> -vsync cfr = same issue
[02:38:05 CEST] <techtopia> -x264opts force-cfr = same issue
[02:38:06 CEST] <techtopia> :(
[02:39:26 CEST] <c_14> Just don't trust mediainfo.
[02:44:53 CEST] <techtopia> i don't but it would be nice to get it correctly reporting
[07:25:03 CEST] <parrot1> hello, how do I setup ffmpeg libraries in visual studio? https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC seems complete but I want access to its libraries' API as well. Not sure if that guide steers me toward my goal.
[08:37:50 CEST] <zenny> Hi, is there a way to fine tune colorkey filter besides color, similarity and blend? I am asking because the filter is not keying in the same way that I can do with other applications to the same video. Appreciate any inputs. Thanks!
[08:47:57 CEST] <waressearcher2> how to find open SMTP mail agents ?
[08:48:09 CEST] <waressearcher2> is there NSE script ?
[08:48:50 CEST] <waressearcher2> so it should not just have open 25 port right ? it should allow sending mail without login or password
[08:48:55 CEST] <waressearcher2> wait
[08:48:57 CEST] <waressearcher2> wrong channel
[13:33:54 CEST] <zenny> Asking again, Is there a way to fine tune colorkey filter besides color, similarity and blend? I am asking because the filter is not keying in the same way that I can do with other applications to the same video. Appreciate any inputs. Thanks!
[15:00:46 CEST] <pavitra> Hello, I have been experimenting with ffmpeg filter_complex option for a while now. I want to use user-defined variable in filter_complex expressions. Something like " pqr='if(eq(t,0),10,pqr+2)' " where value of pqr is 10 initially and increments by 2 every sec; I use time-varying pqr in some other expr like for blend or overlay. How do I achieve this?
[17:41:07 CEST] <djapo> hello is there a way to print bitrate and other info about a file ? i need to create that info for a bunch of files in a directory preferably in a json output
[17:42:40 CEST] <DHE> ffprobe can help you
[17:44:53 CEST] <djapo> thanks
[17:47:42 CEST] <djapo> oh, while im here. can ffmpeg see if two media files match in contents .. essentially, even if fthey are of differen't quality
[17:47:45 CEST] <djapo> ?
[18:05:12 CEST] <explodes> Hey! In my Android application, I'm using FFMpeg to decode videos, of our videos encoded in our latest format, a lot if not all of them cause a crash.
[18:05:19 CEST] <explodes> One of the lines in the output is: Consider increasing the value for the 'analyzeduration' and 'probesize' options
[18:05:27 CEST] <explodes> My probesize is currently 8192
[18:05:40 CEST] <explodes> 8192 bytes. What a good value to use here?
[18:39:00 CEST] <andrelec1> hello, i need to create a little project with ffmpeg but i can't compile ...
[18:39:37 CEST] <andrelec1> i have somme error durring compilation
[19:11:37 CEST] <YaMoonSun_> djapo: Check out MediaInfo, it's pretty darn useful for finding out the specifications of your video/audio files.
[21:19:21 CEST] <bhaskar> hi, is there anyway to create video using multiple images with different duration?
[21:19:35 CEST] <YaMoonSun> Yup
[21:19:40 CEST] <bhaskar> how?
[21:21:12 CEST] <YaMoonSun> One moment
[21:21:26 CEST] <YaMoonSun> You want .mp4 or ?
[21:21:34 CEST] <YaMoonSun> Using what file types?
[21:21:35 CEST] <bhaskar> yes mp4
[21:21:54 CEST] <bhaskar> converting jpg images to mp4
[21:21:58 CEST] <YaMoonSun> Are the files the same resolution?
[21:22:04 CEST] <bhaskar> yes
[21:22:37 CEST] <bhaskar> should i create sperate videos for all of them and joing them?
[21:22:49 CEST] <bhaskar> * join them?
[21:24:46 CEST] <YaMoonSun_> I got dc'd smh
[21:24:47 CEST] <YaMoonSun_>  Try using multiple input commands (-i "Image01.jpg" -i "Image02.jpg" -an -c:v libx264"
[21:25:39 CEST] <bhaskar> ya but how can i give different duration to each images?
[21:26:28 CEST] <YaMoonSun_> -framerate 1 -to 00:00:10
[21:27:02 CEST] <YaMoonSun_> -ss 00:00:00 -to 00:00:10 *
[21:27:28 CEST] <pzich> follow the second half of http://stackoverflow.com/a/21602860 ("If you want to continue using the concat demuxer, or want different file names or durations for each image")
[21:28:06 CEST] <YaMoonSun_> bhaskar: https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
[21:28:45 CEST] <bhaskar> thank you buddies :)
[21:29:36 CEST] <YaMoonSun> You bet
[22:26:16 CEST] <Glytch> Hi all, I'm trying to use FFMPEG to copy an MKV and replace the audio track with Stereo -- I'm using this command...
[22:27:48 CEST] <Glytch> ffmpeg -i input.mkv -c:v copy -c:a libfaac -b:a 192k output.mp4
[22:28:23 CEST] <Glytch> replacing input.mkv with the file path to the exact video file, but Im getting a "No such file or directory" error every time --- any ideas?
[22:29:56 CEST] <fritsch> check the permissions of the input.mkv?
[22:34:19 CEST] <Glytch> Hmm... I think it has issues with any spaces in the file name. Could that be right?
[22:38:00 CEST] <Glytch> Looks like that fixed it - is there any way to process MKV's in a batch or do I have to go individually?
[22:45:15 CEST] <YaMoonSun> I would do -ffmpeg -i "Input.mkv" -vn -c:a copy -ac 2 "Output.ogg" and then do a double input and map the new audio into a new mkv using the old video stream
[22:45:17 CEST] <YaMoonSun> personally
[22:46:27 CEST] <YaMoonSun> -ac 2 (audio channels 2.0)
[22:50:02 CEST] <YaMoonSun> -i "Input.mkv" -c:v copy -c:a libfaac -b:a 128k -ac 2 "Output.mp4"
[22:50:13 CEST] <YaMoonSun> Glytch:
[22:52:10 CEST] <Glytch> ah i see, so input will just batch process anything in the directory?
[22:53:16 CEST] <Glytch> oooh adding 2 channel. Yeah that's a good idea.
[22:54:14 CEST] <YaMoonSun> Indeed, lol
[22:54:20 CEST] <YaMoonSun> Hope that works out for you
[22:54:41 CEST] <YaMoonSun> Are you on windows?
[22:56:45 CEST] Action: YaMoonSun shall return shortly.
[23:23:50 CEST] <Glytch> Yeah windows
[23:24:18 CEST] <YaMoonSun> I forgot why I asked that tbh
[23:25:04 CEST] <Glytch> what can i replace input.mkv and output.mkv to just process all mkv's in the folder and copy the name?
[23:26:02 CEST] <YaMoonSun> Wouldn't be able to do that without renaming them all similar names
[23:26:27 CEST] <YaMoonSun> For example Filename-0001.mkv Filename-0002.mkv ect
[23:27:04 CEST] <Glytch> ok well lets say I do that for a series
[23:31:07 CEST] <YaMoonSun> I think you do -start_number 0001 -i "Input-0001.mkv" -end_number "Input-9999.mkv"
[23:32:40 CEST] <andrelec1> its possible to have some help for link ffmpeg with codeblock ...
[23:33:02 CEST] <YaMoonSun> Is that a question? lol
[23:33:26 CEST] <andrelec1> i try to make a very simple programm
[23:33:37 CEST] <andrelec1> juste
[23:33:38 CEST] <andrelec1> int main()
[23:33:40 CEST] <andrelec1> {
[23:33:41 CEST] <andrelec1>     av_register_all();
[23:33:43 CEST] <andrelec1>     return 0;
[23:33:44 CEST] <andrelec1> }
[23:34:04 CEST] <YaMoonSun> You should /join #ffmpeg-devel
[23:34:04 CEST] <andrelec1> but i have lot of error when i compile
[23:34:10 CEST] <andrelec1> ok
[23:37:35 CEST] <BtbN> No you should not join #ffmpeg-devel, that channel is about ffmpeg development itself, not using the API.
[23:38:00 CEST] <BtbN> This is exactly the right place for that kind of question.
[23:38:05 CEST] Action: YaMoonSun feels dumb
[23:38:15 CEST] <YaMoonSun> andrelec1: Sorry about that.
[23:38:52 CEST] <andrelec1> well
[23:39:28 CEST] <andrelec1> for my projet
[23:39:51 CEST] <andrelec1> i download the source of ffmpeg ... unzip configure / make / make install ...
[23:41:06 CEST] <andrelec1> in code block add the folder in search directories compiler / linker and in linker settings add libavcodec.a and libavformat.a
[23:41:31 CEST] <andrelec1> but when i compile i have lot of error reference indefined ....
[23:42:29 CEST] <JEEB> I'd just use pkg-config for the search directories and linker flags
[23:42:55 CEST] <JEEB> (and include flags)
[23:43:09 CEST] <JEEB> since ffmpeg installs pkg-config files for all of the libraries
[23:45:32 CEST] <JEEB> like, pkg-config --cflags name (see the names of the .pc files)
[23:45:53 CEST] <JEEB> same for --libs
[23:46:42 CEST] <JEEB> http://stackoverflow.com/a/5921798
[23:46:53 CEST] <JEEB> example of getting flags from pkg-config
[23:47:01 CEST] <JEEB> in code::blocks
[23:47:34 CEST] <JEEB> do note that if you are using a nonstandard prefix you will also have to set the PKG_CONFIG_PATH environment variable
[23:47:58 CEST] <JEEB> f.ex. PKG_CONFIG_PATH=/my/prefix/lib/pkgconfig pkg-config ...
[23:48:08 CEST] <andrelec1> whattt
[23:48:11 CEST] <JEEB> that adds the directory to the pkg-config's search path
[23:49:18 CEST] <JEEB> andrelec1: you are seemingly having issues with getting all the required flags for the compiler. FFmpeg provides pc files for that for each library and they are installed when you make install
[23:49:24 CEST] <JEEB> (and linker)
[23:49:53 CEST] <andrelec1> ok ,
[23:50:03 CEST] <andrelec1> but how to link in codeblock
[23:50:12 CEST] <JEEB> re-read what I wrote
[23:50:26 CEST] <JEEB> I even linked you a stackoverflow answer that tells you how to use pkg-config in code::blocks
[23:51:01 CEST] <andrelec1> ho i didn't see the link ;)
[23:51:03 CEST] <JEEB> but do note that you will also have to set the env variable PKG_CONFIG_PATH when running it if you are using a nonstandard prefix
[23:51:19 CEST] <JEEB> I also gave an example of that and you can first try out pkg-config on the command line
[23:51:27 CEST] <JEEB> you can see what it outputs
[23:51:39 CEST] <JEEB> then you can set it up in your IDE
[23:56:12 CEST] <andrelec1> humm
[23:56:34 CEST] <andrelec1> pkg_config_path is not define
[23:57:00 CEST] <JEEB> it isn't by default, you only have to define it yourself when calling pkg-config if you have stuff in a non-standard search path
[23:57:16 CEST] <JEEB> it adds directories to the standard search path of pkg-config's
[23:57:29 CEST] <JEEB> it depends on what you set as you --prefix when configuring FFmpeg
[23:57:37 CEST] <andrelec1> haha
[23:57:43 CEST] <andrelec1> i didn't use prefix
[23:57:53 CEST] <JEEB> then you installed to /usr/local ?
[23:57:57 CEST] <JEEB> which is the default prefix
[23:58:03 CEST] <andrelec1> maybe ...
[23:58:21 CEST] <andrelec1> ( i'm on kubuntu)
[23:58:26 CEST] <JEEB> doesn't matter
[23:58:33 CEST] <JEEB> the default is in FFmpeg's configure
[23:58:47 CEST] <JEEB> if you don't set --prefix it's in 99% or 100% of all cases /usr/local
[23:58:57 CEST] <JEEB> so when you make install you install there
[23:59:04 CEST] <JEEB> that should in theory be in the default search path
[23:59:43 CEST] <JEEB> so when you pkg-config --cflags libavformat
[23:59:48 CEST] <JEEB> you should get something related to that
[00:00:00 CEST] --- Thu Oct  8 2015

More information about the Ffmpeg-devel-irc mailing list