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

burek burek021 at gmail.com
Tue Oct 25 03:05:01 EEST 2016


[00:16:42 CEST] <MrMonkey31> "Requested output format 'mkv' is not a suitable output format"?
[00:17:27 CEST] <MrMonkey31> they call it something different, don't they?...
[00:18:05 CEST] <klaxa> matroska
[00:18:18 CEST] <MrMonkey31> got it... thx!
[00:25:25 CEST] <raj> ffmpeg comes with win10?
[00:25:53 CEST] <raj> oh, nm, it came with imagemagick
[00:28:47 CEST] <AnonRunzes> so
[00:29:00 CEST] <AnonRunzes> can I post a sample whose codec is undiscovered?
[00:35:04 CEST] <raj> is there something wrong with this: ffmpeg -i "C:\Users\Raj\Downloads\M2U00115.MPG" "C:\Users\Raj\Desktop\M2U00115.mp4"
[00:35:25 CEST] <raj> I'm getting "Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height"
[00:36:25 CEST] <BtbN> do you want to add a -c copy?
[00:38:02 CEST] <raj> what's that mean?
[00:39:48 CEST] <raj> I didn't add any options because this example didn't show any either: http://www.alexkuo.info/?p=253
[00:40:17 CEST] <klaxa> my guess would be odd height or width input resolution?
[00:41:19 CEST] <raj> I don't really want anything to change, it's just that I sent my video to someone using final cut pro and she said she couldn't import the mpg, and can I send her an mp4 instead
[00:41:50 CEST] <raj> &to be clear, she was trying to import the video into final cut pro but apparently couldn't
[00:42:02 CEST] <furq> pastebin the command line and full output
[00:44:23 CEST] <raj> ok, I just added -vcodec copy and -acodec copy and it seemed to work
[00:52:29 CEST] <raj> Now she's telling me it's just a green screen with sound
[00:52:38 CEST] <raj> She's on a Mac, I'm on a PC
[00:53:19 CEST] <raj> She's missing some video codec I suppose, but how do I figure out which one?
[00:54:54 CEST] <raj> Here's the output from my conversion: http://paste.ofcode.org/eAFQnqEkFrEQdAUttjxRRh
[00:59:59 CEST] <raj> would really appreciate some help as it's time sensitive
[01:04:51 CEST] <klaxa> raj: seems like it doesn't have the mpeg2 codec, you can try to re-encode
[01:05:09 CEST] <klaxa> for that the first command was right, can you pastebin the output of the first command?
[01:37:50 CEST] <ItWasntMe2013> Someone mentioned in an earlier chat that h264 has the automatic bit rate change ability in real time.  i.e. I can dynamicly change the bitrate as I set it without needing to restart ffmpeg each time... similar to what skype does, does anyone have any info on that?
[01:42:08 CEST] <raj> klaxa, I had her install https://support.apple.com/kb/dl1396?locale=en_US and it worked
[01:48:00 CEST] <klaxa> ah nice good
[01:48:36 CEST] <DHE> ItWasntMe2013: you'd have to use libav yourself. there isn't a method to change bitrates dynamically in the command-line tool
[01:53:52 CEST] <raj> klaxa, did doing that conversion from mpeg to mp4 reduce any quality?
[01:54:33 CEST] <klaxa> the one you pasted not
[01:54:41 CEST] <raj> ok cool
[01:54:54 CEST] <raj> I thought converting just inherently may reduce some quality of some sort
[01:55:00 CEST] <raj> glad to know it doesn't
[01:59:52 CEST] <klaxa> what you did was remuxing
[02:04:39 CEST] <raj> thanks klaxa
[02:29:30 CEST] <Mad7Scientist> ItWasntMe2013, you can always set quality -q 0 to 31 and ffmpeg will adjust the bit rate
[02:29:51 CEST] <Mad7Scientist> But I assume you're wanting something more advanced
[02:30:26 CEST] <Mad7Scientist> I would think real time streaming systems would need to be able to change it to a specific value in real time
[02:32:16 CEST] <klaxa> most services just offer multiple quality encodings and the clients decide which one they want
[02:32:52 CEST] <AnonRunzes> so
[02:33:04 CEST] <AnonRunzes> how can I batch process all the files to .wav on ffmpeg?
[02:36:01 CEST] <DHE> shell scripting required
[02:36:27 CEST] <AnonRunzes> huh
[02:36:44 CEST] <DHE> klaxa: for pre-rendering and multiple clients. the skype example requires real-time measurements and on-the-fly codec reconfiguration. in extreme cases forcing a keyframe
[02:38:27 CEST] <klaxa> ah true
[02:52:57 CEST] <ItWasntMe2013> Mad7Scientist: yeah I've done that, but what I really want is some sort of mechanism that I can control the quality in real time, just like skype does...  I'm sure that skype isnt making multple profiles and doing ABR streaming,
[03:00:50 CEST] <jpsharp>  Anyone have any suggestions on how to convert an occasionally-changing GIF into a RTMP stream that doesn't make ffmpeg freak out over changing DTSs?
[03:03:38 CEST] <klaxa> does something like this work? (while true; cat image.gif; done) | ffmpeg -f image2pipe -i - <stuff> ?
[03:03:47 CEST] <klaxa> not sure if that's a good way though
[03:07:03 CEST] <jpsharp> Hmmm.  i wasn't aware of image2pipe, so let me look at that.
[03:07:17 CEST] <MrMonkey31> is it normal to use a sharpen after downscaling a video?  I'm just wondering what the standard practices are
[03:09:23 CEST] <ItWasntMe2013> DHE: but I thought there was a way to do this in real time in ffmpeg without needed to restart the encoding...  I'm ok to provide my own signalling, I have some good ideas on that, but I just want to adjust ffmpeg on the fly and not need to restart it each time
[03:12:16 CEST] <furq> MrMonkey31: the default resize algorithm is bicubic, you probably want to use something sharper like lanczos or spline
[03:12:36 CEST] <furq> -sws_flags spline
[03:12:38 CEST] <MrMonkey31> furq, oh for sure
[03:14:38 CEST] <MrMonkey31> but I've noticed with still images even after a lanczos rescale, a sharpen just does a world of improvement for appearance
[03:15:59 CEST] <DHE> ItWasntMe2013: there's no built-in mechanism to do that. you'll have to add one yourself by modifying ffmpeg, or make an app using libav
[03:20:08 CEST] <MrMonkey31> I'm going with 'scale=-1:720, unsharp=5:5:1.30:5:5:0.0' and hoping the extra sharpness doesn't cause the frames to like, block up.  scaling down from 1080p
[03:27:08 CEST] <furq> depends on taste i guess
[03:27:48 CEST] <furq> if you're using crf it'll probably just use more bitrate rather than causing blocking
[03:43:43 CEST] <jpsharp> klaxa: Brilliant.  The image2pipe worked perfectly.  I've been arguing with this for days.
[05:11:14 CEST] <BinaryBench> Hey, so I'm still working on creating trying to achieve extremely low latency (approx. 25ms + internet latency).  Atm I am using: "ffmpeg -f dshow -i video="UScreenCapture" -r 30 -vcodec libx264 -pix_fmt yuv444p -tune zerolatency -preset veryfast -x264opts crf=20:vbv-maxrate=6000:vbv-bufsize=200:intra-refresh=1:slice-max-size=1500:keyint=30:ref=1 -f mpegts udp://localhost:6666" to stream and "ffplay -fflags nobuffer -sync ext -i 
[05:12:24 CEST] <BinaryBench> eam, however this is getting me about 600ms
[06:38:45 CEST] <BinaryBench> Anyone?
[06:39:31 CEST] <CoJaBo> BinaryBench: try to narrow down which part of it is adding latency
[06:39:49 CEST] <furq> isn't that more latency than you were getting yesterday
[06:39:56 CEST] <furq> or were you measuring it wrong
[06:40:09 CEST] <CoJaBo> like maybe try some other/dummy input method
[06:42:26 CEST] <BinaryBench> furq: I was guesstimating, I actually broke out the screenshots this time :P
[06:44:09 CEST] <BinaryBench> CoJaBo: That is what I am attempting to do, I so far I've ruled out both capture & play back as I've subtracted the latency of just doing "ffplay -f dshow -i video="UScreenCapture""
[06:45:28 CEST] <furq> i don't actually know how little latency ffplay has with -fflags nobuffer
[06:45:36 CEST] <furq> you might want to test with some other players with the cache disabled
[06:46:03 CEST] <furq> it's --cache=no with mpv
[06:47:09 CEST] <BinaryBench> furq: With just that ffplay command, the latency came out to 50ms
[06:48:21 CEST] <BinaryBench> which makes me think the latency isn't coming from ffplay
[06:48:57 CEST] <furq> it's using a different protocol and demuxer though
[06:49:36 CEST] <furq> you might want to ask in #x264 as well
[06:49:52 CEST] <BinaryBench> cd #x264
[06:49:56 CEST] <BinaryBench> oops :P
[06:50:01 CEST] <furq> close enough
[06:53:56 CEST] <BinaryBench> furq: Hum, you seem to know about encoding and what not, what would be your suggestion for super low-latency streaming?
[06:54:18 CEST] <furq> pretty much what you've already got
[06:54:25 CEST] <furq> i've never needed <1s latency
[06:57:32 CEST] <BinaryBench> I'm trying to do something like Steam in-home streaming, but I would like to have more control over it and be able to use it for non-games
[06:58:12 CEST] <TD-Linux> I would use webrtc or plain RTP. I've generally found gstreamer or other tools to be more cut out for this than ffmpeg.c
[06:58:21 CEST] <Prelude2004c> hey guys.. good day
[06:58:37 CEST] <TD-Linux> (though I don't doubt that it's possible)
[06:58:52 CEST] <Prelude2004c> anyone know why i would be  getting : error opening key file /tmp/key-VxKaKGZKix/file.key ? the file was created with openssl rand 16
[07:00:10 CEST] <BinaryBench> TD-Linux: can't ffmpeg use rtp?
[07:00:53 CEST] <TD-Linux> it can.
[07:02:02 CEST] <BinaryBench> TD-Linux: I'm kinda new to this, but what does ffmpeg do besides manage the streams between the capture device & the encoder & the udp port?
[07:02:32 CEST] <JEEB> it has a fuckload of possible places to buffer things in, it has demuxers, muxers, protocol implementations, decoders and encoders
[07:03:07 CEST] <JEEB> and ffmpeg.c is a wonky command line interface of some of the features available
[07:04:23 CEST] <JEEB> I know libx264 the library can do very low latency, but then your issue becomes the whole thing around it in FFmpeg's libraries and whatever the command line app is doing if you're calling that
[07:06:13 CEST] <BinaryBench> JEEB: Hum, so what might be my issue is this case?    Or is there something besides Ffmpeg that would fit my needs better?
[07:08:53 CEST] <JEEB> I have no effing idea since I've never looked into how much latency all the components have
[07:09:15 CEST] <JEEB> I just know that by default the libraries buffer a lot and do other stuff
[07:11:29 CEST] <JEEB> so while FFmpeg's libraries provide you with the wrappers for a whole lot of stuff, you will have to go check yourself how much latency each and every thing is bringing to you, since they're most definitely not "low latency by default" in many cases
[07:11:59 CEST] <Prelude2004c> hey, can anyone help ? not sure what to do.. i did everything based on what i have read
[07:12:19 CEST] <Prelude2004c> why would ffmpe gnot want to open up the file.key ? its done with openssl rand 16 > file.key
[07:24:07 CEST] <Prelude2004c> nobody knows this riddle ? :P
[07:33:57 CEST] <Prelude2004c> oh boy
[07:55:46 CEST] <babadoc> hello
[07:56:01 CEST] <babadoc> is there anyone here
[07:56:38 CEST] <babadoc> if there is, does anyone know how to host video files on my server so i can stream them?
[07:56:40 CEST] <babadoc> i dont want to use plex
[07:56:47 CEST] <babadoc> i tried using nodejs
[07:56:59 CEST] <babadoc> the http-server package
[07:57:14 CEST] <babadoc> that worked, but only if i converted the file to mkv
[07:57:35 CEST] <babadoc> the original file is a mp4 file that i misnamed as a webm
[07:57:44 CEST] <babadoc> Any thoughts?
[07:57:52 CEST] <furq> literally any web server
[07:58:05 CEST] <babadoc> could you give me some names?
[07:58:08 CEST] <furq> nginx
[07:58:15 CEST] <babadoc> i tried embedding the webm and hosting it
[07:58:18 CEST] <babadoc> it doesn't work thats the probme
[07:58:22 CEST] <babadoc> problem*
[07:58:36 CEST] <babadoc> i can port forward the link to show you what i mean
[07:58:40 CEST] <babadoc> its on my IP
[07:58:51 CEST] <babadoc> would you like me to port forward it?
[07:58:59 CEST] <furq> just install nginx
[07:59:12 CEST] <babadoc> and then host the index.html server?
[07:59:13 CEST] <furq> there's really no trick to it
[07:59:15 CEST] <babadoc> file*
[07:59:22 CEST] <furq> you don't need to embed the file in html or anything
[07:59:29 CEST] <furq> your browser will play it directly
[07:59:49 CEST] <furq> just put the videos in some directory nginx can see
[08:00:13 CEST] <babadoc> i will try using nginx.
[08:00:23 CEST] <babadoc> i don't have any prior experience with it though.
[08:00:32 CEST] <babadoc> it will be my first time using it
[08:00:44 CEST] <furq> the only thing you optionally need other than literally anything which serves http is a server which supports range requests, so that you don't need faststart mp4s
[08:01:03 CEST] <furq> although it's still better to have them
[08:01:18 CEST] <Prelude2004c> hey,, still stuck so i am going to ask the question again.... so i am running a codec copy on a source that i am simply taking in and segmenting out into m3u8.. i loaded up the file.key and file.keyinfo and all seems well and binary exists... when i restart ffmpeg session i get :  /tmp/key-9GLLgUAh5Y/file.key .. file is there.. i checked
[08:01:22 CEST] <Prelude2004c> not sure where to look
[08:01:44 CEST] <babadoc> i understand thanks
[08:01:54 CEST] <babadoc> nginx supports range rquest?
[08:02:02 CEST] <furq> yes
[08:04:07 CEST] <babadoc> ok
[08:09:41 CEST] <Prelude2004c> furq, your pretty good at this stuff... any points ? am i overlooking something simple ?
[08:31:50 CEST] <babadoc> furq i need to edit the nginx config file to a specific directory right
[08:32:07 CEST] <babadoc> because it is currently set as /var/www/html
[08:32:27 CEST] <babadoc> if i change that to /users/baba/videofiles/ will that host the files?
[08:34:53 CEST] <furq> as long as the nginx user has read permissions in that directory, sur
[08:34:53 CEST] <furq> e
[09:24:20 CEST] <babadoc> dude
[09:24:22 CEST] <babadoc> fruq
[09:24:23 CEST] <babadoc> furq
[09:24:27 CEST] <babadoc> literally
[09:24:34 CEST] <babadoc> i have to set up all this shit in nginx
[09:24:42 CEST] <babadoc> holy crap
[09:24:55 CEST] <babadoc> furq is there any simpler way?
[09:25:03 CEST] <babadoc> ;(
[09:26:46 CEST] <babadoc> can i serve video using ffserver?
[09:38:45 CEST] <babadoc> furq is ffserver working
[09:38:50 CEST] <babadoc> is it broken
[09:38:59 CEST] <danan391> I'm facing an issue when updating FFmpeg using brew. "clang is unable to create an executable file." Anyone familiar with that?
[09:39:05 CEST] <babadoc> brew
[09:39:11 CEST] <babadoc> what version of mac os are you using
[09:39:32 CEST] <danan391> 10.11.06, el cap
[09:39:38 CEST] <babadoc> same as mine
[09:39:47 CEST] <babadoc> what command did you ru
[09:39:48 CEST] <babadoc> run
[09:40:14 CEST] <danan391> brew update & brew upgrade
[09:40:25 CEST] <babadoc> you could try reinstalling ffmpeg
[09:40:52 CEST] <JEEB> babadoc: it exists and still builds but nobody in the FFmpeg community wants to touch it or knows how it is supposed to be used :p
[09:41:19 CEST] <JEEB> in other words, if you are going to use it, you'll have to maintain it or rewrite it
[09:41:37 CEST] <danan391> What happens with custom configures then? I installed libvorbis and a few others, will they be kept after the reinstall?
[09:53:44 CEST] <babadoc> lol jebb
[09:53:48 CEST] <babadoc> is there no manpage anywhere?
[09:53:56 CEST] <babadoc> its just this thing that came with ffmpeg?
[09:53:57 CEST] <babadoc> lol
[10:43:17 CEST] <trfl> anyone happen to know whether ffmpeg supports userdata in hevc elementary streams? I'm being handed an rtp stream created with mainconcept, which apparently lets you include up to 1kB of metadata per frame, but ffmpeg chokes horribly on it (can barely display a couple columns of blocks for each frame)
[10:43:51 CEST] <trfl> or rather, anyone know whether that's even allowed by the hevc es spec (if there is such a thing)
[11:29:52 CEST] <hkjh> please witch codec must i use when streaming a webm video file to icecast ?
[11:34:53 CEST] <hkjh> any response ?
[11:35:58 CEST] <Mavrik> well, webm contains vp8 or vp9 by standard.
[11:36:06 CEST] <Mavrik> I guess VP8 would be better supported.
[11:36:15 CEST] <Mavrik> Does IceCast suppport that?
[11:45:31 CEST] <tdr> WebM (VP8/VP9), are both listed as supported here:  http://icecast.org/faq/
[13:05:53 CEST] <trfl> its a shame people leave so quickly... he reminded me that I bumped into an issue where streaming vp8 to icecast was impossible due to ffmpeg not exposing a method for setting the mimetype forwarded to icecast, so it would default to audio/vorbis
[13:06:10 CEST] <trfl> I should probably create an issue for that :p
[13:12:38 CEST] <trfl> oh sweet, it's been fixed already!
[13:17:40 CEST] <trfl> welp, spoke too soon. If you use -f tee to write the webm to a file in addition to icecast, -content_type is dropped
[13:38:33 CEST] <ozette> anyone knows if it's possible to view the bitrate of a video in the browser?
[13:38:54 CEST] <ozette> preferably firefox or google chrome
[13:39:36 CEST] <tdr> that depends on how it is being served out
[13:42:19 CEST] <ozette> regardless of how the video is encoded?
[13:43:10 CEST] <ozette> i am streaming a video by sending chunks of the original file, but i have no idea how fast this happens
[13:44:04 CEST] <ozette> and i imagine the client tries to playback with the bitrate of the original video
[13:44:31 CEST] <tdr> ozette, the player serving it out would have to have some hotkey (like youtube  or netflix does) to say "oh hey, display the video properties too)
[13:45:10 CEST] <ozette> hmm, i know youtube has some 'stats for nerds' button somewhere
[13:45:43 CEST] <tdr> the browser itself just hands that portion of the screen off the the libraries etc that know how to process it.  it would have to tell the player (hosted on the url or downloaded as part of the page) to display those peices
[13:46:07 CEST] <ozette> but this player i set up myself, from a graphical interface point of view, the options are limited
[13:46:18 CEST] <tdr> then i'm guessing no.
[13:46:22 CEST] <tdr> find a different player
[13:46:54 CEST] <ozette> so a browser doesn't know? there's no network or media statistics or anything?
[13:46:59 CEST] <ozette> laaaame
[13:48:44 CEST] <tdr> the browser itself is semi-dumb
[13:49:17 CEST] <ozette> we need smartbrowsers then, just like we needed smartphones
[13:49:21 CEST] <tdr> no
[13:49:38 CEST] <tdr> you need a better streaming server app
[13:49:42 CEST] <ozette> :<
[13:50:56 CEST] <tdr> i could just like and say you need IE 6 and windows mediaplayer version 2
[13:51:01 CEST] <tdr> s/like/lie
[13:51:23 CEST] <ozette> how so?
[13:51:59 CEST] <ozette> i'm mostly interested in ..
[13:52:55 CEST] <ozette> if the bitrate encoding of a video matters at all when played over the network
[13:53:44 CEST] <ozette> and i'm trying to find out if different videos are played with different bitrates or with a constant bitrate in my media player
[13:54:31 CEST] <tdr> ozette, you could fake check that by using something like iptraf-ng or similar on linux or on windows just any tool checking yoru network use
[13:54:43 CEST] <ozette> i want to improve my streaming server, the videos i'm handling are huge, so processing already takes a while, and may take even longer if i decide to resample to lower qualities
[13:55:13 CEST] <ozette> i just installed mediainfo
[13:59:04 CEST] <ozette> can't seem to call it from cli though
[16:39:13 CEST] <Filarius> with writing to ffmpeg StdIn from my app, how should I indicate end of writing ?
[16:40:15 CEST] <DHE> traditionally you close() your end of the pipe facing ffmpeg's stdin
[17:57:07 CEST] <geri> hi, how can i create an avi video from a series of .bmp images (ScreenShootx.bmp) ...x is a number ?
[18:01:37 CEST] <geri> ffmpeg -r 30 -i ScreenShot%d.bmp out.avi
[18:01:44 CEST] <geri> which codec does it use by default?
[18:05:31 CEST] <c_14> Whatever's the default for avi, check `ffmpeg -h muxer=avi'
[18:15:44 CEST] <geri> c_14: isnt it it set the same for each binary?
[18:15:51 CEST] <geri> ffmpeg binary
[18:15:55 CEST] <c_14> Not necessarily
[18:16:00 CEST] <c_14> Depends on how it's built
[18:16:17 CEST] <c_14> If, for example, you disable the codec it would choose by default it might fall back to something else or fail.
[18:16:34 CEST] <geri> i used the prebuilt binary
[18:16:42 CEST] <c_14> i.e. matroska defaults to libx264 if available but falls back to mpeg4
[18:16:42 CEST] <geri> ok
[18:17:01 CEST] <geri> it says default video: mpeg4
[18:18:10 CEST] <geri> c_14: is ffmpeg also able to capture my desktop screen?
[18:18:40 CEST] <c_14> https://trac.ffmpeg.org/wiki/Capture/Desktop
[18:21:19 CEST] <geri> ffmpeg -list_devices true -f dshow -i dummy ... only shows my integrated webcam + audio for recording...
[18:22:28 CEST] <BtbN> What else did you expect to find there?
[18:25:16 CEST] <geri> BtbN: i asked how to record my desktop screen
[18:25:37 CEST] <BtbN> That's not what dshow does. Dshow is used for input devices like webcams.
[18:25:51 CEST] <BtbN> gdigrab or something like that captures the screen.
[18:32:27 CEST] <geri> ok, is there a way to extract the timestamp of each recorded frame?
[18:37:51 CEST] <geri> BtbN: it would work if you have a dshow filter?
[18:44:47 CEST] <livingBEEF> Any idea how the make process figures out which libx265 so version to link? Because I have only 95 installed, but it links to 87
[18:45:43 CEST] <livingBEEF> So trying to execute ffmpeg only says "libx265.so.87 not found"
[19:32:16 CEST] <Filarius> Hello, any help on error http://pastebin.com/efG3Yjmr  ? trying to make wrapper on C#
[19:48:36 CEST] <Filarius> hm, I will look for simplier code on C#
[21:17:25 CEST] <foxpie> Hi, I'm very novice with ffmpeg. I'm basically using someone else's code to try and convert and eventually concatenate small raw videos. I'm having a hard time understand the problem with command. Can I post my questions here?
[21:19:19 CEST] <c_14> Well, it should technically be possible. So it all comes down to you.
[21:21:22 CEST] <questionGirl>  ffmpeg -i 1.mp4 out.mp4
[21:21:22 CEST] <questionGirl> ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
[21:21:22 CEST] <questionGirl>   built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
[21:21:22 CEST] <questionGirl>   configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp
[21:21:22 CEST] <questionGirl> --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3
[21:22:47 CEST] <questiongirl> I'm using an older version of ffmpeg - the one bundled with my synology NAS.
[21:23:56 CEST] <thebombzen> uh... do you have a question
[21:24:03 CEST] <thebombzen> or are you just going to post your configuration
[21:24:43 CEST] <questiongirl> the question was at the beginning...
[21:24:58 CEST] <questiongirl> what is the problem.. I'm simply using "-i" as a param..
[21:25:10 CEST] <thebombzen> I don't see a question
[21:25:11 CEST] <questiongirl> But I don't understand the error message
[21:25:24 CEST] <questiongirl> or how I can make this work
[21:25:38 CEST] <thebombzen> I also don't see an error message. Note this: questionGirl [~foxpie at 24.48.36.29] has quit IRC: Excess Flood
[21:25:57 CEST] <questiongirl> I pasted a huge amount of data from my console and got booted for flooding, did you see that data?
[21:26:09 CEST] <thebombzen> nope. because that's spam. most likely it kicked you because you were spamming us. paste the entire output on a paste site like http://pastebin.com/
[21:26:12 CEST] <questiongirl> ha...
[21:26:22 CEST] <thebombzen> you also didn't ask a question.
[21:26:29 CEST] <questiongirl> What's the secret to pasting the outoput oif my console then? :)
[21:27:04 CEST] <questiongirl> The last line in my console is: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[21:27:11 CEST] <thebombzen> there's no secret. go to a website like pastebin.com and literally copy/paste it onto that site. then provide a link.
[21:27:19 CEST] <questiongirl> but I'm simply using the defaults everything.
[21:27:27 CEST] <questiongirl> ok
[21:28:33 CEST] <questiongirl> http://pastebin.com/xafsJmj2
[21:28:45 CEST] <questiongirl> my question: How can I fix this?
[21:29:52 CEST] <questiongirl> The original stream is (from what I am reading) in DASH format
[21:30:17 CEST] <questiongirl> and I am told that I need to "convert it" for them eventually concatenate it.
[21:30:35 CEST] <questiongirl> The video clips are from a Ubiquiti G3 camera
[21:30:47 CEST] <questiongirl> ffmpeg is being run on a synology NAS.
[21:31:19 CEST] <thebombzen> who told you you have to "convert it"
[21:31:21 CEST] <thebombzen> who is "them"
[21:31:31 CEST] <thebombzen> cause the command you're running is pointless
[21:31:32 CEST] <questiongirl> I meant "then"
[21:32:01 CEST] <questiongirl> It does seem pointless... I somehow agree. I got the code from the script here: https://community.ubnt.com/t5/UniFi-Video/Extracting-recorded-video-on-the-command-line/m-p/1713816#M66403
[21:32:02 CEST] <thebombzen> you're converting a h.264 video and aac audio in the same container. I'm not sure why you're doing that.
[21:32:48 CEST] <furq> it's best to ignore about 95% of ffmpeg advice given on forums
[21:32:51 CEST] <questiongirl> The OP told me that this line was doing the equivalent of "moov atoms - see qtfaststart"
[21:32:56 CEST] <furq> it isn't
[21:33:34 CEST] <furq> the actual command is -i foo.mp4 -c copy -movflags faststart bar.mp4
[21:33:39 CEST] <furq> but i don't think you even need to do that
[21:33:41 CEST] <BtbN> Or just qt-faststart
[21:33:43 CEST] <questiongirl> in any case, the line I am really interested in executing the the other ffmpeg call a few lines below..
[21:33:46 CEST] <furq> you should just be able to concat the clips directly
[21:34:00 CEST] <furq> you probably also want to upgrade to a newer ffmpeg
[21:34:32 CEST] <thebombzen> first of all, upgrade FFmpeg. second of all, there is a whole bunch of documentation on it.
[21:34:32 CEST] <questiongirl> upgrading is an issue... no ipkg on my nas, I would need to compile for my cpu... need toolchain and other stuff I am not familiar with.
[21:34:47 CEST] <furq> https://www.johnvansickle.com/ffmpeg/
[21:35:01 CEST] <furq> judging by the cc in your ffmpeg configure line, the x86 builds should work
[21:35:14 CEST] <thebombzen> also, if you search Google for "concatenate files with ffmpeg" this is literally the first result: https://trac.ffmpeg.org/wiki/Concatenate
[21:35:22 CEST] <thebombzen> the documentation that describes exactly how to do that
[21:35:39 CEST] <furq> the bash script in the op is making me really unhappy
[21:36:05 CEST] <questiongirl> he did put the concatenation part: ffmpeg -y -f concat -safe 0 -i Segs.txt -filter_complex "[0:v]setpts=0.25*PTS[v];[0:a]atempo=2.0,atempo=2.0[a]" -map "[v]" -map "[a]" out.mp4
[21:36:36 CEST] <furq> yeah but he also put `for File in $(ls ${InDir}/*.mp4)`
[21:36:40 CEST] <questiongirl> I tried to build on his work... since he is taking the raw output of a UBNT camera, and concatenating the 10second clips and accelerating them
[21:37:30 CEST] <furq> that command ought to work on the clips you already have
[21:37:46 CEST] <thebombzen> wait
[21:37:48 CEST] <furq> although you probably want to add -r 30 or else you'll end up with 120fps
[21:38:00 CEST] <furq> or 100fps or whatever 4x the source fps is
[21:38:15 CEST] <thebombzen> $(ls *.mp4) is just... *.mp4.
[21:38:18 CEST] <furq> it sure is
[21:38:20 CEST] <thebombzen> also furq I think that's wrong
[21:38:38 CEST] <thebombzen> I think ffmpeg will match the input framerate even with a pts filter. that's what -vsync 0 is used for 99% of the time I use it.
[21:39:50 CEST] <furq> so it does
[21:41:14 CEST] <questiongirl> In his for loop, he is also creating a txt file that contains a list of all the files that can be inputed to ffmpeg.
[21:41:48 CEST] <furq> for f in "$indir"/*.mp4; do echo "file '$f'" >> concat.txt; done
[21:42:01 CEST] <questiongirl> he replaced his initial "ffmpeg -i" call to using mp4box... but again, I am not certain why. He told me that otherwise his later ffmpeg call wouldn'T work.
[21:42:12 CEST] <furq> he did that because his initial ffmpeg command reencodes the streams
[21:43:39 CEST] <questiongirl> ok, I'll try to download the latest ffmpeg for my atom cPU, hoping the x64 build works.
[21:43:54 CEST] <furq> your current build is i686 so you probably want the x86 build
[21:45:44 CEST] <questiongirl> but my cpui is 64 bits architecture...
[21:46:12 CEST] <furq> shrug
[21:46:16 CEST] <furq> listen to your heart
[21:46:39 CEST] <JEEB> and the OS? you can't run 64bit binaries on a 32bit system :P
[21:46:44 CEST] <questiongirl> And I gather you state that the initial ffmpeg (later changed to a mp4box call) is useless, but I'm sure there is reason why he did so (his next call wasn't working).
[21:47:02 CEST] <questiongirl> Roxette?
[21:47:05 CEST] <furq> well it's definitely wrong
[21:47:08 CEST] <furq> it may or may not be useless
[21:47:23 CEST] <furq> if it's not useless then you actually want ffmpeg -i foo.mp4 -c copy -movflags faststart bar.mp4
[21:47:25 CEST] <questiongirl> anyway, what would be the "good call"? :)
[21:47:28 CEST] <furq> ^
[21:48:05 CEST] <chuprin> hi guys. is any public logs of this room available? i asked a question yesterday but webchat at freenode disconnected so i couldnt get replies
[21:48:11 CEST] <furq> i don't see why that would be needed but i've never had to deal with dash segments
[21:48:16 CEST] <questiongirl> noted about the faststart. I'll try with and without.
[21:48:22 CEST] <furq> chuprin: http://ffmpeg.gusari.org/irclogs/
[21:48:28 CEST] <chuprin> thanks
[21:50:18 CEST] <questiongirl> my nas has a hardware tranconding engine (chip..?)... will ffmpeg make use of it by default?
[21:50:50 CEST] <furq> probably not, but you don't need it for this anyway
[21:51:54 CEST] <questiongirl> if I have hundreds of clips I want to concatenate each day and to avoid bringing the cpu to its knee..
[21:52:10 CEST] <questiongirl> but I'll test and hopefully you are right and it is not required.
[21:52:32 CEST] <furq> the clips are already encoded in the right format, you're just concatenating them
[21:53:47 CEST] <questiongirl> but also accelerating them to 4x so I can review them faster
[21:54:40 CEST] <Phi> heyo ladies
[21:54:53 CEST] <Phi> and fellahs
[21:54:57 CEST] <furq> you do need to encode to do that with ffmpeg, but it's possible to do it without reencoding
[21:55:10 CEST] <furq> you could either do it in your player or use mp4box/l-smash or something to change the fps
[21:56:53 CEST] <questiongirl> indeed, I often use vlc to play files at 4x, but in this case, I would like a new file to be created. mp4box isn't available on my nas.
[21:57:27 CEST] <questiongirl> I wouyld like to use 1 command to concat+reendode @ 4x...
[21:57:33 CEST] <questiongirl> reencode
[21:59:12 CEST] <questiongirl> I'm sorry, I don't have the dev skills to fully understand the doc and come up with the 1 line that will do all this :(
[22:09:27 CEST] <furq> http://vpaste.net/1Ld01
[22:09:29 CEST] <furq> something like that
[22:11:41 CEST] <questiongirl> hey, reading the documentation for concat where you pointed me (https://trac.ffmpeg.org/wiki/Concatenate#samecodec) he uses the exact same for loop
[22:11:51 CEST] <questiongirl> to generate his list
[22:12:08 CEST] <questiongirl> oh no... wait
[22:12:14 CEST] <questiongirl> he uses the way you suggested :)
[22:24:31 CEST] <questiongirl> ok, I manage to download the x86 version of ffmpeg (running the git version). Tried the EXACT same command at on the example in the website: ./ffmpeg -f concat -i mylist.txt -c copy output
[22:24:52 CEST] <questiongirl> get the error message:  Unable to find a suitable output format for 'output'. output: Invalid argument
[22:25:13 CEST] <questiongirl> Tried to substitute output --> output.mp4 but not working either.
[22:25:24 CEST] <questiongirl> I know, I'm stumbling in the dark here.
[22:29:58 CEST] <Phi> can ffmpeg accept a text file of inputs?
[22:30:13 CEST] <questiongirl> yes, using the -i
[22:30:18 CEST] <questiongirl> argument
[22:30:39 CEST] <questiongirl> you need to put "file foo.mpg" on each line
[22:30:49 CEST] <questiongirl> so, "file" plus the filename
[22:43:42 CEST] <Phi> welp
[22:43:52 CEST] <Phi> so it turns out libav* v12 is like, radically different to v11
[22:49:34 CEST] <Phi> and it looks like they haven't implemented it fully yet
[22:55:19 CEST] <Phi> "track 0: could not find tag, codec not currently supported in container"
[22:55:28 CEST] <Phi> really, a H264 codec isn't supported in an MP4 container
[22:56:09 CEST] <JEEB> did you post the full log?
[22:56:11 CEST] <Phi> good thing you told me before the entire internet had me fooled
[22:56:18 CEST] <JEEB> on a pastebin-like thing
[22:56:28 CEST] <Phi> ...yeah
[22:56:36 CEST] <Phi> I'll post the whole thing and its helpfulness
[22:57:04 CEST] <JEEB> ok, because ISOBMFF totally has AVC supported in it, so either you've built something weirdly or something's not like you think it is
[22:57:10 CEST] <Phi> http://pastie.org/private/cojft7e98actrkv3sqz8a
[22:57:28 CEST] <Phi> v12 has a very pointlessly verbose RTSP log for some reason
[22:57:53 CEST] <JEEB> that's API usage?
[22:58:14 CEST] <JEEB> I just don't see lavf's usual output of available input streams
[22:58:31 CEST] <JEEB> and the stream mapping which happens
[22:58:53 CEST] <JEEB> thus I can't say jack shit out of that, unfortunately
[22:59:07 CEST] <Phi> me neither
[22:59:07 CEST] <JEEB> might want to add extra logging regarding those things
[22:59:18 CEST] <JEEB> like when you probe the streams from input etc
[22:59:33 CEST] <Phi> just realised the password's in there
[22:59:35 CEST] <JEEB> and how you then create the stream mappings towards output
[23:00:04 CEST] <Phi> Barbra Streisand effect
[23:00:19 CEST] <Phi> I'll post the code
[23:02:11 CEST] <Phi> http://pastie.org/private/uas6irhmiuyzjefpl08frq
[23:03:16 CEST] <Phi> it's an unholy mix of v11 and v12, I wonder if I can find a nice conversion guide
[23:04:35 CEST] <JEEB> I should really code some API usage again :P I haven't done it in ages (since late 2013 or so)
[23:04:50 CEST] <JEEB> I mostly code inside the libraries so my changes don't generally change how an API is used
[23:05:58 CEST] <chuprin> will try to ask again& i got a problem when i fetch http stream which reference to key file by https. ffmpeg fails when server respond with self-signed certificate in this case. could someone point me out where TLSContext is initialized during opening HLS stream? im not familiar with C. to be honest, i almost completely dont understand code and magic behind it. where is tls_open is used and why it doesnt respect -verify opti
[23:05:59 CEST] <chuprin> key file.
[23:07:25 CEST] <chuprin> log http://pastebin.com/TE3ruPxw
[23:08:23 CEST] <andrey_utkin_> Does anybody know of charity officially registered in UK or Ireland, dedicated to support of FOSS?
[23:19:25 CEST] <Phi> I wonder if there's a v12 guide point blank :p
[00:00:00 CEST] --- Tue Oct 25 2016


More information about the Ffmpeg-devel-irc mailing list