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

burek burek021 at gmail.com
Sun Feb 24 02:05:02 CET 2013


[00:01] <exutux> can someone try espeak command in my paste and convert file into mp3? please :|
[00:07] <hughmanwho> Anyone have any suggestions for what to look for if av_read_frame is failing?  The error code I get is the negative of context
[00:08] <exutux> bye
[00:18] <hughmanwho> Having a lot of problems with av_read_frame..  anyone have experience there?
[01:21] <NoReflex> hello! I'm trying to record a Sopcast stream to a file using ffmpeg using -c copy. The problem is that the resulting file has problems with seeking. Should I try to re-encode the stream?
[01:27] <alyssa_> how can I create thumbnails from one video file at 1 thumbnail per 10 seconds? The thumbnails all being in one image file instead of separate thumbnail files.
[01:37] <[locke]> how can i remove the ffmpeg encoding profile from the output file? also same Q including ffmpeg binary information?
[01:55] Last message repeated 1 time(s).
[11:08] <benkaiser> Hey I am having trouble trying to screencast with ffmpeg. I can do a recording just fine and the audio syncs up however it only comes through on the right audio channel. How can I fix it? (It doesn't matter if the solution is to mirror the right channel to the left). Here is the gist for my screencast with variables in <> https://gist.github.com/benkaiser/5005081
[11:29] Last message repeated 1 time(s).
[11:30] <relaxed> Maybe it's an issue with pulse. You could have a channel muted or something.
[11:35] <benkaiser> How can I check / view levels for channels? I am running Ubuntu 12.04
[11:36] <hendry> benkaiser: maybe try this line instead https://github.com/kaihendry/recordmydesktop2.0/blob/master/x11capture#L69
[11:36] <relaxed> benkaiser: pavucontrol
[11:47] <relaxed> hendry: for prg in xdpyinfo ffmpeg; do type -P $prg || die
[11:48] <relaxed> &>>/tmp/r2d2.log
[12:01] <benkaiser> relaxed: I checked pavucontrol but it has all the inputs marked as left and right both at 100%
[12:05] <spinx60> whats the command for specifying Bitrate in ffmpeg i want to make it to around 600-750 KBs
[12:06] <spinx60> im trying to tweak my command for streaming to twitch.tv but im getting really low fps like 16-17 fps conatant need to be able to get above 20 some how
[12:06] <juha__> hi. any good ideas on how high a bitrate can be in xvid video converted for hardware mpeg4 player?
[12:06] <juha__> i didnt find more specs for the player than just mpeg4 supported ;) obviously not a h264... bought in 2008
[12:06] <spinx60> http://pastebin.com/7rRu0qNj
[12:06] <spinx60> command im using
[12:07] <durandal_1707> spinx60: what version?
[12:07] <spinx60> ffmpeg version git-2013-02-22-db05f7a
[12:08] <JEEB> spinx60, when you start the encoding, does libx264 show that is using asm optimizations, in other words does it show SSE2 and so forth used?
[12:08] <JEEB> also which preset are you using
[12:08] <JEEB> setting a bit rate will not make the encoding go faster
[12:09] <spinx60> heres what comes when i stream
[12:09] <JEEB> although you will need to use -maxrate and -bufsize when you are outputting to a bandwidth-limited medium, such as networks
[12:09] <spinx60> http://pastebin.com/t7FdvSPT
[12:09] <JEEB> your streaming provider should tell you what kind of maxrate and how much buffer are set on its player
[12:10] <JEEB> ok, so libx264 is built with asm optimizations, great
[12:10] <JEEB> what is the preset you're using?
[12:10] <spinx60> i dont know :P
[12:11] <JEEB> how can you not know
[12:11] <JEEB> -preset "$QUAL"
[12:11] <spinx60> its all in my command that im using.. mabee i schould add something to it ?
[12:11] <JEEB> you set that variable to something
[12:11] <JEEB> what are you setting that variable to?
[12:12] <spinx60> look here. thats the thing im pretty noob when it comes to this.. but id like to learn http://pastebin.com/K5pr4e1B
[12:13] <JEEB> ...
[12:13] <JEEB> that doesn't show what you set that variable to
[12:13] <JEEB> as I already said
[12:13] <spinx60> then where do i set the variable  ?
[12:13] <JEEB> -preset "$QUAL" , and that means that you set that $QUAL to something before that
[12:14] <JEEB> because you are passing the content of that variable to the setting -preset, which controls the speed vs compression setting in libx264
[12:14] <spinx60> yeah im not. hence probably my im having problems.. i had a scripe before but i kinda stopped working and i dont have it anymore. but i got it to stream with only running the command :)
[12:14] <JEEB> ...
[12:14] <spinx60> so now im trying to figure out how to set it right
[12:15] <spinx60> yeah i know ...... im a noob :)
[12:15] <JEEB> then I wonder why ffmpeg isn't giving you a warning that it couldn't parse what you were setting -preset to, which means that there is SOMETHING there
[12:15] <JEEB> you're not running that command as-is, right?
[12:15] <spinx60> yeah
[12:16] <spinx60> running directly from shell
[12:16] <JEEB> do you have a system variable called QUAL set?
[12:17] <spinx60> no
[12:17] <JEEB> are you running that command as-is or are you running it off a script?
[12:17] <JEEB> because if you are running it as-is it doesn't make any effing sense
[12:19] <spinx60> im running it as.is
[12:19] <JEEB> I hate x264 --fullhelp for not showing the default settings :| (what preset medium sets) Because now I don't know if you're actually setting -preset to 'fast' and lying to me, or if that just gets set to nothing, and thus it is set to the default medium
[12:19] <JEEB> it surely isn't faster or any of the faster presets
[12:19] <JEEB> because those have a shorter default rc-lookahead
[12:20] <JEEB> anyways, I will guess that just becomes -preset ""
[12:20] <JEEB> which I have no idea why it doesn't warning out in ffmpeg
[12:20] <spinx60> okey well cant i change the "$QUAL" to a fast/faster/normal preset ?
[12:20] <spinx60> or it doesnt work like that ?
[12:20] <JEEB> YES, THAT IS WHY I WAS ASKING WHICH FUCKING PRESET YOU WERE USING
[12:20] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset <- have a list
[12:20] <spinx60> Okey chill out man :) il change it and look at the outcome
[12:21] <JEEB> just make it f.ex. -preset veryfast
[12:21] <JEEB> also as I said, go look up your streaming provider's documentation
[12:22] <JEEB> they should tell you the maximum rate allowed and the buffer size there
[12:22] <spinx60> yeah will do... by the way 1 more dumb question schould it be like "fast" or just fast ? whitout bunny ears ?
[12:23] <JEEB> should work without just fine
[12:23] <JEEB> spinx60, you have both $STREAM_KEY and $QUAL in that "command line" of yours btw
[12:23] <JEEB> which means that those are fucking variables
[12:23] <JEEB> thus I was trying to ask you what the fuck those were set to
[12:23] <JEEB> thus you saying that you don't know what those are set to does not make any sense
[12:24] <spinx60> to be honest i was amaized as to why i worked running this command aswell
[12:24] <JEEB> try echo $STREAM_KEY
[12:24] <JEEB> in terminal
[12:24] <JEEB> does it give you that?
[12:25] <JEEB> because without that key being set to something it doesn't work, naturally
[12:25] <JEEB> or
[12:25] <spinx60> Wierd it give me nothing http://pastebin.com/LiYFBZS4
[12:26] <JEEB> THEN YOU ARE FUCKING NOT DOING WHAT YOU ARE TELLING ME YOU ARE DOING
[12:26] <spinx60> well it gets my key from somewhere thats for sure
[12:26] Action: JEEB sighs
[12:26] <JEEB> just fucking paste what you are ACTUALLY doing
[12:26] <JEEB> you can clear the fucking key manually before pastebin'ing
[12:26] <JEEB> I don't give a flying fuck about that
[12:26] <JEEB> I just want to know EXACTLY what you are doing
[12:27] <JEEB> instead of trying to guess
[12:27] <spinx60> okey il paste exactly what im executing
[12:27] <spinx60> http://pastebin.com/weFB7TyE
[12:28] <spinx60> nothing else am i doing 100% sure.
[12:28] <JEEB> and you tell me that in that exact terminal echo $STREAM_KEY gives you nothing?
[12:28] <JEEB> also you just pastebin'd your key
[12:28] <JEEB> might want to remove that paste
[12:29] <spinx60> btw i also do have my twitch key in a file name .twitch_key in my home directory
[12:29] <JEEB> anyways, that shows that -preset is set to fast
[12:29] <spinx60> doesnt matter i can re create a new key
[12:30] <JEEB> if that is not fast enough, pick a faster preset
[12:30] <spinx60> yeah now it is becouse i changed that thansk to you
[12:30] <spinx60> still get bad fps
[12:31] <JEEB> everything but "ultrafast" should be usable from libx264's side
[12:31] <spinx60> ok
[12:33] <JEEB> naturally, this is all under the thought that libx264 is your actual bottleneck
[12:33] <JEEB> if it isn't, you can't really do jack about it
[12:34] <spinx60> okey.
[12:34] <JEEB> because libx264 is almost the last thing in the chain
[12:34] <spinx60> well setting preset to fast/faster or whatever doesnt change anything fps wise at least
[12:35] <LithosLaptop> try a different codec maybe?
[12:35] <JEEB> spinx60, what if you go more further down the line?
[12:36] <spinx60> how you mean further down the line ?
[12:36] <JEEB> fast and faster are just the two things to the faster side of medium (default)
[12:37] <JEEB> you might as well test out ultrafast and see if it gets faster
[12:37] <JEEB> if it doesn't
[12:37] <JEEB> then it's something else
[12:37] <JEEB> and not libx264
[12:37] <JEEB> that is limiting you
[12:37] <JEEB> although wait...
[12:37] <JEEB> what CPU is this?
[12:38] <spinx60> hmmm ultrafast gave me even less fps
[12:38] <JEEB> that makes no sense
[12:38] <JEEB> how are you checking fps btw?
[12:38] <spinx60> my cpu is a AMD Pheonom II x4 965 BE
[12:39] <spinx60> frame=  200 fps= 13 q=32766.0 Lsize=     590kB time=00:00:16.34 bitrate= 295.6kbits/s
[12:39] <JEEB> interesting... I would have thought it'd have more capabilities usable
[12:39] <spinx60> thats line
[12:39] <JEEB> also it becoming slower with a faster preset makes no sense ^^;
[12:39] <JEEB> something else is holding you up
[12:39] <spinx60> yeah it doesnt
[12:39] <JEEB> so let's leave that aside for now
[12:40] <JEEB> for streaming
[12:40] <JEEB> you need to set vbv maxrate and bufsize
[12:40] <JEEB> for ANY streaming
[12:40] <spinx60> yeah well i have looked around the net and my bandwith aint the best but its enough i have 1 mb upload but im gonna negotiate for more from my provider
[12:40] <JEEB> uhh
[12:40] <JEEB> not that you dummy
[12:40] <JEEB> now go to your streaming provider(s) and find out what maximum bit rate and what buffering size/length they want
[12:40] <spinx60> nahh i was just saying it cant be that
[12:41] <JEEB> I know it can't be that
[12:41] <JEEB> but you will need to set that in ANY CASE
[12:41] <JEEB> so might as well get this done with now
[12:41] <JEEB> (read: I have no idea what the fuck is slowing you down and I had started explaining vbv before, so migth as well go back to that for now)
[12:42] <JEEB> also it's essential for streaming so you need those values in any case
[12:42] <spinx60> where schould i get those values from Twitch.tv ?
[12:42] <JEEB> their documentation
[12:43] <JEEB> they should tell you what kind of maximum bit rate they want, as well as the buffer size
[12:43] <spinx60> lemme check
[12:43] <JEEB> also, I would guess that you don't really need to limit -threads to 4
[12:43] <JEEB> you can just remove that
[12:46] <spinx60> well around max bitrate 600-750 for my connection its all connection based
[12:47] <spinx60> and buffer size around 1500-2000kbs
[12:47] <spinx60> okey il remove it
[12:47] <JEEB> uhh, that streaming provider has no limits for maximum bit rate? Or do you mean that the streamer's maximum bitrate is bigger than your bandwidth?
[12:48] <JEEB> also, "around"? Excuse me?
[12:48] <JEEB> it's not an "around" kind of thing
[12:50] <spinx60> yeah
[12:50] <spinx60> it is
[12:50] <spinx60> its alot bigger than my bandwith
[12:51] <spinx60> they accept up to 10000kbs bitrate
[12:51] <JEEB> ugh, the fact that you're not being specific makes me ache like hell
[12:52] <JEEB> just link the documentation :P
[12:52] <JEEB> and I'll quickly go through it
[12:53] <spinx60> http://www.justin.tv/p/api
[12:53] <spinx60> go there
[12:56] <spinx60> brb 1 min btw
[12:58] <spinx60> back
[13:14] <spinx60_> JEEB im back now and i called my internet provider and he boosted my upload to nearly 2-2.5mb upload intsead of 1mb :)
[13:14] <spinx60_> so thats alot better
[13:16] <spinx60_> im going away a few more mins i need some coca cola :))
[17:40] <ambro718> if I have an MPEG-TS stream (udp multicast), how do I repack it to a form that can be served via an HTTP server and understood by common players?
[17:41] <ambro718> this is a technical question, not "what program can do that". Udpxy does exactly that for example.
[17:43] <ambro718> I presume it is not ok to just concatenate the udp payloads?
[17:43] <ambro718> if one udp packet is cut short or deformed that could confuse the player and make it lose track of message boundaries?
[17:58] <defaultro> can ffmpeg pan an image as video?
[17:59] <defaultro> or maybe zoom in/out
[18:12] <durandal_1707> defaultro: there is crop, pad and scale filter
[18:13] <defaultro> so maybe scale would be for zoom
[18:15] <durandal_1707> zooming in removes outer stuff
[18:15] <defaultro> yup
[18:15] <durandal_1707> so there is no simple way to do pan/zoom but there are tools
[19:17] <taqattack> i'm trying to use ffmpeg to stream to rtmp server
[19:17] <taqattack> i'm using the following command
[19:17] <taqattack> ffmpeg.exe -i pipe -vcodec copy -acodec copy -f flv rtmp://url
[19:18] <taqattack> if my network speed is too low, the stream sort of lags behind over time
[19:18] <taqattack> is there anyway to drop/skip frames to keep it as real-time as possible?
[20:56] <mm3> hi, anyone here knows about crtmpserver?
[21:51] <shevy> hmm when cutting a .mp3 file with ffmpeg
[21:51] <shevy> I specify something like this:
[21:51] <shevy>   -ss 00:00:36 -t 00:00:44
[21:51] <Tchico> Hi every body
[21:51] <shevy> I thought -t specifies the end point, instead it specifies the duration. is there an end-point specification possible, similar to -ss ?
[21:51] <JEEB> shevy, not as far as I know
[21:52] <shevy> hmm ok, then I will calculate the duration on my own and then pass it to ffmpeg, thanks JEEB
[21:52] <Tchico> Did ffmpeg crete good x264 videos from jpg ? Cause when I encode a video from pictures, my chrome browser and IE9 cant read it, but when I do the same encode but from an ogv movies, it works ...
[21:53] <Tchico> I do
[21:53] <taqattack> can someone help me out with the livestreaming issue?
[21:54] <Tchico> ffmpeg -i %d.jpg -vcodec libx264 -vpre slow -vpre baseline -b 250k -bt 50k -an -g 30 -s 640x360 -r 24 -y res.mp4
[21:55] <Tchico> thats create a video which can be read by vlc or windows media player but not from video html5 tag
[21:55] <Tchico> and when I take the big_buck_bunny.ogv and I do
[21:55] <Tchico> ffmpeg -i big_buck_bunny.ogv -vcodec libx264 -vpre slow -vpre baseline -b 250k -bt 50k -an -g 30 -s 640x360 -r 24 -y res.mp4
[21:56] <Tchico> the result video works fine on all supports ...
[21:57] <Tchico> and I am searching since 1 week ...
[21:57] <Tchico> I recompile all ffmpeg with all codecs ...
[21:58] <Tchico> And Vlc say me that the 2 videos are H264 - MPEG-4 AVC (part10) (avc1)
[21:58] <Tchico> with 1 stream for the 2
[22:03] <Tchico> ?
[22:11] <Tchico> anybody ?
[22:15] <mm3> when I play a live stream on crtmpserver I get a big delay, why?
[22:40] <Tchico> nobody ?
[22:42] <Fjorgynn> nope
[22:43] <Tchico> I will post on the forum so
[00:00] --- Sun Feb 24 2013


More information about the Ffmpeg-devel-irc mailing list