[Ffmpeg-devel-irc] ffmpeg.log.20150605
burek
burek021 at gmail.com
Sat Jun 6 02:05:01 CEST 2015
[01:35:03 CEST] <bbloom> is there a way to set a AV_OPT_TYPE_BINARY option via AVDictionary?
[01:51:02 CEST] <bbloom> oh wow, ok gotta hex encode it
[02:15:42 CEST] <dgordon> Afternoon everyone - I have a question about the fastest way to scale video, I need to downres a lot of video and am currently using libx264 - I tried using nvenc but the scaling is not good with that library - its super fast but the quality is horrible when I scale - any suggestions?
[02:19:35 CEST] <pzich> also please upload some screengrabs if you can
[02:19:46 CEST] <dgordon> for my nvenc? or for my libx264?
[02:19:51 CEST] <pzich> both
[02:25:01 CEST] <dgordon> http://pastebin.com/7mhqPUYP
[02:26:25 CEST] <pzich> so actual size libnvenc and libx264 look good, scaled libx264 looks good, but scaled libnvenc does not?
[02:26:59 CEST] <dgordon> correct
[02:28:10 CEST] <dgordon> working on some images - need to get a generic source file
[02:28:13 CEST] <pzich> does it look better/different if you scale it with libx264, then actual size encode with libnvenc?
[02:28:34 CEST] <dgordon> the actual size encode for libnvenc looks good
[02:28:59 CEST] <pzich> right, but what about at 900 across, but not doing the -vf scale at the same time?
[02:29:38 CEST] <pzich> I suspect the problem is with encoding libnvenc with those settings/resolution, not the scale itself, but this will help diagnose that
[02:29:39 CEST] <dgordon> not following the question -
[02:30:08 CEST] <pzich> you're doing libnvenc and the scale at the same time, right? And seeing a problem?
[02:30:13 CEST] <dgordon> yes
[02:30:19 CEST] <pzich> let's try them one at a time
[02:30:32 CEST] <pzich> scale it with a different encoder, then encode libnvenc with it already at 900
[02:30:32 CEST] <dgordon> the source files are already 264
[02:30:44 CEST] <pzich> but not 900?
[02:30:57 CEST] <dgordon> no - 1920x1080
[02:31:13 CEST] <pzich> right, let's try libnvenc with no -vf flag with an already 900 input
[02:31:19 CEST] <dgordon> my end goal is to drop the res - was hoping the nvenc would do it because its so fash
[02:31:44 CEST] <pzich> yep, that'd be awesome
[02:31:50 CEST] <pzich> let's try to figure out what's wrong
[02:31:53 CEST] <dgordon> that will look fine - the nvenc reencode from 1080p to 1080p looks good
[02:32:06 CEST] <pzich> perhaps, by removing the scale step, but operating on something that's already at scale
[02:32:21 CEST] <dgordon> right but the purpose here is to scale it :)
[02:32:29 CEST] <pzich> yep, and that works fine in libx264?
[02:32:39 CEST] <dgordon> would -s 900x505 be any different than the -vf option?
[02:32:50 CEST] <dgordon> uses the same library right?
[02:32:53 CEST] <pzich> it does scaling a bit differently, but I think you're better off with -vf
[02:35:33 CEST] <dgordon> hmm - just crashed my machine
[02:37:42 CEST] <pzich> I'm about to head out, so best of luck. My suggestion is that, since you can encode scaled with libx264, but have problems with scaling and libnvenc, try to diagnose if the problem is libnvenc or the scaling by pre-scaling with x264 and then nvenc encoding at actual size. If it looks great, something is up with scaling, if it looks shitty, it's because that's what you get with nvenc with those settings and that resolution.
[02:38:09 CEST] <pzich> If the problem is with the latter, you may need to adjust your encoding settings, or it may be that you just don't get good quality at that speed, or that encoder.
[02:38:38 CEST] <dgordon> is there a way to scale with 264 and encode with nvenc on the same pass?
[02:39:07 CEST] <pzich> not that I know of, I'm suggesting writing it out as a file for a piece of test footage just to see
[02:39:13 CEST] <c_14> x264 isn't doing the scaling
[02:39:19 CEST] <pzich> right
[02:45:50 CEST] <dgordon> also the end result video crashes windows media player and doesnt load into adobe products :(
[02:48:34 CEST] <llogan> that's an odd git hash. i don't see it in git log
[02:50:29 CEST] <dgordon> I havent been able to build this from source yet in windows - can do it easy on my mac but am running into issues on windows
[02:51:40 CEST] <dgordon> found this version from here: https://github.com/MediaBrowser/MediaBrowser/wiki/GPU-Tanscoding
[02:51:55 CEST] <dgordon> working on a cross-compiler on my mac right now
[02:53:21 CEST] <llogan> i think you're using a fork
[02:53:46 CEST] <dgordon> k - do you know of any static builds with nvenc that I can download?
[02:54:25 CEST] <dgordon> (for windows)
[02:54:27 CEST] <llogan> no. isn't it nonfree? if it is then it is non-redistributable
[02:54:35 CEST] <dgordon> it is non-free
[02:54:49 CEST] <llogan> there there should be no distributed binaries
[02:54:52 CEST] <llogan> *then there
[02:55:06 CEST] <dgordon> and building in windows sucks
[02:55:34 CEST] <llogan> i don't know anything about that
[03:22:12 CEST] <foxtrotniner> this video encoded by ffmpeg won't play on IE 11, using this line: ffmpeg -framerate 1 -i foo%d.jpg -c:v libx264 -pix_fmt yuv420p -r 25 -crf 38 test.mp4. Although it works if I use the -s hd1080 flag, but its not the resolution I want
[03:23:00 CEST] <foxtrotniner> I put a custom resolution -s 4172x2000 but IE refuses to play it in html5
[03:23:53 CEST] <c_14> You sure IE supports that resolution?
[03:24:34 CEST] <foxtrotniner> not sure, but chrome seems to
[03:24:44 CEST] <dgordon> llogan - my problems came out of the forked version - I just built a cross compiled version on my mac and it looks great
[03:24:59 CEST] <c_14> foxtrotniner: If at first you don't succeed, blame IE.
[03:25:27 CEST] <foxtrotniner> yes IE is to blame for all problems
[03:25:45 CEST] <pzich> it's almost certainly too big for IE, looks like a lot of 264 decoders don't support a resolution that big
[03:26:47 CEST] <pzich> have you tried 4096 or 2560? not sure where the cutoff is
[03:26:52 CEST] <foxtrotniner> what would be a good resolution?
[03:27:01 CEST] <foxtrotniner> i guess its trial and error from here on out
[03:27:11 CEST] <pzich> basically :-/
[03:27:31 CEST] <klaxa> i vaguely remember something about windows media player being unable to play portait videos, i wouldn't be surprised if IE has some stupid restictions like that too
[03:28:43 CEST] <pzich> might be 4096x2304 https://msdn.microsoft.com/en-us/library/windows/desktop/dd797815(v=vs.85).aspx#format_constraints
[03:29:12 CEST] <pzich> looks like the max is 1920 for Win7
[03:31:11 CEST] <foxtrotniner> hmm
[03:31:21 CEST] <foxtrotniner> lets try 4096x2304
[03:32:33 CEST] <llogan> dgordon: we don't need no stinkin' forks
[03:38:03 CEST] <foxtrotniner> hmm 4096x2000 seems to work
[03:38:25 CEST] <foxtrotniner> but even though it still plays, IE quality can't compare to chrome
[03:38:43 CEST] <foxtrotniner> i still think IE is downing the quality back to 1080
[04:56:13 CEST] <diffuse> I've been debugging an issue and it seems i am leaking memory and cant seem to figure out if it is my use of the ffmpeg api or osmething in ffmpeg itself.
[04:57:23 CEST] <diffuse> i am calling avformat_alloc_context, avformat_open_input, avformat_find_stream_info, avformat_close_input, avformat_free_context
[04:57:58 CEST] <diffuse> and valgrind claims avformat_alloc_context is leaking memory with calls to av_malloc
[04:58:49 CEST] <klaxa> that sounds somewhat unspecific, can you provide code?
[05:00:54 CEST] <diffuse> sure
[05:03:03 CEST] <diffuse> http://pastebin.com/Uzx0PuFU
[05:05:45 CEST] <klaxa> hmm... avformat_free_context() should clean everything up
[05:05:48 CEST] <klaxa> weird
[05:05:55 CEST] <diffuse> it definitely doesnt
[05:06:44 CEST] <diffuse> i run the same file about a dozen times in my test
[05:06:53 CEST] <diffuse> i end up leaking a little over 500k
[05:07:16 CEST] <diffuse> i've got a similar piece of code that i use my own avio context, the leak doesnt occur
[05:09:48 CEST] <diffuse> just as a test, i just do avformat_alloc_context/free_context, everything is good as expected
[05:11:21 CEST] <diffuse> okay, the leak doesnt actually occur unless i call avformat_find_stream_info
[05:13:18 CEST] <klaxa> hmm...
[05:13:50 CEST] <diffuse> i've tested with the latest release and also HEAD
[05:19:44 CEST] <diffuse> klaxa: so...I just explicitly set pFormatCtx->probesize2 = 4096;
[05:19:50 CEST] <diffuse> and reran, no leaks
[05:19:56 CEST] <klaxa> the best suggestion i can give is -- what
[05:20:10 CEST] <diffuse> no other changes
[05:20:51 CEST] <diffuse> wait...hold that thought
[05:22:14 CEST] <diffuse> ok, no leaks when setting probesize2 explicitly
[05:25:58 CEST] <klaxa> looking through the code i can't find any unfreed mallocs
[05:26:17 CEST] <klaxa> at least not in combination with unset probesize2
[05:27:19 CEST] <diffuse> hm
[05:27:40 CEST] <diffuse> does ffmpeg always using memalign?
[05:28:11 CEST] <diffuse> i guess that doesnt matter
[05:28:19 CEST] <diffuse> but i find it odd my leak doesnt occur if i set it
[05:33:09 CEST] <klaxa> well the best suggestion i can give is to step through it with a debugger and try to find where memory is allocated when you don't set probesize2
[05:37:36 CEST] <diffuse> yeah, i will have to rebuild with debug flags
[05:37:55 CEST] <diffuse> i dont feel like going through the assembly
[05:38:03 CEST] <klaxa> i suggest adding --disable-optimizations
[05:38:11 CEST] <klaxa> it helped me follow the debugger
[05:38:15 CEST] <diffuse> rgr
[06:15:27 CEST] <Prelude2004c> hey everyhone good evening
[06:15:42 CEST] <Prelude2004c> question.. is there a good way to get ffmpeg to playout files in sequence without delay?
[06:15:56 CEST] <Prelude2004c> like if i want to play one file after another without any delay ?
[06:16:04 CEST] <Prelude2004c> like for a playout server
[06:16:38 CEST] <klaxa> what about the concat demuxer?
[06:16:54 CEST] <klaxa> https://trac.ffmpeg.org/wiki/Concatenate
[07:26:31 CEST] <foxtrotniner> ffmpeg is giving an unrecognized option framerate, is there an alternative?
[08:19:35 CEST] <DrBotato> i'm using the following command to try to cross fade two 1080p videos. http://kopy.io/AFjl5
[08:19:49 CEST] <DrBotato> the cross fade works fine. but the output video aspect ratio is wonky
[08:20:20 CEST] <DrBotato> the strangest part is when i open the output video in VLC it is still at 1080p in the media information
[08:20:45 CEST] <DrBotato> but it defaults to playing at 5:4
[08:20:50 CEST] <DrBotato> instead of playing at 16:9
[08:21:09 CEST] <DrBotato> is there some sort of header i need to add to the output video file to force it to default to 16:9 ?
[08:42:22 CEST] <LigH> Hello
[08:42:45 CEST] <anoop_r> hi
[08:45:52 CEST] <anoop_r> how to add avisynth to ffmpeg
[08:46:00 CEST] <LigH> Just compiled ffmpeg with jb_alvarado's media-autobuild_suite; ffplay refuses to play AviSynth scripts and complains that my AviSynth version is too old; but I have the brand new version 2.60 final installed.
[08:46:53 CEST] <LigH> Should be a compile-time option: --enable-avisynth
[08:48:03 CEST] <anoop_r> did i have to compile this first
[08:48:03 CEST] <anoop_r> http://sourceforge.net/projects/avisynth2/files/AviSynth%202.6/AviSynth%202.6.0/Avisynth_260_src.7z/download
[08:48:42 CEST] <LigH> No, you don't need to compile AviSynth as frameserver on its own. You only need to enable ffmpeg to use it when it is installed.
[08:49:15 CEST] <LigH> Just found my mistake: I should not have used the 64-bit version.
[08:49:22 CEST] <anoop_r> no way to add it into ffmpeg like x265 or x264
[08:50:12 CEST] <LigH> AviSynth is a frame server installed into Windows. You can't integrate its filters into ffmpeg (yet?), ffmpeg has own video filters.
[08:50:12 CEST] <anoop_r> ?
[08:50:38 CEST] <LigH> And x264 or x265 don't have AviSynth integrated either.
[08:51:07 CEST] <LigH> You can only enable them to use the AviSynth API to load video through an installed version.
[08:51:16 CEST] <anoop_r> ok
[08:51:30 CEST] <anoop_r> i had build ffmpeg using mingw64
[08:51:53 CEST] <anoop_r> so did i have to use 64bit avisynth
[08:52:16 CEST] <LigH> If you build a 64 bit version of ffmpeg, it would look for a 64 bit AviSynth.
[08:52:39 CEST] <LigH> Only AviSynth+ (avs-plus.net) is a stable 64 bit AviSynth version.
[08:53:05 CEST] <LigH> The original AviSynth (sf.net/projects/avisynth2) is 32-bit only.
[08:53:11 CEST] <anoop_r> does ffmpeg works with avisynth+
[08:53:44 CEST] <LigH> Let me check.
[08:53:59 CEST] <anoop_r> ok
[08:55:12 CEST] <LigH> Well, it should, but the error message I get is confusing.
[08:55:23 CEST] <LigH> [avisynth @ 0000000000356f80] AviSynth version is too old. Please upgrade to either AviSynth 2.6 >= RC1 or AviSynth+ >= r1718.
[08:55:38 CEST] <LigH> There is no AviSynth+ r1718 available, as far as I know.
[08:55:57 CEST] <LigH> Still the last build on their homepage and in their github releases is r1576
[08:56:17 CEST] <LigH> I'm already asking if there is a newer release, and where to get it...
[08:57:05 CEST] <LigH> http://www.mediafire.com/download/hvnjb8wy54ys7gl/AviSynth%2B_v0.1.0_r1825-MT.exe
[08:57:06 CEST] <anoop_r> did you tried avisynth 2.6 with 64 bit ffmpeg
[08:57:21 CEST] <LigH> I don't have any 64-bit AviSynth 2.60 final.
[08:57:31 CEST] <LigH> There is only a 32-bit AviSynth 2.60 final.
[08:57:41 CEST] <LigH> So I can only use 32-bit ffmpeg with it.
[08:58:01 CEST] <anoop_r> just try 32 bit with 64bitffmpeg
[09:00:48 CEST] <LigH> It is not possible. A 64 bit application cannot use a 32 bit DLL.
[09:01:07 CEST] <anoop_r> ok
[09:01:43 CEST] <anoop_r> does AviSynth+_v0.1.0_r1825-MT works with ffmpeg 64bit
[09:01:54 CEST] <LigH> Installing ... please wait ...
[09:02:26 CEST] <LigH> OK, at least ffplay plays Version.avs.
[09:02:46 CEST] <LigH> Now remember, AviSynth+ 64 bit cannot use 32-bit plugins.
[09:03:55 CEST] <anoop_r> ffmpeg 64 uses 32 bit plugins ?
[09:05:24 CEST] <LigH> No
[09:07:14 CEST] <anoop_r> so this version of avisynth+ works perfectly with 64bit ffmpeg
[09:07:48 CEST] <LigH> ffmpeg 32 bit will use AviSynth 32 bit which can load 32 bit plugins; there are plenty of.
[09:08:11 CEST] <LigH> ffmpeg 64 bit will use AviSynth+ 64 bit which can load 64 bit plugins; there are only few, yet...
[09:10:25 CEST] <anoop_r> i am trying to make a gui for ffmpeg
[09:10:49 CEST] <anoop_r> so any way to filter out ffmpeg output
[09:11:29 CEST] <anoop_r> like i need media info resolution fps etc form the cli
[09:12:45 CEST] <LigH> Another GUI?
[09:12:55 CEST] <LigH> There are already so many...
[09:13:04 CEST] <LigH> Like Hybrid by Selur
[09:13:18 CEST] <anoop_r> no its just for my acdemic project
[09:13:35 CEST] <anoop_r> a transcoder for x265
[09:14:48 CEST] <LigH> Then I would recommend to ask that in a forum where he is a member, e.g. doom9 or videohelp. Capturing console outputs is a pretty usual task for GUI authors-.
[09:16:59 CEST] <mrskman> hi, any reason why http://www.ffmpeg.org/releases/ returns 403?
[09:18:56 CEST] <anoop_r> my net got disconnected
[09:19:03 CEST] <anoop_r> so any idea or method
[09:19:18 CEST] <LigH> Then I would recommend to ask that in a forum where he is a member, e.g. doom9 or videohelp. Capturing console outputs is a pretty usual task for GUI authors-.
[09:19:47 CEST] <LigH> mrskman: No idea. zeranoe builds are fresh.
[09:20:26 CEST] <anoop_r> i had build ffmpeg+x265 using msys2
[09:20:43 CEST] <anoop_r> any methode to do it in windows using msvc
[09:22:03 CEST] <anoop_r> i had build it seperatly using msvc
[09:22:19 CEST] <anoop_r> but no methode found to build it together
[09:23:46 CEST] <LigH> I don't know how hard it would be. Since media-autobuild_suite by jb_alvarado builds both in MSYS2/MinGW64 without problems, I am satisfied.
[09:24:53 CEST] <anoop_r> i too build it using mingw64
[09:25:16 CEST] <anoop_r> but failed in building using msvc
[09:32:19 CEST] <LigH> Bye
[09:34:12 CEST] <anoop_r> see you later
[10:17:22 CEST] <nick234> Hi All, Does anyone know equivalent ffmpeg C API call for command "ffmpeg -ss start -i input.mp4 -t duration output.mp4"
[10:19:08 CEST] <cehoyos> nick234: Have you looked at the files in the doc/examples folder?
[10:19:40 CEST] <cehoyos> There is no answer to your question and your question indicates that you have to put some effort into a solution.
[10:19:40 CEST] <nick234> no
[10:22:03 CEST] <cehoyos> DrBotato: Complete, uncut console output missing.
[10:25:27 CEST] <cehoyos> mrskman: The server is currently being replaced, http://ffmpeg.org/download.html works
[11:39:31 CEST] <anoop_r> is it possibel to add support for heaac to ffmpeg ?
[11:40:10 CEST] <BtbN> HE-AAC v2 is supported since ffmpeg 0.8
[11:40:27 CEST] <anoop_r> which codec
[11:40:55 CEST] <anoop_r> means which encoder
[11:41:33 CEST] <BtbN> no encoder, decoder
[11:41:42 CEST] <BtbN> libfdk can propably encode it though
[11:41:56 CEST] <anoop_r> i want encoder
[11:42:19 CEST] <BtbN> If you don't want to use libfdk_aac, you'll have to write one first.
[11:42:55 CEST] <anoop_r> libfdk have heaac
[14:03:08 CEST] <termos> I'm trying to set some metadata in my flv stream by doing av_set_dict(&format_ctx->metadata, "some key", "some value", 0) but it's not showing up in my rtmp dump of the stream. Am I missing something?
[14:07:21 CEST] <termos> ah, I need to pass the AVDictionary to avformat_write_header(format_ctx, &format_ctx->metadata) like so
[14:43:19 CEST] <hefest> guys, any idea why when im merging 3 mp3 files of total length 25 secs , merged file is 25.75 secs long?
[14:43:28 CEST] <hefest> im doing it with ffmpeg -f concat
[14:53:45 CEST] <cehoyos> hefest: Please post your command line including the complete, uncut console output on pastebin
[14:56:17 CEST] <hefest> cehoyos: can you tell me how to specify Hz, mono and bitrate with: ffmpeg -filter_complex "aevalsrc=0:d=5" "silence_5.mp3" ?
[14:56:45 CEST] <cehoyos> I don't understand your question, sorry.
[14:57:21 CEST] <hefest> cehoyos: im generating silence of particular length, i'd like it to have following spec: Stream #0:0: Audio: mp3, 22050 Hz, mono, s16p, 32 kb/s
[14:57:35 CEST] <hefest> cehoyos: because im concatenating it later with the mp3 file with the same spec
[15:03:30 CEST] <hefest> cehoyos: nvm, got it
[15:44:20 CEST] <KrzysOsw> Hello, i need add to my camera to ffmpeg something like news bar (with scrolling text). I`m trying using drawtext from file, and it`s works,but the text does not move. How to scroll it?
[15:55:55 CEST] <hefest> what does this "und" mean? Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 5 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
[15:58:34 CEST] <hefest> https://gist.github.com/akomic/2f6e7a0e47dbfcf0865a
[15:58:37 CEST] <hefest> any ideas?
[16:04:34 CEST] <relaxed_> hefest: -map 0 -map 1
[16:06:03 CEST] <relaxed_> or -map 0:0 -map 1:0
[16:09:29 CEST] <relaxed_> you tried -map 0:1, which means the second stream of the first input, but it only contains a video stream (0:0)
[16:16:01 CEST] <spaam> hefest: undefined?
[16:22:52 CEST] <zumba_ad_> hey folks, i have a 1080i file. I need to deinterlace it. what is the param for it?
[16:26:32 CEST] <c_14> https://ffmpeg.org/ffmpeg-filters.html#yadif
[16:27:15 CEST] <zumba_ad_> also found an answer but a bit confusing - http://superuser.com/questions/253691/how-to-convert-108050i-72050p-using-ffmpeg
[16:32:04 CEST] <c_14> The easiest case is just -vf yadif, if you want one frame per field, -vf yadif=mode=1, if you're not sure all frames are interlaced -vf idet,yadif=deint=interlaced, if you want you can throw an mcdeint after the yadif
[16:32:26 CEST] <c_14> If the video is also telecined you'll need to use an inverse telecine like pullup/decimate
[16:33:26 CEST] <zumba_ad_> got it working, ffmpeg -i c.mov -vf yadif=1:-1:0 -vcodec libx264 c.mp4
[16:35:23 CEST] <zumba_ad_> i'll try your params too
[16:36:03 CEST] <zumba_ad_> it worked and it produced a smaller file. I haven't played it yet
[16:36:17 CEST] <c_14> You might want to adjust the crf etc
[16:36:51 CEST] <zumba_ad_> i notice the playback was smoother on the first one i made
[16:37:29 CEST] <hefest> relaxed_: got it, thanks. i though -map 0:1 means 0 stream from input goes to 1 stream to output, and position of the -map switch on the command line determines the input. obviously wrong
[16:38:47 CEST] <KrzysOsw> What with my news bar? :)
[16:41:27 CEST] <c_14> KrzysOsw: update the "news ticker" 2 characters at a time. Delete a character from the front and add one to the back
[16:41:32 CEST] <c_14> Might make it look like it's scrolling
[16:41:37 CEST] <c_14> You'd have to get the timing down right though.
[16:42:31 CEST] <zumba_ad_> what is this warning folks? [h264 @ 0x7fdcc5649600] mmco: unref short failure
[16:43:15 CEST] <KrzysOsw> Too bad that ffmpeg not support something like a news ticker...
[16:45:16 CEST] <zumba_ad_> does this output tell that the video is interlaced? I know it's interlaced because I see the lines when i play it
[16:45:19 CEST] <zumba_ad_> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 11576 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)
[16:45:47 CEST] <zumba_ad_> or is there a better tool for checking interlace or not
[16:45:59 CEST] <c_14> ffmpeg -i video -vf idet -f null /dev/null
[16:46:13 CEST] <zumba_ad_> ok, trying it
[16:46:17 CEST] <[-T-]> hi, by change, has anyone here played with QSV ?
[16:46:38 CEST] <zumba_ad_> c_14: it's like it's playing it
[16:46:47 CEST] <c_14> zumba_ad_: ja, it'll take a while
[16:46:53 CEST] <zumba_ad_> ah :D it's done
[16:47:09 CEST] <c_14> It'll tell you how many frames are tff bff and progressive
[16:47:14 CEST] <zumba_ad_> http://pastebin.com/4E1reQQV
[16:47:30 CEST] <zumba_ad_> i don't know how to analyze the output
[16:47:53 CEST] <zumba_ad_> so progressive 0 which means, it's interlaced
[16:48:16 CEST] <c_14> tff = top field first
[16:48:20 CEST] <zumba_ad_> am I right since 1 has always been mapped to true
[16:48:43 CEST] <zumba_ad_> what is top field first
[16:49:10 CEST] <c_14> You know how interlacing splits a frame into fields?
[16:49:18 CEST] <c_14> tff means that the top field is sent first
[16:49:24 CEST] <zumba_ad_> ah, check this out
[16:49:26 CEST] <zumba_ad_> [Parsed_idet_0 @ 0x7fdf38d00000] Single frame detection: TFF:4 BFF:2 Progressive:264 Undetermined:40
[16:49:38 CEST] <zumba_ad_> i ran it against the one i recently created. Progressives has non-zero
[16:50:09 CEST] <zumba_ad_> thanks for the syntax
[17:31:37 CEST] <DrBotato> cehoyos: console output: http://kopy.io/vHVpO
[17:32:59 CEST] <DrBotato> Input ... 1920x1080 [SAR 1:1 DAR 16:9]
[17:33:09 CEST] <DrBotato> output ... 1920x1080 [SAR 3:4 DAR 4:3]
[17:33:17 CEST] <DrBotato> same pixel amount, but aspect ratio changes
[17:33:21 CEST] <DrBotato> how do i force 16:9 ?
[17:33:51 CEST] <DrBotato> (this is the command i'm using: http://kopy.io/AFjl5)
[17:36:38 CEST] <JonG> I have a number of ffmpeg command line scripts that do things like cropping, merging, fading between videos etc. I was hoping to include the same methodology in the Ffmpeg C API library. Are there any good resources for effectively translating between the two systems? I found the tutorials by Stephen Dranger (e.g. https://github.com/chelyaev/ffmpeg
[17:36:38 CEST] <JonG> -tutorial), but they seem to be focused on displaying the video, rather than editing.
[18:25:31 CEST] <Anoia> JonG: does the source for the ffmpeg utility give you a clue?
[18:27:48 CEST] <cehoyos> DrBotato: [2:v]scale=1920x1080,trim=duration=142[over] is missing setdar=16/9
[18:28:03 CEST] <DrBotato> thanks!
[18:28:12 CEST] <cehoyos> You are using the "color" input as background for overlay and (luckily) the background is used as reference for the output.
[18:28:39 CEST] <cehoyos> And please remember to test current FFmpeg (that is current FFmpeg git head) when asking questions or reporting bugs
[18:28:46 CEST] <DrBotato> so like this: [2:v]scale=1920x1080,trim=duration=142,setdar=16/9
[18:29:02 CEST] <DrBotato> yeah i might be on an older ffmpeg
[18:29:06 CEST] <cehoyos> I didn't test test but yes, that looks as if it works.
[18:29:06 CEST] <DrBotato> been a while since i installed it
[18:29:23 CEST] <DrBotato> thanks for your help
[18:29:57 CEST] <cehoyos> np
[18:30:42 CEST] <DrBotato> yeah, looks like head is 2.6
[18:30:45 CEST] <DrBotato> and i'm on 2.3.3
[18:30:56 CEST] <DrBotato> probably should upgrade, maybe its a bit faster ;)
[18:35:13 CEST] <cehoyos> DrBotato: My point was that "current FFmpeg" is NOT 2.6
[18:35:23 CEST] <cehoyos> But current FFmpeg git head.
[18:38:18 CEST] <JonG> Anoia: So for example if I want to implement the equivalent of -filter_complex fade, you are suggesting look at the source code of filter_complex and look up the fade option? Is that correct?
[18:44:47 CEST] <cehoyos> JonG: No, you should look at doc/examples/filtering_video.c
[18:48:55 CEST] <JonG> cehoyos: OK, thanks, I'll take a look at those examples.
[19:25:58 CEST] <DrBotato> If i want to add a couple frames of text on a colored background with a certain font, is this possible with ffmpeg? or should i create a still frame first and then use the still frame with ffmpeg
[19:26:43 CEST] <c_14> DrBotato: I think the box option of drawtext should do it
[19:33:17 CEST] <DrBotato> [AVFilterGraph @ 0x7fd512d014c0] No such filter: 'drawtext'
[19:33:43 CEST] <DrBotato> http://kopy.io/r6tVW
[19:33:43 CEST] <c_14> Did you build with libfreetype support?
[19:33:54 CEST] <DrBotato> i just got the latest version from homebrew.
[19:33:58 CEST] <DrBotato> so i'm on 2.6.3
[19:34:05 CEST] <DrBotato> not sure if that includes libfreetype
[19:34:47 CEST] <c_14> Looks like it doesn't, you probabli need --with-freetype or something
[19:35:06 CEST] <DrBotato> ahh i see
[19:41:05 CEST] <DrBotato> ok sweet that fixed it. thanks!
[20:00:36 CEST] <DrBotato> ok i've mostly got this figured out, but with the timeline editing capabilities of drawtext, is it possible to insert frames instead of having the drawtext overlap on frames? ie. video for 10 frames. draw text for 4 frames. video resumes.
[21:56:23 CEST] <Zucca> Does/will ffmpeg have support for lagarith encoding?
[21:57:42 CEST] <durandal_1707> Nope
[21:58:24 CEST] <DrBotato> Can anyone tell me whats wrong with my ffmpeg command
[21:58:25 CEST] <DrBotato> http://kopy.io/8B6Ko
[22:03:36 CEST] <t4nk885_> Hi. I'm trying to decode H264 data that was extracted from an mp4 file using libavcodec. (Not by me)
[22:03:38 CEST] <t4nk885_> I've created a codec context for CODEC_ID_H264 (and initialized its width and height)
[22:03:41 CEST] <t4nk885_> I also have the avcC data, which I've placed in the codec context's extradata (& extradata_size)
[22:03:45 CEST] <t4nk885_> I've created an av_parser for the codec and can successfully feed it data, having it return packets to me.
[22:03:54 CEST] <t4nk885_> However, avcodec_decode_video2 seems to always fail for those frames, with the error "no frame!".
[22:03:57 CEST] <t4nk885_> Is there something I'm missing? E.g. something else I need to initialize from the original mp4 file?
[22:08:41 CEST] <t4nk885_> Sadly I don't have libav's pdbs (not downloadable?) and I doubt I'd be able to compile from original source easily (it seem to use gcc extensions?)
[22:09:10 CEST] <t4nk885_> So I'm sort of relegated to poking at the apis and reading the libav sources to try to figure out what's going on.
[22:25:51 CEST] <zumba_ad_> hey guys, i can't properly merge my 2 mp4 files. They have the same encoding parameters
[22:26:00 CEST] <zumba_ad_> but i'm using MP4Box
[22:26:10 CEST] <zumba_ad_> i used this tool few years ago and it worked well
[22:26:12 CEST] <zumba_ad_> any suggestions?
[22:52:35 CEST] <t4nk336> Maybe someone has a libavcodec x64 exe+pdb pair lying around?
[22:53:01 CEST] <t4nk336> What are the chances of that?
[22:54:23 CEST] <zumba_ad_> hey folks, what's wrong with this? it's not combining the 2 m4a files - ffmpeg -i new.m4a -i output128.m4a combined.m4a
[22:54:39 CEST] <c_14> -map 0 -map 1
[22:54:41 CEST] <zumba_ad_> i mean, it created combined.m4a but the audio from second file is missing]
[22:54:44 CEST] <c_14> and probably -c copy
[22:54:50 CEST] <zumba_ad_> oh
[22:54:53 CEST] <zumba_ad_> thanks
[22:55:27 CEST] <zumba_ad_> no, didn't work, it still didn't append it
[22:55:37 CEST] <c_14> https://trac.ffmpeg.org/wiki/Concatenate
[22:58:54 CEST] <t4nk336> I've done pretty much anything the h264dec.c example did but I still can't decode my data, and the only error is "no frame". (I'm the guy who left a few minutes ago talking about the same thing)
[23:00:57 CEST] <t4nk336> Then again mine is an avc1 h264 stream, while that example seems concerned with raw ones - but I'm pretty sure I did all that's required to handle avc1 (set extradata).
[23:01:02 CEST] <t4nk336> Of course, I can't be sure without the pdbs
[23:05:19 CEST] <t4nk336> I guess I'll try to build ffmpeg on windows
[23:06:18 CEST] <zumba_ad_> gheez, i can't combine mp4 files properly :( i've been troubleshooting it since morning
[23:07:27 CEST] <DrBotato> heh i'm in the same boat
[23:07:41 CEST] <DrBotato> as soon as first clip ends, all remaining frames drop
[23:10:38 CEST] <zumba_ad_> i was able to concatenate the m4a files but not the non-audio mp4 files
[23:10:47 CEST] <zumba_ad_> ffmpeg -f concat -i video.txt -c copy v.mp4
[23:11:06 CEST] <BtbN> remux them to mpeg-ts
[23:11:22 CEST] <zumba_ad_> what tool and what are the params please?
[23:11:26 CEST] <BtbN> ffmpeg
[23:11:32 CEST] <zumba_ad_> k
[23:11:33 CEST] <BtbN> just stream copy to a .ts file
[23:12:08 CEST] <zumba_ad_> how is that done?
[23:12:59 CEST] <zumba_ad_> got it
[23:13:14 CEST] <DrBotato> BtbN: got any idea what i'm doing wrong here? http://kopy.io/ I'm trying to take a 4 second video clip and add a couple seconds of text at the end (after the video clip ends, and extending the timeline of the resulting video).
[23:13:22 CEST] <zumba_ad_> it worked
[23:13:46 CEST] <DrBotato> its gives this erro: Past duration 0.999992 too large
[23:13:47 CEST] <zumba_ad_> now i need to combine this new mp4 and m4a, so -vcodec copy -acodec copy right
[23:13:50 CEST] <DrBotato> and then drops all other frames
[23:20:57 CEST] <DrBotato> anyone?
[23:21:02 CEST] <DrBotato> this is driving me totally crazy
[23:33:34 CEST] <t4nk336> oh boy
[23:33:37 CEST] <t4nk336> As I thought
[23:33:51 CEST] <t4nk336> There's no way I'm going to compile the damned thing in my MSVC
[23:33:57 CEST] <t4nk336> Which isn't even a supported version
[23:34:37 CEST] <t4nk336> Wait nevermind (yet), those are warnings rather than errors. maybe this will even work(!)
[00:00:00 CEST] --- Sat Jun 6 2015
More information about the Ffmpeg-devel-irc
mailing list