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

burek burek021 at gmail.com
Sat Sep 7 02:05:01 CEST 2013


[00:24] <MarcWeber> ffmpeg trac talks about -preset help and -preset fullhelp (x264 encoding), which is the exact command line to get this?
[00:24] <MarcWeber> I fail
[00:24] <MarcWeber> --help shows: -preset            <string> E.V.. Set the encoding preset (cf. x264 --fullhelp)
[02:03] <superjoe> AVFrame - does .width represent the number of channels?
[02:07] <superjoe> more to the point - how do I know how many channels there are for extended_data ?
[02:09] <superjoe> ah, the AVCodecContext.
[04:26] <Gimpy> Hi. I'm hoping to chat with somebody who knows ffmpeg and ffserver well, and can tell me if I'm going in the right direction.  I have an IP camera and an audio module which I'm trying to mux, then make availible to our own network, and two schools in the area.  I have ffmpeg catching the two RTSP streams and it passing off to ffserver, but the quality I'm getting out is poor. I'm trying to figure out where the transcoding is happening.
[04:28] <Gimpy> It seems to me that ffmpeg is decoding the h264 and encoding it to mpeg-1?
[04:28] <klaxa> the encoding settings are set in your ffserver.conf file
[04:32] <Gimpy> klaxa, http://pastebin.com/3H4Kr4xh ffmpeg is doing some transformation there for sure. I would hope to use "-codec copy" but I wasn't able to receive the stream when I did that
[04:33] <klaxa> ah yes indeed... i wonder why it does that
[04:36] <Gimpy> unsure. I can't seem to specify any other codec for ffmpeg either, I just get 'bad codec type'
[04:37] <klaxa> maybe you can just increase the bitrate?
[04:41] <Gimpy> good idea!
[04:41] <Gimpy> I also just realized I don't have libx264 compiled
[04:42] <Gimpy> recompiling now.
[05:18] <Gimpy> Well, I've got libx264 in now, and it seems a bit happier, but I still am having trouble receiving the stream in VLC. I likely have the wrong formats and codecs in my stream. I want something I can view in VLC, as then I can use that to view and push out to wowza
[06:55] <dorp> Hello, I was wondering if ffmpeg has the capbility of extracting timecodes to a file?
[07:16] <relaxed> dorp: I believe ffprobe can.
[07:20] <dorp> relaxed: Thanks, seems it can
[09:29] <vinkla> braincracker: ffmpeg is cool
[09:31] <braincracker> randomnick meaningless highlighting is not cool
[09:32] <vinkla> sorry
[09:32] <braincracker> ffmpeg is cool if it works
[09:33] <braincracker> if it fails, it fails badly
[09:37] <vinkla> can't wait for version 2 pull request to be merged into homebrew
[09:58] <Leoneof> braincracker: ffmpeg is cool ;)
[10:01] Action: vinkla  
[10:05] <braincracker> Leoneof<= ffmpeg is the alpha and omega ;)
[10:06] <Pkunk> i've got a movie captured from webcam where some reason the r,g,b elements seem to be mixed up when i display it
[10:07] <Pkunk> i.e red displays as green , blue as red or something like that . the end result is the movie is clear but the color chroma is messed up
[10:08] <relaxed> this happens with ffplay?
[10:08] <Pkunk> is there any plugin in ffmpeg or vlc to mix up the r,g,b again so that i can reencode the movie to display with the correct r,g,b order ?
[10:08] <Pkunk> relaxed: ffmpeg , vlc and player
[10:08] <Pkunk> mplayer , even
[10:10] <Pkunk> fflogger: i have not encoded the movie using ffmpeg . i recorded it in an android mini pc through a webcam
[10:10] <relaxed> fflogger is a bot
[10:11] <relaxed> play it with ffplay and verify the colors aren't correct.
[10:12] <relaxed> if so then pastebin.com the output of `ffmpeg -i yourvideo`
[10:16] <braincracker> Leoneof<= ffmpeg is the alpha and omega ;)
[10:17] <Pkunk> just a minute
[10:18] <Pkunk> right i am streaming through rtsp and saving everything in zoneminder
[10:19] <Pkunk> but if i play the same rtsp stream through mplayer and vlc most stuff looks blueish
[10:19] <Leoneof> braincracker: you are cracking me ;O
[10:20] <relaxed> where does ffmpeg factor into this?
[10:20] <Pkunk> relaxed: is there a plugin to fix the r,g,b mixup ?
[10:21] <Pkunk> so i can re-encode the stream into something better
[10:21] <Mavrik> hmm
[10:21] <Pkunk> right now zoneminder is using ffmpeg to capture the rtsp stream
[10:22] <relaxed> can you force feed zoneminder a ffmpeg command?
[10:23] <Pkunk> yeah it allows me to set any parameters i want .. i could even test it by encoding to a file first
[10:23] <relaxed> sweet, then encode a video locally with ffmpeg
[10:24] <relaxed> make sure you're using a recent version
[10:26] <braincracker> Leoneof<= ffmpeg is the alpha and omega ;)
[10:29] <relaxed> braincracker: it's time to stop
[10:30] <Leoneof> braincracker: lol
[10:38] <braincracker> Leoneof<= ffmpeg is the alpha and omega ;)
[10:39] <sacarasc> braincracker: Stop spamming. :|
[10:41] <Pkunk> relaxed: i've uploaded a zoneminder image to http://picpaste.com/102-analyse-yR8SsT5n.jpg
[10:42] <Pkunk> the shirt is supposed to be yellow
[10:42] <Pkunk> is there a ffmpeg paramter to fix the color chroma ?
[10:46] <theholyduck> Pkunk, just a random guess
[10:46] <theholyduck> Pkunk, but are you sure you arent reading yv12 instead of i420
[10:46] <theholyduck> or the other way around
[10:47] <saste> Pkunk, geq filter
[10:47] <theholyduck> derpyduck, i guess all the other colors are mostly fine
[10:47] <theholyduck> so, the UV channels probably arent flipped
[10:47] <theholyduck> though, why is he blue?
[10:48] <braincracker> Leoneof<= ffmpeg is the alpha and omega ;)
[10:48] <relaxed> he's clearly a smurf
[10:48] <saste> looks like inverted U/V?
[10:48] <theholyduck> saste, well, it was my first guess :P
[10:48] <theholyduck> but, why does everything else look so normal
[10:48] <saste> braincracker, are you a bot?
[10:48] Action: Leoneof puts braincracker on ignoring list
[10:48] <saste> Pkunk, swapuv?
[10:48] <theholyduck> doesnt ffmpeg have a input setting aswell though?
[10:49] <theholyduck> tell it its dealing with i420 vs yv12?
[10:49] <theholyduck> i know x264 does.
[10:49] <relaxed> -pix_fmt I would think
[10:49] <Pkunk> i'm using an android software to stream from a MS hd-3000 webcam through rtsp .. dunno what the software is doing but you can see the end result
[10:49] <relaxed> and if he followed my simple directions I was going to have him feed zoneminder the correct command.
[10:50] <theholyduck> Pkunk, we think the UV channels got flipped
[10:50] <theholyduck> i420 and yv12 have the exact same format, only, different order of UV
[10:50] <theholyduck> causes redish colors to become bluish colors
[10:51] <Pkunk> thanks saste and everyone .. i'm trying swapuv right now
[10:54] <Pkunk> but the stream is already converted to h.264 . i have ffmpeg only in my zoneminder server . will swapuv work even for a h.264 stream ?
[10:56] <relaxed> you should be able to force the decoder to use the correct color space.
[11:00] <relaxed> can you put a sample of the video up somewhere?
[11:03] <Pkunk> i tried this command --> ffmpeg -i rtsp://ipaddr:8086/ -y -vcodec copy -f mp4 test.mp4
[11:04] <Pkunk> but it doesn't start transcode .. just creates a 0 size file
[11:07] Action: Leoneof puts braincracker on white list
[11:08] Action: Leoneof puts braincracker on ignoring list forever.
[11:09] Action: braincracker puts Leoneof on lamelist without highlight
[11:13] <Pkunk> ok i managed to dump the raw stream using vlc .uploading it now
[11:31] <relaxed> saste: can you ban these two dumbasses?
[11:35] <Pkunk> relaxed: http://www.gamebhai.com/upload/video2.mp4
[11:41] <Leoneof> relaxed: hello
[11:44] <Pkunk> relaxed: you were able to check the video ?
[11:45] <Leoneof> Pkunk: that video shows only few frames, and hangs
[11:49] <Pkunk> why would you need more than a few frames to confirm the problem ?
[11:50] <relaxed> I can't get ffmpeg to dump a single frame
[11:51] <Pkunk> plays back fine in vlc here .. probably is in raw format
[11:52] <Pkunk>     Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 6.58 tbr, 1001 tbn, 2002 tbc
[11:52] <Pkunk> it appears to be encoded in i420 format
[11:53] <Pkunk> how do i force ffmpeg to use yv12 instead ?
[11:58] <Mavrik> Pkunk, by passing pixel format parameter
[12:11] <Cadmus> Morning, I seem to be having bother doing an x11grab from an xvfb, I can get single screenshots usinf xwd and import, but trying to take a video fails
[12:12] <Cadmus> More specifically I get a blank video
[12:12] <Cadmus> My line is "ffmpeg -y -f x11grab -r 25 -s 1280x1024 -i :7.0 -vcodec libx264 foo.flv", I know it will look like ass but I would expect to see something in the result
[12:14] <Pkunk> Mavrik: i need to make ffmpeg use yv12 without doing any color conversions .. since the movie is wrongly encoded as i420 when it's actually yv12
[12:15] <Mavrik> usually putting a parameter before -i forces ffmpeg to skip autodetection for that field
[12:49] <flarunt> I have been using -map to select the audio stream I want.. but is there a way to say "always pick the first ac3 stream" or similar?
[12:58] <sacarasc> How does one use multiple filters on a video?
[13:01] <durandal_1707> sacarasc: -vf negate,vflip,transpose
[13:01] <sacarasc> Ah, cool, commas. Thanks.
[13:22] <BallsDeep> Does "ffmpeg" support ".wav" files larger than 4GB (ex: MBWF)?
[13:31] <shevy> got a question. when I have a .flv video file, can I chop off the first 5% from the video without losing quality of the video?
[13:39] <durandal_1707> BallsDeep: yes it does
[13:41] <BallsDeep> well what syntax do you use? I execute "ffmpeg -formats" and I don't see it.
[13:58] <BallsDeep> Is "MBWF" already built into the "-wav" format. I am thinking that "MBWF" support is a separate format that you need to pass to the "ffmpeg" command.
[14:08] <relaxed> have you tried to see if it's the default?
[14:08] <relaxed> ffmpeg -h muxer=wav
[14:09] <relaxed> so, -write_bext 1
[15:13] <durandal_1707> BallsDeep: correct one is is '-w64 always'
[15:13] <durandal_1707> or -w64 auto
[15:13] <durandal_1707> default is 'never'
[15:14] <durandal_1707> -write_bext is something else
[18:27] <newone> hello! have a question. Does anyone on the ffmpeg.org ever tried to compile ffmpeg on windows?
[18:28] <newone> I don't consider zeranoe - theirbuilds never work and all over the web know about this
[18:28] <newone> why this is such a big problem to make normaltutorial?
[18:29] <newone> hundreds of forums overloaded by the messages that nothing work ...
[18:30] <newone> moreover ... tens of members on this chat, forums ... and nobody knows anything))) funny))
[18:30] <newone> what are doing here guys?
[18:36] <JEEB> I build ffmpeg rather often on windows, and I've had no problems so far
[18:36] <JEEB> also I've had zero problems with zeranoe's builds when I've used those as well
[18:36] <JEEB> (´
[18:39] <GoaLitiuM> i got dozen of errors with zeranoe's latest toolchain script, missing repo servers and some dependencies got moved to different location
[18:39] <JEEB> yeah, but this wasn't about his toolchain script, really :)
[18:39] <GoaLitiuM> but this was
[18:40] <JEEB> yeah, that's very muchos possible that his scripts are borked by now
[18:40] <JEEB> and you should poke him about it :)
[18:40] <JEEB> the last time I compiled my own toolchain it was with nev's modified scripts, and that was about... two months ago?
[18:40] <JEEB> I don't think the repos really got changed there
[18:41] <JEEB> http://git.1f0.de/gitweb?p=mingww64build.git;a=summary;js=1
[18:42] <GoaLitiuM> the weird thing was that the script or subversion rather would complain about server not found or something similar, but the url did exist
[18:43] <JEEB> dunno
[18:43] <JEEB> I just know that ~2 months ago it seemed to work just fine :)
[18:45] <newone> guys, help me please to copile ffmpeg, m?
[18:45] <newone> compile
[18:45] <newone> or at least give please good tutorial
[18:45] <JEEB> you might want to specify what exactly you're having problems with :P
[18:45] <JEEB> because in general compiling ffmpeg isn't exactly hard
[18:46] <GoaLitiuM> JEEB: did you have any problems on building ffmpeg with librtmp?
[18:46] <JEEB> I usually don't build that because ffmpeg has its own rtmp implementation that WorksForMe
[18:46] <newone> well ... hm ... generally my purpose is to use ffmpeg with SDL ... I need simple console (or window in case of SDL) app which uses allthe ffmpeg features ...
[18:47] <newone> so I supose I need to compile ffmpeg to get dlls ... to use them later in MSVS
[18:50] <newone> the problem is that I don't know how do get these dlls
[18:52] <Mavrik> by compiling a shared build?
[18:54] <newone> heh ... I don't know for now what is shared build ... fornow I have ffmpeg sources and additional soft (compilers) ... and some non-working tutorials ...
[18:54] <JEEB> newone, you can build either with a mingw-w64 toolchain or MSVC via msys' shell environment
[18:54] <JEEB> an shared means dlls in the windows world :P
[18:55] <JEEB> dot-so in *nix
[18:55] <newone> Ok)) I need shared build))
[18:56] <newone> I tried MinGW ... part of "./configure " goes with wornings... and "make" is finished with error
[18:56] <JEEB> then you're doing it wrong
[18:57] <newone> exactly)) that's why I'm here
[18:57] <newone> what MinGW could you suggest to download?
[18:58] <newone> does it matter x86 or x64 I use?
[19:00] <JEEB> basically the way I generally tell people to do stuff is to 1) grab mingw-get and install MSYS (not mingw) via it 2) grab newest git from http://git-scm.com/ , install so that you add it to the PATH (and DISABLE autocrlf when it asks you about it) 3) grab a mingw-w64 toolchain from http://files.1f0.de/mingw/ , make it be a "mingw" directory under your msys install directory
[19:01] <JEEB> 4) edit <msys directory>/fstab so that the paths are correct, remember to use / instead of \
[19:01] <JEEB> 5) run msys.bat in <msys directory>
[19:01] <JEEB> 6) see if gcc --version works
[19:01] <newone> aha
[19:02] <newone> but main purpose of all this is what? I have installed MinGW and in it's shell gcc --version works fine
[19:02] <JEEB> to make sure you have a toolchain that I know that generally works :P
[19:05] <newone> Ok, I'll save all this ... imaging I have all this installed ... what are the next steps?
[19:06] <JEEB> you go grab http://www.tortall.net/projects/yasm/releases/yasm-1.2.0-win32.exe and save it as yasm.exe in <msys dir>/bin
[19:06] <JEEB> and check that yasm --version works
[19:07] <JEEB> after that I'd have you try cloning ffmpeg with `git clone git://git.videolan.org/ffmpeg.git ffmpeg`
[19:07] <JEEB> and then just ./configure --enable-shared in that cloned dir
[19:07] <JEEB> and make
[19:07] <JEEB> and see if it finishes
[19:07] <JEEB> :P
[19:08] <JEEB> there might have been some little tool needed to print the enabled decoders/demuxers/encoders/whatever in a pretty way for the configure
[19:08] <JEEB> but it should tell you which it was when it can't do it
[19:10] <newone> Thank you very much, so mach information ... trying to do all this right now
[19:13] <JEEB> also you could run the msys.bat from MSVS's command prompt. That would also let you use MSVC's tools to create the dot-lib files. Or you could even build ffmpeg with MSVC. Which is very slow and needs extra tools, but is possible.
[19:15] <newone> well, actually I do this lust days, I even was able to compile ffmpeg ... but just exe files
[19:16] <JEEB> I'm pretty sure you built more than the exes :P
[19:16] <JEEB> you most probably just failed to notice that it had also built the static libraries
[19:16] <newone> probably)) but where they are I don't know))
[19:23] <newone> JEEB: maybe you know also how to get such builds by myself? http://aegiscorp.free.fr/ffmpeg/
[19:24] <Mavrik> mingw probably.
[19:28] <JEEB> mingw or MSVC
[19:28] <JEEB> and specifically mingw-w64
[19:40] <Renich> Hello, FFMPEGers!
[19:40] <Renich> I need help with this: http://ur1.ca/feiqa
[19:41] <Renich> video freezes at some point; mplayer says it's "badly interleaved"
[19:41] <Renich> I need suggestions
[19:46] <newone> if during "make" I get error about missing files can I copy them from another version of ffmpeg where they are present? is it normal?
[19:47] <durandal_1707> it is not normal
[19:47] <newone> sowhat should I do?
[19:50] <vlt> Hello. I want to use ffmpeg to provide a constant h264 stream that will replace with black video in case the source gets interrupted. Possible?
[19:51] <vlt> Should I use a fifo as input instead of a pipe from another process?
[19:54] <newone> guys, who know what to do if files are missing during "make"?
[20:13] <newone> SOS! ))
[20:14] <durandal_1707> it is that critical?
[20:14] <newone> sure! I can't proceed further
[20:15] <newone> I wll, but do you know how to copy output from the MinGW console?
[20:18] <JyZyXEL> would it be possible to convert a h264 video with aac audio into something that mozilla firefox <video> tags support?
[20:18] <durandal_1707> newone: screenshot?
[20:19] <durandal_1707> JyZyXEL: yes, webm with vp8 and vorbis
[20:20] <newone> durandal_1707: actually, I'm not sure from the beginning that I'm doing everyhting correct ...
[20:20] <JyZyXEL> so just ffmpeg -i video.mp4 out.webm ?
[20:22] <Renich> video freezes at some point. Please, help: http://ur1.ca/feiqa
[20:23] <newone> durandal_1707: maybe you know how exactly to compile shared ffmpeg build? best would be like in these builds http://aegiscorp.free.fr/ffmpeg/
[20:23] <durandal_1707> Renich: qscale does nothing with huffyuv and pcm_s16le
[20:24] <durandal_1707> JyZyXEL: if you have vp8 encoder and vorbis encoder compiled in (do not use native vorbis encoder)
[20:25] <durandal_1707> Renich: if video freeze also if you capture only video?
[20:26] <Renich> durandal_1707: let me check that
[20:26] <JyZyXEL> i did: ffmpeg -i input.mp4 -c:v libvpx -b:v 1M -c:a libvorbis output.webm
[20:27] <JyZyXEL> output is bigger than the input :p
[20:27] <durandal_1707> you give git bitrate
[20:27] <durandal_1707> *big
[20:28] <JyZyXEL> maybe i should try some auto detect mode
[20:31] <JyZyXEL> actually 128k did ok
[20:31] <Renich> durandal_1707: nope, it didn't freeze
[20:31] <JyZyXEL> durandal_1707: thank you a bunch for the help
[20:31] <Renich> durandal_1707: so, the audio is making it freeze? what is to be done?
[20:35] <durandal_1707> ask pulse
[20:36] <durandal_1707> perhaps you use old, broken version ...
[20:36] <durandal_1707> Renich: also ffvhuff should be better than huffyuv
[20:37] <Renich> durandal_1707: ok, I'll try that
[21:45] <rafael2k> I'm writing a DTV player based in ffplay code, and I'd like to know if there is an easy way to enable a deinterlace filter in it
[22:01] <Mavrik> rafael2k, send frames through the yadif filter
[22:01] <Mavrik> rafael2k, check filtering example in doc/examples
[22:39] <rafael2k> Mavrik: tks!
[23:00] <rafael2k> btw, is there a way to automatically enable the de-interlace filter if the video is interlaced?
[23:33] <durandal_1707> relaxed: isn't there documentation?
[23:33] <durandal_1707> what deinterlace filter you are talking about?
[23:40] <Mavrik> rafael2k, yadif has a parameter, it isn't 100% reliable due to videos being broken
[00:00] --- Sat Sep  7 2013


More information about the Ffmpeg-devel-irc mailing list