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

burek burek021 at gmail.com
Wed Apr 26 03:05:01 EEST 2017


[00:44:50 CEST] <thebombzen> what is the best swscale filter for downscaling?
[00:45:49 CEST] <thebombzen> I'm thinking it's gotta be either sinc, spline, lanczos, or gaussian
[00:50:03 CEST] <JEEB> thebombzen: just use zimg's scalers through the zscale VF (or vapoursynth) if you want proper scalers :P
[00:50:46 CEST] <thebombzen> zscale defaults to bilinear. which one should I use instead?
[00:51:23 CEST] <JEEB> whatever you want, it's all correct and thus up to one's preferences rather than anything else
[00:51:24 CEST] <thebombzen> I'm not entirely sure whether spline36, spline16, or lanczos is preferrable
[00:51:59 CEST] <thebombzen> you know how most anime is rendered in 720p and the 1080p broadcast is upscaled? I'm scaling it back down to 720p in order to save on some bitrate
[00:52:35 CEST] <thebombzen> I'd like to pick the best scaler for doing that
[00:53:05 CEST] <JEEB> it really depends on the source
[00:53:27 CEST] <JEEB> debilinear et al prolly can help with that, not sure if the zscale vf has that
[00:53:58 CEST] <furq> it doesn't
[00:54:56 CEST] <thebombzen> it only has nearest, bilinear, bicubic, and the three I listed
[00:55:07 CEST] <thebombzen> I figure I want spline36 or lanczos
[00:55:11 CEST] <JEEB> no
[00:55:22 CEST] <JEEB> because what you want is not normal downscaling
[00:55:25 CEST] <furq> apparently debilinear isn't worth using if the upscale has been recompressed
[00:55:48 CEST] <JEEB> furq: depends really, I mean all of the sources used for testing it were :P
[00:56:24 CEST] <JEEB> also not many people actually properly tried to find the correct size ratios and if it was bilinear (mostly) or bicubic or whatever
[00:56:45 CEST] <JEEB> (it doesn't help that even if it's not completely correct it looks sharp n' good)
[00:56:51 CEST] <JEEB> (when you get at least one thing right :P)
[01:00:05 CEST] <thebombzen> also why is swscale "not proper" or whatever
[01:01:47 CEST] <JEEB> swscale in general has been made before people thought doing gamma-correct scaling and various other things were worth it :P
[01:02:25 CEST] <JEEB> it will quite likely do a whole lot of stuff kind of correct and it is optimized because it was made when being fast was better than not having anything
[01:02:34 CEST] <JEEB> aand swscale in general is a mess :P
[01:02:57 CEST] <JEEB> (but it supports way too many random paletted etc colorspaces so it ain't gonna go away)
[01:03:30 CEST] <JEEB> also things like bit depths and range conversions not to even speak about bt.601/bt.709/bt.2020 or smpte st.2084 or HLG
[01:04:18 CEST] <JEEB> I don't think I need to say more than that ronald made his own VF instead of trying to make colormatrix transformations better in swscale
[01:05:54 CEST] <JEEB> (and while it might sound like I'm dissing swscale - it most definitely had its place and qualities for many years but at this point it's kind of being a thing that nobody wants to improve)
[01:07:07 CEST] <thebombzen> it seems to me that swscale is useful it you don't care
[01:07:32 CEST] <thebombzen> it seems more useful for -vf format than it does for -vf scale anyway
[01:08:00 CEST] <JEEB> format is a metafilter anyways
[01:08:33 CEST] <JEEB> if you set zscale=params,format=yuv444p it means that you want 4:4:4 out of zscale, and if zscale can't do it => swscale
[01:08:49 CEST] <JEEB> (and that's another funky thing, implicit conversions in various places vOv)
[01:09:13 CEST] <JEEB> thebombzen: and yes, if you don't care about correctness swscale is Just Fine.
[01:09:30 CEST] <JEEB> (although I'm pretty sure it still can't do full/limited range conversions correctly in many cases
[02:03:36 CEST] <james999> so does anybody know if ffmpeg can be used on windows to stream to DLNA?
[02:03:46 CEST] <james999> i think ffserver on linux might work but i'm not sure how to go about it on windows 7
[02:11:49 CEST] <thebombzen> DLNA?
[02:12:55 CEST] <james999> yeah it's a thing for streaming to xboxes and smart tvs and stuff
[02:13:08 CEST] <thebombzen> what protocol do you stream to it?
[02:13:30 CEST] <thebombzen> ffmpeg can stream unicast. ffserver is primarily a multicast tool
[02:14:18 CEST] <thebombzen> "Precisely, ffserver acts as an HTTP server, accepting POST requests from ffmpeg to acquire the stream to publish, and serving RTSP clients or HTTP clients GET requests with the stream media content."
[02:14:30 CEST] <james999> i don't know, I just read VLC player updated itself so it can act as a DLNA receiver
[02:14:40 CEST] <james999> so I've been using vlc on my phone as a test
[02:15:36 CEST] <furq> does it have to be dlna
[02:15:52 CEST] <james999> well it's whatever my xbox and android phone with vlc are using
[02:16:01 CEST] <james999> and my limited understanding is that it's called DLNA
[02:16:25 CEST] <james999> I originally went to windows 7 control panel to enable media streaming when I learned about it
[02:16:38 CEST] <james999> Then in VLC player you go to Local Network and it appears as your PC's name
[02:16:50 CEST] <andai> How does output to the terminal? I'm trying to pipe the output but it doesn't seem to be working
[02:17:08 CEST] <andai> how does ffmpeg output *
[02:17:18 CEST] <james999> i don't really know how to do what I want
[02:17:18 CEST] <furq> if you mean the status output then it goes to stderr
[02:17:26 CEST] <james999> so I was hoping to get some ideas
[02:17:31 CEST] <andai> furq: aha! that makes sense, thanks
[02:17:40 CEST] <thebombzen> james999: I googled it and it's http, dash, or rtp
[02:17:46 CEST] <thebombzen> but if so why don't you just use those directly
[02:17:52 CEST] <thebombzen> rather than DLNA which is a proprietary closed thing
[02:17:58 CEST] <thebombzen> that's designed for "member companies"
[02:18:06 CEST] <james999> well like I said I have no idea what I'm doing lol
[02:18:24 CEST] <thebombzen> what sort of streaming are you looking for? Point-to-point? or upon-request?
[02:18:28 CEST] <james999> i thought I read that ffmpeg would not go to a DLNA device even wtih rtp as the output protocol
[02:18:56 CEST] <thebombzen> do you want to take video and send it somewhere, or do you want to stream in an on-demand sense
[02:19:37 CEST] <james999> Um, I guess I'm trying to send my desktop to my tv set with an xbox on it
[02:19:43 CEST] <james999> not sure if that answers the question
[02:21:18 CEST] <james999> I think I got udp streaming to my phone working before. but i'm not sure if the xbox would see that
[02:22:30 CEST] <james999> The only thing I definitely have working is windows streaming enabled on my Videos folder, and I can use Xbox media player to load that and play files individually.
[03:31:32 CEST] <james999> hmm serviio wants a url, but i'm not sure if localhost will work
[03:34:49 CEST] <james999> is there something I can use on windows instead of ffserver?
[03:49:09 CEST] <james999> well I got vlc to stream a file locally on udp, and serviio recognized the URL, but my phone didn't play it. :(
[03:52:18 CEST] <james999> hi TheXzoron
[03:52:52 CEST] <TheXzoron> hello
[03:54:37 CEST] <james999> i don't suppose you know all about streaming, rtp, and xboxes?
[03:54:51 CEST] <james999> oh hey again thebombzen
[03:55:07 CEST] <thebombzen> #comcast internet
[03:55:15 CEST] <thebombzen> and hello
[03:56:09 CEST] <james999> right now i'm thrashing around with serviio and vlc trying to stream to udp localhost
[03:56:44 CEST] <thebombzen> are you using an mpegts container?
[03:56:51 CEST] <thebombzen> if you're trying to use raw udp you should use mpegts
[03:57:04 CEST] <thebombzen> what sort of latency are you looking for? do you care about that at all?
[03:57:16 CEST] <james999> i don't know enough to care about that at this point
[03:57:29 CEST] <thebombzen> to stream udp you can do something li ke
[03:58:30 CEST] <thebombzen> what OS are you on?
[03:58:35 CEST] <james999> windows
[03:58:40 CEST] <james999> that's why i'm not using ffserver
[03:58:44 CEST] <thebombzen> screengrabbing from windows. okay.
[03:58:47 CEST] <james999> which i read is what you need to get this to work in linux
[03:58:58 CEST] <thebombzen> you don't but okay
[03:59:09 CEST] <thebombzen> have you considered using OBS by the way
[03:59:17 CEST] <james999> yeah i have a dshow thing called UScreenCapture and I think ffmpeg can now recognize it cause I did the -list_devices magic voodoo
[03:59:57 CEST] <james999> OpenbroadcasterSoftware?
[04:00:50 CEST] <james999> By the way this is what I have now: ffmpeg -i yt.mp4 -vcodec libx264 -f flv udp://localhost:1234
[04:00:53 CEST] <thebombzen> on in that case
[04:00:56 CEST] <thebombzen> you want mpegts
[04:00:58 CEST] <thebombzen> not flv
[04:01:12 CEST] <thebombzen> ffmpeg <input video options> -c:v libx264 -preset:v superfast -tune:v zerolatency -x264-params intra-refresh=yes -f mpegts udp://127.0.0.1:1234
[04:01:12 CEST] <james999> I'm gonna replace localhost with my phone's IP addr since I think you have to do that
[04:01:25 CEST] <thebombzen> if you're doing raw udp? use mpegts
[04:01:29 CEST] <thebombzen> not flv
[04:01:36 CEST] <james999> k sec
[04:03:04 CEST] <james999> when I did your command with yt.mp4 file I get a blurry choppy video and no sound in vlc on the same machine
[04:04:39 CEST] <james999> the distortion effect is horrifying by the way lol
[04:04:49 CEST] <james999> it's a person talking so it looks like their face is being smeared all over the screen
[04:07:46 CEST] <james999> here's some of ffmpeg's output: https://pastebin.com/6mE92C7V
[04:52:41 CEST] <kepstin> james999: that command would work find with realtime input (e.g. a capture card). If you're doing file input, you probably want to add the "-re" option to play it in realtime rather than encode as fast as possible
[04:55:51 CEST] <Miles> Can anyone explain the "mv4 flag under global options? It says "Use four motion vector by macroblock (mpeg4)."
[04:56:24 CEST] <Miles> Mainly whether or not it's beneficial to compression ratio / quality.
[04:58:57 CEST] <furq> i assume "mpeg4" means the builtin mpeg4 decoder
[04:59:13 CEST] <furq> which you shouldn't be using because it's not 2005
[05:02:16 CEST] <furq> er, encoder
[05:07:41 CEST] <Miles> And it won't do anything to the xvid encoder?
[05:10:21 CEST] <Miles> I realize that's obsolete too.
[05:11:08 CEST] <Miles> Shamefully slow computer.
[05:27:35 CEST] <james999> oh ok kepstin
[05:27:47 CEST] <james999> yes adding the -re option made it not jitter and screach a lot
[05:29:03 CEST] <james999> unfortunately I still can't add it to serviio
[05:29:12 CEST] <james999> I tried udp://localhost:1234 and it's locking up
[05:30:09 CEST] <james999> udp://@:1234 works in vlc player to view it but isn't working in serviiio
[05:30:46 CEST] <james999> now I'm trying udp://:1234
[05:36:59 CEST] <james999> dammit
[05:37:09 CEST] <james999> why won't serviio recognize any URL when I can play it in vlc finally
[05:39:20 CEST] <james999> the example has http://127.0.0.1:1234
[05:39:31 CEST] <james999> maybe there is a way to get ffmpeg to stream http instead of udp?
[07:28:33 CEST] <james999> hey bombzen
[07:28:52 CEST] <james999> right now i'm trying to get vlc to read video from a dshow screen capture filter
[07:29:04 CEST] <james999> so far it just crashes on me. :(
[08:45:08 CEST] <thebombzen> okay.
[08:47:23 CEST] <Asar> Hey guys, there is a bugtack report numbered 6139 which is regarding an error when using the -stream_loop function. Does anyone know of a workaround for this?
[10:27:10 CEST] <AndrewMock> Can't figure what the latest on what decoders support -hwaccel dxva2
[13:02:43 CEST] <olspookishmagus> almost one day later and yet my post to zeranoe fora hasn't been approved...
[13:13:14 CEST] <bencc> when doing 2 pass encoding, where the result of the first run is saved?
[13:13:26 CEST] <BtbN> in the stats file
[13:14:55 CEST] <bencc> I'll look for it. thanks
[13:15:27 CEST] <BtbN> it should be fairly obvious, as it's the only file it creates
[13:15:44 CEST] <BtbN> except for the output file itself, if you don't use a null output for pass 1
[13:18:01 CEST] <bencc> you are right. thanks
[13:18:34 CEST] <bencc> I was confused because the use of /dev/null
[15:18:35 CEST] <Caterpillar> https://trac.ffmpeg.org/wiki/HWAccelIntro  I cannot understand if on amdgpu + ffmpeg is enabled the h264 encoding accelration
[15:21:08 CEST] <tdr> Caterpillar, this chart doesn't list amdgpu, dont know if its accurate tho:  https://trac.ffmpeg.org/wiki/HWAccelIntro
[15:21:48 CEST] <BtbN> I don't think amdgpu exposes an encoding API at all
[15:21:55 CEST] <BtbN> if you are lucky, VAAPI works, but I kind of doubt it
[15:22:12 CEST] <Caterpillar> I only see AMD VCE poaragraph, that is not very clear
[15:22:20 CEST] <Caterpillar> *paragraph
[15:23:22 CEST] <tdr> yeah it says attempt to port to blah on windows
[15:23:59 CEST] <BtbN> VCE is Windows-Only.
[15:25:43 CEST] <BtbN> The API, that is. It's supposed to be exposed via VAAPI on Linux, but I very highly doubt this works to a useful degree
[15:26:45 CEST] <tdr> so basically on linux, if you have an amd card, you should use it for your desktop and use your intel card to encode?
[15:31:04 CEST] <BtbN> if you manage to get the Intel encoder to work properly
[15:32:23 CEST] <tdr> ah ok so theres a challenge part, makes it more interesting
[15:32:51 CEST] <tdr> ive been looking for "fun" things to do on my macbook under linux.
[15:33:09 CEST] <tdr> desktop has a nvidia card, its too easy
[15:40:16 CEST] <iive> i've heard that mesa3d does support radeon encoding through VDPAU
[15:40:48 CEST] <iive> i don't have capable card, so I haven't tried it, but ffmpeg does support vdpau encoding, i think.
[15:43:26 CEST] <iive> mesa3d can work with radeon.ko and amdgpu.ko , the amdgpu is shared with the binary drivers and allows vulkan acceleration. binary driver does come with amdgpu-pro
[15:45:00 CEST] <Crot> Hello All.
[15:46:07 CEST] <tdr> iive, ok, i'm still getting used to the amd side, had nvidia for so long and amd seems like a pain compared to it.
[15:47:11 CEST] <iive> vdpauinfo should report is there is support for it.
[15:48:15 CEST] <iive> tdr: the opensource radeon support should work out of the box. The biggest problem is debian putting card firmware in non-free repo.
[15:49:41 CEST] <iive> there was some problem , where was a race condition where you could get radeon.ko or amdgpu.ko at random, if you had both compiled. but this should have been taken care now.
[15:50:20 CEST] <tdr> iive, thats not a problem then, i build gentoo for my setups so i can use whatever
[15:50:52 CEST] <Crot> I'm having a issue with transcoding an over the air channel received off of a HD homerun. Straight out of the transcoder the UDP stream looks great. Once I put the stream through a 1gb switch the video quality falls apart. I can replace the 1gb switch with 100 mb switch and it cleans back up. Has anyone seen this or can you point me on a direction
[15:50:52 CEST] <Crot> to run down.
[15:51:17 CEST] <iive> Crot: udp packet redordering?
[15:52:13 CEST] <Crot> I have yet to look at the packet flow I'm gearing up right now mirror the port.
[15:53:10 CEST] <iive> Crot: i'm trying to say, that if some router does something that changes the order of the UDP packets, the recieving app would detect that as errors.
[15:55:02 CEST] <Crot> Continuity counters should show this let me look real quick.
[16:06:13 CEST] <matej_k> matroskademux seems to be adding index entries that arent really key frames over time, is this intentional?
[16:07:05 CEST] <Crot> basiclaser you are correct CC counters are present. What I don't understand is I can hardset the port out of the transcoder to 100m and the clear up.
[16:07:17 CEST] <Crot> cc errors*
[16:08:08 CEST] <Crot> wrong person meant for iive
[16:11:59 CEST] <iive> Crot: i don't understand you. I understand that there are indeed continuity counters errors .
[16:13:04 CEST] <iive> if you are using mpeg-ts, afair the counter wraps around 16 (4bits) , so it cannot be reliably reconstructed using that counter.
[16:19:16 CEST] <Crot> iive sorry for not being clear.  Currently I have transcoder >>>>Switch>>>> STB       when I hardset the interface speed on the NIC in the transcoder  to 100mbps CC errors go away. If I set it at Auto negotiate they come back.
[16:22:00 CEST] <iive> is NIC working at 1Gbps when on auto? the switch switch might be smart enough to have trafic shaping, priority queues and stuff like that. it could reorder or drop packets.
[16:22:56 CEST] <Crot> iive no
[16:24:16 CEST] <Crot> if it was traffic shaping or similar wouldn't it be present when setting the port to 100mpbs
[16:25:44 CEST] <Crot> I inititally assumed broadcast storm protection or something similar interfering however I woudl expect to see the same at 1gbps or 100mbps.
[16:27:08 CEST] <tdr> so if no erorrs when hard set to 100, what happens if you hard set it to GB?
[16:29:48 CEST] <Crot> tdr cc errors return
[16:30:51 CEST] <tdr> so sounds like gb is just hosed on either your switch or card, can you flash firmware or dig deeper into nic or switch port settings?  (managed switch or dumb etc)
[16:31:19 CEST] <tdr> (or you have a really really crappy cable)
[16:31:45 CEST] <Crot> quasi managed switch netgear gs108
[16:32:59 CEST] <Crot> I'll run this down a bit more see what I can find. I appreciate the help guy
[16:34:39 CEST] <tdr> it could just as easily be nic firmware or a driver bug, have you tried connecting it to anything else?
[16:35:21 CEST] <tdr> either the switch or the pc?  or pc direct to another pc?  (gb doesn't need a cross)
[16:36:14 CEST] <blackd> is there anyway to convert monochrome to YUV420P for compression purpose (HEVC)?
[16:37:37 CEST] <Mandevil> Monochrome what?
[16:38:06 CEST] <blackd> mocochrome raw image
[16:38:10 CEST] <blackd> frame
[16:38:17 CEST] <Mandevil> -pix_fmt yuv420p
[16:38:19 CEST] <blackd> 8bit
[16:38:22 CEST] <Mandevil> That should just work.
[16:39:00 CEST] <blackd> can you post the full command ?
[16:39:34 CEST] <Mandevil> blackd: What do you want to do? What's your actual source file?
[16:39:37 CEST] <Mandevil> An image?
[16:40:11 CEST] <blackd> video stream raw data 30fps mono8
[16:40:12 CEST] <Crot> tdr I have not yet I'll do this and report back
[16:40:51 CEST] <Mandevil> blackd: ffmpeg -i <source> -pix_fmt yuv420p <output>
[16:40:56 CEST] <Mandevil> blackd: Try this.
[16:41:33 CEST] <blackd> does this means that I don't need to convert it to yuv420p?
[16:41:42 CEST] <ZexaronS> comeon
[16:41:54 CEST] <blackd> or it actually converts it yuv420p?
[16:42:03 CEST] <ZexaronS> stop the hackers injecting .goutputstream again it lagsdsdsdfsdfsdfsef lags my whole PC
[16:42:06 CEST] <ZexaronS> stupid IRC crap
[16:42:15 CEST] <ZexaronS> ScrInjectB.trojan
[16:42:38 CEST] <ZexaronS> can't type
[16:44:28 CEST] <kepstin> blackd: libx265 *can* encode mono hevc streams, are you sure you actually need yuv420p?
[16:44:37 CEST] <kepstin> I think
[16:44:42 CEST] <kepstin> ...oh, no, i'm wrong :/
[16:45:02 CEST] <blackd> no , i thought libx264 needs yuv420p, since the mono is in packed format
[16:45:17 CEST] <ChocolateArmpits> wouldn't it be yuv400p
[16:46:07 CEST] <kepstin> so yeah, just tell ffmpeg to use the yuv420p pixfmt, that's all you need... the "conversion" is just putting the mono channel into the Y and adding dummy U,V values to make it greyscale :/
[16:46:17 CEST] <ZexaronS> oops
[16:46:20 CEST] <ZexaronS> sorry wrong channel
[16:47:18 CEST] <blackd> no conversion ?!
[16:49:30 CEST] <kepstin> blackd: if you tell ffmpeg to use a specific output pix_fmt, it will automatically do any conversions needed - i'm not sure what you're asking.
[16:49:58 CEST] <Mandevil> blackd: It is conversion.
[16:50:21 CEST] <Mandevil> blackd: In this particular case it's lossless.
[16:55:00 CEST] <blackd> I am asking because I am using API and i need to implicitly convert it before encoding
[16:55:31 CEST] <blackd> sorry if my questions are a bit newbie size
[16:56:26 CEST] <kepstin> oh, you're using api not ffmpeg cli? that's a bit different, yeah.
[16:57:19 CEST] <blackd> correct, so i wanna make sure i have the correct format before calling encoder
[16:57:34 CEST] <kepstin> in that case, you'll probably want to use libswscale to do the conversion
[16:57:58 CEST] <kepstin> (if you set it up with different input and output pixfmts, and the same size, it'll do the conversion without any scaling)
[16:58:24 CEST] <blackd> correct, so i need sth like sws_scale (mono8, yuv420p) ?
[17:37:26 CEST] <jb_> Can anyone suggest a way to toggle between two audio streams at various points in a video?  I have a video and at various points (e.g. from 5s to 10s and 15s to 20s), I need to mute the video's default audio and insert a tone
[19:21:46 CEST] <erick3k> Hi
[19:21:58 CEST] <erick3k> can someone help me debug why ffmpeg is stopping?
[19:22:04 CEST] <erick3k> uploading the log...
[19:22:34 CEST] <erick3k> well no need lol
[19:22:39 CEST] <erick3k> this is the last line WriteN, RTMP send error 104 (136 bytes)
[19:23:34 CEST] <erick3k> what does that means?
[19:24:27 CEST] <Fenrirthviti> closed by remote host
[19:26:05 CEST] <erick3k> that means youtube closing it?
[19:26:14 CEST] <erick3k> am streaming to youtube
[19:27:39 CEST] <erick3k> Fenrirthviti?
[19:28:02 CEST] <Fenrirthviti> Sounds plausible, sure.
[19:28:14 CEST] <Fenrirthviti> 104 is closed by remote host.
[19:30:08 CEST] <erick3k> wouldnt think Such a huge company will have those kind of errors? weird
[19:39:45 CEST] <furq> i would think it would be more likely they'd have those kinds of errors
[19:40:29 CEST] <furq> small companies have got competition
[19:41:06 CEST] <furq> they also often bother to read bug reports instead of just leaving them to die on a forum
[19:47:42 CEST] <rictan> Hello all, is it possible to convert a fragmented mp4 to a regular mp4...pardon me if my question is vague / not precise
[19:49:32 CEST] <furq> ffmpeg -i fragmented.mp4 -c copy regular.mp4
[19:50:01 CEST] <faLUCE> Hello. I just published this C++ library, based on ffmpeg. It's for h264/aac http-live streaming (Linux)   https://github.com/paolo-pr/laav . If anyone wants to test it, he is welcome
[19:54:06 CEST] <rictan> thanks furq
[19:55:12 CEST] <rictan> is there a way to parse fragmented.mp4 to check whether the conversion worked
[19:55:44 CEST] <rictan> Ive read mp4box can do it, but is there such command as a sanity check to see if my regular.mp4 is indeed a regular .mp4
[19:55:51 CEST] <rictan> (assume after conversion)
[19:56:53 CEST] <rictan> nvm a quick search shows mp4parser.com can do it
[19:59:08 CEST] <JEEB> what do you mean as "regular .mp4"?
[19:59:33 CEST] <JEEB> you can see from looking at the box structure that it's indeed made up of boxes
[20:00:12 CEST] <JEEB> but not much more than that
[20:13:27 CEST] <james999> well
[20:13:48 CEST] <james999> I finally discovered from this ancient grimoire the voodoo spell which makes vlc screencast over my LAN
[20:14:11 CEST] <james999> but ffmpeg at least could do dshow input, dunno if vlc can. :(
[20:14:23 CEST] <klaxa> faLUCE: i also wrote an http-live streaming server: https://github.com/klaxa/mkvserver_mk2 :)
[20:14:31 CEST] <klaxa> but matroska only and no re-encoding
[20:17:02 CEST] <james999> klaxa: you wrote ffmpeg's http capability??
[20:17:19 CEST] <klaxa> the server side only
[20:18:01 CEST] <james999> in that case let me ask you this.
[20:18:08 CEST] <klaxa> with a lot of help
[20:18:25 CEST] <james999> I'm on windows with ffmpeg with dshow capability, but I can't figure out how to cast my desktop+microphone stereo mix with it.
[20:18:34 CEST] <faLUCE> klaxa: you stream files, right?
[20:18:38 CEST] <james999> Do I need ffserver and if not what the hell am I doing wrong lol
[20:18:49 CEST] <klaxa> faLUCE: yes
[20:19:00 CEST] <klaxa> faLUCE: what does your software stream?
[20:19:01 CEST] <faLUCE> klaxa: in my case I stream live only :-)
[20:19:05 CEST] <klaxa> wait
[20:19:20 CEST] <klaxa> i don't just serve files
[20:19:29 CEST] <klaxa> i remux it for every client so they can jump in live
[20:20:07 CEST] <klaxa> james999: for a single client you use ffmpeg [whatever] -listen 1 http://0.0.0.0:8080
[20:20:12 CEST] <klaxa> that will be blocking though
[20:22:52 CEST] <james999> sec let me pull up ffmpeg doc
[20:22:58 CEST] <james999> I can do something like ffmpeg -f dshow -i video="UScreenCapture" -f dshow -i audio="Microphone" output.flv
[20:23:06 CEST] <james999> But I just need to get it to stream over a network
[20:24:07 CEST] <james999> I don't see -listen anywhere on https://ffmpeg.org/ffmpeg.html
[20:24:32 CEST] <c_14> https://ffmpeg.org/ffmpeg-protocols.html#http
[20:24:42 CEST] <klaxa> ninja'd
[20:26:21 CEST] <james999> [NULL @ 000000000056e7a0] Unable to find a suitable output format for 'http://0
[20:26:21 CEST] <james999> 0.0.0:8082'
[20:26:33 CEST] <james999> hmm whoops character limit tehre
[20:27:12 CEST] <klaxa> ah
[20:27:16 CEST] <klaxa> add -f flv or something
[20:27:21 CEST] <james999> yeah just did
[20:27:26 CEST] <james999> lol
[20:28:29 CEST] <james999> YES
[20:28:35 CEST] <james999> IT WORRRRRRRRKSSSSSS
[20:28:41 CEST] <james999> XD XD XD XD
[20:29:21 CEST] <james999> Been fucking around with vlc cmd line options for hours
[20:31:58 CEST] <james999> is this -listen a new undocumented feature or something?
[20:32:02 CEST] <james999> i don't recall knowing about it at all
[20:32:44 CEST] <klaxa> it's documented, since summer 2015 :V
[20:34:04 CEST] <klaxa> and even before that for tcp
[20:34:38 CEST] <james999> haha well i don't know anything i guess
[20:35:45 CEST] <james999> i feel bad asking for more but serviio doesn't load the ffmpeg stream lol dammit
[20:35:56 CEST] <james999> see i'm trying to screencast to an xbox in my living room over wifi
[20:36:36 CEST] <james999> and i downloaded some Upnp/dlna apps like serviio and Plex to do it. but neither of them is accepting the local live streams i give to them. >_>
[20:37:39 CEST] <james999> well aside from that ffmpeg has crashed twice in the last few minutes complaining about dropped frames and a full buffer
[20:37:43 CEST] <james999> so there's that
[20:38:43 CEST] <james999> but i mean that's more than i've managed to get working after several hours lol
[21:16:11 CEST] <erick3k> furq
[21:16:13 CEST] <erick3k> you on?
[21:29:13 CEST] <james999> i'm reading the ffmpeg doc
[21:29:25 CEST] <james999> i still dont' understand how to fix this buffer near too full or full error
[21:29:58 CEST] <klaxa> do you only have it when writing to the network or also when writing to a file?
[21:31:46 CEST] <james999> it's saying same thing when I change that http://000 stuff to blah.flv
[21:32:00 CEST] <james999> not as much though
[21:32:17 CEST] <james999> there's more errors like Past duration 0.859367 too large
[21:33:36 CEST] <james999> oh i think that might be cause i had -vcodec libx264 right before it
[21:33:41 CEST] <james999> I got rid of that and it's same behavior
[21:34:06 CEST] <james999> right now I have ffmpeg -f dshow  -i video="UScreenCapture"  -f dshow -i audio="Stereo Mix (Realtek High Defini" -listen 1 -f flv crap.flv
[21:34:30 CEST] <james999> i had to switch to UScreen b/c the other dshow I downloaded didn't work
[21:37:22 CEST] <james999> want me to pastebin the full output?
[21:45:34 CEST] <klaxa> james999: sure why not
[21:47:35 CEST] <james999> https://pastebin.com/DY4iWr6G
[21:49:19 CEST] <klaxa> maybe try setting rtbufsize to some ridiculously high value?
[21:50:50 CEST] <james999> the wiki says that will prevent ffmpeg from dropping frames at all, correct?
[21:51:17 CEST] <james999> i'm not sure why it's crashing either
[21:59:45 CEST] <james999> oh wait, when i turn off vlc on my phone and it's streaming to http then it does
[21:59:46 CEST] <james999> *dies
[22:00:14 CEST] <james999> [flv @ 00000000004ee340] Failed to update header with correct duration.
[22:00:14 CEST] <james999> [flv @ 00000000004ee340] Failed to update header with correct filesize.
[22:00:14 CEST] <james999> Error writing trailer of http://0.0.0.0:8082: Error number -10053 occurred
[22:03:13 CEST] <binario> hi all
[22:03:22 CEST] <binario> How can i convert recursively from mp3 to ogg does anyone know?
[22:08:24 CEST] <klaxa> james999: yes since the output is closed and no longer writable
[22:08:35 CEST] <klaxa> like i said, it only works for one client and is blocking
[22:28:27 CEST] <james999> crap i was disconnected
[22:48:43 CEST] <james999>  let me see if i can get an app on this xbox
[22:48:46 CEST] <james999> to open URLs directly
[23:04:53 CEST] <james999> great now I'm getting [mp4 @ 00000000004de0a0] muxer does not support non seekable output
[23:10:54 CEST] <kepstin> yes, mp4 is inherently incompatible with any sort of "live" streaming. you have to write a complete file to disk before it can be served over http.
[23:15:05 CEST] <james999> at the moment my command looks like
[23:15:06 CEST] <james999> ffmpeg   -f dshow  -rtbufsize 1000000000 -i video="UScreenCapture"  -f dshow -i audio="Stereo Mix (Realtek High Defini" -vcodec libx264 -acodec libvorbis -listen 1 -f mpegts http://0.0.0.0:8082
[23:16:01 CEST] <JEEB> kepstin: except fragmented one
[23:16:15 CEST] <BtbN> h264 and vorbis is kind of an odd combination
[23:16:22 CEST] <BtbN> I'm not even sure if you can put vorbis into mpegts
[23:16:30 CEST] <JEEB> at least opus is standardized in mpeg-ts
[23:16:34 CEST] <JEEB> vorbis probably not
[23:17:43 CEST] <james999> well i have no idea what i'm doing
[23:17:59 CEST] <james999> i'm just trying different combinations to get it to work through serviio and on my vlc phone
[23:18:57 CEST] <james999> bbl afk
[23:39:20 CEST] <quentinlamamy> hi
[23:40:19 CEST] <quentinlamamy> is there a way to read id3v2 tag with ffmpeg in command line ?
[23:40:48 CEST] <BtbN> define read
[23:40:56 CEST] <BtbN> pretty sure ffprobe shows them
[23:41:34 CEST] <quentinlamamy> i want to call ffmeg with the exec command from php to get all the tag for a mp3
[23:42:20 CEST] <BtbN> sounds horrible
[23:42:49 CEST] <quentinlamamy> yes but i don't know enough how the id3tag works to code a parser in php
[23:43:25 CEST] <quentinlamamy> but it's just a one shot use to build an index
[23:43:44 CEST] <quentinlamamy> so it's horrible only one time and after i drink to forgot this xD
[23:43:45 CEST] <james999> any suggestions on container/audio/video codec for streaming ffmpeg to a upnp/dlna server on my pc?
[23:44:18 CEST] <BtbN> I'd be surprised if there is no library for php to read id3 tags
[23:45:06 CEST] <quentinlamamy> there is but not work with all the tag and sucks on encoding
[23:45:09 CEST] <BtbN> don't even need a library, php itself has functions for id3
[23:45:43 CEST] <quentinlamamy> really, i never see this in vanilla without external lib
[23:45:56 CEST] <BtbN> http://php.net/manual/en/ref.id3.php
[23:46:02 CEST] <james999> is libx264 + mpegts container a god possibility for live streaming over LAN?
[23:46:02 CEST] <BtbN> first google hit for php and id3
[23:47:09 CEST] <BtbN> id3_get_tag looks perfect
[23:48:11 CEST] <quentinlamamy> need a package that seems to don't exist on windows, fuck of for windows user xD
[23:48:12 CEST] <erick3k> am getting this randomly after hours / days
[23:48:13 CEST] <erick3k> WriteN, RTMP send error 104 (136 bytes)
[23:48:20 CEST] <erick3k> streaming to youtube any idea?
[23:48:33 CEST] <BtbN> It only talks about XP being problematic
[23:48:37 CEST] <BtbN> but it's PHP...
[23:48:43 CEST] <BtbN> Nobody seriously uses it on Windows anyway
[23:49:33 CEST] <quentinlamamy> some devs who work in my customer corp does ^^
[23:50:19 CEST] <quentinlamamy> but this customer will code it himself, no way to install and compilling on XP
[23:50:44 CEST] <quentinlamamy> i can't it's a crime ^^
[23:54:39 CEST] <quentinlamamy> so thks, i will try this pecl
[23:55:12 CEST] <quentinlamamy> good night (or anything else, in france it's midgnight)
[00:00:00 CEST] --- Wed Apr 26 2017


More information about the Ffmpeg-devel-irc mailing list