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

burek burek021 at gmail.com
Mon Sep 2 02:05:01 CEST 2013


[00:05] <crBenLubar> I'm trying to encode some pngs and a wav into webm. Here's my command line: http://pastebin.com/xM0dsmaH
[00:05] <crBenLubar> the problem is that the video is coming out in grayscale
[00:10] <durandal_1707> add -vf format=rgb24 ?
[00:11] <durandal_1707> this is bug where pal8 gets converted to gray
[00:11] <crBenLubar> where in the command line should I put that?
[00:11] <durandal_1707> michaelni_: ^
[00:12] <durandal_1707> actually your input png is not pal8 at all
[00:12] <durandal_1707> you sure that pngs are correctly decoded by ffmpeg ?
[00:12] <crBenLubar> well they were encoded by ffmpeg from tga files
[00:13] <crBenLubar> since I wanted to reduce the file size
[00:13] <durandal_1707> well have you look at them?
[00:13] <crBenLubar> and all the png files look fine in gimp
[00:15] <crBenLubar> here's an arbitrary input frame: http://i.imgur.com/qXW7jtq.jpg
[00:15] <crBenLubar> (imgur converted to jpeg, not me)
[00:17] <durandal_1707> well jpeg is uselss for me
[00:21] <crBenLubar> http://rnoadm.net:1337/dump/flawless_victory2500.png
[00:36] <durandal_1707> crBenLubar: what ffmpeg version?
[01:24] <kriskropd> I'm writing a short ffmpeg line that is supposed to rip one frame for every second of video - I thought if I changed switch '-r' to 1 it would do that, but I appear to be wrong - can anybody share guidance with me?
[01:24] <Mavrik> yeah, that doesn't really do that
[01:24] <Mavrik> use select video filter
[01:35] <kriskropd> Mavrik: I looked around the manual and I'm not sure how I should do that
[01:35] <Mavrik> kriskropd, basically, select filter chooses which frames are transcoded
[01:35] <kriskropd> I mean, I don't see an option for that
[01:36] <Mavrik> documentation, filters, select
[01:36] <Mavrik> examples.
[01:36] <Mavrik> example: "select frames with minimum distance of 10 seconds"
[01:37] <kriskropd> thats not in my man page ._.
[01:37] <kriskropd> checking online manual
[01:38] <kriskropd> okay, I think I found it - had to use a search engine to find it though
[01:38] <kriskropd> -vframes 1 out.png
[01:39] <kriskropd> erm -vf fps=fps=1 ?
[01:39] <Mavrik> kriskropd, I was talking about this actually: http://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
[01:39] <Mavrik> -vf select=<expression>
[01:39] <Mavrik> there are multiple examples there depending on which frames you want
[01:40] <Mavrik> kriskropd, rule of thumb: use online doc instead of man pages ;)
[01:40] <kriskropd> Mavrik: I have a thing of avoiding web browsers :(
[01:46] <kriskropd> okay, this isn't working still, I did  '-vf select=1' to get 1 fps
[01:46] <kriskropd> it didn't work but it didn't  give any errors either
[01:49] Action: kriskropd scrolls down and finally sees Mavrik
[01:49] Action: kriskropd 's example
[01:50] <kriskropd> that's insane, i wonder why i t has to be so complicated ._. oh well, testing this now
[01:54] <kriskropd> but it seems to have worked so thank you
[04:06] <JodaZ_> can i cut video with ffmpeg in a single invokation ? like just a few seconds here, and a few there and splice it together ?
[09:14] <kriskropd> I have a clip that I used video fade filters with, howeve rI cannot find matching audio fade filters - can anyone help direct me with that? My first idea is to extract audio from the clip I'm rendering and then process with sox and then reattach it to the clip
[09:36] <kriskropd> I'm also having a trouble with fps, when I run 'ffmpeg -r 1 -i input.m2v -r 24 output.avi' I receive 'Option framerate not found.'
[10:32] <mkozjak> hi
[10:32] <mkozjak> is there any way for ffmpeg decode italic tags from srt while burning hardsubs to the video?
[10:37] <ubitux> it should be the case by default
[10:37] <ubitux> -vf subtitles=foo.srt should do that
[10:38] <mkozjak> ok
[10:39] <mkozjak> maybe there's a difference in versions? when was that decoding introduced?
[10:40] <ubitux> it's been a while now
[10:40] <ubitux> maybe 1.1 or 1.2
[10:52] <mkozjak> ok
[14:56] <roger21> hey
[14:57] <roger21> i have a little problem, i transcode a mkv to avi(xvid/mp3) the playback is good but neither mediainfo nor virtualdub see the audio track
[14:57] <roger21> it's a 2pass encode if it help
[14:58] <roger21> so is there some option i can put to make the audio track more visible?
[14:58] <roger21> file see the audio track
[14:59] <roger21> sees
[14:59] <roger21> idk
[15:07] <roger21> is there some verbs that don't change with he/she/it
[15:07] <roger21> ?
[15:07] <roger21> like he cans or he can
[15:08] <roger21> i'm not sure
[15:08] <roger21> so it's can
[15:10] <roger21> are all the codec option relevant at the first pass
[15:10] <roger21> i thought since it is just analysing the source file and such that the encoding option wouldn't matter but the log fil actually changes
[15:14] <roger21> it is also a vbr audio, does it matter ?
[15:19] <roger21> does the -map option would help
[15:20] <roger21> i don't see the point of this option so far
[15:24] <Mavrik> huh.
[16:05] <roger21> Mavrik, http://pastebin.com/TiZVnpyx
[16:11] <relaxed> roger21: it might be because you're using vbr mp3
[16:12] <relaxed> use -r:v 24000/1001 instead of -r:v 23.976
[16:12] <roger21> oh
[16:13] <roger21> will do
[16:39] <roger21> yep, cbr fixed it (kind of sad)
[16:56] <xzise> Hi, I tried to trim my video with ffmpeg, but -ss and -t aren't exact even when I reencode and use them as an output option.
[17:01] <grepper> xzise: probably has to do with key frames, so getting an "exact" frame is difficult
[17:03] <xzise> unfortunately I can't show you an example with the material where it isn't working but and I'm trying to replicate it with other material but it appears to work there
[17:04] <xzise> is it possible to determine the key frames? And when I'm using ffmpeg -i in.mkv -ss 4.2 -c:v libx264 out.mkv my impression was, that this is "exact"
[17:06] <grepper> it seeks to the nearest keyframe
[17:07] <grepper> so you get approximate, depending on your gop size
[17:16] <xzise> O.O hmmm I thought -ss as an input option or when using the copy codec would be inaccurate, but as soon as you reencode the content it should work. Is there a way to cut at exact frames?
[17:17] <Mavrik> xzise, what is your command line?
[17:17] <xzise> ffmpeg -i in.mkv -c:v libx264 -ss 4.2  out.mkv
[17:21] <grepper> transcode (transcoding.org) or a visual video editor like avidemux could make the process easier.
[18:43] <kriskropd> I have a clip that I used video fade filters with, however I cannot find matching audio fade filters - can anyone help direct me with that? My first idea is to extract audio from the clip I'm rendering and then process with sox and then reattach it to the clip
[18:44] <kriskropd> but it seems like libav should just be able to do this somehow
[18:44] <klaxa> http://ffmpeg.org/ffmpeg-filters.html#afade
[18:44] <klaxa> how about that?
[18:49] <kriskropd> klaxa: that looks liek what I want, but I'm getting "Unrecognized option 'afade..."
[19:01] <kriskropd> is there no sort of '-af' option for audio filters?
[19:02] <klaxa> never used audio filters, so dunno actually
[19:14] <kriskropd> I'm having no luck :( either I get "Unrecognized option" or "No such filter: 'afade'"
[19:55] <grepper> if ffmpeg -filters doesn't show it, maybe yours is too old
[19:56] <grepper> $ ffmpeg -filters 2>&1 |grep afade
[19:56] <grepper> afade            A->A       Fade in/out input audio.
[20:05] <kriskropd> I'm using : ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
[20:06] <kriskropd> from ubuntu repos
[20:10] <klaxa> then you are using avconv and not ffmpeg
[20:13] <kriskropd> I'm not sure waht the differences are, afterall I get the same errors with both (I've been trying everything with both commands
[20:21] <kriskropd> mkay, so f*** avconv cause the documentation sucks - I need something, anything at this point, that does what it says it does :x
[20:21] <kriskropd> if latest ffmpeg works with afade, then I'll go compile
[20:26] <grepper> kriskropd: or you could try a static build if you are lazy :)
[20:35] <kriskropd> thanks for the links and the help - I'll have to read up and get back to this later it seems
[20:41] <grepper> its just a single binary, download it and try it :)
[21:09] <kriskropd> grepper: I did, I had to go back through documentation to see what the actually correct form might most likely be. turns out -af afade... worked :)
[21:42] <kriskropd> this one is just for fun, but I was wanting to toy with stereo3d when I saw in in the docs, but I don't have any left&right framed videos - I tried using alternating frames to make fun motion blur like stereo 3d effect, but I wonder if ffmpeg has a way to jitter the images (maybe like smartbrtblur?) and use those for the left and right images per frame
[21:43] <kriskropd> smartblur*
[21:44] <durandal_1707> stereo3d doesn't do any motion blur
[21:47] <kriskropd> durandal_1707: I'm aware of that, but I used alternating frames on a monoscopic video, which pretty much overlayed frames to create the stereoscopic effect - it was "like" motion blurringring
[21:48] <kriskropd> now I'm wondering if I can have ffmpeg render frames to use for both left and right while it processes a monoscopic video - either via displacement or formulated blurring
[00:00] --- Mon Sep  2 2013


More information about the Ffmpeg-devel-irc mailing list