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

burek burek021 at gmail.com
Tue Feb 18 02:05:01 CET 2014


[00:18] <youmi> hi , is it possible to add to an output flv stream (flash) a subtitles from a file ?
[00:21] <llogan> youmi: hardsubs or softsubs? i don't know if flv can handle softsubs.
[00:21] Action: llogan is ignorant of the FLV specs and too lazy to read them
[00:21] <youmi> huu i don't know, most of them are .srt files
[00:22] <llogan> do you want to encode the subtitles into the video? sometimes referred to as "burn in" the subtitles.
[00:24] <youmi> well it's a streaming to a flash player (ustream) i just want to add it live to the video when i am streaming it
[00:25] <llogan> use the subtitles or ass filter
[00:25] <llogan> http://ffmpeg.org/ffmpeg-filters.html#subtitles-1
[00:25] <llogan> http://ffmpeg.org/ffmpeg-filters.html#ass
[00:26] <kris_> if i want to enable x11grab, do i just need to include --enable-x11grab on ./configure?
[00:26] <llogan> that's half of it. you also need to install some stuff.
[00:26] <llogan> youmi: https://trac.ffmpeg.org/wiki/How%20to%20burn%20subtitles%20into%20the%20video
[00:26] <youmi> thanks but is it possible to do it live to my stream ?
[00:26] <llogan> i don't see why not
[00:27] <llogan> kris_: such as libx11-dev libxext-dev libxfixes-dev for Dumbian systems
[00:27] <youmi> i found the second link but it's for burning the subtitles
[00:27] <llogan> i thought that's what you wanted
[00:27] <kris_> llogan: I got that from https://trac.ffmpeg.org/ticket/821 however ubuntu only had libx11-dev and not the other two :/
[00:28] <llogan> which Unoobtu version?
[00:28] <kris_> llogan: 13.10 - oo i jsut found libxfixes (typo last time)
[00:28] <youmi> it's burning if i just add it live to a stream ? thought it was to ass it to a file (burning)
[00:29] <youmi> add*
[00:29] <llogan> kris_: make sure you get the -dev package: libxfixes-dev
[00:29] <kris_> llogan: okay i was making a typo for two of the three ,< its all there
[00:30] <llogan> http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[00:30] <kris_> though oddly, each package was already installed after i stopped mistyping them
[00:30] <llogan> blame past kris_
[00:30] <kris_> llogan: I do
[00:30] Action: kris_ smacks self
[00:31] <znf> Could the showwaves filter be made into a transparent background animation istead of simply black?
[00:38] <Merth> Hey everyone, I'm trying to extract a 16 second clip of a movie into pngs, which I can do just fine. My problem is that I'm trying to include the subtitles, which are in an .srt file. That I'm having issues with, and google hasn't been much help. Any suggestions?
[00:38] <Merth> Here's what I'm doing: ffmpeg -ss 0:48:18 -i batman.mpg -i batman.srt -t 0:0:16 -f image2 %03d.png
[00:39] <Merth> sorry, batman.mp4*
[00:42] <Merth> This generates all the pngs, but they don't have the subtitles.
[01:23] <DZII> Hello all
[01:24] <osmodiar> Hello.
[01:33] <DZII> can anyone give me a link to an updated install guide for ffmpeg on ubuntu 12.04 server
[01:38] <osmodiar> Why do you need an updated one?
[01:40] <DZII> keep getting issue with yasm
[01:47] <osmodiar> Which is?
[01:48] <DZII> even though i have installed yasm-1.2.0 keeps telling me when trying to install x264 If you really want to compile without asm, configure with --disable-asm
[04:37] <kris_> so i compiled ffmpeg from git, enablex libx253 and x11grab and I'm (still) getting black video recorded while audio works fine
[04:38] <kris_> I'm kind of tired now and been working on this in between chores all day and I'd be really hapyp if anyone happened to know why it still doesn't work ._.
[05:49] <kris_> llogan: I did the other day and didn't get any responses :( so i was hoping someone might just be familiar with the general problem - here is a fresh log from a 10 second video I tried to record just now http://sprunge.us/jIRT
[05:51] <llogan> kris_: what player are you using?
[05:54] <kris_> llogan: mplayer
[05:54] <kris_> also, i noticed in my last one that there appears a mouse cursor this time O.o strange because it does not move even though i moved my cursor around while recording
[05:56] <llogan> try changing "-vf scale=-1:720" to "-vf scale=-1:720,format=yuv420p"
[05:57] <llogan> kris_: and also add "-acodec copy"
[06:02] <kris_> llogan: okay, I tried with those suggestions, here is the output of ffmpeg http://sprunge.us/dTIM and here is a screenshot of that illusive mouse cursor that seems to get recorded for some reason http://i.imgur.com/uxZWdj6.jpg
[06:03] <kris_> mouse cursor feels haunting - it just sits there for the entire video, never moving, never mimicking my own movements
[06:04] <llogan> what are you trying to record?
[06:06] <kris_> llogan: just my desktop - I'm running a custom compiled 'dwm' (suckless) inside xorg that I installed from canonical's repository for aptitude on an Ubuntu 13.10 Minimal
[06:07] <kris_> llogan: its all worked before on 13.04 - so I figured it was a xorg related issue that would get resolved by ffmpeg - but maybe I'm wrong
[06:07] <llogan> if you're using dwm what are you doing using ubuntu?
[06:07] <kris_> llogan: being lazy :)
[06:07] <llogan> seems like more work
[06:07] <kris_> llogan: this machine has been running ubuntu minimal since 2011, and I've been to lazy to switch to something minimal
[06:08] <llogan> i'm not sure why your mouse appears to not move nor why everything is mostly black.
[06:08] <kris_> llogan: it's not that bad - old packages and stubborn system, but not so bad
[06:09] <llogan> you can add "-draw_mouse 0" as an input option if you want to get rid of it
[06:09] <llogan> http://ffmpeg.org/ffmpeg-devices.html#x11grab
[06:17] <kris_> got the same results with openbox - so i know its not my dwm
[06:17] <llogan> did ffplay also get compiled with your ffmpeg?
[06:18] <kris_> llogan: yeah same version - also same results as mplayer
[06:19] <kris_> llogan: strange though /tmp/20140217_001102.mkv: error while seeking 0KB sq=    0B f=0/0
[06:19] <llogan> maybe someone on the ffmpeg-user mailing list will have an idea.
[06:23] <kris_> llogan: you'd think I was comfortable with mailing lists by now, but I'm completely unfamiliar with how they work - do I need to subscribe to to ffmpeg-user mailing list in order to read replies?
[06:24] <llogan> no, you can check the archives, or some third party thing like gmane or nabble.
[06:25] <llogan> see https://trac.ffmpeg.org/wiki/MailingListEtiquette and http://ffmpeg.org/contact.html
[06:31] <extor> If I want to shrink a 1.2GB avi movie into a lets say 200 MB vid then how would I go about doing it in the shell, any decent CLI apps? Not sure how much CPU power it would take either. I would be doing this in a vmware vm which can be either windows or linux
[06:32] <llogan> extor: get a recent ffmpeg build. either compile it (several guides on the wiki) or download a build at http://ffmpeg.org/download.html
[06:32] <llogan> then see https://trac.ffmpeg.org/wiki/x264EncodingGuide
[06:32] <llogan> results may vary
[06:32] <llogan> if you want to try to target a specific output file size then use two-pass mode.
[06:33] <extor> I forgot to emphasize that I don't have much of a graphics card in the remote server. So it would be CPU rendering only. Hope that's not an issue.
[06:34] <llogan> it is not an issue since there is little a graphics card can offer in terms of encoding if using ffmpeg and x264 (and other existing implementations are generally shit).
[06:35] <extor> Are .mkv files anything to do with ffmpeg? I ask because the smallest sizes I've seen around recently appear to be .avi or .mkv
[06:36] <llogan> those are just container formats that can contain a variety of various multimedia formats. ffmpeg can output these.
[06:37] <kris_> I may be wrong, but you should avoid .avi containers and chose mp4 containers instead whenever possible
[06:37] <extor> what is the reason to avoid avi
[06:37] <kris_> avi is pretty old and not that great, or from my experience at least
[06:38] <extor> ahh there's a lot of utilities out for avi such as avi splitter and such, and vlc offers to rebuild avi indexes too
[06:38] <kris_> mp4 tends to compress better when I handle video - I'm no guru though so someone may have an entirely different and more experienced opinion ont he matter
[06:39] <kris_> mkv I stand beside though, assuming you are including multiple audio tracks or including subtitles - if you are just including one audio track and one video track, I would prefer mp4
[06:41] <extor> so mkv is just a little organizer shoebox type of deal
[06:42] <llogan> here's a long answer that may help: http://superuser.com/a/300997/110524
[06:54] <kris_> that post ... TIL
[06:55] <kris_> namely that "the FFmpeg terminology would be to use "format" for the container." I must admit the use of "format" has been throwing me off from time to time
[07:09] <relaxed> kris_: format does not always mean container.
[08:58] <JamJams> Hi, I keep getting the single error "av_interleaved_write_frame(): Invalid argument" when I try to pipe an avs to x264.exe. Is there any way to get more detail than that?
[10:03] <lindylex> what does this mean "Invalid pixel format string '-1'"?
[10:41] <zap0> i think it means the pixel format string is invalid
[10:41] <zap0> but that's just a hunch
[11:36] <termos> are there any well maintained c++ wrappers for libav? The ones I come across on google are all old or incomplete
[11:38] <Xeta> Hi guys, Anyone know if there is there any easy way to apply Replaygain headers (which are in the m4a audio file) in ffmpeg to normalize audio?
[13:19] <lindylex> zap0: My image sequence I was trying to turn into an image was not divisible by 2.  That was the problem.  This is my FFMPEG line: ffmpeg -r 29.97 -b 320k -i %d.png -vcodec libx264 output.mp4
[13:50] <termos> I have a problem where avcodec_find_encoder(AV_CODEC_ID_H264) returns null, is there a known reason for this? x264 is compiled and installed, it's also linked against with -lx264.
[14:02] <burek> is it possible to encode videos using vp9 as of current ffmpeg?
[14:07] <ubitux> burek: there is only a native decoder
[14:07] <ubitux> but there is a libvpx wrapper to encode vp9 yes
[14:08] <burek> ubitux, using -c:v libvpx with the latest ffmpeg, gives me vp8 encoded videos
[14:08] <ubitux> libvpx-vp9
[14:08] <burek> oh... ok, thanks, let me try
[14:08] <ubitux>  DEV.L. vp8                  On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )
[14:08] <ubitux>  DEV.L. vp9                  Google VP9 (decoders: vp9 libvpx-vp9 ) (encoders: libvpx-vp9 )
[14:08] <ubitux> (ffmpeg -codecs)
[14:08] <burek> +1 :)
[14:10] <burek> ubitux, when I do ./configure --help there is no libvpx-vp9 in the output.. which library do i need for that?
[14:10] <ubitux> libvpx
[14:11] <burek> oh, i guess i need to update it :) thanks man :)
[16:07] <burek> ubitux, thanks again :) I've updated my libvpx and now static builds support vp9 encoding too :)
[16:07] <burek> I should update all the used libs these days
[16:08] <burek> just to find some free time..
[16:08] <burek> first*
[16:36] <thanmai_> does converting from image to timelapse video still available in ffmpeg?
[16:38] <osmodiar> Yes.
[16:38] <osmodiar> https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
[16:57] <thanmai_> thanks osmodiar
[17:04] <thanmai_> I am getting this error:
[17:05] <thanmai_> https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
[17:05] <thanmai_> oops sorry not that one.
[17:05] <thanmai_> *** THIS PROGRAM IS DEPRECATED ***
[17:05] <thanmai_> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[17:05] <thanmai_> Unrecognized option 'start_number'
[17:05] <thanmai_> Failed to set value '0567' for option 'start_number'
[17:05] <thanmai_> my command is :
[17:05] <thanmai_> *** THIS PROGRAM IS DEPRECATED ***
[17:05] <thanmai_> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[17:05] <thanmai_> Unrecognized option 'start_number'
[17:05] <thanmai_> Failed to set value '0567' for option 'start_number'
[17:05] <thanmai_> oops sorry again
[17:05] <thanmai_> ffmpeg -r 1 -start_number 0567 -i IMG_%04d.JPG -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
[17:06] <JEEB> if you are using stuff based on libav's code, you should use avconv. the ffmpeg binary was left around not updated after elenril did the bigger changes to its code under the name 'avconv'
[17:22] <thanmai_> avconv -y -f image2pipe -start_number 567 -r 1 -i "IMG_%%04.JPG" -r 24 -vcodec libx264 out.mp4
[17:22] <thanmai_> Error:
[17:22] <thanmai_> avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
[17:22] <thanmai_>   built on Feb  6 2014 20:59:08 with gcc 4.6.3
[17:22] <thanmai_> Unrecognized option 'start_number'
[17:22] <thanmai_> Failed to set value '567' for option 'start_number'
[17:23] <osmodiar> #libav is the avconv channel.
[17:23] <klaxa> a) use pastebin please, b) this is #ffmpeg not #libav
[17:23] <klaxa> you can download a static build though and use ffmpeg instead
[17:24] <thanmai_> thanks guys
[18:56] <superware> I'm decoding an h264 rtsp network stream using libav* (video only), how should I sync frames' pts? I need very low latency..
[19:04] <superware> or.. what's the best way to sync video frames from a live network stream for minimal latency?
[21:54] <NeeDe> trying to use draw text and adjust the fontsize depending on the video height: >>> ffplay -i "F:\TestClips&Co\test.avi"  -vf drawtext="fontsize=ceil(h*0.2):fontfile=canaith.ttf:text='Happy Birthday'" <<< give me  > Undefined constant or missing '(' in 'h*0.2)' < , can some one tell me how to set the fontsize depending on the input height
[21:55] <NeeDe> looks like h is not interpreted as height :(
[22:05] <NeeDe> seems like everybody is afk
[22:50] <DeadSix27> is there a documentation about what exactly -target does?
[22:51] <DeadSix27> i only see what options it will apply, but not their values
[22:52] <DeadSix27> what exactly the specific targets will do*
[23:14] <llogan> DeadSix27: see ffmpeg_opt.c
[23:15] <DeadSix27> llogan: i will, thanks.
[23:27] <three_le1s> so is 1.27 released yet ?
[23:46] <llogan> three_le1s: what happened to 1.26?
[23:46] <llogan> the download page is updated as soon as a release is made.
[23:52] <three_le1s> hm
[23:52] <three_le1s> alright im trying to git 1.27 but git keeps on retreiving 1.26.5
[23:53] <three_le1s> llogan: it's still there
[00:00] --- Tue Feb 18 2014


More information about the Ffmpeg-devel-irc mailing list