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

burek burek021 at gmail.com
Mon May 21 02:05:01 CEST 2012


[00:16] <Sazpaimon> so I can only sometimes play back the webm stream in a browser, if I keep refreshing
[00:16] <Sazpaimon> I don't get why, though
[00:18] <Sazpaimon> it seems to start playing fine whenever ffmpeg says "Broken file, non-keyframe not correctly marked."
[00:21] <Sazpaimon> anyone have any idea why that may be?
[00:25] <TACPILOT> what is the option for removing duplicate frames ?
[00:30] <Sazpaimon> any ideas on my playback issue?
[00:48] <Sazpaimon> I partially solved it by giving it keyframes every 15 frames
[00:49] <Sazpaimon> it will still occasionally not work though
[00:55] <jure> hi
[00:55] <jure> how do I concatenate FLVs with ffmpeg?
[00:56] <Sazpaimon> "-g 5" seems to be the magic setting for my stream
[01:00] <Sazpaimon> still can't figure out that "Changing stream parameters in multistream ogg is not implemented." thing
[01:11] <Sazpaimon> I cant even find that message in the ffmpeg source
[01:11] <Sazpaimon> nor can I find it in google
[01:11] <Sazpaimon> wtf
[01:23] <cedr> I have a 12GB mkv file [movie] with 12 audio channels. I'd like to convert this file to a simple 1-ch audio AVI file. What switches/settings could I use to achieve this?
[01:23] <Sazpaimon> okay, I found the code about it
[01:23] <sacarasc> cedr: Channels or streams?
[01:23] <Sazpaimon> i guess there's no way around it
[02:55] <jure> is it possible to concatenate FLVs without re-encoding them?
[02:56] <sacarasc> Maybe! ffmpeg -i concat:foo.flv|bar.flv|baz.flv -c:v copy -c:a copy output.flv might work, but might not.
[03:04] <jure> hmm. "at least one output file must be specified" ?
[03:05] <jure> "Note that you may need to escape the character "|" which is special for many shells."
[03:06] <jure> Heh, it only took the first file through.
[03:11] <jure> probably should have RTFM http://ffmpeg.org/faq.html#toc-How-can-I-join-video-files_003f
[03:44] <currency> hey
[03:44] <sacarasc> Yo.
[03:55] <cedr> sacarasc: streams - I think. They're different audio tracks (for other languages)
[03:56] <sacarasc> Yeah, they're streams... Something like -map 0:0 -map X;1 where X is the stream number for the audio you want should work for that part, but the encoding I'm not too sure about.
[06:40] <Sazpaimon> i there any roadmap for supporting multistream ogg where the stream change?
[07:31] <diegoviola> hi
[07:31] <diegoviola> can ffmpeg "grab" audio stream that is going through pulseaudio and dump that to raw file or wav?
[07:32] <diegoviola> bah, PA has parec for that iirc
[17:50] <mishehu> greets folks.  I have a .vob source file I would like to copy the entire subtitle stream out of and insert into an already existing .mkv file.  I'm not getting the params correct though...  I tried `ffmpeg -i ./3seasons.vob -scodec copy -newsubtitle ./3seasons.800kbps.mkv` but it keeps telling I need to select at least one output file.  what would be the correct params?
[18:20] <zap0> mishehu, does -newsubtitle take a param?
[19:10] <Bombo> is it possible to recode an ntsc.ac3 to pal.mp3 with ffmpeg? its actually from framerate 23.976 to 25.000, so will -framerate 25.000 do the job?
[19:23] <oliv3> hi, i'm using ffmpeg to encode a live RTMP stream; the input is an image2pipe in which I inject PPM/RGB images, thing is that ffmpeg inserts a filter to convert to YUV, but in the output stream the stream colors are *BGR*, how can this be ?
[19:32] <mishehu> zap0: that I'm nto sure of
[19:33] <zap0> mishehu, read docs.
[19:35] <mishehu> zap0: now that's not really helpful as I have read the docs and it's not 100% clear to me.  it appears from google searches that -newsubtitle does not take a parma
[19:39] <zap0> if its not documented, where did you get the  -newsubtitle  command from?
[19:40] <mishehu> man ffmpeg
[19:40] <mishehu> ffmpeg version N-31831-g931187e, Copyright (c) 2000-2011 the FFmpeg developers
[19:43] <zap0> what does the doc say about  -newsubtitle
[19:45] <mishehu> the interesting thing is that when I do `ffmpeg -i ./3seasons.vob` does not actually list the subtitle streams, though there are actually 3 of them
[19:46] <mishehu> -newsubtitle : Add a new subtitle stream to the current output stream.
[20:32] <zap0> are there other things near it that indicate a pattern
[21:11] <burek> mishehu, did you solve your problem?
[21:12] <burek> if not this is what you need:
[21:12] <burek> ffmpeg -i ./3seasons.vob -scodec copy -vn -an -i ./3seasons.800kbps.mkv -acodec copy -vcodec copy output.mkv
[21:13] <burek> that means "take only a subtitle stream from the first input and take audio and video from another input and move it all (copy) to the output"
[21:14] <burek> if that doesn't work, use -map
[21:14] <burek> or just type: ffmpeg -i ./3seasons.vob -i ./3seasons.800kbps.mkv
[21:14] <burek> and give us the pastebin output, so we can tell you how to use -map
[21:56] <MrJones> hi
[21:56] <MrJones> I am using libavformat/libavcodec/libavutil in my program
[21:57] <MrJones> now when I open more than one format context and codec context for two different files in an attempt to decode their audio streams at the same time (I tried both mp3 and flac), it gets horribly slow
[21:57] <MrJones> however, when just opening one format/codec context thing and streaming one file, and additionally streaming e.g. 5 ogg vorbis files with libvorbis/libvorbisfile/libogg, it's no big deal
[21:58] <MrJones> only as soon as a second FFmpeg stream enters business, it all gets so slow I get heavy stutter and problems (even with a huge audio buffer) because my application can't get the data from FFmpeg fast enough to make it in time
[21:58] <MrJones> does someone have an idea what could be the issue here?
[21:58] <MrJones> the program is open-source and well-commented (but also it's a rather large code base), so if anyone wants to take a look...
[22:00] <TACPILOT> I am converting a video to an image sequence and would like to extract the audio at the same time. Do I need to run a separate ffmpeg instance for the audio or can you send the audio out to one file with the same command that creates the images ??
[22:19] <hyperkineitc> Hi all. I need a little usage help. I am trying to convert a file from a security DVR that claims to be a .mpg file, to a format suitable for import by iMovie
[22:19] <hyperkineitc> Here is some data about the file from ffprobe: http://pastebin.com/sW2bAs3M
[22:20] <hyperkineitc> Several of the utilities complained about missing timecode, but I couldn't find much on Google about what this means or how to deal with it.
[22:20] <hyperkineitc> ANy help would be greatly appreciated.
[23:13] <pisto> is there a way to use the -i %d.png syntax but in reverse order? that is from highest to lowest filename
[23:16] <oliv3> pisto: ffmpeg -i `ls *.png|tac` ?
[23:17] <pisto> ok, thanks, I'm going to try
[23:18] <sacarasc> That won't work.
[23:19] <oliv3> or this:
[23:19] <oliv3> $ cat $(ls -t *jpg) | ffmpeg -f image2pipe -vcodec mjpeg -r 25 -i - -i backwards.wav -vcodec libx264 -preset slow -crf 20 -threads 0 -acodec flac output.mkv
[23:19] <oliv3> (from http://sites.google.com/site/linuxencoding/ffmpeg-tips)
[23:21] <oliv3> but this will do basically the same work, imho
[23:22] <burek> TACPILOT, you can try to specify another output in the same line, which has only the audio stream. Consult the ffmpeg documentation for more info.
[23:23] <burek> MrJones, you might ask that question in #ffmpeg-devel but be patient because developers don't have much spare time :)
[23:23] <mishehu> burek: sorry, i had to take the little one out for a while.  So I see ethat I can't really output to same file as I'm inputting from, so that was probably mistake #1.
[23:23] <mishehu> goign to try your method in just amoment
[23:23] <burek> pisto, your best bet is to find a tool to rename your images backwards
[23:24] <oliv3> erf
[23:24] <oliv3> pisto: you can also send me a .tar of your images, i'll reverse them for just $5
[23:24] <pisto> lol
[23:24] <hyperkineitc> Isn't it possiblt to provide a file list in a file?
[23:26] <mishehu> Output file #0 does not contain any stream
[23:27] <mishehu> I'm guessing we need to do some mapping, but I suspect that I need to update ffmpeg because it's not listing out the subtitle streams when I do `ffmpeg -i ./3seasons.vob`
[23:31] <burek> mishehu, can you do: ffmpeg -i ./3seasons.vob -i ./3seasons.800kbps.mkv
[23:31] <burek> and use pastebin.com to show the output
[23:31] <mishehu> burek: http://www.pastebin.ca/2151144
[23:31] <mishehu> was already doing that :-)
[23:32] <burek> hyperkineitc, http://ffmpeg.org/ffmpeg.html#image2-1
[23:32] <burek> mishehu, well, I guess there was some kind of missunderstanding here
[23:32] <burek> "<mishehu> greets folks.  I have a .vob source file I would like to copy the entire subtitle stream out of and insert into an already existing .mkv file."
[23:33] <burek> none of those files contain subtitle stream
[23:33] <mishehu> well I can take them all OR just the english one
[23:33] <mishehu> nope
[23:33] <mishehu> the 3seasons.vob definitely has one
[23:33] <mishehu> else I'd not be able to watch that m ovie...  it's all in vietnamese
[23:33] <burek> Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 3916 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
[23:33] <burek>     Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5 channels (FL|FR|LFE|SL|SR), s16, 384 kb/s
[23:33] <burek> no subs
[23:33] <mishehu> I realize that it's not showing the subtitle streams
[23:33] <burek> also your ffmpeg is really old
[23:33] <mishehu> could that not be a bug in my specific build?
[23:33] <burek> you really should update it
[23:34] <mishehu> burek: yah probably what, 6 months old?
[23:34] <burek> that's too old
[23:34] <mishehu> wow older than that
[23:34] <burek> with multimedia projects like ffmpeg, that's almost ancient
[23:34] <mishehu> I just looked up when I built that...  august of last year
[23:34] <burek> use the latest git
[23:34] <mishehu> burek: probably I should update my x264 as well too then
[23:35] <burek> otherwise no point of talking about bugs, right?
[23:35] <burek> :)
[23:35] <mishehu> burek: features are just bugs with seniority :-)
[23:35] <burek> yeah
[23:35] <cbsrobot> :beer:
[23:35] <burek> \o/ :beer: :)))
[23:35] <mishehu> burek: I'll update it shortly, but I got your usage example
[23:35] <cbsrobot> \o/
[23:35] <mishehu> which will be most useful for me
[23:36] <burek> mishehu, the final ffmpeg command will be something like: ffmpeg -i input1 -i input2 -map <options to map subs from #1 and a/v from #2> output
[23:37] <burek> I was just hoping to see the subs stream to give you the exact -map option so you can have it all
[23:37] <mishehu> burek: shortly.  need to rebuild two proggies first :-)
[23:38] <burek> ok
[23:38] <burek> :)
[00:00] --- Mon May 21 2012


More information about the Ffmpeg-devel-irc mailing list