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

burek burek021 at gmail.com
Mon May 14 02:05:02 CEST 2012


[00:02] <hwk> is it ok to compile without yasm ?
[00:04] <hwk> withouto freetype and fontconfig
[00:10] <beastd> hwk: without yasm might work (you will lose many optimizations though)
[00:10] <beastd> hwk: freetype (and fontconfig) are required for your usecase as you want to print nice timestamps
[00:10] <ubitux> it will allow the drawtext filter to be build yes
[00:11] <ubitux> you might also want to add --enable-libx264 and various other codecs
[00:11] <ubitux> without yasm you might expect "bad" performances
[00:14] <hwk> i noticed... takes about 1minute to take the shots :)
[00:14] <hwk> and the generated image is widescreen
[00:18] <ubitux> what's your command line?
[00:19] <ubitux> it might be faster with -an
[00:19] <hwk> ffmpeg -i santi-thismeanswar.proper.brrip.xvid.avi -vf select='not(mod(n\,1000)),tile' -frames:v 1 out3.png
[00:19] <ubitux> add a scale filter
[00:19] <ubitux> for instance scale=300:200,select='not(mod(n\,1000)),tile'
[00:19] <ubitux> and -an option to avoid decoding audio
[00:20] <udoprog> Hi, I am setting up an avfilter, I am wondering if it's possible to utilize multiple input streams (like [in] is predefined) but for other input streams that the one just defined before the -vf argument. The 'video' filter is insufficient for defining the ones I need (like video=... [mylabel]), so is there any other way?
[00:20] <ubitux> -filter_complex
[00:20] <ubitux> or use movie and amovie source filters
[00:22] <udoprog> ubitux: s/video/movie/ for my questions, what about -filter_complex?
[00:23] <ubitux> what do you mean by "insufficient"?
[00:23] <ubitux> -filter_complex is a new option, just check the doc it is documented with examples
[00:24] <ubitux> (it's a ffmpeg only option though)
[00:24] <udoprog> ubitux: I need to specify more input parameters than the ones listed in the movie filter, like codec, bit rates, resolution etc..
[00:24] <udoprog> ubitux: yeah, I am checking it out, looks good so thank you
[00:25] <ubitux> mmh there was a patch for this on ffmpeg-devel
[00:25] <ubitux> it might not be upstream yet indeed
[00:25] <ubitux> (codec/formats customization in movie/amovie)
[00:33] <hwk> works very slowly and cpu usage is high, ill compile with yasm later to see the differences
[00:33] <hwk> any tip on how to make ffmpeg print the video frame count?
[00:34] <hwk> needed for the frame step size
[00:34] <JEEB> > compiling without yasm
[00:34] <JEEB> welcome to slowland, virginia
[00:35] <hwk> :))
[00:36] <JEEB> there's quite a gratuitious amount of hand-written assembly for various command sets in ffmpeg as well as for example the libx264 encoder library -- you generally don't want to touch them without the optimizations
[00:36] <hwk> i added tile=8x20 and this takes ages
[00:38] <beastd|2> i guess depending on the amount of frames, codec and the resolution of your content it is not that unexpected
[00:49] <hwk> so is there a option for ffmpeg to print the video total number of frames?\
[00:56] <cbsrobot> hwk: try: ffprobe -show_streams -print_format compact input.mkv
[01:09] <hwk> this is what i need mostly /usr/local/bin/ffmpeg -i xvid.avi -an -vf scale=300:200,select='not(mod(n\,3116)),tile=4x12' -vsync 0 -frames:v 1 out91.png
[01:10] <hwk> but first i need ffprobe to calculate the scale and the frame steps
[01:16] <ubitux> you can use various parameter in the scale directly
[01:16] <ubitux> hwk: look at the scale examples
[01:17] <ubitux> http://ffmpeg.org/libavfilter.html#scale
[01:19] <ubitux> < hwk> any tip on how to make ffmpeg print the video frame count? // ffprobe yes
[01:20] <ubitux> anyway, got to go, 'night
[01:21] <hwk>  scale='min(300\, iw*3/2):-1' this is what i need to calc the height
[01:21] <hwk> :D
[01:21] <hwk>  sleep well
[01:25] <therealgalen> Am I able to encode 10-bit H.264 via x264 (built for 10 bit support) with ffmpeg?
[01:32] <ubitux> hwk: i don't want to sleep actually
[01:32] <ubitux> btw, why do you compute the number of frame?
[01:33] <ubitux> you can use the timestamp directly maybe
[01:33] <sacarasc> therealgalen: You should be able to.
[01:34] <ubitux> anyway, afk.
[01:34] <therealgalen> sacarasc: is it implied if i call x264 and it's only built for 10-bit or do i need to specify 10 bit output when i run ffmpeg?
[01:34] <sacarasc> I don't know, I've never done it.
[01:36] <hwk> ubitux: 4x12 = 48 ; select='not(mod(n\,3116)) i need split the number of total frames to 48 and use it here @ mod
[01:36] <hwk> so the screenshots image covers the whole movie
[01:36] <ubitux> ah i see :)
[01:36] <ubitux> there is a count frame feature in ffprobe
[01:37] <ubitux> normally you have a nb_frames available
[01:37] <ubitux> but it might be approximative (or not available?)
[01:37] <hwk> yeah, both on audio and video
[01:37] <ubitux> hint: do not decode the frames while counting or it will be very slow
[01:38] <ubitux> (count only packets, 1packet = 1frame)
[01:38] <hwk> im intersted in the video part, i was wondering if i can trim the output of ffprobe so it only shows the video stream information (without the compile and libs info)
[01:38] <hwk> -qq
[01:38] <ubitux> i don't think we have a stream filtering yet
[01:39] <ubitux> (in ffprobe)
[01:39] <hwk> i need to process the info in php
[01:39] <hwk> but it will do :)
[01:40] <ubitux> ./ffprobe -v 0 -show_streams -print_format json -count_packets input.avi
[01:40] <hwk> json :-?
[01:40] <ubitux> and then look at nb_read_packets
[01:40] <ubitux> php has a json module right?
[01:40] <hwk> who implemented json in ffprobe :)))
[01:41] <ubitux> i did
[01:41] <hwk> any othe output format? seems that man ffprobe doesnt work on my box
[01:41] <ubitux> you have xml too
[01:41] <ubitux> csv
[01:41] <hwk> very nice :D
[01:41] <ubitux> :)
[01:41] <hwk> i can use any programming language to parse the info
[01:41] <ubitux> that's the point ;)
[01:42] <hwk> but the json part blows me away :D
[01:42] <hwk> awsome :P
[01:42] <ubitux> glad you enjoy it
[01:43] <hwk> this made my life much easier. thank you again ubitux
[01:43] <ubitux> you have other stuff like compact view
[01:43] <ubitux> but well: http://ffmpeg.org/ffprobe.html#Writers
[01:43] <ubitux> each write has options which might help
[01:45] <hwk> -v 0 is the video stream 0 right?
[01:46] <ubitux> nop it's the verbose option
[01:46] <hwk> oh :)
[01:46] <ubitux> to trash the copyright boilerplate etc
[01:46] <ubitux> so you just have the json stream
[01:49] <hwk> the count packets option, literaly counts the frames from what i see, not like nb_ which i suppose reads the video metadata
[01:49] <hwk> this time ffprobe ran slower
[01:50] <hwk> yep
[01:51] <hwk> do i need the yasm-devel libs?
[01:51] <hwk> no such package
[01:51] <hwk> :)
[01:52] <ubitux> yasm is an assembler no a library or something
[01:52] <ubitux> you just need yasm
[01:52] <ubitux> yes the count_packets can be slow
[01:52] <ubitux> you can try to be smart, like if a nb_frames is available, use it, otherwise fallback on counting manually
[01:53] <ubitux> this will not be faster with yasm, since you're only demuxing
[01:54] <ubitux> with yasm you will likely speed up decoding though
[01:59] <hwk> compiling... ill try timestamping... but if it prints the system time when the shot was take... is kind of useless
[01:59] <hwk> can i write the filename in the generated image?
[02:00] <hwk> the good part is that ffmpeg compiles even in virtual machines :)
[02:02] <ubitux> no unfortunately drawtext has no access to the metadata
[02:03] <ubitux> but you can specify the filename yourself of course
[02:03] <ubitux> -vf drawtext=text=foobar.avi
[02:03] <ubitux> for the timestamping i think this is a bug that need to be fixed
[02:03] <ubitux> but i'm too tired to look at it right now :p
[02:04] <ubitux> btw, to identify frames you can use the timecode :)
[02:04] <ubitux> with something like drawtext=timecode=00
[02:04] <ubitux> with something like drawtext=timecode=00\:00\:00\:00:rate=25
[02:05] <ubitux> the last field is not ms, but frame id in the current second
[02:06] <ubitux> (it's some kind of frame unique identifier used in broadcasting world)
[02:09] <hwk> the timecode stuff doesnt work, it says it cant initialize writext with timecode args
[02:09] <hwk> also the progress part doesnt work
[02:10] <hwk> Press [q] to stop, [?] for help
[02:10] <hwk> frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=   0.0kbits/s
[02:15] <ubitux> most likely a problem with the escaping with your cmd line with the timecode stuff
[02:15] <ubitux> for the progress it works; it's just dropping a lot of frames with the select
[02:15] <hwk> ‘timecode’
[02:15] <hwk>     Set the initial timecode representation in "hh:mm:ss[:;.]ff" format. It can be used with or without text parameter. timecode_rate option must be specified.
[02:15] <ubitux> and buffering the frames in the tile
[02:16] <ubitux> you will get only 1 frame on output
[02:16] <ubitux> so the progress work, but it works only relative to the output
[02:17] <hwk> select 3000 -> hh:mm:ss[:;.]3000 will thid do
[02:17] <hwk> s
[02:17] <hwk> no
[02:18] <ubitux> no no
[02:19] <juanbobo> does the message warning: first frame is no keyframe matter?
[02:20] <ubitux> hwk: http://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide#BurntinTimecode
[02:20] <ubitux> now i really need to sleep
[02:20] Action: ubitux &
[02:20] <hwk> -vf drawtext="timecode=00\:00\:00\:00 :rate=25",scale='min(300\, iw*3/2):-1',select='not(mod(n\,3116)),tile=4x12'
[02:20] <hwk> this is what im trying
[02:22] <hwk> -vf drawtext="timecode='00\:00\:00\:00' :rate=25"
[02:22] <hwk> this works :D
[03:37] <echelon> hi, i keep getting "[flv @ 0x80c0840] Unsupported video codec (0)" when trying to play a stream using ffplay
[03:38] <echelon> http://pastebin.com/WeuLQBXA
[03:41] <echelon> then when i try to use ffmpeg to save the stream, i get..
[03:41] <echelon> [flv @ 0x80885c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 954 >= 954
[03:41] <echelon> av_interleaved_write_frame(): Invalid argument
[04:05] <diegoviola> hi
[04:07] <diegoviola> I have a 1080p movie in MKV container, the video codec is H.264 and I believe the audio is AC3, is there a way to split this file in 2 parts without re-encode?
[04:08] <diegoviola> the issue is i'm trying to copy this movie in a FAT32 USB drive but my TV won't read NTFS, and FAT doesn't support more than 4GB files I believe and this file is actually 8 GB
[04:12] <diegoviola> the problem is this mkv file has multiples tracks and subtitles built-in and i don't know if splitting the file will still take all the different tracks and such
[04:12] <diegoviola> any ideas?
[04:14] <diegoviola> i actually don't want all the tracks and subtitles for that movie, only 1 audio track and the video
[04:18] <diegoviola> i actually would like to keep all the tracks and subs
[04:43] <juanbobo> diegoviola: you want to be able to watch it in pieces or just move it?
[04:44] <diegoviola> watch it in pieces
[04:47] <diegoviola> i'm trying with mkvtoolnix now
[04:47] <diegoviola> mkvmerge
[04:49] <juanbobo> ok
[04:49] <diegoviola> ty
[04:50] <diegoviola> mkvmerge works like a charm
[04:50] <diegoviola> cool
[04:52] <juanbobo> nice
[06:35] <taqattack> Is there a way to use amerge with pipe?
[08:49] <randomuser> I'm starting to read about encoding in general, there's a lot to learn and I'm glad to find good documentation. No support required; but this seemed to be as good of a place as any to advise superdump that rob.opendot.cl is having issues
[08:51] Action: randomuser ducks out
[10:45] <redcheckers> hi, anyone know where a good place to start reading is if i want to compile ffmpeg with a particular format enabled?
[10:48] <burek> just type ./configure --help | less
[11:02] <hwk> i managed to get it working as needed :P
[11:11] <cbsrobot> hwk: like to share ?
[11:14] <hwk> this: /usr/local/bin/ffmpeg -i santi-thismeanswar.proper.brrip.xvid.avi -an -vf drawtext="timecode='00\:00\:00\:00' :rate=23.98 :fontcolor=white :fontsize=21 :shadowcolor=black :x=5 :y=5",scale='min(300\, iw*3/2):-1',select='not(mod(n\,3116)),tile=4x12' -vsync 0 -frames:v 1 out96.png
[11:15] <hwk> and fprobe jsencode :D
[11:16] <hwk> Guest43518 this guy is hosted @ hetzner.de
[11:16] <hwk> is a bounce
[11:17] <hwk> bouncer
[11:18] <cbsrobot> and ?
[11:18] <hwk> i was reading the channel log and noticed it. i work at hetzner :P
[11:18] <cbsrobot> ah ok
[11:19] <cbsrobot> I have a server at hetzner :-)
[11:19] <hwk> + some of my clients :-)
[11:19] <hwk> good services :)
[11:19] <cbsrobot> 5 year old root server - i guess i need to upgrade soon
[11:20] <hwk> anyway. reading the channel logs is usefull, i learn new stuff about ffmpeg
[11:21] <hwk> seems you guys are from EU.
[11:21] <cbsrobot> some are - sure.
[11:21] <hwk> since last night, no more channel action
[11:22] <cbsrobot> hehe - it's saturday eve - what do you expect.
[11:22] <cbsrobot> btw. do you have some spare servers at hetzner
[11:22] <hwk> i work for tech support :)
[11:22] <cbsrobot> lets say - if you have ....
[11:22] <cbsrobot> you could run some fate servers
[11:22] <hwk> managed root servers
[11:23] <cbsrobot> see http://fate.ffmpeg.org/
[11:23] <cbsrobot> could also be vservers
[11:23] <cbsrobot> but testing is quite important for devs
[11:24] <cbsrobot> just saying ....
[11:24] <hwk> i cant give access to servers... i'm not the only one who manages them. the other collegues will notice.
[11:24] <cbsrobot> no problem
[11:24] <cbsrobot> thats why: if you have spare servers
[11:24] <cbsrobot> and you dont give access to anybody
[11:25] <cbsrobot> it's more like fate pulls the last ffmeg reguralry and tries to build it locally and sends back the logs
[11:25] <hwk> i dont even have the root password, we use an external server to manage the servers
[11:26] <hwk> the password is only known by our customers
[11:26] <cbsrobot> you have just to setup fate on some box and send your public ssh key to michaelni
[11:26] <cbsrobot> ok
[11:27] Action: hwk i could loose my job :)
[11:27] <cbsrobot> it's in my imagination that you must have some spare servers running .....
[11:27] <ubitux> some fate instance are already on hetzner servers :)
[11:27] <cbsrobot> I surely do not want that !
[11:28] <ubitux> hwk: were you able to make timecode stuff working?
[11:28] <hwk> yes
[11:28] <hwk> : /usr/local/bin/ffmpeg -i santi-thismeanswar.proper.brrip.xvid.avi -an -vf drawtext="timecode='00\:00\:00\:00' :rate=23.98 :fontcolor=white :fontsize=21 :shadowcolor=black :x=5 :y=5",scale='min(300\, iw*3/2):-1',select='not(mod(n\,3116)),tile=4x12' -vsync 0 -frames:v 1 out96.png
[11:28] <ubitux> 23.98 doesn't look like a correct rate to me
[11:28] <cbsrobot> hwk: in any case that would be a big help ... but maybe another time
[11:28] <hwk> i am from RO :))
[11:28] <ubitux> i think it's 24 + some framerate approximation
[11:28] <hwk> i work remotely
[11:29] <ubitux> or sth like that, but whatever.
[11:29] <ubitux> hwk: you need to work on ffmpeg @hetzner? :D
[11:29] <ubitux> ^on^with
[11:29] <cbsrobot> you could sell it to your bosses saying it's important to test the latest ffmpeg on our build env to make sure everything works as expected ....
[11:30] <hwk> no. i work for some other projects - rutorrent plugins
[11:30] <ubitux> ok :)
[11:30] <cbsrobot> rutorrent at hetzner ?
[11:30] <hwk> well. i have to say that to the chief admin
[11:30] <hwk> no... free time stuff
[11:31] <cbsrobot> that violates their ... whatever it violates - no ?
[11:31] <ubitux> hetzner is a pretty damn good service, from my own experience
[11:31] <hwk> that guy is ready to kill... :) i dont want to upset him
[11:31] <ubitux> i'm really happy with my box, in comparison to what i had tested previously&
[11:31] <cbsrobot> hehe
[11:31] <hwk> yeah, thats how i ended working for hetzner, before that i worked for lunarpages
[11:32] <ubitux> and srsly, e EU, so easy to get a box while not being in germany :)
[11:32] <hwk> not so nice for OVH, you must be fr, switzz and other small countries
[11:33] <hwk> there is a plugin made by the main developer of rutorrent, which takes video screenshots but its kind of dumb... it doesnt merges them into a single image
[11:34] <ubitux> i'm fed up with OVH
[11:34] <ubitux> they gave me two times a broken box
[11:34] <hwk> some seedbox hoster requested this feature (they have $$$$) so I DO
[11:34] <cbsrobot> hwk - you cold also add some black or white padding to your thumbnails
[11:34] <cbsrobot> so it would be more like media player classic thing
[11:34] <ubitux> and didn't help me to do the migration when i realized the hard drive was broken
[11:35] <hwk> hetzner gives you 100 gb free backup spavce
[11:35] <ubitux> (and the box had no raid, and less storage for almost the same price)
[11:35] <hwk> but the connection is way to slow... 1-2 mb/s
[11:35] <cbsrobot> ubitux: best is to get a new server every other year
[11:35] <ubitux> cbsrobot: well, fuck that shit :)
[11:35] <ubitux> i'm paying 50¬/month, i want something working :p
[11:35] <hwk> we need to implemented a ftp cluster
[11:35] <cbsrobot> because you pay monthly you can migrate to a new box for little price ...
[11:36] <ubitux> online.net is not better btw.
[11:36] <hwk> ohv offers 10 gbps speeds
[11:36] <cbsrobot> but sure - you are the customer so you're the king
[11:37] <hwk> yeah, hetzner offer some nice features in admining your server cost free
[11:37] <hwk> like kvm
[11:38] Action: hwk now back to work :)
[11:38] <hwk> romania won the eu gymanstics championship
[11:39] <hwk> the blonde chick is the only good looking
[11:39] <cbsrobot> wheres the stream ?
[11:40] <hwk> eurosport 2 ...
[11:40] <hwk> dunno, i have it on tv
[11:40] <cbsrobot> lol
[11:40] <cbsrobot> never mind
[11:42] <hwk> where can i read about the white margins?
[11:42] <hwk> whit padding
[11:42] <hwk> e
[11:44] <cbsrobot> or more specific: http://ffmpeg.org/ffmpeg.html#pad
[11:47] <hwk> thank you. the white padding will appear in the next version :)
[11:49] <hwk> is mplayer still mantained?
[11:49] <JEEB> yes
[11:49] <hwk> by 1 dev? :)
[11:50] <JEEB> I have no idea, but it does have commits into it
[11:50] <hwk> mplayer -> mencoder :)
[11:50] <hwk> i never used mplayer
[11:51] <JEEB> I always saw mencoder as quite herp derp. mplayer2's encoder branch was looking much better. But then again, divverent isn't developing it any more.
[11:53] <hwk> yeah, i used to use it
[11:59] <_sajko> can ffmpeg create a http access type for streaming like VLC can? and if so, how?
[12:00] <hwk> ffserver
[12:00] <_sajko> was hoping i didn't have to run ffserver :P
[12:01] <hwk> im guessing the devs will say: Yes we can :)
[12:02] <ubitux> hwk: mplayer is somehow maintained because it uses a lot of features from ffmpeg :p
[12:02] <ubitux> mplayer2 has more active development afaik though
[12:02] <hwk> yeah, it uses ffmpeg as wrapper
[12:03] <ubitux> mencoder isn't really maintained though
[12:03] <_sajko> of course then i get a libavformat error when trying to start ffserver...
[12:03] <_sajko> anyone knows about this? ffserver: relocation error: ffserver: symbol ffm_read_write_index, version LIBAVFORMAT_53 not defined in file libavformat.so.53 with link time reference
[12:03] <hwk> did you compile?
[12:03] <_sajko> ubuntu, package install
[12:03] <hwk> compile
[12:04] <hwk> as i experienced yesterday, you must compile on debian
[12:04] <hwk> to use all features
[12:04] <_sajko> :P
[12:06] <ubitux> _sajko: package install? from jon repository?
[12:06] <ubitux> (https://launchpad.net/~jon-severinsson/+archive/ffmpeg)
[12:06] <_sajko> yes
[12:06] <ubitux> this is a problem then
[12:06] <_sajko> ffmpeg version 0.10.2-4:0.10.2-0ubuntu0jon1
[12:06] <ubitux> can you test with git upstream?
[12:06] <hwk> compiling is fairly simple, and very intuitive
[12:06] <_sajko> ubitux: trying to compile it now... but it complains about libx264
[12:07] <ubitux> you need libx264-dev package
[12:07] <ubitux> (or sth like that)
[12:07] <hwk> that, or compile also
[12:07] <_sajko> was just about to try to find that :P
[12:07] <_sajko> there we go :)
[12:07] <ubitux> if you have some --enable-libxxxx you need the xxxx-dev package, which contains the header and stuff
[12:08] <_sajko> yeah, thought i had it from the start thou :P
[12:08] <hwk> neah, it statically compiled
[12:08] <hwk> s
[12:08] <_sajko> i've been trying to set up my live streaming solution for 1½ week.. i've been throu every software that might be able to do it that can be used on linux
[12:08] <_sajko> ffserver was something i tried frist
[12:08] <_sajko> first*
[12:08] <hwk> i use red5 and fms
[12:09] <_sajko> hwk: well i have a blackmagic intensity pro... and internet wasn't to forward about telling me if it works with anything but gstreamer
[12:09] <hwk> but im guessing you need it for other stuff
[12:09] <_sajko> got it working with ffmpeg yesterday thou
[12:09] <_sajko> and i'm counting trying to scale this to handle up to 1k users
[12:09] <_sajko> -counting
[12:10] <hwk> 1000 users?
[12:10] <_sajko> yes
[12:10] <hwk> im not sure ffmpeg is the right solution for a stream server which supports 1000 users
[12:11] <hwk> you can relay the stream output from ffserver with a dedicated stream server like red5...., etc
[12:11] <_sajko> we'll see... i have tried it abit and seems like my servers can pack up quite alot of connections
[12:12] <_sajko> yeah... i have a 1 machine capturing and encoding, and then streams it to other servers which will deliver the stream
[12:12] <hwk> clustering support is vital :D
[12:13] <_sajko> yes
[12:14] <_sajko> i think it'll hold up... we have 20gbit internet available, 3 servers with 2x4 core and 8gb memory each
[12:14] <_sajko> and a the capture machine ofc with the same specs :)
[12:35] <_sajko> okey.. newly compiled it seems to work fine
[12:35] <_sajko> with x264 support aswell
[12:37] <_sajko> now that i stream to my ffserver thou it seems to get this error http://pastie.org/3904335, ffserver is configured like this http://pastie.org/3904338 and i get http://pastie.org/3904341 this from ffserver
[12:47] <_sajko> burek: seems like you've had this problem before? found a bug ticked filed 16 months ago with your authorname :)
[13:13] <Bombo> is there a way to check the consistency of a video/audio stream? like pvastrumento for .pva or .mpg files has a scan button that scans the whole file, and tells me if there are errors (missing packets e.g) and the timestamp
[13:13] <cbsrobot> _sajko: not related to your bug but I suggest streaming yuv420p - saves some bandwith for sure
[13:13] <_sajko> cbsrobot: thanks for the tip :)
[13:14] <Bombo> my first guess was 'ffmpeg -i test.mkv -acodec copy -vcodec copy -f avi /dev/null' but that errors 'av_interleaved_write_frame(): Operation not permitted'
[13:14] <cbsrobot> and are you sure you want to stream ac3 ?
[13:14] <cbsrobot> not aac ?
[13:14] <_sajko> i've changed it to libfaac
[13:15] <_sajko> the previous version ffmpeg wasn't compiled with libfaac so i used ac3 instead
[13:15] <cbsrobot> and 44100, 128k is also sufficient, I guess
[13:16] <_sajko> tweaking is on the todo list
[13:16] <Bombo> or does anyone know a tool that can do this? check if all frames are 'good' and none is missing?
[13:16] <_sajko> but i do need to get it working first :)
[13:51] <carldani> Does MPEG-4 indeed include all coding techniques which are available in MPEG-2, i.e. can I easily massage a MPEG-2 stream to look like MPEG-4 without transcoding? I have hardware which has accelerated MPEG-4 decoding support, but MPEG-2 would have to be done really slowly in software.
[13:53] <JEEB> carldani, not really possible :P
[13:53] <JEEB> they are completely different bit stream formats
[14:42] <_sajko> Anyone have a clue on how to remedy "av_interleaved_write_frame(): Connection reset by peer" when streaming from FFMPEG to a FFSERVER. FFMPEG log: http://pastie.org/3904775, FFServer log: http://pastie.org/3904779, FFServer conf: http://pastie.org/3904785
[14:52] <hwk>   ["r_frame_rate"]=>
[14:52] <hwk>   string(10) "24000/1001"
[14:52] <hwk> is this the movie framerate? so i can use it in timecode option?
[14:52] <hwk> from ffprobe
[14:53] <hwk> 24000
[14:54] <JEEB> that might be the frame rate, or that might be the frame rate value that ffprobe just happened to get to you because some people oh so love having that value even though it might be meaningless depending on the content.
[14:54] <JEEB> But yes, that's the standard 24/1.001fps 24p-in-NTSC frame rate
[14:56] <JEEB> (also what I'm trying to say is that there are clips out there that have variable frame rate, and it is very muchos usual -- thus if you are trying to automate something by passing out a "frame rate" value, you're going to end up in a puddle of pain sooner or later)
[14:56] <JEEB> (also the usability of the value depends on how ffprobe calculates this value)
[15:07] <hwk> go* damn
[15:07] <hwk> variable frame rate
[15:07] <hwk> how are subtitles written for those kind of videos?
[15:08] <JEEB> all the formats I know just use timestamps as usual
[15:08] <hwk> because i think the text will change its offset
[15:08] <Mavrik> in SRT format
[15:08] <hwk> they use the framerate also :|
[15:08] <Mavrik> most people don't use frame-numbered subtitle formats anymore, since it causes hellova headaches on PAL/NTSC framerate switches
[15:09] <Mavrik> "00:02:17,440 --> 00:02:20,375
[15:09] <Mavrik> "
[15:09] <Mavrik> that's not framerate :)
[15:09] <JEEB> srt, ass and some others as far as I know only use timestamps :)
[15:09] <JEEB> and those with TIME:framnr have the time there (those are "timecodes")
[15:10] <hwk> i had many issues converting subtitles created for movie with 23 fps to 25 fps and viceversa
[15:10] <JEEB> that's mostly because the NTSC->PAL conversion is usually done with speed-up :)
[15:10] <JEEB> so the PAL version is actually shorter
[15:10] <hwk> yeah
[15:11] <iive> no, film->pal is done this way.
[15:11] <JEEB> most subtitle editors have functions around this, though (although of course it can't be perfect)
[15:11] <JEEB> iive, yes -- missed the terminology
[15:11] <hwk> so 24 value in write = timecode is aproximative right
[15:11] <iive> it is too much of sped up to go from 30 to 25
[15:11] <JEEB> or well, slow-down :)
[15:11] <JEEB> anyways, with ffmpeg's libraries etc. you can get the presentation timestamps for every frame
[15:12] <JEEB> using those should give you what need if you are actually using such info for something :)
[15:12] <hwk> trying to create a screenshot file, and every thumb should have the timecode of the thumb
[15:12] <hwk> written in it
[15:12] <JEEB> yes
[15:12] <JEEB> then you should use the timestamps
[15:13] <JEEB> (presentation time stamps, aka pts)
[15:13] <hwk> using this:
[15:13] <hwk> drawtext="timecode='00\:00\:00\:00' :rate=23.98
[15:13] <hwk> without the rate arg it doesnt work
[15:13] <JEEB> I think you should be able to get the pts from somewhere :)
[15:14] <hwk> yeah... :)
[15:14] <JEEB> because you can use the 'PTS' variable with f.ex. the setpts -vf
[15:14] <JEEB> so it's being exported in various ways
[15:21] <mparodi> Hello
[15:21] <mparodi> how do I convert a video to mono using just one of its audio channels?
[15:26] <carldani> JEEB: sorry, was disconnected after I asked the question. Thanks for your answer!
[15:51] <udoprog> hi, I am trying to overlay two video sources, one from x11grab and one from video4linux2 - I am getting the problem that the video sources are greatly desynchronized. It appears that the video4linux2 source takes some time to "start up" before it pops up in the video. Is it possible to synchronize between the two video sources similar to -async 1 for A/V or am I just doing something plain wrong? this is my command; http://pastebin.com/gK7ZjFp
[16:03] <Bombo> any idea why ffmpeg wont letme 'encode' to /dev/null?
[16:13] <ubitux> Bombo: -f null -, or -f <whateverformatyouwant> /dev/null
[16:44] <hwk> does ffmpeg output to sterr ?
[16:44] <hwk> &> thi will redirect all output?
[16:53] <Bombo> ubitux: oh, thx
[16:54] <Bombo> hmmm but ffmpeg doesnt display frame errors in the source...
[19:53] <didge-> Hi.
[19:53] <didge-> How do I encode a stereo scopic HD movie into a 3D movie that may be viewed on an AppleTV with an Epson projector ?
[19:54] <didge-> Right now I see one channel on the left and one on the right
[19:54] <didge-> My glasses flicker in sync with the right and left channel.
[20:17] <francogrex> Hi I am making an mp4 movie from a big avi movie in parts, the part1 is well, but part 2 has the voices very unsynchronized, why? this is my command: ffmpeg -ss 1000 -i movie.avi -qscale 10 -r 18 -ar 22050 -ab 32k -s 403x170 -ac 1 -t 1000 part2.mp4 . Please help
[20:23] <TACPILOT> am looking for .exr support.
[20:23] <TACPILOT> looks like ffmpeg will decode but not encode it
[20:23] <TACPILOT> any one work with exr have any suggestions ?
[20:27] <naquad> hi
[20:27] <naquad> i have a jpeg picture and i want to make 1 second video from it
[20:27] <naquad> how do i do that?
[20:29] <cbsrobot> naquad: ffmpeg -loop -i input.jpg -t 1 output.mkv
[20:30] <naquad> At least one input file must be specified
[20:30] <naquad> thats what ffmpeg says
[20:30] <cbsrobot> francogrex: put the -ss after the -i
[20:30] <cbsrobot> and try -vsync 1 or -vsync 2
[20:30] <francogrex> cbsrobot: -async 1 seems to have fixed it
[20:30] <cbsrobot> ah nice
[20:31] <francogrex> but is -ss necessary after the -i ?
[20:31] <cbsrobot> naquad: so just do it
[20:31] <cbsrobot> -ss after the -i is more accurate
[20:31] <naquad> cbsrobot, ffmpeg -loop -i  1.jpg -t 1 video.mpg
[20:31] <naquad> i already did it
[20:31] <naquad> -i 1.jpg
[20:31] <cbsrobot> -ss in front of the -i is faster though
[20:32] <francogrex> cbsrobot: ok thanks
[20:32] <naquad> cbsrobot, it was -loop_input
[20:32] <cbsrobot> naquad: try ffmpeg -i -loop -t 1 video.mpg
[20:32] <naquad> thank you
[20:32] <cbsrobot> ah - you have a old version then
[21:30] <TACPILOT> .
[21:31] <TACPILOT> looking for pointers on using OpenEXR  ..?
[21:49] <raven> hi
[21:49] <raven> how to encode to mpeg2 with iframes only?
[21:51] Action: hwk openwrt time
[21:53] <ubitux> raven: -g 0 i gues
[21:53] <ubitux> +s
[21:58] <raven> how to find out if the result has really only i frames?
[22:03] <ubitux> -vf showinfo
[22:03] <ubitux> ffmpeg -i file -vf showinfo -f null -
[22:04] <ubitux> or ffprobe with -show_frames or -show_packets
[22:06] <raven> nice tnx :)
[22:34] <hwk> damn openwrt takes ages to compile
[22:34] <hwk> first build
[22:34] <hwk> 4
[22:44] <burek> hwk, how many cpu cores do you have
[22:44] <hwk> im compiling in a virtual machine ... :))
[22:44] <burek> ok
[22:45] <hwk> -j8 would be the best choice for my cpu
[22:45] <hwk> but the first build must be made using a single core, cuz you will get a compile error
[22:45] <hwk> at least thats what i remember since 6 months ago
[22:45] <hwk> single threAD
[22:46] <hwk> sotry
[23:13] <floater_f432c> hi
[23:14] <floater_f432c> trying to record images and video from webcam
[23:14] <floater_f432c> no luck
[23:15] <beastd> hwk: Did you manage to create those big pictures containing multiple screen shots of a movie including time stamps?
[23:17] <floater_f432c> [video4linux2,v4l2 @ 0x2ff39e0] Cannot find a proper format for codec_id 0, pix_fmt -1.
[23:17] <floater_f432c> but it works with cheese :(
[23:25] <hwk> beastd: i did :)
[23:25] <hwk> thank you very much
[23:26] <hwk> not sure that the timestamps are correct
[23:26] <hwk> finished compiling openwrt
[23:28] <floater_f432c> Bus 003 Device 003: ID 093a:262a Pixart Imaging, Inc.
[23:30] <floater_f432c> Cannot find codec matching selected -vo and video format 0x47504A50.
[23:31] <floater_f432c> so this is too new?
[23:32] <juanbobo> why would ffmpeg convert to 59.94 fps automatically?
[23:32] <toehio2> what free codecs would you recommend for storing a video, preserving a lot of quality?
[23:32] <juanbobo> h264
[23:33] <aphid> if by free you mean royalty-free, vp8/webm
[23:34] <toehio2> aphid: thank you, that seems to fit what i'm looking for. do you know how that compares to h264, compression-wise?
[23:35] <juanbobo> x264 is free to you unless youre using it commercially
[23:35] <juanbobo> but vp8 is good too
[23:35] <aphid> it's probably a little behind, encoder work is making progress though
[23:35] <beastd> floater_f432c: It works?
[23:36] <floater_f432c> beastd<< i plug it in, works with cheese
[23:36] <floater_f432c> ;/
[23:37] <floater_f432c> anybody knows how cheese use it?
[23:44] <beastd> floater_f432c: i am not sure i understand. what are you referring to with cheese? and what are you trying to accomplish with FFmpeg?
[23:45] <floater_f432c> beastd<< cheese (application) can use thae webcam, and i wanted to capture images/video from it
[23:47] <cbsrobot> floater_f432c: what webcam ?
[23:47] <floater_f432c> Bus 003 Device 003: ID 093a:262a Pixart Imaging, Inc.
[23:47] <floater_f432c> noname chinese, small black ball
[23:47] <floater_f432c> the stand is neat though
[23:48] <floater_f432c> it can do about 1fps 640x480
[23:51] <beastd> floater_f432c: what system are you on?
[23:51] <floater_f432c> beastd<< linux 64 bit
[23:53] <hwk> done :)
[23:53] <beastd> well if the cam is supported by v4l2 you could first try to display with ffplay
[23:53] <cbsrobot> hwk: show us an example ...
[23:55] <beastd> floater_f432c: something like "ffplay -f v4l2 -i /dev/video0" . where /dev/video0 is the video device created by video4linux for your webcam
[23:55] <floater_f432c> beastd<< no idea what cheese uses, but it seems to me that v42l does not know this webcam
[23:56] <floater_f432c> i have to dig into the cheese source to get this cam work?
[23:56] <beastd> floater_f432c: ok. i just saw you provided a bunch of more information above.
[23:56] <beastd> somehow this wasn't received displayed at my end earlier. sorry for my ignorance.
[23:57] <floater_f432c> so, yea this cam is crap, but 640x480x1 fps would be enough to take pictures in a regular basis
[23:58] <floater_f432c> now succeeded in trying it with mplayer, mplayer fails too with v42l driver
[23:59] <floater_f432c> Linux matrix.arpa 3.0.3-rt12
[23:59] <juanbobo> why are 29.97 videos converted by ffmpeg reported as 59.94?
[23:59] <floater_f432c> i have fairly new custom compiled kernel
[00:00] --- Mon May 14 2012


More information about the Ffmpeg-devel-irc mailing list