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

burek burek021 at gmail.com
Sun Dec 25 03:05:01 EET 2016


[00:02:12 CET] <markvandenborre> blue_misfit: always welcome if you have any idea
[00:07:22 CET] <haroldp> So I have this shitty network cam that doesn't stream any web-ready formats, and I was thinking of proxying it through ffmpeg to get it into a usable format.  Is that reasonable to do?
[00:07:50 CET] <markvandenborre> haroldp: seems like a logical way...
[00:08:38 CET] <haroldp> cool, so this is the command I copy-pasted from somewhere: http://pastebin.com/Dybdhu2L
[00:09:20 CET] <haroldp> where 10.0.0.69 is the cam and 10.0.0.42 is an IP on the server running ffmpeg
[00:10:21 CET] <haroldp> when i run that I get, "Connection to tcp://69.13.36.126:1935 failed: Connection refused"
[00:10:31 CET] <haroldp> woops, actual IP :)
[00:11:06 CET] <markvandenborre> :-)
[00:11:30 CET] <haroldp> anyway, I'm trying to get it to *host* the stream so i can connect to it with a browser
[00:12:25 CET] <markvandenborre> haroldp: nmaping your camera
[00:12:44 CET] <haroldp> that's the server not the cam
[00:12:50 CET] <markvandenborre> yeah, just found that out
[00:13:03 CET] <haroldp> happily, because I can NOT get the fucking client to change his default password
[00:13:28 CET] <markvandenborre> what kind of device is it?
[00:13:29 CET] <haroldp> (or buy an approprite cam, or pay for a real streaming service, merry christmas)
[00:14:19 CET] <haroldp> anyway
[00:14:24 CET] <markvandenborre> onvif in any case
[00:14:29 CET] <haroldp> am I scewing up that output URL?
[00:14:50 CET] <haroldp> i want it to LISTEN on that IP/port
[00:15:06 CET] <haroldp> so web clients may stream from it
[00:17:09 CET] <markvandenborre> have you actually tested an ffplay or mpv of the origin port?
[00:17:20 CET] <markvandenborre> you seem to forget to add the user credentials if any
[00:17:28 CET] <markvandenborre> ?
[00:17:47 CET] <markvandenborre> haroldp: shouldn't you be using something like rtsp://admin:admin@192.168.1.20/ONVIF/channel1
[00:18:21 CET] <haroldp> I can pull thge cam up in VLC
[00:18:55 CET] <haroldp> and ffmpeg isn't complaining about the cam, but rather the output url
[00:19:24 CET] <markvandenborre> I'd try to make sure I could do something with the cam first
[00:19:28 CET] <markvandenborre> in ffmpeg
[00:20:19 CET] <markvandenborre> so why not drop most of the second part of the equation and replace that by foo.mp4
[00:20:24 CET] <markvandenborre> and see what that gives
[00:20:27 CET] <markvandenborre> then build from there?
[00:20:30 CET] <haroldp> ok.  trying that
[00:20:54 CET] <markvandenborre> (if you're very sure that the first bit is not generating any complaints)
[00:21:12 CET] <markvandenborre> anything starting from -vcodec copy
[00:21:23 CET] <markvandenborre> you should be able to replace with that
[00:21:33 CET] <markvandenborre> and get some automagic reencoding
[00:21:45 CET] <markvandenborre> (which you don't want afterwards, but you get the idea I guess)
[00:22:41 CET] <markvandenborre> haroldp: does that help a bit?
[00:23:04 CET] <haroldp> sent the stream to foo.mp4 and got a file.  Downloaded the file and it plays in VLC
[00:23:29 CET] <haroldp> only changed that last argument
[00:24:22 CET] <markvandenborre> nice, so at least you are one step ahead now
[00:24:33 CET] <haroldp> progress!
[00:24:43 CET] <markvandenborre> you can do an ffprobe or mediainfo on that file now
[00:24:48 CET] <markvandenborre> to see exactly what you have
[00:25:18 CET] <markvandenborre> that will tell you something about the codecs used, at minimum
[00:25:26 CET] <mosb3rg> anyone around yet who could help me take a crack at the specifics of this hls cookie issue im facing.
[00:25:32 CET] <mosb3rg> i have a copy of the headers now, to examine.
[00:27:18 CET] <haroldp> ok, what am I looking for in the ffprobe output?
[00:27:59 CET] <haroldp> last line is "Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 15 tbr, 1k tbn"
[00:29:25 CET] <haroldp> just weird that that the error I get is like, "can not connect to myself" effectively.  Like it can't bind to that IP?  Or I'm not telling to bind to an IP correctly?
[00:29:36 CET] <markvandenborre> ok, so that seems to be ok...
[00:29:45 CET] <markvandenborre> (the codec stuff, nothing so very weird)
[00:30:01 CET] <haroldp> "can't connect to [output url]"
[00:30:03 CET] <markvandenborre> you should be able to throw that at an rtmp server
[00:30:20 CET] <markvandenborre> haroldp: have you tried setting up nginx-rtmp somewhere?
[00:30:28 CET] <haroldp> ah ha
[00:30:28 CET] <markvandenborre> throw it at that using ffmpeg
[00:30:36 CET] <haroldp> no, I have no rtmp server
[00:30:49 CET] <markvandenborre> set one up?
[00:30:57 CET] <markvandenborre> it isn't very difficult...
[00:31:41 CET] <markvandenborre> ok, it is a bit if you're not used to linux, because the nginx rtmp module is not packaged in the main distros
[00:31:47 CET] <markvandenborre> but there's fairly good docs on that
[00:32:20 CET] <markvandenborre> the process is: build nginx from source with the rtmp module included
[00:32:28 CET] <haroldp> yeah, looking up docs on it
[00:32:39 CET] <markvandenborre> then you have a nice rtmp server
[00:32:44 CET] <haroldp> not afraid of nginx or anything command-line :)
[00:33:38 CET] <markvandenborre> haroldp: here's our docs on how to do it
[00:33:39 CET] <markvandenborre> https://github.com/FOSDEM/video/wiki/Nginx-streaming
[00:33:53 CET] <markvandenborre> (plenty more to find around there)
[00:33:54 CET] <haroldp> cool. thanks.
[00:34:24 CET] Action: markvandenborre is off to bed now.
[00:34:43 CET] <markvandenborre> haroldp: shouldn't be too difficult to get this to run though
[00:35:00 CET] <markvandenborre> have a look at the clappr stuff too
[00:35:30 CET] <markvandenborre> after you get the nginx rtmp server up and the hls
[00:35:37 CET] <markvandenborre> for use in modern browsers
[00:39:45 CET] <haroldp> ah, clappr looks cool. thanks.
[01:09:50 CET] <haroldp> huh, the rmtp module docs have an example of launching ffmpeg from right in nginx.  swank.
[01:10:26 CET] <haroldp> via exec_pull
[01:11:36 CET] <jophish> hi all
[01:12:09 CET] <jophish> I have a bunch of gifs (of varying dimensions) which I'd like to stitch together into a video. This should be something ffmpeg is able to do, right?
[01:13:06 CET] <jophish> I suppose I should first convert all the inputs (there are some webms too) into the same format and dimension
[03:05:52 CET] <Guest4637> hello folks
[03:06:22 CET] <Guest4637> can you help me?
[03:44:10 CET] <panda81> Hi. I have a video that restarts to beginning after pausing for some platforms. How do I know what's wrong?
[03:53:41 CET] <panda81> Or, how do I convert the video data form the problem mp4 to the format of another mp4 that has no problems?
[14:20:15 CET] <fling> Is there a filter for audio noise removal by pattern?
[14:24:54 CET] <durandal_1707> fling: pattern?
[14:25:20 CET] <durandal_1707> you can only remove certain frequencies
[14:25:32 CET] <durandal_1707> for now
[14:28:22 CET] <fling> durandal_1707: yes like 1. specify an audio sample containing only noise; 2. ???; 3. profit
[14:29:22 CET] <fling> durandal_1707: I've seen such things 15 years ago in vst plugins like waves and others
[14:29:28 CET] <durandal_1707> fling: that's only with audacity
[14:29:38 CET] <fling> durandal_1707: tell me more please
[14:30:06 CET] <durandal_1707> I never tried because never needed
[14:30:45 CET] <fling> Another question: How to easily add my own video filter? What is the good plan to do so?
[14:31:27 CET] <fling> The filter would be only useable for a single codec and will need ffmpeg to be linked to a lib
[14:32:00 CET] <fling> I'm thinking about implementing multiple different things. Like h264 lossless crop and others
[14:35:19 CET] <JEEB> that's a bit stream filter then
[14:35:42 CET] <JEEB> there was an old old patch for editing the parameter sets back in the day, but it was never really pushed to upstream too hard
[14:35:50 CET] <JEEB> so it basically stayed over at doom9 and that's it
[14:37:08 CET] <fling> >> for editing the parameter sets?
[14:37:59 CET] <fling> I also have ideas about mjpeg and png and something about yuyv to bgr&
[14:40:37 CET] <durandal_1707> fling: what yuvy to bgr?
[14:41:54 CET] <fling> durandal_1707: I can't get rid of a stupid idea about converting yuyv frames back to bayer.
[14:42:27 CET] <fling> durandal_1707: it could (but not really) be possible to get better resolution from some of the v4l devices this way.
[14:42:47 CET] <durandal_1707> that's for swscale better place
[14:43:57 CET] <fling> The idea is to convert each yuyv pixel to bggr and then debayer each bggr to four pixels.
[14:44:08 CET] <fling> This is only possible if we somehow know the order
[14:49:14 CET] <fling> Debayering is the way the cameras are getting 1.2Mpx stills from 640x480 sensors.
[15:12:26 CET] <theFam> hello, how can I delay a subtitle I created with -vf subtitles=? I use -ss before -i.
[16:28:07 CET] <wodim> is there any way to set the flac encoding quality?
[16:29:12 CET] <JEEB> flac is lossless, there is no "quality"
[16:29:22 CET] <JEEB> if there was a quality switch it wouldn't be lossless
[16:29:40 CET] <wodim> sorry, I didn't mean that
[16:29:43 CET] <wodim> I meant compression level
[16:43:33 CET] <kerio> wodim: aiui there's no good reason to do so with libflac
[16:43:58 CET] <wodim> I thought I could get better sizes
[16:44:09 CET] <kerio> yeah but...
[16:44:17 CET] <durandal_1707> wodim: see docs
[16:44:20 CET] <wodim> but what? don't leave me hanging like that
[16:44:25 CET] <wodim> what docs. I saw the wiki
[16:44:26 CET] <wodim> hold on
[16:44:42 CET] <kerio> anyway, `-compression_level 0` to `-compression_level 8` apparently
[16:44:57 CET] <kerio> but aiui going deeper than the default won't give you much smaller files
[16:45:08 CET] <wodim> ah yeah
[16:45:09 CET] <wodim> found it
[16:45:09 CET] <kerio> like, there's diminishing returns
[16:45:16 CET] <durandal_1707> ffmpeg -h encoder=flac
[16:46:00 CET] <durandal_1707> there's many slooow encoding options
[16:46:39 CET] <wodim> there's a minimal difference between 0 and 8
[16:46:52 CET] <wodim> well, learnt something I guess
[16:46:55 CET] <wodim> thanks
[18:29:36 CET] <nyuszika7h> is there a way to take a snapshot by frame number rather than timecode (I guess -ss equivalent for frame)?
[18:37:49 CET] <c_14> you can use the select filter but it'll be really quite very slow
[18:39:44 CET] <fahadash> fling: Goldwave does that too, and it has command-line batch processing too
[18:46:17 CET] <fling> fahadash: does what?
[18:48:53 CET] <fahadash> Takes the noise sample and removes that noise from the source audio
[18:49:52 CET] <fling> fahadash: which package for Goldwave?
[18:50:12 CET] <fahadash> Goldwave is a software, a stand-alone utility
[18:50:56 CET] <fling> I can't find it in portage
[18:58:31 CET] <fahadash> www.goldwave.com
[18:58:36 CET] <fahadash> Don't know much about portage
[18:58:54 CET] <fahadash> I have a question about filter scripts, is there any way to comment out filters?
[19:03:41 CET] <durandal_1707> fahadash: scripts ass files?
[19:04:34 CET] <fling> fahadash: split your ffmpeg commandline to multiple parts and comment them as needed
[19:05:04 CET] <fling> fahadash: $commandline="$part_a $part_b $part_c&" at the end
[19:23:46 CET] <fahadash> I don't like multiple commands, leaves clutter behind, I know I can rm the clutter but when the script fails in between the clutter needs manual cleanup
[19:24:00 CET] <fahadash> 1 command is easy to read
[19:24:39 CET] <fahadash> I am pretty sure # will comment the filter, I should try it
[19:43:14 CET] <durandal_1707> fahadash: you can use -filter-script option
[19:47:04 CET] <fahadash> -filter_complex_script , I am already using that. I am wondering if I could write remarks/comments in my gigantic script file
[19:55:57 CET] <durandal_1707> fahadash: you can only add new lines
[20:32:22 CET] <fahadash> I am using trim filter to cut out some frames at the start and at the end of my 10 second video clip, I end up getting output which is still 10 seconds. Why?
[20:37:56 CET] <mosb3rg> hey guys, could i get a syntax example of how to use a still image locally on hdd, and an audio only hls aac playlist with m3u8
[20:39:05 CET] <mosb3rg> i have an issue where im trying to relay an xm signal, which i get in m3u8 audio only and i want to use a still image per channel basically. so its using 2 separate sources for video and audio but 1 of which is an m3u8 playlist.
[20:39:36 CET] <fahadash> I am having a real killing issue with 'trim' filter. http://video.stackexchange.com/questions/20229/ffmpeg-trim-filter-renders-the-same-length-output-as-input-with-trimmed-out-fram
[20:42:16 CET] <Kiicki> I believe you were right about that "fast slow presets" furq
[20:43:04 CET] <Kiicki> I did some encoding with Handbrake and set them all to slow and non of them were working on my TV, even though I got the impression that everything I converted with Handbrake, it worked on my TV
[20:43:40 CET] <Kiicki> I have actually no idea what it really is, and too bad that so many people chooses to convert them with slow or slower
[20:50:11 CET] <markvandenborre> I have this strange situation where ffmpeg itself is not able to find the size of an udp multicast video stream
[20:50:20 CET] <markvandenborre> but ffprobe is perfectly able to find it out
[20:50:54 CET] <fahadash> I found out what was wrong with my trim. I have the audio with my video causing this. Is there any filter to remove the audio?
[20:51:53 CET] <markvandenborre> hence what I want to do with it afterwards (throw it at an rtmp server) is not working
[20:52:06 CET] <markvandenborre> is there a way to explicitly specify these values myself?
[20:53:15 CET] <markvandenborre> I tried setting the analyzeduration and probesize options to ridiculously hight values, but that didn't really solve anything
[20:53:37 CET] <markvandenborre> it's still complaining about "unspecified size"
[20:53:53 CET] <mosb3rg> ffmpeg -i 1080p.mp4 -i 720p.mp4 -map 0:0 -map 1:1 -c:v copy -c:a copy 1080p_w_audio.mp4
[20:54:13 CET] <mosb3rg> so this method would be used, to use video from 1 audio from another ok, i get that but whast if i want to use urls to point to each source ? can i do that too
[20:54:36 CET] <DHE> mosb3rg: sure, as long as each plays properly on its own
[20:54:42 CET] <markvandenborre> DHE: sec, coming up
[20:54:54 CET] <mosb3rg> interesting ok. need to examine this now
[20:55:02 CET] <mosb3rg> i want to add a still imagine to XM audio channels
[20:59:19 CET] <mosb3rg> but DHE you cannot probe the same way ? with 2 inputs ?
[20:59:28 CET] <mosb3rg> im getting an error when i try to do that
[20:59:38 CET] <DHE> you mean ffprobe?
[21:00:04 CET] <DHE> it's meant for analyzing videos and telling you information about them.. you don't need more than 1 in a single invocation
[21:05:46 CET] <markvandenborre> DHE: never mind, there was one box here with an ancient ffmpeg from debian multimedia
[21:05:54 CET] <markvandenborre> a recent ffmpeg has no problems with it
[21:11:49 CET] <fahadash> I am trying to trim a clip (audio and video both) using the trim filters, What am I missing here? Got a few errors http://pastebin.com/XmVNiwBr
[21:14:07 CET] <DHE> fahadash: filter_complex isn't the right thing. you probably just want -vf and -af for the video and audio filters respectively..
[21:14:12 CET] <DHE> then again, can you get what you want with -ss and -t ?
[21:14:35 CET] <mosb3rg> The still image i try and use i never see, when i begin processing to the rtmp connection
[21:14:43 CET] <mosb3rg> i only have audio present.
[21:14:45 CET] <durandal_1707> fahadash: you can't use audio filters with -vf use -af
[21:15:08 CET] <fahadash> DHE: is there any 'filter' way of trimming some of the start and end portions of the source out?
[21:15:10 CET] <durandal_1707> fahadash: a atrim is audio filter
[21:15:33 CET] <DHE> fahadash: what you've done is taken the video stream, trimmed it, and then fed that into the audio trimmer. so naturally it's unhappy
[21:16:15 CET] <DHE> just do: ffmpeg -i input.mov -vf trim=.... -af atrim=.... <codec-options> output.mov
[21:16:52 CET] <fahadash> I am trying to trim using trim filter, but since my video has an audio which has to be filtered too, so I combined it with atrim. I am using a -filter_complex, the example I showed is very simplified and has a small portion of my movie making command
[21:18:40 CET] <durandal_1707> fahadash: then use [0:a]atrim
[21:19:17 CET] <fahadash> and map them together?
[21:20:03 CET] <durandal_1707> you need that with filter complex
[21:20:26 CET] <fahadash> How can I map them in my filter graph?
[21:20:50 CET] <fahadash> I can do [0:v]trim[video_portion];[0:a]atrim[audio_portion]
[21:20:58 CET] <fahadash> how do I map [video_portion][audio_portion]?
[21:21:50 CET] <fahadash> I found 'join', let me try that
[21:21:58 CET] <durandal_1707> it's all in docs, with  -map
[21:22:22 CET] <durandal_1707> join is audio filter...
[21:22:40 CET] <durandal_1707> for joining separate channels
[21:23:39 CET] <fahadash> can I specify output-pads in -map?
[21:23:47 CET] <fahadash> let me look up -map in the docs
[21:26:17 CET] <Kiicki> Anyone know which presets I need to choose to get 1,2,3,4 or 5 ref frames?
[21:26:39 CET] <Kiicki> Instead of the numbers, Handbrake has like fast, normal slow etc
[21:32:05 CET] <mosb3rg> you are looking for #handbrake
[21:32:16 CET] <mosb3rg> same network here. for support with that application.
[21:37:27 CET] <Kiicki> didn't know that was a thing
[21:37:30 CET] <Kiicki> ty
[22:38:36 CET] <memori> What capabilities does ffmpeg have for aspect ratio? I have a 704x376 px video displayed at 3:2 and would like to change the DAR to 16:9 (while keeping the same pixel data)
[22:47:28 CET] <durandal_1707> memori: there are filters to set  SAR and DAR
[22:52:15 CET] <memori> durandal_1707, is that -vf setdar=16:9? I´m trying the encode right now
[22:53:42 CET] <durandal_1707> memori: setdar=16/9
[22:58:08 CET] <memori> durandal_1707, alright, that worked, thanks
[00:00:00 CET] --- Sun Dec 25 2016


More information about the Ffmpeg-devel-irc mailing list