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

burek burek021 at gmail.com
Sat Nov 28 02:05:01 CET 2015


[01:33:06 CET] <NoNet> This works: ffmpeg -i input.mkv -vf "subtitles=filename=input.mkv,scale=hd480" -c:v libx264 -crf 20 -c:a aac -strict experimental -b:a 192K ouput.mp4
[01:34:26 CET] <NoNet> I have one problem left. The input file has chapter information in it and the output file ends up also with the chapter titles burned in. How can I suppress that?
[01:39:03 CET] <klaxa> NoNet: if you know what streams you want in your output (e.g. only audio and video) you can use -map to strip everything but those streams
[01:39:05 CET] <furq> NoNet: -map_chapters -1
[01:39:11 CET] <klaxa> i.oh, that seems easier
[01:40:17 CET] <NoNet> Ahhh. I remember reading about that but didn't make the connection to this instance. Thank you.
[01:40:46 CET] <furq> on which note
[01:41:00 CET] <furq> is there any way to get ffmpeg to take input from an IFO file
[01:41:18 CET] <furq> or some tool that will and produces output i can pipe to ffmpeg
[02:21:52 CET] <c_14> furq: the dvdsub decoder has a -ifo_palette option
[02:36:29 CET] <furq> i was thinking more along the lines of PGCs and chapter markers
[02:37:41 CET] <furq> i'm pretty sure ffmpeg has nothing but i figured there might be a tool that i could pipe to ffmpeg
[04:50:43 CET] <Prelude_Zzzzz> hey everyone.. good evening.. testing out some GPU ( NVENC ) encoding ... ran through and have 2 processes running.. one to get the signal and then i tee off to 2 process for encoding. The question i have is .... i was using 100% cpu for the 2 sessions.. i recompiled ffmpeg with yasm and now its only 60% usage of cpu
[04:51:01 CET] <Prelude_Zzzzz> any way to lower cpu usage even further ? and what does yasm do ? i can't find a real good detail for it
[06:09:24 CET] <waressearcher2> Prelude_Zzzzz: hallo
[06:39:49 CET] <jxself> Hello, I am trying to build ffmpeg from git (as opposed to using 2.8.2) so as to get support for libvpx 1.5. It seems I am only able to build it if I do not use --enable-libass. See http://dpaste.com/1CF7PQ0 Am I doing something wrong?
[06:46:06 CET] <jxself> I am able to succesfully build 2.8.2 in the same way, but with only libvpx 1.4.
[06:58:41 CET] <grambo> hey guys, I'm having some trouble building and install ffmpeg on fedora 23
[06:58:59 CET] <grambo> i followed the guide here https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
[06:59:16 CET] <grambo> and supposedly it's installed now
[06:59:57 CET] <grambo> but when I do a search from bash: search -name "ffmpeg" it only returns folders, and the folders don't contain anything that looks like an executable
[07:00:15 CET] <grambo> searching from root folder
[07:00:54 CET] <grambo> where should I expect ffmpeg to be installed on fedora?
[07:09:15 CET] <waressearcher2> jxself: hallo
[07:09:23 CET] <waressearcher2> grambo: wie geht's ?
[07:09:53 CET] <jxself> Ahoy there, waressearcher2.
[07:10:34 CET] <grambo> waressearcher2: ?
[07:10:45 CET] <dsl420> grambo, search? i would do find / -iname "ffmpeg"
[07:11:05 CET] <grambo> dsl420: sorry i ment find
[07:12:03 CET] <furq> according to that guide it's in $HOME/ffmpeg_build
[07:13:05 CET] <grambo> its definitely not there
[07:13:19 CET] <grambo> that folder is setup like it should be there
[07:13:40 CET] <grambo> it has a bin folder, lib folder, shares folder
[07:13:51 CET] <grambo> but in the bin directory there is only a single folder
[07:13:53 CET] <grambo> no files
[07:14:02 CET] <grambo> im thinking something went wrong with the build
[10:31:54 CET] <nindustries> Hi
[10:31:54 CET] <nindustries> Is there any hardware out yet capable of h265 hardware acceleration ?
[10:32:36 CET] <nindustries> I'm thinking in terms of transcoding video
[10:34:19 CET] <JEEB> for PCs there's intel's skylake and nvidia's 960 and latter (as in, released after the 960 - which doesn't include the 970/980)
[10:34:20 CET] <JEEB> for SoCs there should be plenty of decoding capable ones
[10:36:05 CET] <nindustries> Skylake. hm
[10:46:23 CET] <nindustries> Does ffmpeg use hardware accell. at all by default ?
[10:46:41 CET] <nindustries> I read somewhere quicksync gave quality degradation
[10:47:46 CET] <bove> I'm trying to slow down a 120fps clip to 25 using the following: -r 25 -filter:v 'setpts=N/(25*TB)'
[10:51:05 CET] <bove> According to the wiki, setpts=4.8*PTS should also work, but has no effect: https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
[10:55:55 CET] <JEEB> nindustries: decoding of AVC and HEVC should be bit-exact, encoders are a completely different ballpark as it depends on what the ASICs are configured to do
[10:56:01 CET] <nindustries> I see
[10:56:36 CET] <JEEB> usually ASICs are meant for fast/low latency
[10:56:37 CET] <JEEB> while that is not always what you want (or you can get similar speeds with CPU encoders with better compression)
[11:03:54 CET] <bove> Trying -vsync passthrough now, but that gives me "Non-monotonous DTS in output stream" and VLC will not play it correctly
[11:13:31 CET] <relaxed> bove: -r 25 before the input will slow it down without losing frames
[12:37:22 CET] <rls> hi
[12:37:57 CET] <rls> would there be a way of preventing the loads error messages saying: decode_slice_header error  no frame!  non-existing PPS 0 referenced
[12:38:29 CET] <rls> I expect that to be because ffmpeg expects a keyframe, but what it fetches first from udp is iframes
[13:13:04 CET] <bove> relaxed: Well... that was simple. Is there an easy way to stretch the audio accordingly?
[14:09:58 CET] <jokoon> hello
[14:10:48 CET] <jokoon> how do you speed up a video, without an pro software ? I tried with avidemux without success.
[14:10:56 CET] <jokoon> don't know where to ask
[14:13:27 CET] <waressearcher2> jokoon: hallo
[14:13:49 CET] <jokoon> hi
[14:14:19 CET] <jokoon> I tried the filters stuff
[14:14:25 CET] <jokoon> doesn't do anything]
[14:14:55 CET] <waressearcher2> jokoon: wie geht's ?
[14:15:37 CET] <jokoon> sorry I don't speak german
[14:19:28 CET] <waressearcher2> jokoon: -filter:v setpts=0.1*PTS ?
[14:21:42 CET] <jokoon> without the ffmpeg command line
[14:27:53 CET] <dantti> can ffmpeg static link against x264 so it does not fail finding the codec? I trying to link it to my app but I guess it still looks for sth which I don't know
[14:30:42 CET] <dantti> I added --enable-gpl and --enable-static but I guess that matters more to ffmpeg itself
[14:36:15 CET] <waressearcher2> dantti: hallo
[14:52:34 CET] <Kwoth> Hello, i have a problem regarding ffmpeg. Im trying to get PCM data from a mp3 file. http://pastebin.com/raw.php?i=e5QZbJYv This is my current code. First i am unsure about the data im getting, because there is some ffmpeg text at the start and the end, and i need only raw PCM data
[14:53:09 CET] <Kwoth> Can someone help me ragarding this issue?
[14:53:59 CET] <Kwoth> I am using .net, C#
[14:54:14 CET] <waressearcher2> Kwoth: hallo
[14:54:40 CET] <durandal_1707> put -i mp3 at start after ffmpeg
[14:56:44 CET] <durandal_1707> Kwoth: ^
[14:57:29 CET] <Kwoth> hey, thanks so, remove last -i and add -i mp3 after ffmpeg?
[14:59:11 CET] <durandal_1707> yes,-i 1.mp3
[15:32:36 CET] <Kwoth> durandal_170: seems i got raw pcm data, but how can i know what is the size of the block in order to send it
[15:32:51 CET] <Kwoth> i tried some random values, sound is very choppy and slowed down
[15:47:09 CET] <durandal_170> it must be multiple of 4
[15:48:09 CET] <durandal_170> if it is stereo
[15:55:18 CET] <jje_> Greetings. I have an issue with ffmpeg in that it does not seem to keep the source's 60fps through to the output.
[15:55:38 CET] <jje_> I have 4 mov files in 60fps that I am merging into one by using complex_filter and overlay. However, the output file's motion looks like 25fps.
[15:55:56 CET] <jje_> The content is a scrolling text, so it's easy to spot the difference in 'fluid motion'. I have tried different settings, including defining -r "60" for both input and output and encoding to different codecs. When encoding, ffmpeg shows it's duplicating frames to create the 60fps output, but as all the inpit files are 60fps, it shouldn't duplicate anything.
[16:05:54 CET] <jje_> fflogger: http://pastie.org/10584234
[16:06:40 CET] <jje_> This command outputs a 60fps file, but some conversion must occur since the output is not as fluid as the input.
[16:12:52 CET] <styler2go> Why is ffmepg never using full cpu utilization? It always just takes arounf 30-50% on mine
[16:28:23 CET] <DHE> because data isn't coming in fast enough, typically
[16:28:39 CET] <c_14> Also depends on the codecs
[16:28:42 CET] <c_14> And filters
[16:28:42 CET] <DHE> or going out, for example if saving high bitrates to slow media
[16:32:44 CET] <styler2go> i am conveting mp4 to webm but it is sooo slow
[16:32:52 CET] <styler2go> but at the same time not sressing the cpu
[16:33:13 CET] <styler2go> feels like it could be much faster if it'd use all cou power
[16:40:15 CET] <kepstin> styler2go: how are you measuring cpu usage? it's likely that the libvpx encoder is maxing out one or two cpu cores, and not using all cores of your multi-core cpu.
[16:40:53 CET] <kepstin> you could try using the '-threads' parameter with a larger value, but i'm not really sure it would gain you much, the multi-threaded encoding in libvpx isn't that great iirc.
[18:35:26 CET] <philtre> Hi everyone. Im trying to build FFmpeg on Mac with https support Im getting the following error: ERROR: gnutls not found using pkg-config, although I have GnuTLS installed via Homebrew. Any ideas?
[18:41:20 CET] <DHE> need to set a PKG_CONFIG_PATH perhaps?
[19:00:15 CET] <philtre> Sorry, got disconnected.
[19:01:12 CET] <philtre> Its funny because when I do pkg-config --cflags gnutls I get the following: -I/usr/local/Cellar/gnutls/3.3.18/include -I/usr/local/Cellar/nettle/2.7.1/include -I/usr/local/Cellar/libtasn1/4.7/include
[19:02:11 CET] <philtre> So pkg-config is obviously able to locate packages installed via Homebrew
[19:02:32 CET] <c_14> upload your config.log to a pastebin service
[19:05:42 CET] <philtre> pasting&
[19:06:12 CET] <philtre> http://pastebin.com/TkfytUKR
[19:07:34 CET] <c_14> ld: library not found for -lnettle
[19:07:51 CET] <c_14> What does pkg-config --libs gnutls return?
[19:08:10 CET] <philtre> -L/usr/local/Cellar/gnutls/3.3.18/lib -lgnutls -lnettle -lhogweed -lgmp
[19:08:32 CET] <c_14> Is libnettle.so in /usr/local/Cellar/gnutls/3.3.18/lib ?
[19:08:48 CET] <c_14> .so or .a
[19:10:22 CET] <philtre> nope, cant find it, just a bunch of libgnutls*.dylib
[19:11:12 CET] <philtre> actually, I reinstalled gnutls right now
[19:11:37 CET] <philtre> Because I had modified its .pc file earlier
[19:11:58 CET] <philtre> now pkg-config --libs gnutls only returns:
[19:12:04 CET] <philtre> -L/usr/local/Cellar/gnutls/3.3.18/lib -lgnutls
[19:12:17 CET] <c_14> try running configure again
[19:14:27 CET] <philtre> ok, heres the new config.log http://pastebin.com/EfmyaFH1
[19:15:25 CET] <c_14> ld: warning: ignoring file /usr/local/Cellar/gnutls/3.3.18/lib/libgnutls.dylib, file was built for x86_64 which is not the architecture being linked (armv7): /usr/local/Cellar/gnutls/3.3.18/lib/libgnutls.dylib
[19:16:11 CET] <philtre> hmm, interesting
[19:16:45 CET] <philtre> So, does that mean I should try to build gnutls from source instead of Homebrew?
[19:17:04 CET] <furq> you can't use system libraries if you're cross compiling
[19:17:33 CET] <furq> unless homebrew has multiarch support
[19:18:11 CET] <philtre> That makes sense
[19:19:15 CET] <philtre> Ill try something else and check in later. Thanks a bunch!
[19:34:24 CET] <SirCmpwn> I'm having some issues setting the framerate for rawvideo
[19:35:24 CET] <SirCmpwn> I've invoked ffmpeg like so: ffmpeg -f rawvideo -framerate 30 -video_size 1280x800 -pixel_format argb -i pipe:0 -r 30 -vf vflip output.mp4
[19:35:32 CET] <SirCmpwn> but it plays back too fast when it's done encoding
[19:36:42 CET] <kepstin> are you sure the input is actually 30fps?
[19:36:54 CET] <SirCmpwn> pretty sure, yes
[19:37:12 CET] <SirCmpwn> I'm grabbing a frame and then nanosleeping for 3.3*10^7 nanoseconds
[19:37:26 CET] <SirCmpwn> this is happening in real time, fwiw
[19:38:37 CET] <SirCmpwn> code: https://sr.ht/2OD9.txt
[19:40:43 CET] <kepstin> hmm. I wonder if setting a high value for the input framerate option then using a filter "setpts=T-STARTT" to put in realtime timestamps might work.
[19:40:44 CET] <SirCmpwn> here's an example video that comes out of this: https://sr.ht/dfwd.mp4
[19:41:10 CET] <SirCmpwn> kepstin: how should I change the args to do that? just put in some ridiculous framerate, and then what does the filter look like?
[19:42:35 CET] <kepstin> the input framerate value wouldn't matter at all, you could actually remove it. add in "-filter setpts=T-START" before the output file.
[19:42:42 CET] <kepstin> no idea how well that would work, might be a bit jittery :/
[19:43:14 CET] <SirCmpwn> I tried without the input framerate too, to no avail
[19:43:17 CET] <SirCmpwn> let me give that a shot
[19:43:24 CET] <c_14> setpts=N/(30*TB) ?
[19:43:28 CET] <kepstin> oh, remove the output -r option do if you do that
[19:43:43 CET] <kepstin> I think the issue is most likely that your application isn't actually managing 30fps
[19:43:57 CET] <SirCmpwn> I'm very nearly certain it is
[19:44:05 CET] <SirCmpwn> this is a wayland compositor
[19:44:11 CET] <kepstin> since you're doing a synchronous pipe write to ffmpeg, which is pretty slow.
[19:44:20 CET] <SirCmpwn> oh, the thing could be
[19:44:23 CET] <SirCmpwn> I should not fflush every time
[19:44:27 CET] <DHE> you'd think so, but sleeping for 1/30 seconds means that all other processing must be instantaneous or you'll have drifting
[19:44:30 CET] <kepstin> pipes usually only have 16-64k buffer, so it can't write an entire frame, so the write blocks
[19:44:43 CET] <kepstin> you need to do the write asynchronously, probably with another thread.
[19:44:48 CET] <SirCmpwn> yeah, I'll also see if I can't time how long each loop takes
[19:44:52 CET] <DHE> what you might try is using an external timer (itimer, timerfd on linux) to clock against
[19:44:55 CET] <SirCmpwn> I'd rather not add another thread into this
[19:45:20 CET] <kepstin> yeah, if most of your time is waiting, timing to a reference clock rather than doing a fixed sleep would work
[19:45:45 CET] <SirCmpwn> ah, it's much better if I don't fflush every time
[19:45:51 CET] <kepstin> so sleep for (frame period - time spent writing current frame)
[19:45:58 CET] <kepstin> or so
[19:46:00 CET] <SirCmpwn> I'll add timing, I thought it might be fast enough not to bother
[19:46:08 CET] <DHE> I wrote an app using timerfd (linux only) and I really like it.
[20:09:38 CET] <SirCmpwn> hmm
[20:11:13 CET] <SirCmpwn> I changed it so that it would subtract the time spent in the loop guts from the sleep
[20:11:18 CET] <SirCmpwn> but it always comes out to zero ns
[20:11:25 CET] <SirCmpwn> even though it's clearly not
[20:13:32 CET] <SirCmpwn> https://sr.ht/RJcs.txt
[20:13:46 CET] <SirCmpwn> oh hurr
[21:00:05 CET] <Seven_Six_Two> I'm so confused. I have a mpg2 file, with a subtitle and audio stream that I don't want. I am trying to extract the video (without reencoding it) but when I do, the subtitles end up hardcoded???
[21:00:26 CET] <Seven_Six_Two> I get the video without issue, and the audio is gone, which is good. But the subs are still there, and can no longer be disabled like they can on the source
[21:00:39 CET] <Seven_Six_Two> ffmpeg -i src.mpg -map 0:2 -vcodec copy dest.mpg
[21:01:16 CET] <c_14> Seven_Six_Two: can you pastebin the complete console output of that command?
[21:01:18 CET] <BtbN> -map 0:v:0 -c:v copy -an -sn
[21:03:08 CET] <Seven_Six_Two> http://pastebin.com/w7diKykU
[21:03:53 CET] <Seven_Six_Two> BtbN, I'm not sure if that was intended for me, because it's not obvious to me what it does
[21:04:18 CET] <c_14> hmm, it looks fine to me. You could try updating your version of ffmpeg/trying with a static build
[21:04:48 CET] <Seven_Six_Two> it sort of is fine. I don't get an error.
[21:05:02 CET] <Seven_Six_Two> should that have left all subs behind?
[21:05:08 CET] <c_14> yes
[21:06:18 CET] <Seven_Six_Two> http://pastebin.com/yf0j5SBZ   info on the original file
[21:08:12 CET] <Seven_Six_Two> it started out as avi/mp3 and I extracted the mp3. Then I used handbrake to convert video to dvd compliant mpeg, and audio to mp2 (although it's wrong lang, and am going to replace it with correct stream)
[21:14:44 CET] <Seven_Six_Two> woot they're gone! Thanks all
[21:15:17 CET] <Seven_Six_Two> oh wait... dammit no they're not. they're still there.   :(
[21:15:49 CET] <c_14> Are you sure your video player isn't just doing strange things?
[21:17:01 CET] <Seven_Six_Two> in what way? there are no srt in the folder. no text files at all, actually.
[21:17:27 CET] <Seven_Six_Two> in the source, I can disable subs in the video player. in the dest, I can't.
[21:17:53 CET] <Seven_Six_Two> aaw wait.
[21:18:17 CET] <Seven_Six_Two> oh damn. sorry I'm an idiot. thanks for making me check again
[21:19:49 CET] <Seven_Six_Two> It must have been the video conversion that hardcoded them. I could have sworn they didn't, but I have to go back a step
[21:23:54 CET] <Seven_Six_Two> I accidentally converted a video in the same folder as an srt file, and my stupid program hardcoded them. Sorry to waste your time.
[00:00:00 CET] --- Sat Nov 28 2015


More information about the Ffmpeg-devel-irc mailing list