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

burek burek021 at gmail.com
Thu Jul 28 03:05:01 EEST 2016


[02:19:48 CEST] <flyBoi> Is this an appropriate place for questions about the Node.js fluent-ffmpeg library?
[02:20:29 CEST] <flyBoi> or is there a better one
[02:23:59 CEST] <flyBoi> Well, I'll just go for it:
[02:24:37 CEST] <flyBoi> I ahve one video as input. I want to take seconds 10-20 and 40-50 of that one file, and concatenate them to one output file. Is it possible to do this without copying the input file twice?
[02:25:41 CEST] <flyBoi> Right now, I'm calling .addInput("input.mp4").seekInput(10).duration(10).addInput("input.mp4").seekInput(40).duration(10).mergeToFile("output.mp4", "tmp/output");
[02:25:51 CEST] <flyBoi> And it outputs a file, but it's pretty well corrupted.
[02:26:54 CEST] <flyBoi> It's possible I just have to do each step in different ffmpeg commands, which is fine. But if there is a simple way, similar to what I'm doing above, that'd be killer.
[02:29:51 CEST] <flyBoi> I think I'm just going to opt to keep appending to one output file over multiple commands. Feels like the best way to go.
[02:46:22 CEST] <kepstin> you can definitely do that in a single command with the ffmpeg tool itself (listing the input file multiple times). No idea what the node library is getting wrong
[02:50:06 CEST] <kepstin> you should look to see if there's a way to get it to print the generated command lines out so you can try to debug what it's doing
[02:50:15 CEST] <kepstin> looks like there's too much abstraction going on :)
[08:44:00 CEST] <kgkg> I have several IP cameras, where I use ffmpeg to add a audio source and change the transmission protocol from RTSP to RTMP. I would like to creat one stream where I rotate every few seconds through all the sources. I see that I can put them next to each other using overlay, but that is not exactly what I want. Any help?
[09:24:02 CEST] <k_sze[work]> For H.264 video in MP4 container, is the profile and level supposed to be encoded in the stream?
[09:24:09 CEST] <k_sze[work]> or in the header.
[09:44:37 CEST] <k_sze[work]> When using the h264_videotoolbox encoder, what's the videotoolbox_vld pixel format?
[10:12:18 CEST] <Mavrik> k_sze[work], afaik profile and level is part of SPS/PSS
[10:12:25 CEST] <Mavrik> But dont't hold me 100% to my word.
[10:13:15 CEST] <k_sze[work]> Looks like `ffprobe -show_streams` does show the profile and level, at least for the few video files I've tested so far.
[10:34:53 CEST] <ritsuka> libavresample and libswresample are almost the same, any reason to use one instead of the other?
[12:01:29 CEST] <whald> any arch users here having problems with the ffmpeg executable as of the last update? (i updated yesterday, ffmpeg 3.1.1)
[12:02:37 CEST] <relaxed> be more specific
[12:03:15 CEST] <mrelcee> 3.1.1 was crashing for me.
[12:03:29 CEST] <whald> i'm using x11grab, h264 encode that, mux into mpegts and send it to a multicast address.
[12:04:27 CEST] <whald> this is the sending side: http://pastie.org/10920491
[12:05:39 CEST] <relaxed> first, change "-r 60" to "-framerate 60"
[12:07:15 CEST] <whald> relaxed, when i do this, i'm getting spammed with "past duration too large" messages.
[12:09:14 CEST] <iive> whald: there was an ABI break from 3.0 to 3.1, it was fixed in 3.1.1 . However if e.g. mpv is compiled towards 3.1.0 , the ABI restore would break it with 3.1.1
[12:10:05 CEST] <iive> there is a patch to avoid the ABI use by mpv, but wm4 ignored it.
[12:10:44 CEST] <iive> of course, this doesn't apply to ffmpeg own programs.
[12:28:03 CEST] <whald> also, if some genius in the office messes with the network configuration, problems arise. oh my. :-)
[14:32:34 CEST] <DelphiWorld> SUP
[14:35:41 CEST] <DelphiWorld> any comparison with libx264 and libopenh264.
[14:36:44 CEST] <furq> do you want a more detailed comparison than "x264 is better"
[14:37:13 CEST] <DelphiWorld> furq: any use on libh264, when it could be used?
[14:37:19 CEST] <DelphiWorld> just to know if we could prophit from it
[14:37:33 CEST] <furq> openh264 is for realtime
[14:37:48 CEST] <furq> idk if it does a better job than x264 for realtime, but x264 definitely does a better job in any other scenario
[14:37:51 CEST] <DelphiWorld> realtime what? live stream? conferencing?
[14:38:14 CEST] <furq> the latter
[14:38:22 CEST] <DelphiWorld> conferencing...
[14:39:11 CEST] <DelphiWorld> asm, nasm, ... yasm... lulz
[14:39:12 CEST] <furq> it only does constrained baseline profile
[14:39:22 CEST] <DelphiWorld> furq: lol i mostly do main
[14:39:38 CEST] <furq> which is fine for realtime but useless for everything else
[14:39:45 CEST] <DelphiWorld> yep
[14:40:09 CEST] <furq> the other difference is that openh264 is bsd licensed
[14:40:26 CEST] <DelphiWorld> ah, licensing...
[14:40:30 CEST] <DelphiWorld> libx264 is gpled
[14:40:31 CEST] <furq> which is nice but not really a big problem compared to the patent situation
[14:42:11 CEST] <DelphiWorld> furq: if i dont sell the software it should be fine no?
[14:42:18 CEST] <furq> emphasis on should
[14:42:44 CEST] <furq> afaik you technically need a license regardless of how you're using it
[14:43:00 CEST] <furq> there's just no point in them wasting their time enforcing it on people who aren't making money
[14:43:00 CEST] <DelphiWorld> i see
[14:44:11 CEST] <DelphiWorld> the only codec i ever bought is G.729
[14:44:29 CEST] <DHE> for h264 I think it's something like 250,000 players requires you pay them. but don't take my word for it, check the license yourself
[14:44:45 CEST] <DelphiWorld> DHE: :-P
[14:44:55 CEST] <DelphiWorld> if i get 100 player i should be cool ;)
[14:45:01 CEST] <furq> you need a license regardless though don't you
[14:45:14 CEST] <furq> it's just free under a certain usage threshold
[14:45:20 CEST] <DelphiWorld> yes
[14:46:02 CEST] <furq> or at least it is for h.265
[14:46:18 CEST] <DHE> yeah h265 licensing is dramatically different, and not in a good way for users
[14:46:25 CEST] <DelphiWorld> H.265 is pretty far away
[14:46:42 CEST] <furq> hopefully it'll never properly land
[14:46:47 CEST] <DelphiWorld> Lulz
[14:46:58 CEST] <DelphiWorld> someone do iptv here ?
[14:47:01 CEST] <DHE> well, if hardware accelerated vp10 processing becomes a thing, that could happen
[14:47:02 CEST] <furq> although doubtless apple will try their best
[14:47:14 CEST] <furq> and yeah i'm thinking about vp10/av1 or whatever
[14:47:17 CEST] <DelphiWorld> DHE: vp10 allready out ?
[14:47:42 CEST] <furq> if those are in a decent state by the time hevc becomes widespread enough to use, i can see all the big players holding off
[14:47:49 CEST] <furq> one can dream anyway
[14:48:42 CEST] <DHE> DelphiWorld: might be confusing it with vp9
[14:48:48 CEST] <furq> is vp10 still a separate thing
[14:48:51 CEST] <DelphiWorld> yes there's vp9
[14:48:56 CEST] <furq> i thought it had pretty much been merged into av1 at this point
[14:49:22 CEST] <DelphiWorld> if i could encode to vp9 + opus and send to a streaming server it'll be awesome, fuck H.264
[14:49:29 CEST] <furq> you can do that with icecast
[14:49:33 CEST] <furq> it didn't work very well when i tried it though
[14:49:43 CEST] <DelphiWorld> icecast dont do yet dash
[14:49:55 CEST] <DHE> but if my DLNA client can't play VP10 without a core i5 to do the legwork, I find that discouraging.
[14:50:00 CEST] <furq> it still technically works in browsers
[14:50:00 CEST] <DelphiWorld> actualy my plan is to do dash
[14:50:04 CEST] <DelphiWorld> i'm using hls currently
[14:50:09 CEST] <furq> but yeah it didn't work very well for me
[14:50:16 CEST] <DHE> <DelphiWorld> someone do iptv here ?   # hmm?
[14:51:04 CEST] <DelphiWorld> DHE: i mean do someone work for a iptv company like i do
[14:51:45 CEST] <DHE> yeah, my company does TV over fiber
[14:52:20 CEST] <DelphiWorld> DHE: pm ?
[14:52:36 CEST] <DHE> sorry, gotta reboot my PC. maybe in a bit.
[14:52:51 CEST] <DelphiWorld> DHE: waiting for you, ding
[15:00:44 CEST] <DelphiWorld> rebooting
[15:46:44 CEST] <DelphiWorld> back
[16:21:40 CEST] <qy> hi, I'm trying to reencode a video taken from a camera, from mjpeg to webm, have --enable-libvpx but it fails with "Could not write header for output file  #0 (incorrect codec parameters ?): Invalid argument"
[16:21:50 CEST] <qy> here's the paste http://pastebin.com/02gWjCvb
[16:21:56 CEST] <qy> what's wrong?
[16:33:52 CEST] <jkqxz> qy:  You're writing to mp4, not webm (and vp8 is not supported in mp4).  Specify the output format explicitly ("-f webm") or make the file extension ".webm".
[16:34:44 CEST] <DelphiWorld> wb DHE
[16:35:31 CEST] <qy> jkqxz: thanks!  This is a big world for someone that only needs to do some conversions from time to time...
[16:40:00 CEST] <DHE> and he's gone.
[16:46:02 CEST] <qy> jkqxz: I don't know if you're a developer of ffmpeg, but one suggestion if to add descriptive explanations for error messages like the one I had, so that common users like myself can know why the commands don't work
[16:48:02 CEST] <jkqxz> The actual error was further up: "[mp4 @ 0x14d2c80] Could not find tag for codec vp8 in stream #0, codec not currently supported in container".
[16:55:22 CEST] <qy> I've seen it now... thanks!
[18:07:05 CEST] <DHE> DelphiWorld: hey you're back
[19:18:08 CEST] <Polochon_street> Hi ! I got an audio file which ffmpeg has trouble to read/analyze via ffprobe, but gives proper output with mediainfo/exiftool/whatever. Where should I report that ?
[19:20:21 CEST] <durandal_1707> on trac
[19:28:39 CEST] <CFS-MP3>  is there a "best card money can buy for ffmpeg on linux"? FFmpeg being the only important tool (don't care about desktop, opengl, etc). I know there's a grid of supported chipsets etc but I couldn't find useful benchmarks. First use case would be decode many channels (UDP live stream) and produce different composites
[19:32:52 CEST] <kepstin> CFS-MP3: not sure what you mean by "best card". You're probably best off getting some big intel xeon chips and not bothering with a gfx card at all.
[19:50:39 CEST] <CFS-MP3> kepstin That's what I'd like to find out for sure... by best card I mean "card that will be able to handle most decoding/encoding" :-) I know it a generic question
[19:51:18 CEST] <kepstin> well, i gave you the general generic answer :)
[20:03:56 CEST] <furq> CFS-MP3: if nothing else you can limit your search to recent quadros
[20:04:11 CEST] <furq> but nvidia seem to be making it intentionally unclear what capabilities each card has
[20:04:30 CEST] <furq> i'd tend to agree with kepstin though
[20:05:16 CEST] <Polochon_street> durandal_1707: should I report it like a normal bug, or is there some dedicated part on trac ?
[22:46:19 CEST] <flyBoi> Asked this yesterday, thought I found an answer, turns out I was wrong:
[22:46:40 CEST] <flyBoi> Using fluent-ffmpeg, is there a way I can take the first 10 seconds and last 10 seconds of a video, and merge them into one output file?
[22:57:55 CEST] <Bray90820> Can someone tell me what these error mean?
[22:57:56 CEST] <Bray90820> http://pastebin.com/raw/hK2qja9X
[22:58:14 CEST] <furq> [mp4 @ 0x7fb16c000600] Could not find tag for codec wmav2 in stream #1, codec not currently supported in container
[22:58:29 CEST] <furq> is that not clear enough
[22:59:54 CEST] <iive> mp4 doesn't support wma audio
[23:00:03 CEST] <Bray90820> So basically it can't put the WMA into an mp4?
[23:00:07 CEST] <Bray90820> Yes
[23:00:26 CEST] <Bray90820> So how would I convert it to something else?
[23:22:00 CEST] <Kadigan> Bray90820: just convert the audio (-c:a and friends).
[23:22:25 CEST] <Kadigan> If it ends up out of sync, reconvert the entire thing or split and rejoin (in two separate commands).
[23:23:05 CEST] <Bray90820> so remove copy?
[23:23:16 CEST] <Bray90820> or what
[23:23:27 CEST] <Kadigan> You can copy video and audio independently.
[23:23:50 CEST] <Bray90820> If you look at my paste you will see I did one with "-c:a copy" and  it still failed
[23:24:05 CEST] <Kadigan> Like it says, WMA is not supported in MP4.
[23:24:14 CEST] <Bray90820> Yes
[23:24:24 CEST] <Kadigan> So yes, You need to re-encode the audio.
[23:24:40 CEST] <Bray90820> Yes and my question is how would I re encode the audio
[23:25:12 CEST] <Kadigan> https://ffmpeg.org/ffmpeg.html#Main-options
[23:25:44 CEST] <Kadigan> To make it easier I will suggest using aac as the codec.
[23:34:31 CEST] <Bray90820> Kadigan: What code would I use tho?
[23:35:06 CEST] <Kadigan> Please read the manual, seriously. It's not hard, there are examples.
[23:36:59 CEST] <Chloe> ffmpeg -i input.wmv -c:v copy -c:a youraudioformathere output.mp4
[23:37:06 CEST] <Chloe> or something
[23:37:27 CEST] <Pxl_> hey, anyone ever had an instance where a whole ffmpeg command was being ignored?
[23:40:52 CEST] <Chloe> what do you mean by 'ignored'?
[23:43:30 CEST] <Pxl_> i have a bash script that runs a bunch of commands and at one of my later ones when i go to 2 pass encode at the end, my script completely skips over it. :P
[23:43:49 CEST] <Chloe> upload the script?
[23:47:15 CEST] <Bray90820> Chloe: Thanks that worked
[23:49:27 CEST] <Kadigan> Pxl_: I've had that issue often, and no, I don't know what causes it. It's either that, or I get a "file not found" when it's clearly there.
[23:49:39 CEST] <Kadigan> It only happens to me on Mac OS X, though...
[23:50:13 CEST] <Chloe> '"file not found" when it's clearly there' this is generally because of dynamic libs not being there
[23:50:32 CEST] <Kadigan> Chloe: but it works if I re-run the script (other files are then 'not found').
[23:50:34 CEST] <Kadigan> It's a random thing.
[23:50:38 CEST] <Chloe> odd
[23:50:42 CEST] <Kadigan> It is.
[23:50:51 CEST] <Chloe> try a different shell?
[23:50:56 CEST] <Pxl_> yeah, cant really upload the entire script for non-disclosure. but yeah its odd. tried manually running the command its skipping outside of the script and ran just fine ... glad to hear that im not the only one
[23:52:21 CEST] <Kadigan> Luckily it doesn't happen often.
[23:52:28 CEST] <Chloe> I'm not sure how you think we're supposed to help you with such little information, but whatever.
[23:52:29 CEST] <Kadigan> In fact, I suspect it might have something to do with the path, not the file.
[23:53:59 CEST] <Kadigan> It tends to happen in loops though, not when I spell the commands out.
[23:54:12 CEST] <Kadigan> Maybe something with how I escape characters.
[23:54:42 CEST] <Kadigan> In general, I'm calling it a bash issue, until I'm sufficiently certain of it being ffmpeg-specific.
[23:54:47 CEST] <Chloe> Kadigan; which editor do you use? it may be inserting weird characters
[23:54:55 CEST] <Kadigan> Chloe: TextEdit and Sublime Text.
[23:55:09 CEST] <Kadigan> (TextEdit is OSX-specific I believe)
[23:55:26 CEST] <Kadigan> And yes, I checked, but not thoroughly.
[23:55:58 CEST] <Kadigan> I basically chucked it onto the "I suck at bash" pile
[23:56:03 CEST] <Kadigan> and rewrote the stuff in PHP ;)
[23:56:37 CEST] <furq> i think a faerie just died
[23:57:06 CEST] <Kadigan> What? Because I rewrote it in PHP? It's a language I know moderately well, and it works for me.
[23:58:20 CEST] <Kadigan> (at the very least, I can have a script written up in 3 minutes w/o having to constantly google for syntax - good enough for me)
[23:59:39 CEST] <Kadigan> Hell, why am I even defending my use of it? It's there, it works, I can move on to more important stuff like sending deliveries to clients.
[00:00:00 CEST] --- Thu Jul 28 2016


More information about the Ffmpeg-devel-irc mailing list