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

burek burek021 at gmail.com
Sun Oct 8 03:05:01 EEST 2017


[00:13:06 CEST] <llogan> LiftLeft: i mentioned xwininfo, not xpdyinfo
[00:14:09 CEST] <LiftLeft> oh
[00:19:00 CEST] <LiftLeft> llogan: do I gave ffmpeg somehow?
[00:19:05 CEST] <LiftLeft> *give
[00:20:02 CEST] <LiftLeft> llogan: do I give ffmpeg the window's hex number, somehow?
[00:35:23 CEST] <llogan> you can click the window and xwininfo will provide info
[00:35:38 CEST] <llogan> LiftLeft: ^
[00:36:35 CEST] <LiftLeft> I know that
[00:36:42 CEST] <LiftLeft> what do I give ffmpeg?
[00:36:47 CEST] <llogan> or provide name or id....
[00:36:57 CEST] <llogan> geometry as shown in the second link i gave you
[00:39:36 CEST] <LiftLeft> how do I give it the id?
[00:43:24 CEST] <llogan> what's "it"?
[00:43:32 CEST] <LiftLeft> ffmpeg
[00:44:19 CEST] <llogan> you can't
[00:44:43 CEST] <LiftLeft> ?
[00:45:27 CEST] <LiftLeft> am I suppose to crop it or something?
[00:45:28 CEST] <llogan> you can only provide display number, screen number, x, y, width, height.
[00:46:10 CEST] <LiftLeft> I need to stream a minimized window
[00:46:31 CEST] <llogan> i don't think you can do that with x11grab as far as i know
[00:46:36 CEST] <LiftLeft> ok
[00:46:58 CEST] <LiftLeft> what command line program should I use to stream?
[00:47:14 CEST] <llogan> i don't know
[00:58:38 CEST] <LiftLeft> I think I can just use obs
[00:58:45 CEST] <LiftLeft> command parameters
[01:24:49 CEST] <jerome-> I'm looking for help to stream my usb webcam to youtube
[01:25:13 CEST] <jerome-> anyone tried?
[01:30:55 CEST] <LiftLeft> jerome-: use obs
[01:31:40 CEST] <jerome-> the camear is on pi, with no screen
[01:32:15 CEST] <LiftLeft> I dunno
[01:38:17 CEST] <llogan> jerome-: omx may be your best bet
[01:38:41 CEST] <llogan> make sure your ffmpeg is compiled with --enable-omx-rpi
[01:39:29 CEST] <jerome-> thanks, I'm looking into that
[01:46:17 CEST] <llogan> jerome-: http://trac.ffmpeg.org/wiki/EncodingForStreamingSites may be of use, but it has no OpenMax info
[02:47:44 CEST] <cryptodechange> If aq-strength 'Reduces blocking and blurring in flat and textured areas', why is it lower for the animation preset which makes use of a lot of 'flat areas'
[02:48:06 CEST] <cryptodechange> Is it because it's overkill and unnecessary, and lower values uses less bitrate?
[03:11:38 CEST] <BunnyHelp_> so, erm
[03:12:02 CEST] <BunnyHelp_> i've been having an issue with extracting subtitles from an mp4
[03:12:10 CEST] <BunnyHelp_> "Unsupported codec with id 100359 for input stream 3"
[03:12:31 CEST] <BunnyHelp_> is this chat even alive? :p
[03:17:12 CEST] <DHE> it's been 10 minutes since you joined... geez...
[06:48:37 CEST] <rabbe> how to remove ffmpeg completely, no matter how it was installed?
[07:21:32 CEST] <tdr> that is an impossible question
[08:13:47 CEST] <akkad> not really
[08:14:35 CEST] <akkad> `which ffmpeg` + ldd should dtrt
[08:18:37 CEST] <hiihiii> hello
[08:19:10 CEST] <hiihiii> I'm trying to stream to youtube but always get
[08:19:23 CEST] <hiihiii> RTMP_Connect0, failed to connect socket. 111 (Connection refused)
[08:20:00 CEST] <hiihiii> rtmp://a.rtmp.youtube.com/live2/<PASS>: Unknown error occurred
[08:20:26 CEST] <hiihiii> it used to work but no. hm?
[08:21:09 CEST] <hiihiii> ffmpeg -re -i test.mp4 -threads 1 -c copy -f flv rtmp://a.rtmp.youtube.com/live2/<PASS>
[08:23:06 CEST] <diverdude> Hi, i have to encode a 4200×2800 grayscale uint8 using h264. At what framerate will the h264 implementation in ffmpeg allow me to encode this signal?
[08:28:20 CEST] <hiya> how I use ffmpeg to convert videos to webm?
[08:28:43 CEST] <hiya> keep the same or comparable audio/video quality?
[08:28:54 CEST] <hiya> but when I use the command, it said something about audio
[08:29:18 CEST] <hiya> [libopus @ 0x55c8c3b72020] No bit rate set. Defaulting to 96000 bps.
[08:29:54 CEST] <hiya> 96 kb/s is much lower than source Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s
[08:30:08 CEST] <hiya> and now it is becoming Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, s16, 96 kb/s
[11:34:26 CEST] <dan3wik> Can ffmpeg download twitch streams?
[11:49:55 CEST] <durandal_1707> yes
[12:28:01 CEST] <diverdude> Hi, i have to encode a 4200×2800 grayscale uint8 using h264. At what framerate will the h264 implementation in ffmpeg allow me to encode this signal?
[12:30:52 CEST] <Sharkigator> i guess the framerate is up to you?
[17:46:19 CEST] <ren0v0> Hi, i'm trying to convert .mkv to .mp4 to play on LG TV, but i'm getting this error   >  Could not find tag for codec truehd in stream #1, codec not currently supported in container
[17:48:19 CEST] <DHE> mp4 doesn't support all codecs. you'll have to transcode the video to another codec (most likely h264)
[17:50:23 CEST] <ren0v0> DHE, maybe i should provide my problem in another way then. My LG tv will play this .mkv file, its 4k HEVC. However, it gives an error about the audio (but video plays). How can i convert my file so it will play, i guess i want to reencode the audio or something
[17:50:45 CEST] <DHE> oh.. if it supports mkv then that's great. just convert the audio to something it supports...
[17:50:52 CEST] <ren0v0> i tried "-vcodec copy -acodec aac -strict -2 -b:a 384k output.mp4", but get this error > [aac @ 0x24c68a0] Unsupported number of channels: 8
[17:51:07 CEST] <DHE> 8 channels?
[17:51:10 CEST] <ren0v0> The audio is ATMOS
[17:51:11 CEST] <JEEB> 7.1 I guess
[17:51:12 CEST] <BtbN> well, the 8 channels are probably why your TV does not like the audio
[17:51:14 CEST] <ren0v0> yea :S
[17:51:21 CEST] <DHE> also strict -2 isn't needed since the current versions of ffmpeg.
[17:51:27 CEST] <JEEB> switch to 5.1 or so?
[17:51:31 CEST] <ren0v0> DHE ok i just found it on SO
[17:51:45 CEST] <JEEB> of course
[17:51:46 CEST] <JEEB> lol
[17:51:50 CEST] <ren0v0> :D
[17:51:58 CEST] <ren0v0> How can i "switch to 5.1" ?
[17:52:03 CEST] <JEEB> anyways, -af "format=5.1"
[17:52:05 CEST] <JEEB> I think
[17:52:18 CEST] <JEEB> that should downmix the 7.1 to 5.1
[17:52:25 CEST] <ren0v0> So would i use -codec  copy -af "format=5.1"  ?
[17:52:35 CEST] <JEEB> and then the -c:a aac
[17:52:36 CEST] <DHE> -af aformat=channel_layouts=[checking]
[17:52:44 CEST] <JEEB> I think it's called 5.1
[17:53:00 CEST] <JEEB> that much i remember checking
[17:53:04 CEST] <JEEB> for the channel layouts
[17:53:21 CEST] <e38383> if it's just a tv and you only need stereo you can also just use -ac 2 (audio channels)
[17:53:29 CEST] <JEEB> yea
[17:53:59 CEST] <DHE> yeah, "5.1" is a valid value
[17:54:04 CEST] <DHE> or "stereo" for 2-channel
[17:54:59 CEST] <JEEB> yup
[17:55:16 CEST] <JEEB> e38383: I prefer setting the output channel layout instead of just channel count
[17:56:04 CEST] <e38383> JEEB: definitly sounds like the better idea, I just wanted to provide a quick solution (one that's easier to remember)
[17:56:33 CEST] <ren0v0> -af is frames, is that actually right ?
[17:56:39 CEST] <DHE> "audio filter"
[17:57:36 CEST] <ren0v0> it doesn't like this  >  -vcodec copy -af "format=5.1" -c:a aac -b:a 384k output.mp4    says 5.1 is unsupported
[17:57:50 CEST] <ren0v0> sorry these filters are way over my head
[17:58:16 CEST] <DHE> aformat=channel_layouts=5.1
[17:58:17 CEST] <BtbN> Doesn't format expect a video pixel format?
[17:58:25 CEST] <DHE> there's distinct filters for audio and video
[17:58:58 CEST] <DHE> filters whose names begin with 'a' are often audio filters that have a similar behaviour to their video counterparts
[17:59:02 CEST] <ren0v0> DHE, aformat=channel_layouts=5.1: Invalid argument
[18:00:27 CEST] <DHE> works for me... maybe you have an old version?
[18:01:14 CEST] <ren0v0> can you paste full command ?
[18:01:31 CEST] <BtbN> 384k for aac is also super exzessive
[18:01:32 CEST] <ren0v0> o wait, i'm doing mp4 maybe thats why :D
[18:01:51 CEST] <DHE> BtbN: if it's 5.1, it's not so bad.. for stereo, yes
[18:01:51 CEST] <JEEB> no
[18:01:55 CEST] <JEEB> mp4 is just fine
[18:02:01 CEST] <BtbN> oh, right. It's tons of channels
[18:02:04 CEST] <JEEB> the container can take AAC and AVC
[18:02:06 CEST] <BtbN> yeah, probably fine then
[18:02:27 CEST] <ren0v0> this is version  7:2.8.11-0ubuntu0.16.04.1
[18:02:33 CEST] <JEEB> yea, that's old
[18:02:33 CEST] <BtbN> that's ancient
[18:02:39 CEST] <ren0v0> ah ok let me update
[18:03:05 CEST] <DHE> ren0v0: using a test video with no sound as input and generated silence for audio: ./ffmpeg_g -f lavfi -i anullsrc -i test2.mp4 -shortest -af aformat=channel_layouts=5.1 -c:a aac -b:a 384k -c:v copy test4.mp4
[18:04:11 CEST] <ren0v0> ok running now :)
[18:04:43 CEST] <ren0v0> is AAC the best codec when original is ATOM TrueHD ?
[18:04:46 CEST] <ren0v0> ATMOS*
[18:04:56 CEST] <ren0v0> Dolby Atmos TrueHD 7.1 @ 3951 kbps
[18:05:01 CEST] <ren0v0> i want to keep as much of original as possible
[18:05:04 CEST] <DHE> that's not relevant. the objective is a codec highly likely to be supported by a TV
[18:05:33 CEST] <ren0v0> Well to be honest i don't know why TV cares because it should be passing through to my AMP which supports the lot
[18:05:41 CEST] <ren0v0> ah, but not over optical
[18:05:52 CEST] <ren0v0> well ARC doesn't work so i dont have a choice
[18:34:34 CEST] <Johnjay> i have no idea what codecs my tv supports
[18:39:11 CEST] <DHE> typically mpeg2, h264 and if 4k add h265
[18:39:32 CEST] <DHE> those are what are used in broadcast for the mostpart. anything on top of that is a bonus. maybe mpeg4/divx/xvid
[18:43:03 CEST] <JEEB> mpeg-4 part 2 over broadcast is something I've seen and I've actually WTF'd at a few times
[18:43:22 CEST] <JEEB> of course end users won't be seeing those internal things
[18:43:25 CEST] <JEEB> but still
[18:43:26 CEST] <JEEB> lol
[18:43:40 CEST] <JEEB> "things you'd think you'd never see in the wild"
[18:47:14 CEST] <thebombzen> yuvJ444p
[18:52:02 CEST] <DHE> I have a settopbox that supports vp9. or so the manual says. intended for youtube. no idea if it supports 4k on it
[20:09:53 CEST] <ren0v0> DHE after a long while i got this  [matroska,webm @ 0x5621e57c4720] Read error time=01:46:06.01 bitrate=31244.5kbits/s speed=5.06x   :(
[20:09:58 CEST] <ren0v0> any ideas?
[20:11:14 CEST] <e38383> I guess the file is truncated
[20:11:58 CEST] <ren0v0> how do you mean? the original ?
[20:56:21 CEST] <hiihiii> I'm trying to stream over youtube -re -i input.mp4 -threads 1 -c copy -f flv rtmp://a.rtmp.youtube.com/live2/key-key-key-key but I'm getting :
[20:57:18 CEST] <hiihiii> https://thepasteb.in/p/66hVYmOZQ1rFW
[21:06:40 CEST] <furq> JEEB: i thought i would let you know that i literally just figured out that you meant i could do crop,copy,zscale
[21:06:43 CEST] <furq> so thanks
[21:08:39 CEST] <hiihiii> also when I run this command from my other machine it runs ok
[21:09:03 CEST] <furq> is it the same input file
[21:09:13 CEST] <hiihiii> yes
[21:09:44 CEST] <hiihiii> same command same everything
[21:11:50 CEST] <hiihiii> wait... IIRC I read it doesn't support stream copy?!
[21:12:20 CEST] <hiihiii> well the other command worked so... idk
[21:14:56 CEST] <furq> it supports stream copy if the input file has the right codecs
[22:16:29 CEST] <Johnjay> crap i don't think i have the flite filter on my zaranoe build on windows
[22:17:54 CEST] <Johnjay> yeah no such filter
[22:18:29 CEST] <Johnjay> i wanted to take the youtube vids i'm downloading the au dio for
[22:18:39 CEST] <Johnjay> And add a small text-to-speech at the start saying the title
[22:20:25 CEST] <vpb1099> hello, could anyone tell me how to attenuate 20 dB every frequency above 8hkz, it looks like i should use https://ffmpeg.org/ffmpeg-filters.html#lowpass but i dont quite understand its parameters
[22:20:45 CEST] <vpb1099> *from every frequency
[22:41:04 CEST] <kiroma> How can I pass "-fno-strict-aliasing"?
[22:41:46 CEST] <kiroma> I'm compiling with --enable-lto, and gcc is throwing warnings that code may be misoptimized unless -fno-strict-aliasing is passed.
[22:42:01 CEST] <kiroma> But adding it to CFLAGS/CXXFLAGS/LDFLAGS doesn't fix it.
[22:42:22 CEST] <furq> kiroma: --extra-cflags
[22:43:03 CEST] <kiroma> That's what I did.
[22:43:47 CEST] <Brendan_> Hi. I'm looking to try speed up my H.264 transcoding (I am using windows). I was hoping to use Intel QSV and have installed the community edition of their Media Server Studio. I do not have the skills to compile ffmpeg from source. What are my options?
[22:44:14 CEST] <kiroma> Do you have an NVidia/AMD GPU?
[22:44:37 CEST] <Brendan_> Testing on my laptop... Intel CPU only
[22:45:42 CEST] <jkqxz> If you are on Windows, use the builds from Zeranoe.  If you are on Linux, build from source with the distribution VAAPI stuff.
[22:46:11 CEST] <Brendan_> Ok let me try that. Thanks
[22:46:59 CEST] <kiroma> Use codec h264_qsv
[22:47:22 CEST] <kiroma> This codec should utilize Intel's QuickSync video encoder.
[22:48:11 CEST] <Brendan_> Brilliant! Works
[22:48:37 CEST] <Brendan_> Thanks... used Zeranoe build
[22:54:17 CEST] <furq> is ffmpeg's ac3 encoder any good
[22:54:44 CEST] <furq> i notice aften was forked from ffmpeg and then hasn't been updated for six years, so i'm guessing ffmpeg is better than aften now
[22:54:46 CEST] <durandal_1707> its the best
[22:59:25 CEST] <furq> i'm going to assume that's not sarcasm because it would make my life a lot easier if it isn't
[23:01:02 CEST] <atomnuker> no, the opposite, aften was merged into ffmpeg
[23:01:16 CEST] <furq> it was split from ffmpeg first wasn't it
[23:01:19 CEST] <atomnuker> nope
[23:01:32 CEST] <furq> http://aften.sourceforge.net/
[23:01:35 CEST] <furq> The Aften project started as a stand-alone commandline version of the FFmpeg AC-3 encoder.
[23:02:01 CEST] <durandal_1707> later merged and aften abandoned
[23:02:04 CEST] <furq> but yeah i noticed from the commit history that it all got merged back in after aften died
[23:03:21 CEST] <furq> that's good, it saves me pissing about with eac3to
[23:10:25 CEST] <vpb1099> how to calculate octaves between two frequencies ?
[23:14:17 CEST] <kiroma> Can you enable mfx on Ubuntu, or does Intel's SDK not support it?
[23:15:41 CEST] <durandal_1707> vpb1099: i found something on google
[23:16:23 CEST] <vpb1099> durandal_1707: i could not
[23:16:59 CEST] <durandal_1707> http://www.daqarta.com/dw_0moo.htm
[23:18:21 CEST] <vpb1099> durandal_1707: thank you
[23:18:36 CEST] <kiroma> On which version of Intel's SDK has ffmpeg based?
[23:21:53 CEST] <BtbN> none.
[23:22:07 CEST] <jkqxz> kiroma:  It is strongly recommended not to use libmfx on Linux.  It is only suitable for some constrained server setups, and there is little to recomment it even then.
[23:22:14 CEST] <BtbN> also, you don't want to deal with Intels stuff on Linux. It's bad enough on Windows
[23:22:51 CEST] <kiroma> Oh
[23:23:04 CEST] <kiroma> I could've asked before I installed their "sdk"
[23:23:24 CEST] <BtbN> you also need to patch your kernel for the SDK to work
[23:23:30 CEST] <BtbN> and some system libs
[23:23:31 CEST] <kiroma> Oh god
[23:24:13 CEST] <BtbN> vaapi just works, there is really no reason to deal with the qsv stuff on linux
[23:24:35 CEST] <kiroma> vaapi works with Intel's iGPUs?
[23:25:06 CEST] <BtbN> Not sure what you mean, it only works with Intel GPUs, and I don't think they have anything that's not called an iGPU?
[23:25:39 CEST] <kiroma> Oh, I thought it was AMD's API.
[23:25:58 CEST] <kiroma> iGPU is an abbrevation of ingtegrated GPU.
[23:25:59 CEST] <BtbN> some of the open source drivers also implement it in parts
[23:26:15 CEST] <BtbN> but it only really works reliably on Intel GPUs
[23:45:36 CEST] <kiroma> When I try to use vaapi it throws an error.
[23:46:21 CEST] <kiroma> https://pastebin.com/5a0HLWMy
[23:47:41 CEST] <jkqxz> kiroma:  <https://trac.ffmpeg.org/wiki/Hardware/VAAPI>
[23:48:24 CEST] <kiroma> Oh, thanks.
[23:53:29 CEST] <kiroma> -init_hw_device fails and I have renderD128 and renderD129.
[23:54:28 CEST] <jkqxz> Post log somewhere.
[23:54:30 CEST] <vpb1099> how does ffmpeg's equalizer works, will gain=-20 clip everything above 0.1 ?
[23:55:15 CEST] <kiroma> https://pastebin.com/cbzVKizv
[23:56:04 CEST] <jkqxz> You installed the media SDK.  Don't do that, it breaks the normal stuff.
[23:56:16 CEST] <kiroma> Oh god
[23:56:40 CEST] <jkqxz> Also it isn't a package, so you need to track down the stuff it created and remove it.
[23:56:50 CEST] <kiroma> Yeah I know.
[23:56:56 CEST] <kiroma> It's going to be painful
[00:00:00 CEST] --- Sun Oct  8 2017


More information about the Ffmpeg-devel-irc mailing list