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

burek burek021 at gmail.com
Wed Jul 18 02:05:01 CEST 2012


[01:07] <Sashmo> hey guys, Im using this command line http://pastebin.com/mnsffLYY I dont have the output because Im running it in the background, but after say 10 hours the output goes out of sync, the source is h.264 im just reducing the bitrate so that its easier to transmit over the net, any one have any rough ideas why its happening?  I suspect that its something to do with the source being interlaced and 30 fps, and ffmpeg reports back as the source being 60fps, but I k
[01:31] <derp> Anyone know how to keep the original timestamp i.e. Date Modified/Date Created/Date?
[01:37] <arpu> Sashmo: try to create a log file  and look what happend
[01:38] <derp> How would that do anything? Is it supposed to keep it by default?
[01:46] <derp> Anyone know how to keep the original timestamp i.e. Date Modified/Date Created/Date?
[02:58] <xxthink> how to set the keyframe interval for h263 encoding?
[02:58] <xxthink> or how to set the GOP structure for h263 encoding?
[04:19] <lake> is there a way to negate a filter?
[04:20] <lake> nvm
[05:04] <SubJunk> I'm using pipe output and FFmpeg seems to give up if it takes too long to load, like on a large file. Is there a way to tell it to wait longer?
[05:27] <lake> hello, i would like to split my file automatically at when silence detection marks silence as started and ended.
[05:42] <grepper> SubJunk: ffmpeg is reading from a pipe ?  Seems strange it would give up.  In my experience a program will wait indefinitely for input ...
[05:48] <lake> is there a way to write the filter log to a file?
[05:55] <grepper> 2>file.log ?
[05:57] <lake> grepper: ah, ok
[05:57] <lake> thanks
[06:02] <grepper> np
[06:08] <SubJunk> grepper: it may actually be a bug with my code, i'm checking it now. thanks for the reply :)
[06:08] <grepper> SubJunk: maybe junk at beginning of input ?
[06:28] <raptor67782> hi
[06:32] <raptor67782> I stream using ffserver the Video without any sound. I need some help. Would you know why my my ffmpeg ffserver is laggy over internet, the video is not matching which is showing an important delay. what should I change to fix that?
[06:32] <raptor67782> my config ffserver.conf is here: http://pastebin.ca/2171741
[06:33] <raptor67782> I hope that it could be improved... I am so sure :(
[06:33] <raptor67782> I also reduced the size of the video to make sure that it goes better, but it did nt change much
[10:41] <VxJasonxV> could someone help me understand why ffmpeg is attempting to open x11 on OS X?
[10:42] <VxJasonxV> In my case, I'm just running a little script to extract audio from a video. ffmpeg -i file.video -vn -acodec copy file.audio
[10:43] <VxJasonxV> I already recompiled mplayer to not use X11, but FFmpeg doesn't appear to have a similar autoconf option
[11:27] <braunr> hello
[11:27] <braunr> i'm building applications using ffmpeg, and built ffmpeg along with libx264, but it looks like the latter isn't automatically used for h.264 videos, and i can't find documentation about it
[11:27] <braunr> what am i missing ?
[11:39] <burek> braunr, how can you tel
[11:40] <burek> tell it's not used
[11:40] <braunr> when i profile it, i don't see any code running in libx264
[11:40] <braunr> performance and output are exactly the same as without the configure option
[11:40] <braunr> (although configure does find the library, and presets are installed)
[11:40] <burek> you are using it programmatically?
[11:40] <braunr> what do you mean ?
[11:41] <burek> are you writing a c code, using libav* libraries
[11:41] <burek> or you are using cmd line ffmpeg tool
[11:41] <braunr> not me, but basically yes
[11:41] <braunr> both
[11:41] <braunr> i'm trying with ffplay currently
[11:42] <braunr> here you are: http://pastebin.com/sFzP8VSd
[11:44] <burek> that is way too old
[11:44] <burek> there is 0.11.x version already
[11:44] <braunr> there are constraints on the api
[11:44] <burek> and if you are building your ffmpeg
[11:44] <burek> oh I see
[11:44] <burek> well, then you are in trouble I guess
[11:45] <braunr> what do you mean ?
[11:45] <burek> if you can adapt your api to latest git, that would be best
[11:45] <braunr> not possible i'm afraid
[11:45] <burek> I'm not sure how many and how frequently bug fixes are backported to older versions
[11:45] <braunr> but the question i'm asking is: why doesn't ffmpeg find libx264 at run time ?
[11:45] <braunr> why doesn't it even try to load it ?
[11:46] <braunr> it's not even linked :/
[11:46] <burek> btw
[11:46] <burek> why would it use libx264 ENCODER in ffplay?
[11:46] <burek> what's the idea there?
[11:46] <braunr> i thought it could also be used as a decoder !
[11:46] <braunr> that's probably what i'm missing here :)
[11:46] <burek> well ffmpeg has its own internal h264 decoder
[11:46] <burek> type ffmpeg -codecs
[11:46] <burek> there is h264 and there is libx264
[11:46] <braunr> yes, but there are performance issues
[11:47] <braunr> i thought libx264 would help
[11:47] <braunr> (it's a slow atom)
[11:47] <burek> one is decoder only and the latter is encoder only
[11:47] <braunr> i see
[11:47] <braunr> then no point wasting time (mine and yours)
[11:47] <burek> :)
[11:48] <braunr> thanks for the info (although documentation should perhaps make it clear it can only encode)
[11:48] <braunr> (i'll check that it's not a mistake on my part)
[11:48] <braunr> ok i just can't read
[11:48] <braunr> sorry
[11:48] <braunr> :)
[11:48] <burek> :beer: :)
[11:48] <braunr> eh
[11:48] <burek> braunr, well
[11:48] <burek> try ffmpeg -codecs
[11:48] <burek> you'll get a list
[11:49] <burek> that shows what is what
[11:49] <braunr> then what could improve libavcodec performance (except the obvious of not using --enable-smaller) ?
[11:51] <burek> performance for what exactly
[11:51] <braunr> decoding
[11:51] <burek> what issue are you encountering
[11:52] <braunr> framedrops with 100% cpu usage
[11:52] <burek> can you show pastebin
[11:53] <braunr> hm i can't show you more than what i already pasted i guess
[11:54] <braunr> i could show you it run longer and see the A-V delay increase
[11:54] <braunr> but i'm not sure it would help
[11:55] <braunr> the graphics card is an intel 945GME, would using vaapi help, despite the lack of hardware features ?
[11:55] <burek> well, it might be a slow video card, insufficient ram or some serious bug, that was already fixed, but not backported
[11:55] <burek> ffmpeg does not use hw acceleration afaik
[11:55] <braunr> configure provides options for that
[11:56] <burek> unless it does :D
[11:56] <burek> or it doesn't have a support for GPU usage
[11:56] <braunr> doesn't cost me much to try
[11:57] <burek> I don't know how to help more, I mean.. that version is really old
[11:57] <burek> You could read first 2 paragraphs here: http://ffmpeg.org/bugreports.html
[11:58] <burek> and see what I mean
[11:58] <braunr> sure
[11:58] <braunr> i definitely understand
[12:00] <braunr> at least i have the answer to my initial question :)
[12:00] <braunr> thanks for your time and have a nice day
[15:22] <eclaesson> Are there any performance gains using 64-bit ffmpeg instead of 32-bit ffmpeg, such as increased speed while encoding?
[15:23] <sacarasc> Why not do some tests and see!
[15:25] <eclaesson> sacarasc: That woul'd probably be a good idea. I'll do that
[15:33] <iive> eclaesson: given that it allows use of more registers it is expected that you would have about 5% speedup.
[15:33] <eclaesson> iive: Ok, thanks
[16:32] <killown> I am using this ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s hd1080 -r 30 -i :0.0 -vcodec libx264 -preset ultrafast -an -y video.mkv -acodec pcm_s16le -b:a 48000k -loglevel quiet -vn -y audio.mkv   to record the screen with audio and video separated, in case I want to join both, what's the way to do that?
[16:33] <Spideru> whooa what a command!
[16:33] <Mavrik> killown: just remove the first "video.mkv"
[16:33] <Mavrik> so you have only one output file specification :)
[16:33] <Mavrik> and ffmpeg will mux both inputs into one file
[16:33] <sacarasc> killown: ffmpeg -i video.mkv -i audio.mkv -acodec copy -vcodec copy combined.mkv
[16:34] <killown> sacarasc, thank you
[16:34] <killown> Mavrik, thanks anyway, sacarasc way is the right one
[16:37] <killown> brb
[16:59] <aro> currently we are using ffmpeg to encode to flv, but we would prefer mp4 - is there a setting that provides a comparable speed for encoding?
[17:00] <beandog> huh?  just change the extension
[17:02] <aro> the frame rate at which it encodes drops a lot, and it takes forever to encode
[17:11] <Mavrik> aro: are you actually putting the same video and audio formats in mp4 as you do in flv?
[17:27] <killown> what's wrong here ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s hd1080 -r 30 -i :0.0 -vcodec libx264 -preset ultrafast  -acodec pcm_s16le -b:a 48000k -loglevel quiet video.mkv,  the video and audio is  outsync
[17:27] <braunr> hello (again)
[17:28] <braunr> what's required to make the ebx and ebp registers available ?
[17:28] <braunr> (as i'm cross compiling, i want to make sure autodetection actually does its job)
[17:38] <iive> braunr: ebx is used for pic, ebp for stack debugging aka -fomit-frame-pointer
[17:38] <iive> these are problem only on 32bit.
[17:42] <braunr> yes i understand that but, autodetection seems to rely on host tests :/
[17:43] <braunr> so, with a recent (4.4 or later) gcc, can i be certain abp isn't used with -fomit-frame-pointer ?
[17:44] <braunr> ebp*
[17:48] <iive> well... if we could have been sure, then we would not need the test.
[17:49] <braunr> what could make the compiler use that register ?
[17:55] <iive> it is compiler... it uses registers ;) Just kidding. The problem is when the register is reserved and cannot be used by assembler blocks.
[17:55] <braunr> yes i understand
[17:56] <braunr> but what could make the compiler use ebp (specifically that one) when -fomit-frame-pointer is used ?
[17:56] <braunr> (so that i can force it when i know the option is used)
[17:57] <braunr> i realize it's not an ffmpeg specific question actually
[17:57] <braunr> but i guess people here might know about it
[18:01] <intracube> hi, I'm trying to work out why I'm getting poor performance while recording my desktop with x11grab
[18:01] <intracube> ffmpeg struggles to record a 1280x720 ffvhuff file to disk
[18:01] <intracube> the reported bitrate hovers around 100000kbit/s
[18:02] <intracube> or around 12MB/sec
[18:02] <intracube> much lower than my hard disks are capable of
[18:02] <intracube> it's not a CPU bottleneck either - top reports 50-60% usage of one core
[18:03] <intracube> anyone have an idea what the problem might be?
[18:04] <relaxed> wouldn't encoding be the bottleneck?
[18:04] <intracube> relaxed: I wouldn't have thought so if the CPU is only at 50-60% :/
[18:05] <relaxed> try again with rawvideo and see if it's faster.
[18:05] <intracube> I've run several tests on my disks - getting an average write speed of 50-60MB/sec
[18:06] <iive> braunr: i already told you what I know.
[18:06] <iive> sometimes compilers are just been stupid, using the register as temporal one and refusing to save it because the asm block needs it.
[18:09] <intracube> relaxed: have you got a link with a rawvideo encode example?
[18:11] <relaxed> ffmpeg -i blah -f rawvideo out.yuv
[18:14] <braunr> iive: ok
[18:15] <intracube> relaxed: that seems to dump video to disk at 700000kbit/s
[18:16] <intracube> if I try and convert the dumped video file to anything else I get an error...
[18:16] <intracube> I'll upload the error to pastebin
[18:19] <iive> braunr: sure there are people that know compilers better than me :)
[18:20] <intracube> http://pastebin.com/MebgJJZP
[18:22] <intracube> I'd prefer to record to ffvhuff if possible... rawvideo storage needs are huge - even as an intermediate format...
[18:23] <intracube> could the problem with ffvhuff encoding be that ffmpeg is writing small chunks of data at a time to disk?
[18:24] <intracube> maybe there's a way to change this through a buffer setting...
[18:28] <intracube> using ffvhuff - if ffmpeg's default behaviour is to write a frame at a time to disk, it'd be writing 25 0.61MB chunks of data to disk every second
[18:28] <intracube> maybe this is an inefficient way to do things (just thinking aloud)
[18:56] <tash_> hi all, i am trying to convert an avi file to amv format using the command pasted here:http://pastebin.com/vfGrv99v . (if I don't use '-f avi' then I get the error 'unable to find a suitable output format'.) It does create a working amv file as is, but then it is recognized on my system as an avi file, while the format I am trying to replicate is seen as a 'riff audio' file. (both with the .amv extension).  Any thoughts or tips?
[19:05] <tash_> it works on my computer, not on the hardware device(a cheap video module) that I'm trying to upload it to...
[19:13] <intracube> tash_: are you sure your hardware device supports the resolution and framerate of the converted file?
[19:14] <intracube> http://en.wikipedia.org/wiki/AMV_video_format
[19:14] <intracube> this page says that some players only support very limited resolutions/frame-rates
[19:16] <tash_> no i am not sure. i was trying to avoid opening it up to find harware info by seeing first if I could simply replicate and replace the original amv video inside it.
[19:17] <tash_> but visually looking at the original video when opened by VLC, it is a lot larger than those formats listed
[19:18] <tash_> i tried to match sizes, guessing 320p wide.
[19:18] <intracube> what hardware device are you trying to play the video on?
[19:20] <intracube> you could try setting the output resolution to 208x176
[19:21] <tash_> it's one of these: https://www.google.com/search?q=video+greeting+card&hl=en&client=ubuntu&hs=Hhr&channel=fs&prmd=imvns&tbm=isch&tbo=u&source=univ&sa=X&ei=TpoFUJGDDI2N6AGdl7XLCA&ved=0CHIQsAQ&biw=1680&bih=855
[19:22] <tash_> will try that and report back but the original file is much larger, wish I knew a better way to inspect its properties
[19:26] <tash_> the device still shows 'format error!'.  I'm going to take it apart now...
[19:40] <intracube> tash_: mediainfo is a good program for getting information about the file
[19:42] <tash_> intracube: thanks i'll check that out, it might take a while to sort out the insides of this card. but i found the media IC so lets see...
[20:47] <raptor67682> hi
[20:47] <raptor67682> how to say to allow everyone wiht ACL ? ffserver.conf
[20:51] <burek> raptor67682, try 0.0.0.0/0
[20:51] <burek> but why would you want to do that?
[20:58] <raptor67682> funny thing
[20:58] <raptor67682> yestersday my dad could see my webcam stream
[20:59] <raptor67682> and today it seems taht mplayer http://myrealip/port does not work
[20:59] <raptor67682> it has been always of
[20:59] <raptor67682> ok
[20:59] <raptor67682> but since today I working only on intranet
[20:59] <raptor67682> and nothing from internet
[21:00] <raptor67682> I considered that router changted, ... but nope, router is still same config and ip too ..
[21:00] <raptor67682> no idea
[21:00] <burek> look
[21:00] <burek> ACL is NOT for viewers
[21:01] <burek> read the docs more carefully
[21:01] <burek> it is used
[21:01] <burek> to control who can feed your ffserver
[21:01] <raptor67682> ok
[21:01] <burek> what machines can run ffmpeg and send the stream to your ffserver
[21:01] <burek> and also watch status page and stuff
[21:01] <burek> so, it's pretty much something you don't want everyone to have access to
[21:01] <raptor67682> but what can it be? why my internet users cannot see my webcam suddently? i havent touch anythg
[21:02] <burek> what can it be is that either you bound the server to localhost ip address (127.0.0.1)
[21:02] <burek> so only that machine can see it
[21:02] <burek> or you've bound it to the correct network interface but your LAN/internet router is blocking it
[21:02] <raptor67682> why suddenly?
[21:03] <raptor67682> why yesterday and all weeks it worked, and today not
[21:03] <raptor67682> only intranet
[21:03] <raptor67682> I havent installed anything, no apt-get, did nothing
[21:03] <burek> well, first of all
[21:03] <raptor67682> I dont really understand
[21:03] <burek> type netstat -pant
[21:03] <burek> and see if there is "ffserver" listed anywhere
[21:03] <burek> if it is, paste that 1 line here
[21:04] <raptor67682>    tcp        0      0 127.0.0.1:8090         127.0.0.1:4963         ESTABLISHED 9260/ffserver
[21:04] <burek> you see
[21:04] <burek> 127.0.0.1 is not a valid public ip address
[21:04] <burek> go to your ffserver.conf and replace 127.0.0.1 with 0.0.0.0
[21:05] <burek> then it should work
[21:05] <raptor67682> ahhh
[21:05] <raptor67682> let s try
[21:06] <raptor67682> ousp ...
[21:06] <raptor67682> surprise
[21:06] <burek> does it work now
[21:06] <tash_> let's see
[21:07] <raptor67682> http://pastebin.ca/2171932
[21:07] <raptor67682> for me it looks ok
[21:07] <raptor67682> no? I have already 0.0.0.0
[21:07] <burek> ok, you have this also http://ffmpeg.org/sample.html
[21:07] <burek> anyway, back to the netstat
[21:07] <burek> is there one more line with ffserver
[21:08] <burek> try netstat -pant | grep ffserver
[21:08] <raptor67682> I will gfrep it
[21:08] <burek> well your config file looks ok
[21:08] <burek> do you have a LAN router?
[21:09] <raptor67682> http://pastebin.ca/2171935
[21:09] <tash_> intracube, not sure if this posted: mediainfo didnt show much but using ffmpeg on the original file gave info that I used: http://pastebin.com/b53EvVeU . looks like we dont have audio 'adpcm_ima_amv' for encoding, or s16
[21:09] <burek> raptor67682, that's ok
[21:09] <raptor67682> I am forwarding the port from teh www to the IP right IP of the ffserver and also that the router has never been touched
[21:10] <raptor67682> I checked and router is well powrt forwarding ...
[21:10] <burek> raptor67682, did ffserver's ip change?
[21:10] <raptor67682> nope
[21:10] <raptor67682> I checked too
[21:10] <burek> did you make a static ip entry in dhcp
[21:10] <raptor67682> ip of ffserver machine is still stame
[21:10] <raptor67682> dhcp automatic
[21:10] <burek> on your router, there is section named "dhcp"
[21:10] <burek> and something named like "address reservation"
[21:10] <raptor67682> I use Address Reservation
[21:10] <burek> ok, did you add ffserver to that static assignment
[21:11] <raptor67682> and it is looks fine. mac is checked and gives the right ip
[21:11] <burek> ok
[21:11] <raptor67682> ffserver to static ?
[21:11] <burek> what is the link that you gave other people to try to connect to you
[21:11] <raptor67682> I dont know whta means ffserver to static`?
[21:11] <burek> (ffserver's machine's ip address to address reservation list)
[21:11] <raptor67682>  mplayer -cache 8912 -cache-min 4    http://$realworldip:8090/test.swf
[21:12] <burek> and what's your real world ip
[21:13] <raptor67682> (well, I am afraid of hackers .. I would not so much like to post it if possible. i also saw that yahoo got badly attacked again)
[21:13] <burek> I see ok, can you paste it in private to me, so I can check
[21:13] <raptor67682> normally I can test myself, but it doesnt work anymore
[21:14] <cbreak> if you want to make streaming secure, use a vpn.
[21:14] <burek> well, you can either ask someone to help you test it, or use some online port scanning services
[21:14] <cbreak> (but I didn't read what you wrote above, so don't know if this applies to you)
[21:14] <burek> and request that it scans your port 8090
[21:15] <raptor67682> burek: well, I still need more time to know you for ip sharing ;) :)
[21:15] <burek> it's ok :)
[21:15] <burek> I understand :)
[21:15] <raptor67682> nmap ok.. simple to scan... let s see
[21:15] <burek> anyway, try something like this
[21:16] <cbreak> check out http://netalyzr.icsi.berkeley.edu/
[21:16] <burek> http://nmap-online.com/
[21:16] <burek> there you just type in your port (8090)
[21:16] <burek> "Full Nmap Scan of your computer"
[21:16] <burek> in both fields put 8090
[21:17] <raptor67682> 8090/tcp open  unknown from inside
[21:18] <raptor67682> Oh, thanks. I have an ssh account also outside and a raspberry somewehre in the world to do that too, and work ssh... letÄs  see
[21:19] <burek> well, then it works
[21:19] <burek> :)
[21:21] <raptor67682> Note: Host seems down. If it is really up, but blocking our ping probe
[21:21] <burek> ping won't help you
[21:21] <burek> only port scan
[21:21] <raptor67682> so router is crazy
[21:21] <burek> from outside
[21:21] <burek> i need to go now
[21:21] <cbreak> a ping is an ICMP packet
[21:21] <burek> good luck with that :)
[21:21] <cbreak> ICMP is often filtered out
[21:22] <sacarasc> If you can, telnet to the port from the outside!
[21:22] <raptor67682> or it could be that my router got mad cuz I did VOIP with STUN
[21:22] <cbreak> stun?
[21:22] <raptor67682> stun.ekiga.net
[21:22] <raptor67682> I saw that it can screw my network sometimes... but never play with netstat
[21:22] <raptor67682> ahh maybe a trace ?
[21:22] <raptor67682> trace IP ... to see where it blocks...
[21:23] <cbreak> don't rely on ICMP and similar
[21:23] <cbreak> it's become more and more useless in recent years since NATs have become more popular, and firewalls more restrictive
[21:23] <raptor67682> maybe to restart the router, no?
[21:32] <raptor67682>  not so much ...
[21:32] <raptor67682> I post it :
[21:32] <raptor67682> takes eternity ...
[21:32] <raptor67682> http://pastebin.ca/2171941
[21:33] <raptor67682> actually the test netstat does not display the outside ip, but sounds like 127.xxx locolhost
[21:36] <raptor67682>   Note: Host seems down. If it is really up, but blocking our ping probes
[21:36] <raptor67682> and nmap withotu forcingt also blocked
[21:36] <raptor67682> so both could not success so much the test ...
[21:36] <raptor67682> well it works
[21:36] <raptor67682> Dont really know why ... perfect... dad can see me ;)
[21:37] <raptor67682> thank you !
[00:00] --- Wed Jul 18 2012


More information about the Ffmpeg-devel-irc mailing list