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

burek burek021 at gmail.com
Mon Jul 30 02:05:01 CEST 2012


[00:33] <soulstitchmmo> Good morning everyone. I've gotten my stream working on Twitch (yay) however in Windows I use XSplit and I'm able to change scenes, and run promos and do all manner of scene switching and such. What I would like to know if while a stream is open am I able to send other sources? Or at the very least when I start the stream stream 1 video, then the live stream?
[00:49] <burek> judget
[00:49] <judget> I am using that guide
[00:50] <burek> what's the exact message you get
[00:50] <judget> il have to go back and run the config aagin meanwhile it did build
[00:50] <burek> ok
[00:52] <judget> heres the message:
[00:52] <judget> WARNING: Please upgrade to VA-API >= 0.32 if you would like full VA-API support.
[00:52] <soulstitchmmo> burek! yay :D
[00:53] <burek> judget dpkg -l | grep libva
[00:53] <burek> and update it
[00:53] <burek> also libva-dev
[00:53] <burek> soulstitchmmo :beer: :)
[00:54] <judget> how do I update it (DUH)
[00:54] <burek> judget :) read the ubuntu manual :)
[00:54] <burek> or ask in #ubuntu
[00:54] <judget> OK tx
[00:56] <soulstitchmmo> burek did you see my question from earlier?
[01:52] <pzaljr> so I'm installing on a Ubutuntu 12 precise server
[01:52] <pzaljr> getting the error: /usr/bin/ld: libavutil/intfloat_readwrite.o: relocation R_X86_64_PC32 against undefined symbol `ldexp@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
[01:52] <pzaljr> on the make
[01:59] <vitrums> I've got an issue with pulseaudio, streaming online via rtmp. FFmpeg starts repeatedly writing warnings: DTS 301435891, next:302266281 st:0 invalid dropping. This just happens at some point  and there's no way back to have it working again until restart of the stream. Any idea?
[02:04] <iive> pzaljr: i've heard that this happens if one of the libraries is not compiled as PIC, i hope it is not glibc in your case. gentoo?
[02:10] <rud> hi, i am currently using HEAD snapshot of ffmpeg. my current case scenario is crtmpd > pull> ffmpeg (transcode) > push > crtmpd+auth & it works perfectly fine until i enable RTMP auth. my streaming app supports said RTMP auth and works fine, but i can't find the proper syntax to tell ffmpeg to push the stream using a given login&password & here is what i'm currently doing : http://pastebin.com/nGLGzw3S .. if someone has a clue it would be much appreciated.
[02:17] <pzaljr> iive: ubuntu precise with a bitnami stack
[02:30] <Macey_home> Hi All, Sorry is there a decent c# binding for ffmpeg, i've searched all day wasted hours on sharpffmpeg which is horribly out of date... Any idea if there is a updated bindings?
[02:54] <vitrums> I've removed pulseaudio, but I'm still running at the same issue
[03:17] <vitrums> I'm running Ubuntu 12.04 x64. Not so log ago I had a trouble with -fPIC g++ compiler option due to x64 arch, but I really hope it's not my case ^^ Though, talking about ffmpeg... it can be just anything :paka:
[04:50] <soulstitchmmo> Why does FFMPEG use so much CPU?
[04:50] <soulstitchmmo> I am watching my htop, and I can see when I start ffmpeg streaming either ffmpeg, or compiz jump to 100% and even out at about 60-80%
[05:00] <relaxed> encoding is cpu intensive
[05:07] <soulstitchmmo> Why? In windows using Xpslit, it can do it flawlessly with barely any perceptible difference. In Linux it basically eats all my CPU.
[05:46] <relaxed> You can limit its cpu usage in linux too.
[05:54] <soulstitchmmo> relaxed: How do I limit it's cpu usage?
[05:57] <relaxed> "it's" is a contraction for "it is". Look at cpulimit.
[09:27] <noisymouse> Hi, I have a grayscale source and I'm looking for a codec that only encodes the darkness and no color (and saves space by doing that)
[09:28] <frogs> option 'gray'
[09:28] <frogs> doesn't give much help as the majority of bits go to the lightness already
[09:29] <noisymouse> ok -- I would have thought that color would take up 2 or 3x extra space
[09:30] <noisymouse> also I noticed when I used just the -gray option that the video comes out lighter (even though I can tell using VLC's brightness filter that the information all still there)
[09:31] <noisymouse> err I mean darker
[09:31] <noisymouse> does it cut off black at the most black pixel and then reassign brightness values? (this is with x264)
[09:32] <frogs> 'gray' it self does not, but the encoder can.
[09:32] <noisymouse> I see
[09:33] <frogs> try encoding to a lossless format and see if the video is processed in the way you want
[09:33] <frogs> like ffvhuff
[09:33] <frogs> then you can encode that lossless one and see where the loss of quality is occuring
[09:36] <noisymouse> ok, thanks
[09:59] <soulstitchmmo> can someone show me how to use the cpulimit command with my ffmpeg command?
[10:00] <soulstitchmmo> I'm not quite understanding where to put the cpulimit command
[10:03] <tdr> soulstitchmmo, if you mean "cpulimit" command, i found a guide that says to start your ffmpeg, then cpulimit -e ffmpeg -l percentage ... but I don't know how that would scale threaded across cores
[10:05] <tdr> you could also just nice it so it doesn't get in the way of other apps
[10:06] <soulstitchmmo> the nice command did not seem to work, it was still running at near 100% cpu usage.
[10:10] <soulstitchmmo> tdr, I figured it out, but I can't run it all in one script?
[10:10] <soulstitchmmo> I have to open two terminals?
[10:10] <tdr> soulstitchmmo no idea, i've never used it
[10:10] <soulstitchmmo> ahh ok
[10:20] <soulstitchmmo> WOW
[10:20] <soulstitchmmo> what a huge difference
[10:27] <vitrums> What might cause unwanted behaviour of the audio, regardless if I use pulse or directly a card:device. It just goes crazy in several minutes since the RTMP stream is up, and every package of audiostream is being dropped. I've tried to stream up on justin.tv and own3d.tv. The result is the same. Therefore I'm literally force not to use sound at all :rage_why: ?!
[10:28] <vitrums> forced*
[11:06] <raptor67782> can ffmpeg for debian stable play bbc radio: ?  ffplay  "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio1_p?s=1343545294&e=1343559694&h=615b5b7e426712bba179edcde9c44ae6"
[11:33] <karatemyran> Hey iam having some problem to set up a brodcast using ffmpeg. Iam new 2 linux and dont know what 2 do
[11:35] <soulstitchmmo> first do this: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[11:35] <soulstitchmmo> where are you trying to stream to?
[11:35] <karatemyran> justin
[11:36] <karatemyran> justin.tv
[11:36] <karatemyran> i have instaled that
[11:36] <soulstitchmmo> you went through that particular page?
[11:37] <soulstitchmmo> karatemyran, you installed it according to that guide, or some other guide?
[11:37] <karatemyran> that guide
[11:38] <soulstitchmmo> ok do you know how to make a script in your .bashrc?
[11:38] <karatemyran> not rly thats the problem
[11:38] <karatemyran> iam trying
[11:38] <soulstitchmmo> ok goto Home, and hit CTRL+H to show hidden files.
[11:38] <soulstitchmmo> then find your .bashrc and open it (should open in a text editor
[11:38] <karatemyran> yes
[11:39] <soulstitchmmo> then copy paste: http://pastebin.com/MRagM2E3 at the bottom
[11:39] <soulstitchmmo> and of course at the top for stream key, use your own stream key
[11:39] <soulstitchmmo> so for STREAM_KEY="" put your stream key between the quotation marks
[11:40] <karatemyran> yy i got that =)
[11:40] <soulstitchmmo> then save it, open a terminal, type: source .bashrc
[11:40] <soulstitchmmo> then type twitch and hit enter
[11:40] <soulstitchmmo> (if you really want to you can change the twitch to justin if that makes you feel better)
[11:41] <karatemyran> nothing happens =(
[11:41] <soulstitchmmo> you type in twitch, and you don't even get an error?
[11:42] <karatemyran> wait
[11:42] <karatemyran> now it came
[11:42] <karatemyran> somthing
[11:42] <karatemyran> [x11grab @ 0x96046a0] device: :0.0+0,0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1080 [x11grab @ 0x96046a0] shared memory extension found X Error of failed request:  BadMatch (invalid parameter attributes)   Major opcode of failed request:  142 (MIT-SHM)   Minor opcode of failed request:  4 (X_ShmGetImage)   Serial number of failed request:  11   Current serial number in output stream:  11
[11:43] <soulstitchmmo> what's the resolution of your monitor?
[11:43] <karatemyran> ohh
[11:43] <karatemyran> i feel stupid now
[11:43] <karatemyran> wait
[11:43] <soulstitchmmo> lol :p
[11:44] <soulstitchmmo> INRES = the resolution you want to record at, I have min set to my monitor.
[11:45] <karatemyran> but iam streaming now
[11:45] <karatemyran> but got black screen
[11:46] <soulstitchmmo> are you streaming sound as well
[11:46] <karatemyran> naa =(
[11:46] <karatemyran> http://sv.twitch.tv/karatemyran
[11:47] <soulstitchmmo> hrmmm.
[11:47] <karatemyran> maybe i got to hight output
[11:47] <karatemyran> ?
[11:48] <soulstitchmmo> Well that's about as far as my expertise goes. I just went through this process myself.
[11:48] <soulstitchmmo> You have it streaming, just play with the settings now till you get it workign right.
[11:48] <soulstitchmmo> Hopefully someone more knowledgeable can help you.
[11:48] <soulstitchmmo> You play LoL in Ubuntu?
[11:48] <karatemyran> okej
[11:49] <karatemyran> THX
[11:49] <karatemyran> for all your help
[11:49] <karatemyran> your awsume
[11:49] <karatemyran> <3
[11:49] <karatemyran> btw how do i stop the stream
[11:49] <karatemyran> just close terminal?
[11:49] <soulstitchmmo> q
[11:49] <soulstitchmmo> q should cancel it.
[11:50] <karatemyran> y it did
[11:50] <karatemyran> =)
[11:50] <karatemyran> thx alot
[11:50] <karatemyran> rly
[11:50] <soulstitchmmo> ok that's it for me. bed time.
[11:50] <soulstitchmmo> good luck
[11:55] <AlRazi> I have a question, when i'm trying to download libaacplus their website states ( latest ffmpeg git tree already patched ) but when i try to configure ffmpeg with libaacplus support i get ( ERROR: libaacplus >= 2.0.0 not found)
[11:55] <AlRazi> what am i missing ?
[12:10] <vitrums> Hi. I've got a task to grab a screen with x11grab and also grab my webcam so that the output video will contain them both simultaneously and the webcam video region would take only a small region of the sceen. Is that possible with ffmpeg?
[12:11] <vitrums> I actually mean muxing 2 video streams
[12:15] <saste> vitrums: overlay filter
[12:25] <karatemyran> can someone help me iam trying to bradcast on twitch but, i just get blackscreen
[12:27] <vitrums> karatemyran -pix_fmt yuv420p
[12:28] <vitrums> use this pixel format
[12:28] <karatemyran> okej and what does that do
[12:29] <kauwlna> i am too stupid to cut accurately, "-t 00:00:52.800" seems to cut on the nearest keyframe. is there anything cutting on a frame basis?
[12:29] <vitrums> your output .flv would be supported by most services, including justin, twitch and so on
[12:29] <vitrums> I killed the whole yesterday before I found the solution
[12:30] <karatemyran> okej so i just put that in the bashrc?
[12:30] <vitrums> put it next to your vcodec parameters
[12:30] <karatemyran> shuld i replace -preset:v?
[12:31] <vitrums> if you output locally you recordings as -f flv out.flv and ffprobe out.flv, you'll notice the new pixel format 444, which is still not widely supported
[12:33] <karatemyran> http://sv.twitch.tv/karatemyran
[12:33] <karatemyran> WOHO
[12:33] <vitrums> preset must be chosen to ultrafast i guess
[12:33] <karatemyran> haha it worked
[12:33] <vitrums> you're lucky)
[12:33] <karatemyran> yes iam
[12:33] <karatemyran> can you help me with the sound 2 ?
[12:33] <karatemyran> btw is the stream laggy or fine ?
[12:34] <vitrums> I'm still fighting with it ( Can't get it work stable
[12:34] <karatemyran> the sound?
[12:34] <vitrums> run fullscreen flash video and we'll see
[12:34] <karatemyran> now youu lost me
[12:35] <vitrums> btw don't toggle mute sound, if you open your broadcast on stream
[12:35] <vitrums> see? Drops( I've got the same issue
[12:36] <karatemyran> y i see that =(
[12:36] <Kuukunen> karatemyran: seems a bit laggy here
[12:36] <vitrums> try playing youtube video
[12:36] <karatemyran> ok
[12:36] <Kuukunen> otoh, I'm on an Android phone :P
[12:36] <vitrums> we'll test your grab capabilities
[12:37] <karatemyran> get eny sound ?
[12:37] <vitrums> we don't have sound, it's all dropped. Make your video fullscreen plz
[12:38] <vitrums> no, I mean a real video... some motion picture, not a static photo)
[12:38] <karatemyran> okej
[12:39] <karatemyran> did it work?
[12:39] <vitrums> you've got at least two issues. First: bandwidth. Try to cap it with b:v 1500k option (or what you can afford)
[12:40] <karatemyran>           ffmpeg -f x11grab -s $INRES -r $FPS -i :0.0+0,0 \      -f alsa -ac 2 -i pulse -vcodec libx264 -pix_fmt yuv420p -preset:v $QUAL -s $OUTRES \      -acodec libmp3lame -ab 96k -ar 44100 -threads 0  \      -f flv rtmp://live.justin.tv/app/$STREAM_KEY
[12:40] <karatemyran> where ?
[12:40] <vitrums> Second: glitching Unity + top menu bar. I've been fighting upon this issue for the last day. Still can't seem to find any solution
[12:41] <karatemyran> where do i pu 1500 k option?
[12:41] <vitrums> make QUAL=ultrafast and put after "-s $OUTERS" -b:v 1500k
[12:41] <karatemyran> okej btw
[12:41] <karatemyran> what upload speed do i need 2 have for that 1,5 mbit ?
[12:42] <vitrums> I've got 2.2Mbit on speedtest.net. It seems like b:v 1650 is a limit
[12:43] <vitrums> 1650k *
[12:44] <karatemyran> ok i got 2.1
[12:45] <vitrums> ok. You really want to have 30+ fps, ultrafast preset and b:v limit. That's what will make your stream smooth
[12:46] <karatemyran> okej
[12:47] <karatemyran> but dont think my comp can handel thatt
[12:47] <karatemyran> i have it on 35
[12:47] <vitrums> If you were apt to stream LoL, than afaik this settings would be more then necessary
[12:49] <karatemyran> i have the setings you said now
[12:50] <karatemyran> still no sound
[12:50] <vitrums> have your lol running for a minute
[12:51] <karatemyran> its droping alot =(
[12:51] <karatemyran> PTS 119214130, next:120834790 invalid dropping st:0 DTS 119220661, next:120836123 st:0 invalid dropping PTS 119220661, next:120836123 invalid dropping st:0 DTS 119227084, next:120837456 st:0 invalid dropping PTS 119227084, next:120837456 invalid dropping st:0 DTS 119233402, next:120838789 st:0 invalid dropping PTS 119233402, next:120838789 invalid dropping st:0 DTS 119239616, next:120840122 st:0 invalid dropping PTS 119239616, n
[12:52] <vitrums> the tutorial on that HoN forum is kinda legacy, since modern pulseaudio does have a different interface. I thought it's all about pulse, however the direct audio input isn't better. The same issue appears
[12:52] <vitrums> please, use pastebin.com to post your logs
[12:52] <karatemyran> okej
[12:53] <vitrums> don't spam the IRC with your configs
[12:53] <saschagehlich> hey, I'm trying to convert a .mp4 movie into single .gif images but everything i get is completely grey gif images. is there a setting I have to change to avoid that?
[12:54] <saschagehlich> (os: mac osx mountain lion, got the same problem on osx lion though)
[12:56] <vitrums> unfortunately ffmpeg is a way way more heavy than XSplit and you've got to be more careful with cpu setup. Actually i'm working on it right now. There must be a way to assign cpu units directly
[12:57] <karatemyran> wow this is laggy
[12:58] <karatemyran> i rly cant stream
[12:59] <karatemyran> its taking to mutch of my cpu =(
[13:01] <vitrums> karatemyran, what is your HW?
[13:02] <karatemyran> HW?
[13:03] <vitrums> afaik ffmpeg is the best amids other tools. There's one Java based application and VLC. Couldn't make them work
[13:04] <vitrums> hardware
[13:04] <karatemyran> aha wait
[13:05] <karatemyran> Intel® Core" i3 CPU 530 @ 2.93GHz × 4
[13:05] <karatemyran> GeForce GTS 250/PCIe/SSE2
[13:05] <karatemyran> 4 g ram
[13:06] <karatemyran> brb
[13:20] <blight> hi guys
[14:26] <vitrums> saste, <3!!! webcam works just perfect
[14:37] <vitrums> So there're actually two major issues yet unresolved. First is that the audio starts lagging and freezes completely over the time. Autoremoving pulseaudio didn't solve it.
[14:40] <vitrums> Second is about Unity (or perhaps just top menu bar), which appears to be glitching upon fullscreen movies (regardless if it were flash via browser, or locally played video with Totem)
[19:20] <xastey> I'm running into some problems encoding flac->mp3 .. I have followed http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide but it still fails
[19:20] <xastey> http://pastebin.com/ZcUvFDwy output with -format showing lamemp3 is installed
[19:21] <relaxed> -c libmp3lame
[19:21] <xastey> add that to my encoding command?
[19:22] <relaxed> hmm, wait
[19:22] <xastey> Invalid encoder type 'libmp3lame'
[19:23] <relaxed> ffmpeg -codecs | grep libmp3
[19:23] <xastey> libmp3lame is installed into /usr/local/iib
[19:23] <xastey> EA libmp3lame libmp3lame MP3 (MPEG audio layer 3)
[19:25] <relaxed> ffmpeg -i input -vn -c:a libmp3lame -ar 44100 -ab 128k -t 90 output.mp3
[19:26] <xastey> PERFECT!!
[19:27] <xastey> so whats the -vn and -c:a part for..
[19:27] <relaxed> -vn = ignore video | -c:a specifies the audio codec
[19:28] <xastey> gotcha.. thanks a lot
[19:28] <relaxed> the man page is good reading
[19:28] <xastey> yeah I read it a bit.. just didn't know were to start
[19:28] <xastey> on windows it just worked
[19:28] <xastey> moved to unix and fail everywere
[19:29] <relaxed> It has nothing to do with the move to unix
[19:29] <xastey> so why did the same file work on windows.. with the same command?
[19:29] <relaxed> You're probably using different version of ffmpeg.
[19:30] <xastey> a few weeks yeah
[19:30] <relaxed> The same version would behave the same on linux, windows, or OS X
[19:31] <xastey> N-42915-g307a20c vsN-42347-g299387e
[19:31] <xastey> o well.. its fixed.. thanks a bunch
[20:17] <frogs> anybody can compile latest ffmpeg?
[20:18] <frogs> i get a large quantity of undefined references when linking ffmpeg (to various ff_* functions)
[20:27] <frogs> i last successfully built a few days ago
[21:45] <delicado> hi, after a file has reached an EOF, i have used av_seek_frame() to return to the first frame. i thought the EOF will be gone the next call to av_read_frame(), but it is still returning EOF, why is that? all i want to do is simple. i just want to loop that video file. but if i reach an EOF, i cannot play it again, so i have no choice but to re-load the file again. any idea?
[23:01] <someone-noone> ./ffmpeg -i test-hd.mp4 -vcodec libvpx -r 24 -quality realtime test.webm produces video frames not in real time. How should I encode for real real time ? :)
[23:02] <someone-noone> I'm getting alway ~23-22 fps
[23:02] <frogs> hdtv encode in realtime?
[23:03] <someone-noone> yes
[23:03] <someone-noone> 720p
[23:03] <frogs> you have multi core?
[23:03] <someone-noone> core 2 duo
[23:03] <frogs> use -threads
[23:04] <someone-noone> ./ffmpeg -i test-hd.mp4 -vcodec libvpx -r 24 -quality realtime -threads 2 test.webm produces 21 fps
[23:06] <sacarasc> someone-noone: Try -threads 0
[00:00] --- Mon Jul 30 2012


More information about the Ffmpeg-devel-irc mailing list