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

burek burek021 at gmail.com
Mon Jun 15 02:05:01 CEST 2015


[00:00:07 CEST] <c_14> Halit: -filter_complex "[0:v]scale=-2:720,pad=1280:720[v0];[1:v]scale=-2:720[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]"
[00:00:21 CEST] <c_14> Assuming the first input is the 480p one.
[00:01:27 CEST] <Halit> what -2 means in scale part
[00:01:54 CEST] <c_14> scale keeping aspect ratio but make sure it's divisible by 2
[00:02:28 CEST] <c_14> you might want to explicitly put 1280 there for the second scale, and -1 instead of -2 for the scale
[00:02:31 CEST] <c_14> shouldn't really matter though
[00:03:19 CEST] <Halit> ok then thanks i'll try
[00:06:37 CEST] <Abbott> thank you c_14. What is the :s: for? the a is audio and the 0 is for the first track but what is the s?
[00:07:25 CEST] <Halit> it says " Output pad "out:v0" with type video of the filter instance "Parsed_concat_3" of concat not connected to any destination"
[00:09:36 CEST] <c_14> Abbott: per-stream metadata
[00:10:17 CEST] <livingBEEF> hey. Is it possible to seek in filter complex? Could not find anything... I do not want to list the video hundred times as input with -ss if it can be avoided...
[00:10:26 CEST] <c_14> !ph Halit
[00:10:43 CEST] <c_14> livingBEEF: the trim filter?
[00:10:47 CEST] <JEEBsv> c_14: btw does -2 really work for mod2 -1 ?
[00:11:22 CEST] <livingBEEF> c_14: yeah, that's it. Thanks
[00:11:33 CEST] <JEEBsv> I remember the last time I checked there was an issue on trac which led to "uhh just use the shit we already have available for scale filter, not going to make a shortcut for that"
[00:13:23 CEST] <c_14> It's worked when I used it, but I haven't tried it with any particularly weird inputs or looked at the code.
[00:13:35 CEST] <JEEBsv> hmm
[00:13:38 CEST] <Halit> http://pastebin.com/p0t0n2iA
[00:15:27 CEST] <c_14> Halit: you removed the maps you had in your first command, those need to remain there. Also, if you're going to explicitly state 1280:720 for the first scale the pad is useless.
[00:15:42 CEST] <c_14> You want the pad behind the scale for the 480p video (assuming you don't want to stretch the video)
[00:16:47 CEST] <Halit> i want to strech video
[00:17:23 CEST] <c_14> Then just get rid of the pad.
[00:18:07 CEST] <Abbott> c_14 the language still came out as German. Here is the .bat file I am using and the console input/output: http://pastie.org/pastes/10239268/text?key=mgy9vnozfoyy1ikfflsq
[00:20:04 CEST] <Halit> c_14 it says http://pastebin.com/wxcP8n1e
[00:21:03 CEST] <c_14> Abbott: Stream #0:1(eng): Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp (default) <- ffmpeg at least thinks it's doing the right thing. How are you verifying the output?
[00:21:41 CEST] <c_14> Halit: you're still missing the -map "[a]" -map "[v]" before output.mp4
[00:21:54 CEST] <Abbott> c_14 my mistake i was looking at the wrong file lol. It worked, thank you!
[00:22:04 CEST] <Halit> oh :D
[00:22:06 CEST] <Halit> sorry
[00:23:55 CEST] <Halit> c_14 sorry for that mistake
[00:24:01 CEST] <Halit> c_14 http://pastebin.com/XfyVzWCF
[00:24:49 CEST] <c_14> add a ,setsar=1 before [v0];
[00:27:45 CEST] <Halit> Thanks
[00:32:45 CEST] <techtopia> whats the basic command to transpose a vertical video
[01:02:32 CEST] <c_14> techtopia: you have a vertical video and you want to make it landscape?
[01:04:40 CEST] <livingBEEF> hmm, is there any filter that actually cuts out the video and makes it its own segment that starts at 0.0? Because trim seems to just drop frames, at least in combination with setpts...
[01:05:29 CEST] <c_14> trim=start:end,setpts=PTS-STARTPTS ?
[01:07:34 CEST] <livingBEEF> I'm just slowing it down... this might just be doable together with that
[07:26:06 CEST] <stupidjoblessper> Just looking for advice. How can someone who is almost 30 and never had a job get one? I have been applying(fast food, retail, entry level) just to be told I am not what they are looking for (We have reviewed your application for this position and will be proceeding with other candidates at this time.) or they are not hiring. No interviews. Cannot volunteer as there is no where near too
[09:02:38 CEST] <manjaro_user_> How i crete online tv with ffserver?
[09:02:55 CEST] <manjaro_user_> i am not understand reading from doc
[12:16:34 CEST] <nifker> Installed ffmpeg as described here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu but programms still can't find the libraries. Do I have to add a path to ld_library_path?
[12:18:38 CEST] <relaxed> nifker: LD_LIBRARY_PATH=/path/to/lib /path/to/ffmpeg
[12:18:57 CEST] <relaxed> you could write a wrapper script to do it
[12:21:37 CEST] <nifker> that means in my case ~/ffmpeg_build/lib
[12:22:44 CEST] <relaxed> yes
[12:23:50 CEST] <nifker> it is right that there are only libraries with the append .a or?
[12:25:35 CEST] <JEEBsv> yes
[12:26:21 CEST] <JEEBsv> also if you want to build something with those libraries you will want to use PKG_CONFG_PATH=/home/hurrdurr/ffmpeg_build/lib/pkgconfig
[12:26:55 CEST] <JEEBsv> that's the environment variable that is used when you want to append something to the search path of pkg-config
[12:27:07 CEST] <JEEBsv> LD_LIBRARY_PATH is only needed for shared libraries' _loading_
[12:28:59 CEST] <nifker> does that mean I have to create a symbolic link with eg libavdevice.a to run applications that uses these libraries
[12:30:03 CEST] <JEEBsv> no
[12:30:09 CEST] <JEEBsv> dot-a on lunix is static
[12:30:39 CEST] <JEEBsv> I'm pretty sure that guide tells you to build everything as static because that way you don't have to care about loading the libraries
[12:30:52 CEST] <nifker> ok
[12:32:14 CEST] <relaxed> compile said app with, PKG_CONFIG_PATH=/path/to/lib/pkgconfig CFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib" ./configure ...
[12:32:20 CEST] <JEEBsv> uhh
[12:32:30 CEST] <JEEBsv> you shouldn't need the CFLAGS/LDFLAGS unless it is retarded
[12:32:41 CEST] <JEEBsv> because you get those flags through pkg-config
[12:32:52 CEST] <relaxed> what if it doesn't use pkg-config?
[12:32:59 CEST] <JEEBsv> then it is retarded
[12:33:06 CEST] <relaxed> so you're assuming
[12:33:08 CEST] <JEEBsv> and you will do nothing with the goddamn pkg-config env variable
[12:33:53 CEST] <JEEBsv> yes, since most things I've poked haven't been retarded, although I don't think either of us has any idea of what the fuck this person wants to build :P
[12:34:19 CEST] <relaxed> I am assuming too :)
[12:34:52 CEST] <nifker> I don't find anything to build the libraries in the guide
[12:34:56 CEST] <JEEBsv> basically all I wanted to say is that you don't generally put both of those variables there
[12:35:14 CEST] <JEEBsv> you then say that if it's not retarded you use pkg-config and get automation
[12:35:28 CEST] <JEEBsv> otherwise you enjoy appending to *_FLAGS
[12:35:43 CEST] <JEEBsv> nifker: what?
[12:35:45 CEST] <relaxed> which won't cause any problems
[12:36:25 CEST] <JEEBsv> well yes, but if the person knows even a bit of stuff he will say "why do I need this PKG_CONFIG variable" which is the wrong thing to cut from
[12:36:35 CEST] <JEEBsv> but I digress
[12:37:00 CEST] <JEEBsv> nifker: if you have the goddamn .a files for lavf/lavc etc you already have _libraries_ . do you mean that you need shared libraries?
[12:37:12 CEST] <nifker> yes
[12:38:06 CEST] <JEEBsv> ok, then do note that you might need LD_LIBRARY_PATH when configuring for the configuration tests to pass with some things
[12:38:32 CEST] <JEEBsv> and basically everywhere where you have --enable-static you switch to --disable-static --enable-shared (after you have cleaned up the prefix you were using)
[12:38:44 CEST] <JEEBsv> and you should have your shared libraries :P
[12:38:50 CEST] <nifker> ok
[12:39:45 CEST] <JEEBsv> do note that shared libraries with a prefix that isn't used by default will be less simple, but PKG_CONFIG_PATH and LD_LIBRARY_PATH should help you through it :P
[12:39:52 CEST] <JEEBsv> at least until FFmpeg
[12:40:07 CEST] <JEEBsv> after that it depends on how retarded things you were wishing to compile
[12:40:38 CEST] <nifker> that means I can change this: --pkg-config-flags="--static" to --pkg-config-flags="--shared"?
[12:42:57 CEST] <JEEBsv> I'm not sure you have to poke that at all if the stuff you want to use only has a single version
[12:43:29 CEST] <JEEBsv> that's generally meant for cases where you want one specific type of library when you have multiple
[12:46:24 CEST] <maquefel> hi all - can someone point me to a guide to pts (library api,c) ? Applied pts values to packets but still get 'No pts value from demuxer to use for frame! pts after filters MISSING' when playing output file with mplayer.
[12:47:27 CEST] <JEEBsv> see the examples dir, there's a muxing example
[12:47:51 CEST] <JEEBsv> https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples
[12:50:17 CEST] <maquefel> ty - i should switch to OutputStream - from fwrite or it doesn't matter ?
[12:52:37 CEST] <JEEBsv> unless you have a hard reason you should use the AVIO framework available for writing data :P
[12:53:13 CEST] <JEEBsv> if you have special needs you can always implement your own AVIO thingy (you will need to basically give the API the functions to call for various needs)
[12:53:25 CEST] <JEEBsv> but to be honest I have no fucking idea what you meant with that :P
[12:54:36 CEST] <maquefel> =)
[12:55:10 CEST] <maquefel> by fwrite i meant '  ret = avcodec_encode_video2(c, &pkt, frameRGB, &got_output);' &&       fwrite(pkt.data, 1, pkt.size, f);
[12:56:35 CEST] <JEEBsv> congratulations, you might want to actually use libavformat to write it :P
[12:56:44 CEST] <JEEBsv> see the muxing-related examples
[12:57:05 CEST] <maquefel> ty
[12:57:26 CEST] <JEEBsv> so yeah, you probably had a pts until it went to the encoder and then you just stick that raw bitstream frame into a file :P
[12:57:36 CEST] <JEEBsv> and raw bit streams generally lack PTS
[12:57:42 CEST] <JEEBsv> just use a container for eff's sake
[12:58:52 CEST] <JEEBsv> of course you will have to take into account that the timescale of the container is not the same as what you had in the video encoder (it can be more limited), but you should be able to see the rescaling examples in the muxing-related examples
[13:03:13 CEST] <maquefel> thanks for detailed and comprehensive advice
[14:13:57 CEST] <Kart__> I'm trying to combine an rtmp livestream containing only audio with a static image looping video (x264 video containing an image loop).
[14:14:41 CEST] <Kart__> This is being combined by ffmpeg on the nginx rtmp server. My current commands are -
[14:15:25 CEST] <Kart__>    exec /usr/local/bin/ffmpeg -loop 1 -i http://s3-ap-southeast-1.amazonaws.com/[]/$name.jpg -c:v libx264 -r 30 -pix_fmt yuv420p -x264opts nal-hrd=cbr:force-cfr=1:keyint=30 -b:v 320k -maxrate 400k -bufsize 400k -f flv rtmp://localhost/liveCombine/$name;           application liveCombine {              live on;              record off;              exec /usr/local/bin/ffmpeg -i rtmp://localhost/$app/$name -i rtmp://localhost/liveAudio
[14:16:17 CEST] <Kart__>     exec /usr/local/bin/ffmpeg -i rtmp://localhost/$app/$name -i rtmp://localhost/liveAudio/$name -map 0:v:0 -map 1:a:0 -acodec copy -vcodec copy -f flv rtmp://a.rtmp.youtube.com/live2/$name;
[14:47:36 CEST] <zhanshan> if I installed ffmpeg in ~/bin/ffmpeg how can I execute it by simply writing 'ffmpeg' instead of always writing '~/bin/ffmpeg'?
[14:49:52 CEST] <JEEBsv> add it to PATH
[14:50:00 CEST] <JEEBsv> for example in your dot-bashrc
[14:50:16 CEST] <JEEBsv> export PATH=${PATH}:${HOME}/bin
[14:50:53 CEST] <JEEBsv> after that as your terminal gets reloaded it should now be in PATH
[14:58:29 CEST] <relaxed> probably want home bin before system's path
[15:09:04 CEST] <JEEBsv> and yes if you have multiple ffmpegs then either that or remove the system one
[15:09:17 CEST] <JEEBsv> yuo can check with which ffmpeg basically
[18:06:50 CEST] <maquefel> JEEBsv: thanks - i succeded with the task completely, now i should read the video also with ffmpeg lib
[18:36:39 CEST] <livingBEEF> so after trimming and some audio, changing tempo differently in different segments and then using concat filter, it plays correctly in mpv, but not some for example FF html5 player or vlc. My guess is that the timestamps are unchanged after trimming or something like that, but I could not find audio filter that would fix that...
[18:36:58 CEST] <livingBEEF> *after trimming some audio
[18:38:56 CEST] <livingBEEF> disregard that, I didn't notice that setpts is not video filter only...
[18:39:02 CEST] <livingBEEF> that should work
[18:45:24 CEST] <livingBEEF> yup, asetpts worked
[18:46:21 CEST] <thomedy> hello.... i can ffmpeg -i input -c:v libx264 output from command line but if i do it from php iget nothing
[18:46:29 CEST] <thomedy> and i am doing -y and also &
[18:48:13 CEST] <techtopia> http://i.imgur.com/vPiZemg.jpg
[18:48:20 CEST] <techtopia> what just happened to my encode ^
[18:48:25 CEST] <techtopia> never seen it do that before
[19:05:00 CEST] <ChocolateArmpits> thomedy: Are you sure you don't have to use a call operator for running outside applications  in php?
[19:06:15 CEST] <ChocolateArmpits> techtopia: ok did some googling, php uses the term execution operators
[19:06:21 CEST] <ChocolateArmpits> you have to wrap your command in backticks
[19:06:28 CEST] <ChocolateArmpits> `ffmpeg -i ...`
[19:06:39 CEST] <ChocolateArmpits> http://php.net/manual/en/language.operators.execution.php
[19:11:35 CEST] <techtopia> it's never happened before ChocolateArmpits and i've been using my script for a long time
[19:11:41 CEST] <techtopia> it just happened mid encode
[19:11:57 CEST] <techtopia> looks like it's still working but the reporting just went weird
[19:12:18 CEST] <ChocolateArmpits> techtopia: sorry can't give input on this exactly
[19:12:20 CEST] <techtopia> the 00000000000000000000000000000000000001size= stuff
[19:12:30 CEST] <techtopia> thats never shown up before
[19:17:55 CEST] <techtopia> yeah
[19:18:06 CEST] <techtopia> the encode finnished and doesn't appear to have any issues
[19:18:20 CEST] <techtopia> so it was just a glitch the matrix
[19:24:41 CEST] <gouessej> Hi
[19:25:06 CEST] <gouessej> I can't use the FTP account of ffmpeg, I get an http 421 error
[23:52:48 CEST] <ac_slater_> hey guys, I've been stuck on this for a while. I want to avoid find_stream_info since I know every detail about the streams. Currently, I open some RTSP sources and find_stream_info makes me always get a 1-2 second delay
[23:53:08 CEST] <ac_slater_> any clues on how to PRE-setup some streams for an input?
[00:00:00 CEST] --- Mon Jun 15 2015


More information about the Ffmpeg-devel-irc mailing list