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

burek burek021 at gmail.com
Tue Nov 8 10:58:48 CET 2011


[00:54] <pasteeater> japro: possible x11grab bottlenecks: encoder, non-optimal encoder settings, x11grab itself, CPU, input size
[02:14] <desti> hi, what video codec has the lowest cpu usage for good quality 720p encoding? (up to 20mbps)
[02:52] <frightmare> could somebody tell me why i put -vb 1600k  it doesnt actuall encode to that instead its betwee 1100 and 1800k
[10:28] <skebcio> i am getting a "estimating duration from bitrate, this my be inaccurate" when i acquire a mjpeg stream from a ip cam using opencv -- googling gave me the hint that i can solve this problem by passing a parameter using the cli interface -- in my case i woul need to patch opencv -- has anyone of you done this or has a hint where to look ? thx in adavance
[12:00] <burek> skebcio you really don't need to have a "duration" information from a live stream, do you? :)
[12:01] <burek> I mean its a "neverending" media stream, i.e. it's not a file, with a finite size/duration, right?
[12:02] <skebcio> burek: yes you are right -- my intention is to get rid of this initial delay when framerate is extimated: e.g. chrome afaik uses ffmpeg too and it does not have this delay 
[12:03] <skebcio> burek: *estimated ...
[12:03] <burek> how long that delay is?
[12:05] <skebcio> burek: approx 8-10 seconds
[12:06] <burek> hm.. can you give us your pastebin output of the command that you use to start ffmpeg
[12:07] <skebcio> burek: i am not using the cli interface but the opencv wrapper 
[12:07] <burek> why
[12:07] <skebcio> burek: because i need to process the stream afterwards :)
[12:08] <burek> ok :)
[12:08] <burek> does it have any ffmpeg logs inside
[12:09] <skebcio> burek: i have googled about this "estimating duration from ..." problem -- some people using the cli solve it by setting analyzeduration to zero 
[12:10] <burek> well yes
[12:10] <burek> so, all you need
[12:10] <skebcio> burek: now my question would be how to do it by code ?
[12:11] <burek> is to dig into opencv documentation and find out
[12:11] <burek> how to tweak ffmpeg's params :)
[12:11] <burek> simple :)
[12:11] <burek> and add -analyzeduration 0 after 'ffmpeg '
[12:11] <burek> :)
[12:12] <burek> somewhere in the process, opencv wrapper calls ffmpeg binary, passing it some params
[12:12] <burek> modify those params and add -analyze....
[12:18] <skebcio> burek: okay opencv calls it like that: av_open_input_file(&ic, _filename, NULL, 0, NULL)  --> the last parameter seems to be the interesting one (AVFormatParameter) ? 
[12:18] <skebcio> burek: no nice parameter passing btw ;-) will have to recompile :/ 
[12:18] <burek> um.. is that calling ffmpeg or libav
[12:19] <burek> can you ask on opencv support line how to do it?
[12:19] <burek> it will be faster, i think :)
[12:20] <skebcio> burek: i suppose they won't be able to help me as well as you
[12:21] <burek> well, all you need to do is just add one more parameter.. i guess it will be something like editting an xml file or something
[12:21] <skebcio> burek: would it be possible to pass this flag also via libav ?
[12:21] <burek> im not sure, i have to check :)
[12:22] <skebcio> burek: no xml -- there is no passing of parameters ;-) they set them to NULL
[12:22] <burek> no, AVFormatParameter is a struct that does not containt cmd line params
[12:23] <skebcio> burek: i supposed so -- this is the reaseon why i am asking the pros ;-) 
[12:24] <burek> http://opencv.willowgarage.com/wiki/FFMPEG
[12:24] <burek> take a look at the last line
[12:24] <burek> open the source code of cvCaptureFromFile() and see how does it call ffmpeg
[12:26] <skebcio> burek: i told you already how they do it :) i traced to call down to the CvCapture_FFMEPEG::open(const char* _filename) that calls av:open_input_file(...) and does not pass any paremters
[12:28] <skebcio> burek: pastebin.com/zXMFXZ7x -> from opencv source 
[12:28] <skebcio> burek: i suppose line 15 is the interesting one 
[12:29] <burek> http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/structAVFormatContext.html#a1f733fdfa1655d9e6ccc80f6b926274
[12:30] <burek> here, you see http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/avformat_8h.html#9baec525f6e67ca07ce289a55cc60589
[12:30] <burek> AVFormatContext param
[12:30] <burek> and on that first link (cekirdek) you see AVFormatContext struct
[12:31] <burek> there is a field max_analyze_duration
[12:32] <skebcio> burek: perfect -- this is what i have been looking for ;-) 
[12:32] <burek> :beer: :)
[12:32] <skebcio> burek: hihi -- thank you very much ;-) 
[12:44] <fritsch> i am working on a the ffmpeg side of a native xvba decoder for xbmc
[12:44] <fritsch> especially the vc-1 part
[12:45] <fritsch> every profile and level i get say -99 profile/level unknown
[12:45] <fritsch> is there a way to determine which level the movie has?
[12:48] <hi117> i cant speak for that codec, but ffmpeg -i file will give the h264 level, like Video: h264 (High)
[12:50] <fritsch> hi117: thank you
[12:55] <burek> is there any tutorial how to properly compile ffmpeg & vlc together?
[12:57] <hi117> vlc uses ffmpeg's shared libraries IIRC, so if you compile ffmpeg with --enable-shared then compile vlc, it should work
[12:57] <burek> cool :)
[12:58] <hi117> come back if theres any problems
[12:58] Action: hi117 is still learning a lot about ffmpeg
[12:59] <burek> thanks :) :beer: :)
[13:05] <burek> frightmare
[13:06] <burek> did you solve your bitrate problem
[13:06] <frightmare> nope 
[13:06] <frightmare> it still wont set 
[13:06] <burek> you were using the wrong switch
[13:06] <frightmare> ?
[13:06] <burek> the one you were using is telling ffmpeg
[13:06] <burek> to keep the bitrate around specified
[13:06] <burek> with ups and downs
[13:06] <burek> not to keep the const bitrate
[13:06] <frightmare> oh which do i put?
[13:07] <frightmare> ill try it real quick i gotta leave ina bout 2 mins
[13:07] <frightmare> so ill let it run while im gone
[13:07] <dericed> is there an opposite of -y. To say that ffmpeg should quit if it would require to overwrite (without prompt)?
[13:07] <burek> http://ffmpeg.org/ffmpeg.html#Video-Options
[13:07] <burek> -maxrate bitrate
[13:07] <burek> -bufsize size
[13:07] <burek> :)
[13:07] <frightmare> i put that
[13:08] <frightmare> ffmpeg -i ufc.mp4 -vcodec libx264 -preset fast -level 3.1 -vb 1500k -maxrate 1600k -bufsize 1500k -crf 19 -s 700*394 -threads 12 -acodec copy -ab 192k wsn.mp4
[13:08] <frightmare> gotta go bb ina hour 
[13:08] <burek> ok
[13:08] <burek> -minrate too :)
[13:18] <orbital_fox> anyone familiar with the h264 library in ffmpeg?
[13:19] <orbital_fox> what are the consequences on the stream if the VUI is overread?
[13:24] <burek> does anyone use ffserver with latest ffmpeg
[14:37] <frightmare> burek still here
[14:38] <frightmare> ya that dont work 
[14:38] <frightmare> ffmpeg -i ufc.mp4 -vcodec libx264 -preset fast -level 3.1 -minrate 1400k -maxrate 1600k -bufsize 1500k -crf 19 -s 700*394 -threads 12 -acodec copy -ab 192k wsn.mp4
[14:38] <frightmare> is what i put 
[14:38] <frightmare> its still just hover around 1100kb
[14:46] <Mavrik> frightmare, minrate, maxrate and bitrate exclude the use of -crf
[14:46] <Mavrik> and vice-versa
[14:47] <frightmare> so i cant use them all together?
[14:48] <frightmare> even if i use no min max  and just use crf 19  the bitrate still drops all the down to below 1000k at some points 
[14:48] <frightmare> btw im on windows now using this
[14:50] <JEEB> <Mavrik> frightmare, minrate, maxrate and bitrate exclude the use of -crf <- what
[14:50] <JEEB> bitrate and crf are excluding each other in x264
[14:50] <JEEB> but crf + vbv can be used
[14:50] <JEEB> (vbv-maxrate/vbv-bufsize)
[14:51] <JEEB> no idea about minrate, don't remember seeing that in libx264 settings
[14:51] <frightmare> so JEEB what do u suggest i put for command 
[14:51] <frightmare> this is my excat current command 
[14:51] <frightmare> ffmpeg -i ufc.mp4 -vcodec libx264 -preset fast -level 3.1 -crf 19 -s 700*394 -threads 0 -acodec libvo_aacenc -ab 192k wsn.mp4
[14:51] <JEEB> I have no idea if you can use vbv settings with ffmpeg/avconv at all
[14:52] <frightmare> i took all the bitrate stuff out like mavrik said and its encoding at 1100k wtf
[14:52] <Mavrik> frightmare, because you're specifying crf.
[14:52] <JEEB> then it means that that crf value means your source needs that amount of bitrate for that crf value with those settings :V
[14:52] <Mavrik> JEEB, you have a point there, but in my experience CRF always trumped all other settings when used with libx264 :\
[14:53] <JEEB> Mavrik, yes -- but I meant that you can use vbv with crf
[14:53] <JEEB> maxrate/bufsize
[14:53] <JEEB> actually, you NEED vbv for streaming
[14:53] <frightmare> so what crf should i use with this setting 
[14:53] <Mavrik> JEEB, yeah
[14:53] <frightmare> to make the bitrate higher
[14:53] <frightmare> ffmpeg -i ufc.mp4 -vcodec libx264 -preset fast -level 3.1 -crf 19 -s 700*394 -threads 0 -acodec libvo_aacenc -ab 192k wsn.mp4
[14:53] <frightmare> thats what i have now
[14:53] <JEEB> frightmare, what are you exactly trying to do?
[14:53] <frightmare> trying to encode a webrip from ufc.com
[14:53] <Mavrik> frightmare, if you can't get the bitrate higher, then you probably have such a low complexity video there's no point in it
[14:54] <JEEB> no, what are you trying to do?
[14:54] <Mavrik> so I suggest you rather tell us what problem you're trying to solve
[14:54] <JEEB> are you doing streaming? do you have media that needs vbv values (as in limiting bitrate)?
[14:54] <frightmare> no im encoding it to post on my site 
[14:54] <frightmare> and the orginal bitrate is over 3k 
[14:54] <frightmare> its a 720p source  webrip
[14:55] <JEEB> anyways, if you get that bitrate with crf 19 it means that for that crf (constant rate factor aka "constant quality") you need that much bitrate with those settings
[14:55] <frightmare> i want the bitrate to be at 1500k  with a crf of 19 if possible
[14:55] <JEEB> when you set crf
[14:55] Action: JEEB sighs
[14:55] <JEEB> crf = constant rate factor / constant quality
[14:55] <JEEB> the idea of crf is that you use the highest crf value that looks good for you
[14:56] <JEEB> that way you can use the least bitrate that source needs to look good for you
[14:56] <JEEB> do you have any reason to use that bitrate value, or have you just thrown it out of your hat?
[14:57] <frightmare> b/c thats the bitrate i want 
[14:57] <frightmare> i want all my stuff when i encode to be around 1500k
[14:57] <JEEB> if you want a certain bitrate (aka certain file size), then you don't use crf
[14:57] <JEEB> crf is a way to specify a quality, not a bitrate
[14:58] <frightmare> ok then please give me an example with my code to get the BITRATE i want lol
[14:59] <JEEB> replace the crf setting with whatever setting is used in ffmpeg/avconv to set the bitrate?
[15:00] <JEEB> also, if you are making stuff to watch while they're being loaded, you probably want vbv set (buffer and maxrate within that buffer)
[15:00] <JEEB> and use 2pass, kthx
[15:00] <frightmare> no i dont use  it to play while it loads 
[15:00] <frightmare> heres the orginal video settings from mediainfo
[15:00] <frightmare> ID : 2 
[15:00] <frightmare> Format : AVC 
[15:00] <frightmare> Format/Info : Advanced Video Codec 
[15:00] <frightmare> Format profile : Baseline at L3.2 
[15:00] <frightmare> Format settings, CABAC : No 
[15:00] <frightmare> Format settings, ReFrames : 1 frame 
[15:00] <frightmare> Codec ID : avc1 
[15:00] <frightmare> Codec ID/Info : Advanced Video Coding 
[15:00] <frightmare> Duration : 41mn 8s 
[15:00] Action: JEEB sighs
[15:00] <frightmare> Bit rate mode : Constant 
[15:00] <frightmare> Bit rate : 2 904 Kbps 
[15:00] <frightmare> Width : 1 280 pixels 
[15:00] <frightmare> Height : 720 pixels 
[15:00] <frightmare> Display aspect ratio : 16:9 
[15:00] <frightmare> Frame rate mode : Variable 
[15:00] <frightmare> Frame rate : 29.970 fps 
[15:01] <frightmare> Minimum frame rate : 20.723 fps 
[15:01] <frightmare> Maximum frame rate : 29.970 fps 
[15:01] <frightmare> Standard : NTSC 
[15:01] <frightmare> Color space : YUV 
[15:01] <frightmare> Chroma subsampling : 4:2:0 
[15:01] <frightmare> Bit depth : 8 bits 
[15:01] <frightmare> Scan type : Progressive 
[15:01] <frightmare> Bits/(Pixel*Frame) : 0.105 
[15:01] <frightmare> Stream size : 855 MiB (93%) 
[15:01] Action: frightmare also sighs
[15:01] <frightmare> and i try using x264 and thats just fucked b/c it make the format profile jvc1 everytiime which i have no idea what that is
[15:01] <JEEB> wat
[15:02] <JEEB> also, learn to use pastebins kthx
[15:02] <JEEB> pasting lots of text onto channels is never a good idea
[15:02] <frightmare> i do and use them and when ppl help me and everytime they say use pastebin and i do they just never reply 
[15:02] <frightmare> ill do my orginal wiht pastbin
[15:03] <JEEB> anyways, all I see is that you have no idea what you're doing :P
[15:03] <frightmare> ya ofc i dont and the documentaion is to limited
[15:03] <JEEB> it doesn't even begin with that
[15:04] <JEEB> I have no idea why the heck you're actually caring what the <beep> the source file is
[15:04] <JEEB> you should be caring and knowing what your limits or whatever are for YOUR output
[15:04] <frightmare> http://pastebin.com/XdkpTjrL
[15:05] <frightmare> theres the pastebin maybe that will help
[15:05] <JEEB> I'm pretty sure it won't
[15:06] <frightmare> i want  x264  1500bitrate  700x394 size and best possible quality 
[15:07] <JEEB> is that 1500kbps just a number you came up or is there a real reason for a specific general bitrate/file size?
[15:07] <frightmare> its just what i want 
[15:07] <frightmare> theres no other answer
[15:07] <sacarasc> ffmpeg -i input -vcodec libx264 -b:v 1500k -vf scale=700:394 -preset placebo output.mkv
[15:08] <frightmare> ^^ is this to me
[15:08] <JEEB> also, you were just setting a profile and other stuff, were there ANY reason for that?
[15:08] <sacarasc> No, it's to someone else who wants what you want...
[15:08] <JEEB> but yes, if what you want really is what you just said, what sacarasc now posted is what you want
[15:08] <frightmare> ill try what sacarasc said 
[15:09] <JEEB> although with a set bitrate 2pass is recommended
[15:09] <frightmare> can i make it mp4 instead of mkv?
[15:09] <sacarasc> Sure.
[15:09] <JEEB> yes
[15:09] <frightmare> kk 
[15:09] <frightmare> sec lets see what happens
[15:09] <frightmare> sorry for being sucha noob guys
[15:12] <hallowicked> or is placebo a must
[15:13] <JEEBcz> sure is netsplits
[15:13] <92AABD3G3> seems to be working better
[15:13] <92AABD3G3> can i use something diff though to make it encod faster?
[15:13] <92AABD3G3> it is keeping the bitrate though
[15:13] <darkangel_> What is the latest stable version that you should find in most repos? When I do "yum info ffmpeg" it says it's at version 0.6.1 only, but there don't appear to be any updates.
[15:15] <JEEBcz> darkangel, "as new as possible" -- and as you might already know -- no distro keeps up-to-date on multimedia stuff :V
[15:15] <darkangel> JEEBcz: Do distros keep up to date on anything? :)
[15:15] <hallowicked> did every lose connection here?
[15:16] <JEEBcz> hallowicked, freenode is having a trip it seems
[15:16] <darkangel> hallowicked: At 10 mins passed the hour?
[15:16] <sacarasc> JEEBcz: Arch used to do git ffmpeg, then switched to 0.7. :|
[15:16] <hallowicked> ya sacarasc thank u 
[15:17] <hallowicked> http://pastebin.com/kNVfcM7S  finally heh
[15:19] <dafox> great. Did anyone answer my question while I was timing-out?
[15:20] <sacarasc> What question?
[15:23] <dafox> sacarasc: I'm trying to convert a set of 99 png files (0.png, 1.png, ..., 10.png, 11.png, ...) to a movie. I just this command: "ffmpeg -y -f image2 -i %d.png -s 640x640 -r 10 -b:v 2MB test.mp4". The problem is that not all input frames are in the output. ffmpeg says it encodes 41 frames, mplayer -vo png gives only 32 frames. FFmpeg output: http://paste.pocoo.org/show/504113/
[15:23] <dafox> Q: How do I get ffmpeg to encode all 99 frames? (it is important that every frame is in the output)
[15:23] <faLUCE> hi,    ffmpeg -f video4linux2 -s 1280x720 -vcodec mjpeg -i /dev/video0 -an -vcodec libx264  out.avi <--- how can I produce a http flv stream as output, instead of out.avi ?
[15:31] <dafox> sacarasc: any idea?
[15:32] <sacarasc> drop=59
[15:32] <sacarasc> Dunno why, though...
[15:34] <hallowicked> sacarasc your method worked great thank u 
[15:34] <sacarasc> :)
[15:35] <hallowicked> made some minor adds n changes  
[15:35] <hallowicked> ffmpeg -i ufc.mp4 -vcodec libx264  -b:v 1500k -vf scale=700:394 -preset fast -level 3.1  -threads 0  wsn.mp4
[15:35] <hallowicked> still keeping my rate and everything though
[15:35] <sacarasc> You wanted the best possible quality, which fast is not.
[15:35] <hallowicked> right i know 
[15:35] <hallowicked> but i tested and the quality stayed pretty close to source
[15:36] <hallowicked> or pretty close to placebo 
[15:36] <hallowicked> and now if i put crf in there it will do nothing right?
[15:39] <JEEBcz> hallowicked, either do nothing or it will get used instead of the bitrate value, depending on how ffmpeg deals with users that for some reason enable two modes that can't be on together :P
[15:41] <ozone89> hello
[15:41] <ozone89> how do i enable png support for ffmpeg?
[15:54] <dafox> sacarasc: how do you mean 'drop=59'? (or was this not directed at me?)
[15:55] <sacarasc> It dropped 59 frames.
[15:55] <dafox> aha, yes, but why?
[15:55] <dafox> does ffmpeg have something like mencoder's old -harddup?
[16:05] <dafox> sacarasc: I found a partial fix. After your hint I found this: http://ffmpeg-users.933282.n4.nabble.com/FFmpeg-Dropping-JPEG-Frames-td2245434.html . The problem is that the '-r 10' has to go before the '-i %d.png'. Doing this ffmpeg now says it encodes all 100 frames, but mplayer still misses the last 10 or so
[16:07] <dafox> and I think the latter is an issue with mplayer; using ffmpeg to convert the movie file back to images shows all the frames present
[16:07] <dafox> sacarasc: solved, thank you!
[17:12] <Silex> !seen zimba*
[17:12] <Jikan> Aucune trace de zimba* dans la base de données LastSeen.
[17:14] <Silex> !seen zimbatm
[17:14] <Jikan> zimbatm!~zimbatm at 94-193-96-179.zone7.bethere.co.uk a été vu(e) pour la dernière fois Tue Oct 25 19:13:49 2011 quittant le réseau.
[17:21] <tchmiel> hey all!
[17:21] <tchmiel> could anyone help me with a little issue please?
[17:25] <tchmiel> my ffserver seems to be unable to write any frames to output, resulting in empty streams, because of too large numbers of skipped frames...
[17:26] <tchmiel> but I can't track down the cause, hence I can't resolve it
[17:27] <tchmiel> any pointers to where to look, or if anyone can tell me what parts of the config / logs I should paste?
[17:44] <elderg> I have a 720p file that I want to convert to 640x480 (yes I want to crop or pan and scan). -s 854x480 -cropleft 106 -cropright 108 produces a 640x480 video but it's slightly warped. Anything else I can try?
[17:48] <elderg> snapshots: original http://db.tt/eFFIy2TU converted http://db.tt/jU5vpUac
[18:16] <burek> i finally managed to stream libx264+libaacplus over udp without problems :)
[18:31] <MistyM> What's the best way to handle split mpegts files? Catting them together before reading in ffmpeg is an extremely slow process.
[18:56] <Hyperi> MistyM: double input ?
[18:56] <Hyperi> ffmpeg -i 1.mpeg -i 2.mpeg  <- ?
[18:57] <MistyM> Hyperi: Oh, I didn't even realize that was a thing. I'll give that a try. So it'll create a single output file?
[18:58] <Hyperi> Never used it like that
[18:59] <Hyperi> But iirc it accepts two inputs
[18:59] <Hyperi> Alsom http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[19:00] <Hyperi> Sadly it suggests piping from cat output .<
[19:01] <MistyM> Yeah, and cat takes forever when the input is a large number of files. :( I was worried that was going to be the case. Oh well.
[19:01] <Hyperi> Sorry :)
[19:01] <MistyM> Thanks anyway!
[19:01] <Hyperi> Google mentioned some program for unix called 'avimerge'
[19:02] <Hyperi> np, atleast we took a shot :P
[19:02] <Hyperi> You should try that double input tho
[19:02] <Hyperi> For test if nothing else
[19:02] <Hyperi> As we all know, not many FAQ follow up with updates :>
[19:02] <MistyM> No dice, unfortunately. The output was taken from only one of the files, not the running time of both. (They're the same video, split across multiple files.)
[19:04] <burek> what about ffmpeg -i concat:split1.mpeg\|split2.mpeg\|split3.mpeg ...
[19:07] <Hyperi> MistyM: http://stackoverflow.com/questions/5415006/ffmpeg-combine-merge-multiple-mp4-videos-not-working
[19:07] <Hyperi> Found that one :>
[19:10] <MistyM> burek: Oh, excellent, that's exactly what I wanted. And very speedy.
[19:11] <markrose> I'm having difficulty compiling ffmpeg. It complains that "ERROR: libvpx decoder version must be >=0.9.1" ... but I'm using the latest code from libvpx's git repo. Suggestions?
[19:12] <Hyperi> markrose: Check configure script how it checks your libvpx version
[19:12] <markrose> It's whatever configure script is in ffmpeg's git repo.
[19:13] <Hyperi> Well go check it
[19:13] <Hyperi> You can use find in text editor, can't you .>
[19:14] <markrose> yes... hold on
[19:18] <markrose> I'm not sure how 'check_lib2 "vpx/vpx_decoder.h vpx/vp8dx.h" vpx_codec_dec_init_ver -lvpx' actually works
[19:18] <markrose> it's returning false, which is throwing the error in ffmpeg's configure script
[19:19] <Hyperi> Well search for check_lib2 where it's defined
[19:19] <Hyperi> And see what it does with those parameters
[19:23] <burek> markrose: dpkg -l | grep vpx
[19:23] <burek> most probably you have installed libvpx some time ago
[19:24] <burek> and that's what ffmpeg detected
[19:24] <markrose> ii  libvpx                                     1:201111071303-git-1                                  Package created with checkinstall 1.6.2
[19:24] <markrose> ii  libvpx0                                    0.9.6-1                                               VP8 video codec (shared library)
[19:24] <burek> simply apt-get remove libvpx libvpx0
[19:24] <burek> and compile it
[19:24] <markrose> hmm... okay
[19:25] <markrose> i've already installed new version, i didn't remove the old version of libvpx before installing the new version though (both were compiled from source)
[19:25] <burek> when you compile something that doesnt appear in dpkg -l
[19:25] <burek> it only appears when you do it using apt-get install
[19:26] <markrose> even when using checkinstall ?
[19:26] <burek> oh right, except in that situation :)
[19:26] <burek> anyway, if you are going to use the latest, compiled from source
[19:26] <burek> it would be a good idea to remove previous versions
[19:28] <markrose> and I try to remove libvpx0, which is a dependency for libavcodec52... which a pile of other things depend on. hmm.
[19:30] <markrose> the joys of mixing source and packages...
[19:32] <markrose> ahh, removing the old version of libvpx, then reinstalling it, then compiling ffmpeg seems to be working
[19:33] <markrose> thanks, burek
[19:39] <tjh> what would you guys suggest for piping data to ffmpeg? yuv?
[19:39] <tjh> I'm using an html canvas implementation so I have access to the raw rgb data
[20:33] <tchmiel> anyone knows a good non-flash web player I can use to stream video from ffserv in m4v or mp4 in any browser? the "input" is coming through ffmpeg from a live video feed.
[20:36] <tchmiel> I tried jplayer, but it seems it keeps on loading the stream because it can't get the moov and qstart atom... :(
[20:36] <tchmiel> is there a way to inject or reposition them with ffmpeg on a live feed?
[20:47] <filo1234> hi all
[20:47] <filo1234> which is the hightest video bitrate that I can pass to ffmpeg?
[20:53] <filo1234> there is some rule for choose right video bitrate for differents video formats?
[21:45] <pasteeater> filo1234: what are you trying to do?
[21:46] <filo1234> pasteeater: file conversion, and I'll to get good quality for all formats, .avi .flv and .mpg
[21:47] <filo1234> pasteeater: so there is a "standard" bitrate video value to have a compromise between good quality video and good audio?
[21:48] <filo1234> sorry but I'm not rellay expert about video edit or something else
[21:59] <pasteeater> filo1234: not all encoders are equal or the same, so settings for one encoder may not necessarily work for others. what do you need so many formats?
[22:19] <filo1234> pasteeater: I need differents formats for to see it in differents tv and readers
[22:20] <filo1234> pff I'm a bit confused :p
[22:20] <pasteeater> readers?
[22:21] <filo1234> dvd readers
[22:22] <pasteeater> any model in particular?
[22:22] <filo1234> on that dvds I can plug an usb device but they are differents 
[22:23] <filo1234> pasteeater: nope differents and each reader can read different formats, so one mpg, one avi and so on
[22:23] <filo1234> pasteeater: I'm tryng every encoders and format...beacoming crazy but ffmpeg command expert!
[22:24] <filo1234> :D
[22:24] <pasteeater> avi and mpg are container formats that can contain a number of video formats.
[22:25] <filo1234> yeah but one read mpeg2video another mpeg1 and so on
[22:25] <burek> and .ts :)
[22:25] <filo1234> pasteeater: I need to try and learn more about container and formats
[22:25] <filo1234> :|
[22:26] <burek> tchmiel did you try -flags +global_header
[22:26] <filo1234> ffmpeg manual its so big!
[22:26] <burek> thank god it is :)
[22:27] <filo1234> sure
[22:27] <filo1234> :p
[22:28] <tchmiel> burek: I tried, but kept getting same results
[22:29] <burek> tchmiel can you give us the link to the pastebin of your command and output
[22:35] <pasteeater> filo1234: a basic command would be: ffmpeg -i input -vcodec mpeg2video -qscale 4 -acodec mp2 -ab 192k output.mpg
[22:36] <pasteeater> adjust qscale value to change quality. a lower number is higher quality and bigger output file size.
[22:37] <filo1234> pasteeater: I'll try it too 
[22:39] <filo1234> pasteeater: -qscale instead of bitrate right?
[22:41] <pasteeater> yes. they are mutually exclusive. use one or the other.
[22:41] <filo1234> ok
[22:42] <pasteeater> you can interpret qscale as "i want all of my outputs to have this level of quality, and i don't really care about file size"
[22:42] <filo1234> so 1 is the hightest level? or 0?
[22:42] <pasteeater> while -b can be "i want a certain output file size and quality is a lower priority"
[22:43] <pasteeater> for MPEG-1/2/4, a value of 2 can be considered visually lossless
[22:43] <pasteeater> 3-5 is a good range to try
[22:44] <filo1234> lossless beacause 2 is an hight level?
[22:44] <pasteeater> the scale is linear, so if you double the qscale value the output will be roughly half the output size
[22:45] <pasteeater> i don't understand your question
[22:46] <burek> i think -qscale is being mapped to each codec's parameter of similar functionality
[22:47] <larsenmik> hi
[22:47] <burek> http://www.kilobitspersecond.com/2007/05/24/ffmpeg-quality-comparison/
[22:47] <larsenmik> i need help
[22:47] <burek> FFm­peg calls this “qscale” (a way of rep­re­sent­ing vari­able bitrate qual­i­ties, much like LAME’s –V para­me­ter), and the lower the qscale value, the bet­ter the qual­ity. The avail­able qscale val­ues range from 1 (high­est qual­ity) to 31 (low­est qual­ity). Going worse than a 13 qscale pro­duces unac­cept­ably poor qual­ity, so that’s as low as I went for the pur­poses of this test.
[22:47] <larsenmik> I try for join 2 video with ffmpeg but i got trouble
[22:48] <larsenmik>  I use ffmpeg -i file.mp4 -i file.mp4 -vcodec copy -acodec copy out.mp4
[22:48] <larsenmik> but I just view video one and video 2 just sound
[22:48] <burek> well, thats expected :)
[22:48] <burek> larsenmik, what did you want to achieve? concatenation of videos?
[22:49] <larsenmik> yes
[22:49] <larsenmik> like that
[22:49] <burek> try: ffmpeg -i concat:split1.mp4\|split2.mp4\|split3.mp4 output.mp4
[22:49] <filo1234> pasteeater: you said that -qscale value low is a big quality level right?
[22:49] <burek> see if that works, although it is supposed to work with mpeg only, not mp4
[22:49] <larsenmik> ok I will try thx for help
[22:50] <filo1234> pasteeater: so if I use 2 for mpeg.... will be lossless because, 2 is an hight level?
[22:51] <filo1234> uhm sorry what do you mean with "lossless" ?
[22:51] <pasteeater> filo1234: technically it won't be lossless because you're using a lossy encoder, but will appear lossless because your eyes and brain won't probably won't notice much of a difference... 
[22:51] <pasteeater> because you are giving it such a high bitrate (via qscale)
[22:52] <filo1234> ok
[22:52] <pasteeater> meaning a value of 2 will make the output look very much like your input in terms of quality.
[22:53] <tchmiel> burek: well, actually, I'm no longer blocked by that problem. I changed the format from avi to m4v, since the only non-flash player I found is only able to read that, and that particular problem is gone.
[22:54] <larsenmik> <burek> try: ffmpeg -i concat:split1.mp4\|split2.mp4\|split3.mp4 output.mp4 <--- i try this but its same i just see video one 
[22:54] <filo1234> pasteeater: and about size? do you have some advice?
[22:54] <tchmiel> my next problem is with the moov atom, but I guess that can't be helped, since there is no way for ffmpeg/ffserver to insert a dummy moov atom at the begining of the stream :(
[22:56] <burek> well, yes there is
[22:56] <burek> but m4v is not meant for streaming
[22:56] <burek> your problem is container
[22:56] <pasteeater> there's also http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a56169fec207a75d9b48b471c8fd1b8bb0a05cb
[22:56] <burek> which holds the relevant info at the end of file
[22:56] <pasteeater> but i have no idea how it works
[22:57] <burek> shortly, i think you wont be able to do a live stream using m4v
[22:57] <burek> you should consider .ts or .flv
[22:57] <filo1234> pasteeater: was for me that link?
[22:57] <pasteeater> oops. i meant http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d7e3023d90df1ac14b95dd20629486686d213d2
[22:57] <pasteeater> filo1234: no
[22:57] <filo1234> lol ok
[22:57] <burek> larsenmik, then its only possible with mpeg videos
[22:58] <burek> larsenmik, im afraid you
[22:58] <burek> you'll need to use another tool for that action :S
[22:59] <larsenmik> what the prefect tool for mp4 and 3gp?
[22:59] <burek> im not sure.. try doom9.org
[23:00] <pasteeater> maybe try MP4Box? MP4Box -cat input1.mp4 -cat input2.mp4 -cat input3.mp4 output.mp4
[23:00] <tchmiel> yep, I now know .m4v isn't meant for streaming :(
[23:00] <larsenmik> i try mp4Box but same only video one
[23:01] <tchmiel> burek: how about .mp4? I know it's basically the same, but isn't it supposed to be a container that enables streaming? or with some modifcations?
[23:01] <burek> well its possible, but you need to read about segmented/progressive http streaming
[23:02] <burek> something like that, ill give you a link
[23:02] <burek> but basically its also not handy for live streams i think
[23:02] <tchmiel> oh, yeah, basically you split your stream in separate ones, right?
[23:02] <burek> yes yes
[23:02] <burek> so you are able to seek through the media
[23:02] <tchmiel> argh
[23:02] <burek> thats the point
[23:02] <tchmiel> yep
[23:04] <tchmiel> I though about that, already, but I didn't see how to set it up with ffmpeg/ffserver on such a short notice :( especially with a live stream where I can't switch the feed every n seconds/minutes without interruption :/
[23:05] <tchmiel> .flv is not a solution, since the event is supposed to be available on iOs mobile devices as well
[23:08] <filo1234> pasteeater: well -qscale opens me a new world lol
[23:08] <filo1234> good
[23:17] <tchmiel> burek: well, tried with .mp4, just for the "fun" of it, and I'm back with my original error: http://pastebin.com/JRXdVkb4
[23:18] <burek> muxer does not support non seekable output
[23:18] <burek> cannot cross it..
[23:19] <tchmiel> yep
[23:19] Action: tchmiel shrugs
[23:19] <burek> http://www.youtube.com/watch?v=hknVoAoyy-k
[23:19] <burek> :D
[23:21] <tchmiel> so, anyone's got a pointer for a live stream with ffmpeg viewable on iPhones and all the other i-Thingies, as well as on IE pre-9?
[23:28] <larsenmik> how about image
[23:28] <larsenmik> can I concatenation image and video
[23:28] <shysoft> How do you appropriately copy an AVPacket?
[23:29] <larsenmik> ffmpeg -i concat:split1.png\|split2.mp4\|split3.jgp output.mp4
[23:29] <larsenmik> ?
[23:29] <burek> larsenmik what are you trying to accomplish
[23:30] <larsenmik> i wanna join image+mp4 file to mp4 file
[23:30] <burek> define 'join'
[23:31] <tchmiel> there is still something I don't get... vlc and totem can both read the .m4v "stream" just fine... :(
[23:33] <larsenmik> image in the front for view second then video comming
[23:33] <larsenmik> image in the front for few second then video comming
[23:34] <larsenmik> actually i wanna make online video converter with ffmpeg and php. but when anyone upload and convert from my site they will get watermark on front or back video
[23:39] <burek> do you want watermark
[23:39] <burek> or you want first frames to be an image
[23:40] <larsenmik> first 
[23:40] <burek> then use -vf movie
[23:40] <larsenmik> can you gimme detail of cmd
[23:41] <burek> http://ffmpeg.org/ffmpeg.html#overlay
[23:41] <burek> http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=8&t=1400
[23:41] <larsenmik> ffmpeg -i in.avi -vf "slicify=32" out.avi <--- work with mp4?
[23:42] <filo1234> guys there is some option for to see video prperties? I use ffmpeg -i input now
[23:42] <filo1234> properties*
[23:44] <burek> larsenmik try and see :)
[23:45] <burek> filo1234, thats ok
[23:46] <larsenmik> ok thx burek
[23:46] <larsenmik> can i talk with you on ym or msn?
[23:46] <burek> w can talk here? :)
[23:46] <burek> we*
[23:47] <burek> so that the others also benefit something (if anything) :)
[23:47] <burek> (all this is being logged btw)
[23:47] <filo1234> burek: ok I tought that were another specific command, but I don't saw on man page ... :)
[23:48] <burek> you can try ffprobe
[23:48] <burek> but basically you'll get the same info
[23:48] <burek> i would recommend using mediainfo also
[23:48] <filo1234> thanks
[23:50] <burek> :beer: :)
[23:50] <filo1234> blone or red
[23:50] <filo1234> or a black guinness?
[23:50] <filo1234> lol
[23:50] <burek> just make it cold :D
[23:50] <filo1234> blonde*
[23:51] <filo1234> obvs :P
[23:54] <filo1234> burek: well ffprobe takes 192 Mb of space with a lot of dependencies! well I use ffmpeg -i it get same info
[23:54] <filo1234> :)
[23:55] <burek> if you have ffmpeg, you have ffprobe already too ;)
[23:55] <filo1234> burek: I don't have
[23:55] <filo1234> I installed it
[23:55] <burek> you should
[23:55] <burek> its the same thing
[23:55] <burek> did you compile ffmpeg?
[23:55] <filo1234> burek: Do you have Ubuntu?
[23:55] <filo1234> burek: nope installed from repos
[23:55] <burek> i have on one of machines, why?
[23:56] <filo1234> burek: because I have instaled ffprobe now 
[23:57] <filo1234> separatly 
[23:57] <burek> "apt-get install ffmpeg" didn't install ffprobe too?
[23:57] <filo1234> nope
[23:57] <burek> hm, ok.. possible, but highly unlikely
[23:57] <burek> because they both share the same code
[23:58] <burek> a lot of the same code
[23:58] <filo1234> isn't a rdepends
[23:58] <filo1234> well no problem I have removed ffprobe :P
[23:59] <burek> when you compile it from source in cli
[23:59] <burek> you get ffmpeg, ffprobe and ffserver
[23:59] <burek> all at the same time
[23:59] <burek> i didnt know they are separated as packages
[23:59] <burek> because honestly, i never used them from repos :)
[00:00] --- Tue Nov  8 2011


More information about the Ffmpeg-devel-irc mailing list