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

burek burek021 at gmail.com
Tue Apr 10 02:05:02 CEST 2012


[00:00] <relaxed> cnx: I don't think '-f mpeg' is correct, try '-f mpegts'
[00:01] <cnx> [mpegts @ 0x2446eb0] Could not detect TS packet size, defaulting to non-FEC/DVHS
[00:01] <cnx> [mpegts @ 0x2446eb0] max resync size reached, could not find sync byte
[00:05] <cnx> anyone?
[00:32] <darkstarbyte> How would I copy over certain audio streams and leave the others out, like 0.4 and etc
[00:34] <relaxed> darkstarbyte: -map 0:a:4
[00:39] <darkstarbyte> oh
[00:40] <cnnx> im having trouble getting ffmpeg to record from /dev/vide0 is there a generic parameter set I can try instead?
[00:41] <darkstarbyte> I think you are supposed to have a special program for that
[00:42] <cnnx> mencoder
[00:42] <darkstarbyte> I was thinking something more like
[00:42] <darkstarbyte> a dvr program
[00:43] <cnnx> i wanted to write my own cli script
[00:43] <cnnx> you cant?
[00:43] <darkstarbyte> There is some junk data in most of those streams from the broadcaster
[00:43] <cnnx> /dev/video0
[00:43] <cnnx> what broadcaster?
[00:44] <darkstarbyte> all of the common ones
[00:44] <cnnx> what are you talking about
[00:44] <darkstarbyte> EIT data I believe it is called
[00:44] <cnnx> /dev/video0 is an input source
[00:44] <darkstarbyte> for one
[00:44] <cnnx> from a video capture card
[00:44] <darkstarbyte> over the air
[00:44] <cnnx> i didnt say over the air
[00:45] <darkstarbyte> sorry that is what most of those are used for
[00:45] <cnnx> sorry
[00:45] <darkstarbyte> perhaps you could mount it, and see the incoming data
[00:45] <darkstarbyte> perhaps it would make files on its own.
[00:46] <darkstarbyte> then all you would have to do is copy them.
[00:51] <darkstarbyte> I have wondered if a hdmi cable could record things.
[00:51] <darkstarbyte> port*
[01:23] <barhom> If I just want to copy audio without doing anything at all using ffserver.conf, what should I add? (Im guessing something like; AVOptionAudio flags copy)
[01:23] <barhom> Im transcoding the video, but I want to keep the audio as is
[03:35] <darkstarbyte> What should I use to extract an individual audio track?
[03:36] <darkstarbyte> the map option did not work
[03:37] <relaxed> pastebin.com the command and all output of what didn't work.
[03:42] <darkstarbyte> I got it to work after adding some stuff to what the last person said.
[03:42] <darkstarbyte> sorry
[10:33] <barhom> how do you add a filter from ffserver?
[10:33] <barhom> AVOptionVideo filter yadif (something like that I guess)
[10:34] <barhom> I can't find any documentation regarding it, or Im just blind and hopefully somebody can direct me
[10:39] <Pacefist> Hello!
[10:40] <Pacefist> I'm getting a digital TV signal package by package
[10:40] <Pacefist> And I need to make frames from it
[10:41] <Pacefist> an then convert it in openCV image
[10:42] <Pacefist> It looks like typical problem, but I can't find any example, how to do it
[10:42] <Pacefist> (sorry for bad english)
[11:27] <burek> barhom, did you check the ffmpeg example config file
[11:28] <barhom> yes but there is nothing about filters
[11:28] <burek> Pacefist, do you need to do it using ffmpeg or libav?
[11:28] <barhom> http://ffmpeg-users.933282.n4.nabble.com/ffserver-ignores-filters-td4310672.html < I think I understand that filters is not supported in ffserver
[11:28] <barhom> ffserver doesn't support filters, and yes that would be a nice feature < forum post 2012-01-20
[11:29] <burek> well
[11:29] <burek> http://ffmpeg.org/pipermail/ffmpeg-user/2012-January/004386.html
[11:30] <ubitux> we desperately need a ffserver maintainer actually :)
[11:30] <burek> why don't you apply filter before you send it to ffserver
[11:30] <barhom> cuz I didn't think about it? :P
[11:30] <barhom> Ill try that
[11:30] <burek> ok :)
[11:58] <cnx> when I run ffmpeg -f mjpeg -s 640x480 -i /dev/video0 out.mpg I don't get any errors but it doesn't create my output file, any idea why?
[12:05] <burek> well
[12:05] <burek> cnx, first of all
[12:06] <burek> what do you want ffmpeg to do? what is your goal
[12:06] <cnx> burek: the statement says it
[12:06] <burek> the statement is very confusing
[12:06] <burek> so im not sure
[12:06] <cnx> go to /dev/video0 using the mpeg codec and dump to a file
[12:06] <burek> you even know
[12:06] <burek> what statement did you write
[12:06] <burek> thats why i ask
[12:07] <cnx> scroll up
[12:07] <burek> i see
[12:07] <burek> you are missing -vcodec and -acodec
[12:07] <burek> if you just want to dump
[12:07] <burek> use -vcodec copy
[12:08] <cnx> iused -vcodec, still doesnt create any output file
[12:08] <cnx> and I dont care about acodec (audio)
[12:09] <Pacefist> burek: using ffmpeg
[12:10] <Pacefist> burek: what is libav?
[12:10] <burek> cnx does the fps info change
[12:10] <burek> or everything is just idle
[12:10] <burek> Pacefist, how do you get "packages"
[12:10] <cnx> burek: bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[12:10] <cnx> bttv: PLL set ok
[12:11] <Pacefist> cnx: I have a message with 188 bytes of information
[12:11] <Pacefist> (from transport stream)
[12:11] <Pacefist> burek:  I have a message with 188 bytes of information
[12:12] <Pacefist> it is one packet in the stream
[12:12] <burek> Pacefist,
[12:12] <burek> can you please use pastebin.com, to show your command line and its output?
[12:12] <burek> cnx, too
[12:12] <Pacefist> burek: I'm not using consloe
[12:13] <Pacefist> burek: I'm using library
[12:13] <cnx> kernel: [55714.402692] bttv: 0: SCERR @ cf823000,bits: VSYNC HSYNC OFLOW SCERR*
[12:13] <cnx> this looks like an ERROR
[12:13] <cnx> resolution
[12:14] <burek> Pacefist, i dont understand
[12:14] <Pacefist> burek: I should make a function
[12:14] <burek> cnx, ffmpeg output
[12:14] <cnx> http://pastebin.com/rs7bk3nn
[12:14] <cnx> then I hit control-C
[12:14] <cnx> and no file is generated in ls
[12:14] <burek> Pacefist, what library
[12:15] <Pacefist> openCV::Image getImage(char[188] );
[12:15] <Pacefist> ffmpeg
[12:15] <Pacefist> sorry, not
[12:16] <Pacefist> void getImage(char[188]);
[12:16] <burek> Pacefist, then try to ask for help on OpenCV support page?
[12:16] <burek> cnx, the entire output
[12:16] <Pacefist> Oh, god, let me explain
[12:16] <burek> not just half
[12:16] <cnx> burek: that is
[12:16] <burek> it's not
[12:16] <cnx> on the cli it is
[12:16] <burek> then your ffmpeg is fault
[12:16] <burek> try to get the latest one
[12:17] <burek> faulty*
[12:28] <cnx> i compiled the newest version but now it doesnt recognize any of the arguments on the cli
[12:28] <cnx> Unknown decoder 'codec'
[12:28] <cnx> Option video_size not found.
[12:28] <cnx> etc
[12:28] <burek> can you please use pastebin.com, to show your command line and its output?
[12:28] <cnx> that is the only output
[12:28] <cnx> and the same command line as before
[12:29] <burek> just copy/paste it
[12:29] <cnx> http://pastebin.com/SQxNehFx
[12:29] <burek> -vcodec codec  ?
[12:30] <burek> seriously? :)
[12:30] <cnx> yeah, in this version its not copy
[12:30] <cnx> look in the -h
[12:30] <burek> :D
[12:30] <burek> try reading _more_ careful
[12:30] <cnx> then fine
[12:30] <cnx> none of the args work anyhow
[12:30] <burek> it never was "codec" and will never be.. it was always "copy" and shall stay that way
[12:31] <cnx> my mistake
[12:31] <Pacefist> burek: I have MPEG-TS transport stream. On each next packet getImage(char*) function is used. And there is one more function: Frame* getFrame(), that return present frame in the stream. And last, there is a function, getImage(), that should returns present image in openCV format. There is an example, how to convert an image from ffmpeg to openCV format, but there is no examples, how to get ffmpeg
[12:31] <burek> I would say it's more like you are so impatient, cnx, and are making trivial mistakes
[12:31] <burek> take it easy and it will work
[12:32] <Pacefist> burek: ffmpeg picture
[12:32] <cnx> http://pastebin.com/nr70c1dj
[12:32] <burek> Pacefist, where did you read info for getImage() ? is there any link?
[12:32] <burek> cnx, another mistake
[12:32] <burek> the order of parameters does matter
[12:33] <burek> move -vcodec copy after -i input
[12:33] <Pacefist> burek: I can use some variables from in function
[12:33] <burek> Pacefist, do you have any URL to the documentation for getImage function?
[12:34] <Pacefist> shared variables: getImage and getFrame can use the same variables
[12:34] <cnx> http://pastebin.com/tpDAbhNZ
[12:34] <Pacefist> burek: no, no, no
[12:34] <Pacefist> burek: wait a minute
[12:35] <burek> cnx, try removing -r
[12:36] <Pacefist> burek: well, getImage - isn't a good name
[12:36] <cnx> http://pastebin.com/PVait5fR
[12:36] <Pacefist> burek: I can make an example of using
[12:36] <burek> cnx, remove -s
[12:37] <burek> Pacefist, I'm trying to figure out what on earth are you doing
[12:37] <burek> that's why I ask what is getImage
[12:37] <cnx> http://pastebin.com/seWpL64f then i hit control C and there's no out.mpg
[12:37] <burek> cnx, what did you connect to /dev/video0
[12:37] <cnx> video capture device and camera that owrks with tvtime
[12:38] <burek> cnx, try this: ffmpeg -f v4l2 -i /dev/video0 out.mpg
[12:38] <cnx> http://pastebin.com/3GbujFb2
[12:39] <burek> cnx, also -vcodec copy goes before output name (out.mpg)
[12:39] <cnx> now it created the out.mpg but playing back the video is a bluescreen, can I select the right channel (multiplexoer) for composite1?
[12:40] <burek> try installing v4l-utils
[12:40] <burek> or v4l-tools
[12:40] <burek> and use v4l2-ctl
[12:40] <burek> to set what you need
[12:41] <burek> Pacefist, can you copy/paste your code on pastebin so that we can figure out what are you dealing with
[12:44] <Pacefist> http://pastebin.com/LPfPHk39
[12:44] <burek> ok, what libraries do you use
[12:46] <Pacefist> And sometimes I will call functions getFrame and getImage
[12:46] <Pacefist> Image* - pointer to picture in openCV library
[12:47] <Pacefist> MPEG_devices is already done
[12:47] <Pacefist> now I should realise nextPacket() function
[12:48] <Pacefist> using some libraries, for example, ffmpeg
[12:48] <burek> I see
[12:48] <burek> ok
[12:48] <burek> well
[12:48] <burek> you are probably looking for libav libraries
[12:48] <burek> used in ffmpeg too
[12:48] <burek> so, try joining #libav channel
[12:48] <burek> and ask your question there, to get more help :)
[12:49] <Pacefist> burek: thanks
[12:51] <burek> :beer: :)
[12:56] <Pacefist> burek: silence on libav...
[12:58] <burek> well, be patient :)
[12:58] <burek> we are not all in the same time zone
[12:58] <Pacefist> I know
[12:58] <burek> try using google for libav in the meantime
[12:58] <burek> you might find some examples or something
[12:59] <Pacefist> but while there is no example for using ffmpeg?
[13:00] <burek> ffmpeg is command line utility
[13:00] <burek> it internally is using libav
[13:00] <Pacefist> ok
[13:01] <Pacefist> but ffmpeg-codek in VLC
[13:01] <burek> what?
[13:01] <Pacefist> let me think that ffmpeg is library]
[13:02] <burek> "burek> ffmpeg is command line utility"
[13:02] <burek> libav is library
[13:02] <Pacefist> burek: shy
[13:02] <burek> :beer: :)
[13:45] <barhom> anyone who knows about using preroll/buffer in ffserver?
[13:46] <barhom> Cant seem to get it working, it worked once, with the same settings, it seems to be random - but I think this function isn't used that often
[13:53] <Tthread> Hi
[13:55] <Tthread> Could you please give me advice&
[13:56] <Tthread> I use ffmpeg for decode live video
[13:56] <Tthread> by RTP
[13:58] <Tthread> but I want to make faster this process
[14:00] <Tthread> now i spend about 20 ms for each frame for decode (frame size is about 1,5 kbyte)
[14:01] <Tthread> how can i tune this?
[14:01] <Tthread> for decoding i use avcodec_decode_video2
[14:27] <Mavrik> Tthread: check lines around 2367 in ffmpeg.c to see how to set multi-thread decoding
[14:27] <Mavrik> that could help
[14:30] <Tthread> Mavrik: aha! ok!  Thanks a lot!
[15:19] <pahan> Hello. I am trying to grab video from X11. What is the best(fastest) lossles codec for it?
[15:28] <pahan> How to make ffmpeg to do lossles grabbing of x11?
[15:29] <JEEB> ffvhuff is probably one of the fastest lossless codecs in libavcodec
[15:30] <pahan> JEEB, thanks
[16:18] <Hacker-CB> Hi All!
[16:18] <Hacker-CB>  Is somebody knows, how to get current pts after 'av_seek_frame' without calling 'av_read_frame'?
[16:34] <andrew__2> Hey, when I use the flag "-vpre fast", it says the "File for preset 'fast' not found"
[16:35] <andrew__2> Any ideas as to why this is happening. Did I not install something correctly?
[16:37] <sacarasc> andrew__2: Try -preset fast
[16:37] <sacarasc> The x264 presets are built in, not in external files any more.
[16:37] <andrew__2> oh ok
[16:38] <andrew__2> now when I do that, I get errors about broken ffmpeg default settings again
[16:38] <sacarasc> Which version of ffmpeg are you using?
[16:39] <andrew__2> stable release 0.10.2
[16:39] <sacarasc> Can you paste your complete command line and the output to a pastebin?
[16:41] <andrew__2> one moment
[16:42] <andrew__2> http://pastebin.com/3XvnmBam
[16:43] <sacarasc> Try moving the preset to after the -vcodec libx264.
[16:45] <andrew__2> pretty much the same output
[16:45] <sacarasc> -preset:v fast
[16:46] <sacarasc> Maybe... I forget how it's meant to be with these new builds...
[16:47] <andrew__2> yea, still getting the same thing
[16:47] <sacarasc> I thought that the default wasn't broken any more, so I am totally stumped.
[16:48] <andrew__2> it wouldn't have anything to do with my installation, would it?
[16:48] Action: sacarasc shrugs.
[16:50] <andrew__2> ok, just trying to think up possible sources of error
[16:50] <andrew__2> im on Ubuntu, so im using http://ubuntuforums.org/showthread.php?t=786095 as my installation guide
[16:51] <andrew__2> this just seems really odd for a stable build
[16:52] <andrew__2> which makes me think I did something wrong
[16:52] <ckb> What kind of specs should I look at for a strict encoding server?
[16:53] <ckb> AKA: I have uploaded videos I'm encoding. Should I try for 16GB RAM / QUAD+ core?
[17:02] <ckb> anyone? bueler?
[17:02] <andrew__2> sacarasc: I was able to get it to work when I set the output as a local file, rather than a ffm file for ffserver
[17:07] <andrew__2> brb
[17:57] <burek> Hacker-CB, try asking the same question in #libav
[17:57] <burek> andrew__2, your ffmpeg is too old, please update to the latest git
[17:59] <sacarasc> 0.10.2 is too old?
[17:59] <burek> oops my bad
[17:59] <burek> :D
[17:59] <burek> I wanted to say that -vpre is deprecated :)
[18:56] <Diogo> what i need to do to add watermark in a movvie? http://pastebin.com/8AZuvd2b Appear: Could not find codec parameters(video : png)
[18:56] <Diogo> thnaks..
[18:56] <burek> hm
[18:58] <burek> try taking a look here http://ffmpeg.org/ffmpeg.html#movie
[18:58] <burek> no wait
[18:59] <burek> overlay
[18:59] <burek> http://ffmpeg.org/ffmpeg.html#overlay-1
[19:00] <burek> also type ffmpeg -codecs | grep png
[19:01] <burek> see if you compiled the png lib
[19:13] <Diogo> http://pastebin.com/Kdcnt0Tm
[19:13] <Diogo> i have this codecs...
[19:18] <burek> ffmpeg -codecs
[19:21] <Diogo> what is the lib to support png?
[19:21] <Diogo> i'm using debian..
[19:22] <burek> let me check
[19:24] <burek> libpng12-dev
[19:25] <ubitux> ffmpeg doesn't use libpng
[19:25] <ubitux> ffmpeg -codecs|&grep png
[19:25] <ubitux> ’  DEV D  png             PNG image
[19:26] <ubitux> decode/encode/video, direct rendering
[19:26] <burek> what do you mean it doesn't use it?
[19:27] <Diogo> libpng12-dev is already the newest version.
[19:27] <Diogo> when i do  ffmpeg -codecs | grep png appear  this http://pastebin.com/Kdcnt0Tm
[19:28] <ubitux> i don't see png in your paste
[19:28] <ubitux> burek: there is a native encoder and decoder
[19:29] <ubitux> so no link with libpng; you can check with ldd
[19:32] <ubitux> Diogo: can you test if ./ffplay -f lavfi 'testsrc[a]; movie=a.png[b]; [a][b]overlay' works for you?
[19:32] <ubitux> (given a a.png file)
[19:34] <burek> type ffmpeg -codecs | less
[19:34] <burek> and see if there is png in the list
[19:34] <burek> oh
[19:34] <burek> it uses zlib's implementation?
[19:34] <burek> Diogo, can you type ffmpeg -codecs and copy/paste to pastebin
[19:36] <ubitux> burek: yes the zlib is used, but it's a subpart of the codec
[19:38] <Diogo> burek i don0t have png in that list..
[19:39] <level09> can ffmpeg convert quick time references exported from Avid ?
[19:40] <Diogo> burek: what i need to include in ./configure to compile with support for png images?
[19:40] <burek> Diogo, apt-get install zlib1g-dev
[19:41] <juanmabc> diretly libpng-dev or like, will get you any dep
[19:49] <Diogo> thanks
[20:32] <andrew__2> Hey, so im still having an error where ffmpeg thinks that default settings are broken
[20:33] <andrew__2> Does anyone have an idea about that?
[20:33] <andrew__2> Im converting to h264
[20:34] <andrew__2> And it only happens when I try to feed the data into ffserver
[20:36] <roxlu> hey!
[20:37] <roxlu> I'm looking for a way to create annimated gifs. If I'm correct libav can do this. I was wondering if libav uses a 3rd party lib for this?
[21:53] <cnx> when i use v4l2-ctl -i 1 to set to composite1 it does but when I run ffmpeg it resets it to 0 and doesnt use 1, why?
[21:59] <cnx> how do you make changes permanent ?
[22:08] <cnx> how do you select composite1 in ffmpeg?
[22:23] <cnx> when I type v4l2-ctl -i 1 it changes to composite1 but doesnt save the changes for when i use ffmpeg, how can I make it do this?
[23:09] <cnx> alright, can one of the developpres tell me which variable in which .c or .h file sets the default input (i.e composite1,2,etc..)
[23:09] <cnx> not the /dev/video0, but for /dev/video0 which input
[23:11] <cnx> hello?
[23:26] <meekohi> Is there anyway to share the r,g,b values in the expressions when using -vf luvrgb? For example if I want to enhance saturation in a video?
[23:30] <meekohi> lutrgb I mean
[00:00] --- Tue Apr 10 2012


More information about the Ffmpeg-devel-irc mailing list