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

burek burek021 at gmail.com
Sat Nov 19 02:05:02 CET 2011


[01:22] <Shimmy> Hello everyone! I'm trying to convert a wmv file, so that its output should match the features of a third video file. Here is the info of the different third file, I want the wmv file to be converted so it should match the info like the 3rd one.
[01:23] <Shimmy> Input #0, mpeg, from 'workingsample.mpg':   Duration: 00:01:26.31, start: 0.193189, bitrate: 6301 kb/s     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 8500 kb/s, 29.97 fps, 29.97 tbr , 90k tbn, 59.94 tbc     Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
[01:23] <Shimmy> View it here in better formatting:
[01:23] <Shimmy> http://pastebin.com/JLL0aceX
[01:25] <Shimmy> I tried few options, but ffmpeg the output video quality is very low compared to the HD wmv input file. What can I do to higher the resolution/quality while having its characteristics like the one from pastebin (a device that can only read those files has to be able to read it)
[01:25] <Shimmy> ?
[01:29] <Shimmy> Anyone?
[02:00] <bsterne> Shimmy: you had about as much luck as I had asking my question here
[02:00] <bsterne> <crickets>
[04:00] <tomoyuki28jp> I'm trying to generate a movie from pictures. Is there a easy way to add effect like fade in/out between the pictures?
[04:11] <fris> how can i get the version # from this ffmpeg N-34954-g856b33f
[04:28] <bgmarete> Hello. Calling avformat_free_context() AFTER calling av_close_input_file()  -- on the same pointer -- causes a segmentation fault. Is any one of these functions enough?
[07:42] <cnatali> hello.  i'm trying to convert an m4v to mov file via ffmpeg.  The resolution in the output file is very poor.  Any suggestions?  
[07:42] <cnatali> the cmd i used is:  "ffmpeg -ss 00:10:00 -t 00:04:00 -i HI_2.m4v HI_2.mov"
[07:47] <ubitux> -vcodec copy -acodec copy?
[07:50] <cnatali> @ubitux:  that did it!  Thank You. 
[07:50] <ubitux> also put the -i first
[07:50] <ubitux> -ss and -t won't behave the same way
[07:51] <ubitux> (accuracy)
[08:42] <faLUCE> hi, is it possible to stream myfile.avi over sctp? if so, how?
[08:43] <faLUCE> burek: 
[11:01] <zetheroo> hi, I was told that I was getting this error due to something being wrong with ffmpeg : "[mp2 @ 0x18d14a0] codec type or id mismatches"
[11:01] <zetheroo> this is while trying to capture video with my webcam using guvcview
[11:02] <zetheroo> if I change the Audio setting to something else I get this "[ac3 @ 0x1762d60] codec type or id mismatches"
[11:02] <zetheroo> both messages display a second before the program crashes with Segmentation Fault
[11:10] <zetheroo> I have reinstalled ffmpeg and installed ubuntu-restricted-extras ... still no luck
[11:10] <zetheroo> :(
[11:15] <faLUCE> hi, is it possible to stream myfile.avi over sctp? if so, how?
[11:21] <zetheroo> one other thing is that when I do 'ffmpeg -formats | grep mpeg2video' I get this last line in the output: E mpeg2video      raw MPEG-2 video
[11:29] <zetheroo> anyone? ... 
[11:42] <tdr> zetheroo yeah i get that too
[11:43] <tdr> zetheroo, E = muxing support
[11:43] <zetheroo> tdr: heh ... 
[11:43] <zetheroo> what is "muxing"?
[11:44] <tdr> the opposite of demuxing
[11:44] <zetheroo> I can capture if I set the Audio Format to PCM - uncompressed (16bit) but then the file size is just huge
[11:44] <zetheroo> ok ... what is demuxing :P 
[11:44] <tdr> (mux) [Abbreviation for multiplexing] The process or equipment for combining a number of paths into a single path or bit stream for transmission.
[11:45] <tdr> it combines stuff, demuxing seperates them 
[11:45] <tdr> mixing
[11:45] <zetheroo> ah ok
[11:45] <zetheroo> so is there a codec I need to install?
[11:45] <zetheroo> like ... there seem to be two ... mp2 and ac3 ...
[11:45] <zetheroo> are these codecs?
[11:46] <tdr> there are lots of codecs that can only mutiplex or only demultiplex
[11:47] <zetheroo> is there a way to get this to work?
[11:48] <zetheroo> I am guessing that if there was you would have told me by now ... :D ... so I suppose there ain't ... 
[12:01] <faLUCE> hi, is it possible to stream myfile.avi over sctp? if so, how?
[12:02] <calin_burloiu> I am trying to extract a thumbnail from a video as in this paste: http://pastebin.com/vfMnMbbd . The problem is that this process takes too much because of an error from line 18. How can can extract thumbnail fast? (details: http://stackoverflow.com/questions/8170860/creating-thumbnails-with-ffmpeg )
[12:23] <grepper> calin_burloiu: I don't think line 18 is an 'error' strictly speaking, just some verbosity that users don't need to see.  afaik anyway
[12:23] <grepper> seeking will take some time for large seeks as ffmpeg decodes the video
[12:24] <calin_burloiu> grepper: is there a way to do seeking faster, as in a video player?
[12:26] <grepper> sorry, I'm just a user, but other than putting the -ss before the -i (which is sometimes problematic as you discovered), I don't know of any.  I think a player can only seek to a keyframe, which is why it is quick, but not frame accurate.
[12:32] <grepper> which is what the -ss before the -i FILE does
[12:37] <burek> faLUCE, I think ffmpeg doesn't support sctp yet
[12:58] <burek> grepper, put the -ss before -i
[12:58] <burek> oops
[12:58] <burek> calin_burloiu :)
[12:58] <burek> ffmpeg -y -ss $SEEK_POINT -i input.ogv -vframes 1 -s 120x90 output.jpg
[12:58] <burek> that will suffice
[13:00] <burek> zetheroo, your ffmpeg is old (i assume)
[13:01] <hallowicked> anybody know rtmpdump and if so why this happens on some things   ERROR: RTMP_Connect1, handshake failed
[13:01] <burek> can you use pastebin.com to give us the result of ffmpeg -i input file
[13:01] <zetheroo> burek: is it? I am running Ubuntu 11.10
[13:01] <calin_burloiu> burek: I tryed that (see http://stackoverflow.com/questions/8170860/creating-thumbnails-with-ffmpeg ) and I get incorrect thumbnails with gray spots. 
[13:01] <burek> calin_burloiu, then you are seeking before the first keyframe
[13:02] <burek> and then you have to use -ss after -i (to seek after each frame has been decoded, which is slow)
[13:03] <zetheroo> burek: http://paste.ubuntu.com/742182/
[13:03] <burek> hallowicked, did you try google? I get bunch of positive results?
[13:03] <calin_burloiu> burek: how can I seek to keyframes to avoid all this problems (correct thumbnail + fast)?
[13:03] <burek> zetheroo, it would be wise to compile the ffmpeg if you can
[13:04] <burek> bugs get fixed each day..
[13:04] <zetheroo> burek: is my version old?
[13:04] <burek> and your version might be old, so that codec you wish to use, might not be supported in that version
[13:04] <burek> yes
[13:04] <zetheroo> whats the latest version?
[13:04] <burek> git
[13:05] <burek> compilation takes about 15 minutes on modern machines
[13:05] <burek> and it usually doesnt take more than this http://pastebin.com/rTihbf0z
[13:05] <burek> but it depends on which codecs you want to use
[13:05] <zetheroo> burek: is there a repo source I add?
[13:05] <burek> so there is no "one and only general" tutorial how to compile a perfect ffmpeg :)
[13:06] <hallowicked> yes i have burek but it all leads to dead ends 
[13:06] <burek> well, repos will always be behind the current
[13:06] <hallowicked> unless u foulnd an actual resoltuion to that for me 
[13:06] <hallowicked> and i already use version 2.4 
[13:06] <burek> zetheroo, just read the link and try to compile the source from git
[13:06] <zetheroo> burek: I see ... 
[13:06] <burek> calin_burloiu, seeking by keyframes is done by using -ss before -i
[13:07] <burek> if you get gray images, try increasing/decreasing -ss param by several 1/100 of seconds
[13:07] <burek> like -ss 5.01
[13:07] <burek> 5.02 5.03
[13:08] <burek> hallowicked, well is rtpdump part of the ffmpeg project ?
[13:09] <burek> I mean, are you sure that error is produced by ffmpeg?
[13:09] <calin_burloiu> thanks for help :)
[13:10] <zetheroo> burek: do I compile x264 or ffmpeg
[13:11] <faLUCE> burek: how do you stream over sctp ?
[13:11] <burek> calin_burloiu :beer:
[13:11] <burek> zetheroo, it depends what video codecs you need
[13:11] <burek> x264 is most commonly used, for its superb performance
[13:12] <burek> that's why its almost always used in examples for compilation
[13:12] <burek> faLUCE, I don't
[13:12] <faLUCE> burek: which protocol do you use?
[13:12] <zetheroo> so I should only install one of them?
[13:12] <burek> faLUCE, it depends what your goal is
[13:12] <faLUCE> and format
[13:12] <faLUCE> burek: my goal is low latency
[13:13] <burek> zetheroo, x264 (or libx264) is a video encoding library, used by ffmpeg, to encode videos in h264
[13:13] <faLUCE> I wonder if is there something better than rtp on udp
[13:13] <burek> both are needed, most probably
[13:13] <zetheroo> so compiling and installing both of them is fine to do ?
[13:13] <burek> faLUCE, for low latency, udp is the best
[13:13] <burek> over ts (mpegts)
[13:14] <burek> that's what modern tv uses
[13:14] <faLUCE> burek: I know that, but I read somewhere that feng uses sctp too
[13:15] <burek> well, ffmpeg doesn't (yet)
[13:15] <faLUCE> burek: I piped ffmpeg encoding output to a sctp socket   ... I can receive sctp  video packets in this way
[13:15] <faLUCE> the problem is that I can't poll the stream source, in this way
[13:16] <burek> in which mode do you use sctp
[13:16] <faLUCE> In this way:   encoder | sctp_client_sock 
[13:17] <faLUCE> then, on the sctp_server_sock I receive all the packets
[13:17] <burek> is it message based or stream based
[13:17] <burek> ok, ok, and then?
[13:17] <faLUCE> burek: I don't know, since I used a sctp_test_program already built. it has some options, and I don't know which it uses as default
[13:17] <faLUCE> ok, the problem is that:
[13:18] <faLUCE> sorry:
[13:18] <zetheroo> burek: trying this command "./configure --enable-shared --enable-static" but get this: "Found no assembler Minimum version is yasm-1.0.0 If you really want to compile without asm, configure with --disable-asm.
[13:18] <faLUCE> encoder(+ts) | sctp_server_sock 
[13:19] <faLUCE> the problem is that this server has to send the stream to a specified port and ip
[13:19] <faLUCE> In this way, I have to open ports and do nats on the client side (same problem as udp)
[13:19] <burek> you mean client
[13:19] <faLUCE> better said:
[13:19] <faLUCE> encoder(+ts) | sctp_stream_sock 
[13:19] <burek> wait
[13:20] <burek> lets start from the beginning
[13:20] <burek> what is your goal
[13:20] <burek> describe what are you trying to achieve
[13:20] <faLUCE> my goal is to avoid nats on client side and having low latency too.
[13:20] <burek> and you are doing that because of...
[13:20] <faLUCE> if I use udp I have low latency but I must set nats
[13:21] <faLUCE> if I use tcp I hava latency and I don't set nats
[13:21] <zetheroo> "Found no assembler Minimum version is yasm-1.0.0 If you really want to compile without asm, configure with --disable-asm." ... should I disable asm ?
[13:21] <burek> zetheroo apt-get install yasm
[13:21] <burek> faLUCE, why is it a problem to setup nat
[13:21] <faLUCE> burek: configuring nats is ennoying.
[13:22] <burek> i still dont get the overall picture
[13:22] <faLUCE> I don't want to setup nats on the client. I want to see the stream everywhere
[13:22] <burek> what is the goal of the project
[13:22] <burek> do you need a surveilance
[13:22] <burek> a conference
[13:22] <burek> a live tv broadcast
[13:22] <faLUCE> suppose I'm not at home, but I have access on a pc with internet
[13:22] <burek> what is the overall goal
[13:22] <faLUCE> conference
[13:23] <burek> well, thats whats udp for
[13:23] <faLUCE> if I'm not at home, I don't want to ask people: "hey, can I configure your router?"
[13:23] <burek> oh i see
[13:23] <burek> so you need http
[13:23] <faLUCE> burek: yes, but it introduces latency
[13:23] <burek> well its simple, use udp as long as you can, and when you cant anymore, remux it and use http
[13:24] <burek> it will add a delay
[13:24] <burek> no doubt
[13:24] <faLUCE> burek: in this way I don't solve anything. My goal is to have low latency and no nats
[13:24] <burek> but that's because of your requirements
[13:24] <faLUCE> burek: as said before, I did some sctp tests
[13:24] <faLUCE> encoder(+ts) | sctp_stream_sock 
[13:25] <faLUCE> then, on the client:  sctp_receiver_sock | decoder
[13:25] <zetheroo> burek: ok x264 install ok ... at least I think so
[13:25] <faLUCE> the problem is that it's not poll-based
[13:25] <faLUCE> (and I have to open ports on receiver)
[13:25] <faLUCE> I was thinking about a nat tranversal
[13:25] <faLUCE> or something similar
[13:26] <faLUCE> do you get the point?
[13:26] <burek> faLUCE, there are 2 modes for sctp, because it combines udp and tcp
[13:26] <burek> so either you use it as tcp or as udp
[13:26] <burek> stream or message based
[13:26] <burek> further more
[13:26] <burek> with sctp, you cannot rely on older (home) routers to accept/recognize sctp
[13:26] <burek> so you have basically the same problem like with udp
[13:26] <burek> routers will silently reject that kind of traffic
[13:26] <burek> back to sqyare one
[13:27] <faLUCE> I know that, this means that over wan it can be problem
[13:27] <burek> square*
[13:27] <faLUCE> but I was thinking:  "I can try sctp, if it doesn't work then I use udp"
[13:27] <burek> sctp will give you more trouble than udp, because you are facing the same problems (routers)
[13:27] <faLUCE> burek but not nats
[13:28] <burek> nats too
[13:28] <burek> from the remote side, on the router you dont have access to
[13:28] <faLUCE> why ?
[13:28] <burek> because it will drop sctp packets
[13:29] <faLUCE> burek: do you mean wan routers?
[13:29] <burek> :)
[13:29] <faLUCE> I mean: routers over wan?
[13:29] <iskren> is there an easy way to check the different channels of a video file (video/audio/sub)
[13:29] <burek> can you plot a diagram of the network that you have in mind
[13:30] <burek> so i can plot you back
[13:30] <burek> where your problems will rise? :)
[13:30] <faLUCE> burek: my home, my friend's home
[13:30] <faLUCE> burek: my home <------> my friend's home
[13:30] <burek> iskren, yes there is
[13:30] <zetheroo> ./configure --enable-shared --enable-static --enable-libx264 --enable-libmp3lame
[13:30] <zetheroo> libx264 is gpl and --enable-gpl is not specified.
[13:31] <burek> faLUCE, your friend's router will discard sctp traffic
[13:31] <zetheroo> what now?
[13:31] <faLUCE> burek: why?
[13:31] <burek> zetheroo, add --enable-gpl
[13:31] <burek> faLUCE, because it might not be sctp aware
[13:31] <iskren> burek, I would be grateful, if you would share that information with me :)
[13:31] <faLUCE> burek: now I see, the router discards sctp traffic as default?
[13:31] <burek> iskren, what exactly your scenario is, what do you want to do?
[13:32] <burek> faLUCE, yes, mostly
[13:32] <burek> newer routers tend not to do that anymore
[13:32] <faLUCE> burek: and what about isp's routers ?
[13:32] <burek> but it will depend on how old your friend's router is
[13:32] <iskren> burek, I have an mp4 video downloaded from vimeo. It has subtitles "built in" and I want to know if I can erase them
[13:32] <burek> isp's can also discard it, if they believe that kind of traffic is not what they want to support
[13:32] <iskren> mplayer v/j/J do not seem to work (these are for toggling subtitles/sub channels)
[13:33] <burek> iskren, with "built in", do you mean burned over the video (encoded with video) or just displayed as text over a video?
[13:33] <faLUCE> burek: so basically for now there's low chance of getting sctp work for streaming over a wan
[13:33] <iskren> burek, this is exactly what I want to find out
[13:33] <burek> faLUCE exactly
[13:33] <burek> sctp is not that common still
[13:33] <burek> it is a superb protocol
[13:33] <burek> but as with ipv6, it needs time..
[13:33] <faLUCE> burek: ok, so, upd or tcp
[13:34] <burek> iskren, do ffmpeg -i inputfile
[13:34] <burek> and paste it to pastebin.com
[13:34] <faLUCE> burek: there is another option for avoiding nat.... nat tranversal
[13:34] <burek> so we can tell you :)
[13:35] <burek> faLUCE, if I were you I would use ffmpeg+ffserver over http, or just vlc
[13:35] <iskren> burek, I think I'm out of luck http://fpaste.org/oDoV/
[13:35] <burek> and would configure my router and port fwd, etc, started http streaming server and offer a real time stream to the client
[13:35] <zetheroo> burek: there are a lot of warning messages showing while configuring ffmpeg ... is that ok?
[13:35] <burek> but the problem would be how would the client send me back his stream
[13:36] <burek> iskren, yes, subs are burned into video, no way to extract it without some OCR or something
[13:36] <zetheroo> sorry I mean while doing 'make'
[13:36] <burek> zetheroo, warnings are ok, errors are not :)
[13:36] <iskren> burek I want just to remove them, but thanks for the info!!
[13:37] <burek> iskren, if the subs are below the video, you can use a video filter
[13:37] <burek> to display a black rectangle
[13:37] <iskren> you mean to crop the video a little
[13:37] <burek> or that :)
[13:38] <iskren> a black rectangle ... I want something more "professional" :-P
[13:38] <burek> well, if its under the video, nobody will notice, right ? :)
[13:38] <burek> better try to spend time to find another copy of the video, without burned in subs :)
[13:38] <iskren> but they took around 25%... so I would change the geometry of the video, and cut a substantial part
[13:39] <iskren> burek, yes, I already tried that :)
[13:39] <iskren> burek, thanks for the ideas! I'll see what I can do ;-)
[13:39] <faLUCE> burek: I still use vlc ffmpeg etc.
[13:39] <burek> ok :)
[13:39] <burek> :beer:
[13:39] <zetheroo> burek: ok all done ... any way to check if everything is as it should be?
[13:39] <faLUCE> but I have to add a nat traversal
[13:40] <burek> zetheroo: ldconfig
[13:40] <burek> and then just type ffmpeg
[13:40] <burek> version should say something from git built on 18.Nov.2011.
[13:40] <burek> faLUCE, making a live conference is not that easy
[13:41] <burek> skype and other do that by having an expensive hardware, like a proxy, for client's streams
[13:41] <zetheroo> http://pastebin.com/9q916AGj
[13:41] <burek> to avoid exactly such problems that you are facing
[13:42] <faLUCE> burek: but they don't have x264 and they are not customizable
[13:42] <burek> zetheroo its ok now
[13:42] <burek> try it with your camera now
[13:42] <faLUCE> burek: in addition, the problem is only the nat, for me
[13:42] <zetheroo> ok
[13:42] Action: a_c_m wants to cry
[13:42] <burek> faLUCE, if you are trying to have a conference, how do you plan your friend to stream his/her stream back to you
[13:43] <faLUCE> burek: in the same way.
[13:43] <a_c_m> test.wmv: Error while opening file;
[13:43] <burek> hw
[13:43] <burek> how
[13:43] <faLUCE> burek: vlc streamer + nat traversal
[13:43] <a_c_m> can't seem to get it to give me any more details than that
[13:43] <a_c_m> tried using -v 10
[13:43] <faLUCE> burek: do you know what nat traversal is?
[13:43] <a_c_m> but no lucj
[13:44] <zetheroo> as audio format what is best? mp3 mp3 or dolby ac3?
[13:44] <burek> a_c_m can you use pastebin.com
[13:45] <a_c_m> burek: yup
[13:45] <burek> faLUCE, i don't know really
[13:45] <burek> zetheroo aac+ (HE-AAC v2)
[13:45] <burek> it's still licensed and commercial though
[13:45] <burek> sadly..
[13:46] <zetheroo> burek: i don't have that
[13:46] <burek> so, just go with what you have, mp3, vorbis..
[13:46] <zetheroo> acc (low) i have
[13:46] <burek> libaacplus can give you aac+
[13:46] <burek> but, for now
[13:46] <burek> just try mp3
[13:46] <a_c_m> burek: http://pastebin.com/6JqiAiBr
[13:46] <burek> to see if it works
[13:46] <faLUCE> burek: I invite you to read something about it, if you are interested in videoconferencing
[13:47] <burek> a_c_m its simple :)
[13:47] <burek> your ffmpeg is old :)
[13:47] <faLUCE> since it allows to send packets to a host without making him open ports an doing nats
[13:47] <burek> compile it from latest git
[13:47] <burek> and it should be fine
[13:47] <a_c_m> burek: that scares the crap out of me :)
[13:47] <burek> why :)
[13:47] <a_c_m> as this is production server
[13:47] <a_c_m> but i guess as its not working atm anyway....
[13:47] <burek> well compile it statically on some offline machine
[13:47] <burek> and just copy/paste :)
[13:48] <a_c_m> heh
[13:48] <dajak> : )
[13:48] <a_c_m> guessing the RLH / Centos version is going to be too out of date as well?
[13:48] <dajak> for what?
[13:48] <a_c_m> and that there isn't some nice easy single line repro somewhere i can use instead
[13:48] <dajak> we use rhel5 :O
[13:48] <zetheroo> [libmp3lame @ 0x132a460] codec type or id mismatches
[13:49] <zetheroo> :-(
[13:49] <zetheroo> could not open codec
[13:49] <zetheroo> Segmentation fault
[13:49] <burek> zetheroo, can you use pastebin.com
[13:49] <burek> to give us the entire command + output
[13:50] <burek> a_c_m, you could try debian multimedia repo
[13:50] <burek> but i dont know about RHL
[13:50] <stonie_> ffmpeg / ffmbc works fine on xeon ?
[13:52] <zetheroo> http://pastebin.com/JTFNQnVk
[13:53] <burek> zetheroo, can you try ffmpeg -f video4linux2 -i /dev/video0
[13:53] <burek> and see what the output is
[13:54] <zetheroo> http://pastebin.com/zGuSbzv0
[13:55] <faLUCE> burek: http://manpages.ubuntu.com/manpages/natty/man8/stund.8.html
[13:55] <burek> zetheroo, ok your camera works
[13:55] <burek> try saving the video into a file to see how it looks like
[13:55] <zetheroo> :)
[13:56] <zetheroo> it won't capture though ..
[13:56] <burek> ffmpeg -f video4linux2 -i /dev/video0 -vcodec libx264 -crf 20 output.mp4
[13:56] <zetheroo> I'll try another format for the audio
[13:56] <zetheroo> oh ok
[13:56] <burek> does it have microphone on the cam
[13:56] <zetheroo> yes
[13:56] <burek> faLUCE ok
[13:57] <burek> type arecord -L | grep front
[13:58] <burek> (the last line is for zetheroo) :)
[13:58] <zetheroo> oh
[13:58] <zetheroo> http://pastebin.com/1NK5vja9
[13:59] <burek> captcha :)
[13:59] <zetheroo> try now
[14:00] <zetheroo> latest command output: http://pastebin.com/VDj4xcwK
[14:01] <burek> ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i front:CARD=U0x46d0x809,DEV=0 -vcodec libx264 -crf 20 -acodec libmp3lame -ar 44100 -ab 128k output.mp4
[14:02] <zetheroo> http://pastebin.com/fQ3PT2ik
[14:02] <burek> oh :)
[14:02] <burek> we didnt install alsa, before compiling
[14:02] <burek> so ffmpeg didnt compile the support for alsa :D
[14:03] <zetheroo> i thought we use pulse now
[14:03] <burek> go to ffmpeg folder
[14:03] <burek> make uninstall; make distclean
[14:03] <burek> apt-get install alsa-base
[14:03] <burek> and do configure, make again
[14:06] <zetheroo> alsa-base is already the newest version
[14:08] <burek> hmh
[14:09] <burek> apt-get install alsa-utils ?
[14:09] <burek> oh
[14:09] <zetheroo> alsa-utils is already the newest version
[14:09] <burek> apt-get install libasound2-dev libasound2
[14:09] <burek> and when configure ends
[14:10] <burek> see among last lines is there a support for oss and/or alsa
[14:10] <zetheroo> you mean after re configuring ffmpeg?
[14:10] <burek> yes
[14:12] <zetheroo> ./configure --enable-shared --enable-static --enable-libx264 --enable-libmp3lam
[14:12] <zetheroo> Unknown option "--enable-libmp3lam".
[14:12] <burek> lame
[14:13] <zetheroo> ?
[14:13] <burek> you are missing the rest of the configure line
[14:13] <burek> with enable-gpl and stuff
[14:13] <zetheroo> oh
[14:14] <zetheroo> Enabled outdevs: alsa			oss
[14:14] <burek> good
[14:14] <burek> thats what we were after :)
[14:14] <zetheroo> Enabled indevs:alsa			fbdev			oss            dv1394			lavfi			v4l2
[14:14] <burek> great
[14:14] <zetheroo> now make again?
[14:14] <burek> now make, make install, ldconfig
[14:14] <burek> and try again
[14:14] <burek> :)
[14:14] <zetheroo> ok
[14:15] <stonie> ffmpeg / ffmbc works fine on xeon ?
[14:19] <a_c_m> anyone used encoding.com?
[14:22] <matthiaskrgr> LOL
[14:22] <matthiaskrgr> you can use this site to convert PNG to JPG XD
[14:24] <zetheroo> after installing etc ... http://pastebin.com/yLyxfpUn
[14:25] <zetheroo> burek: ^
[14:25] <burek> ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i front:CARD=U0x46d0x809,DEV=0 -vcodec libx264 -crf 20 -acodec libmp3lame -ar 44100 -ab 128k output.mp4
[14:26] <burek> what about that
[14:26] <zetheroo> [alsa @ 0x2467040] cannot set channel count to 2 (Invalid argument)
[14:26] <zetheroo> front:CARD=U0x46d0x809,DEV=0: Input/output error
[14:26] <burek> ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i front:CARD=U0x46d0x809,DEV=0 -vcodec libx264 -crf 20 -acodec libmp3lame -ar 44100 -ab 128k -ac 1 output.mp4
[14:27] <burek> oh
[14:27] <burek> wait
[14:27] <burek> ffmpeg -f video4linux2 -i /dev/video0 -f alsa -ac 1 -i front:CARD=U0x46d0x809,DEV=0 -vcodec libx264 -crf 20 -acodec libmp3lame -ar 44100 -ab 128k output.mp4
[14:27] <burek> its a mono mic :)
[14:28] <zetheroo> http://pastebin.com/pK4K8Vpy
[14:30] <burek> can you play mp4 file
[14:30] <burek> does it work
[14:31] <zetheroo> plays in vlc ... though it stops here and there
[14:32] <burek> ok, then your camera works
[14:32] <burek> now, what you want to do actually
[14:34] <zetheroo> well in guvcview I want to be able to use an audio format other than PCM
[14:35] <burek> man guvcview? :)
[14:35] <zetheroo> but it keeps segfaulting ... 
[14:36] <zetheroo> oh ... ok
[14:36] <zetheroo> [ac3 @ 0x7f3798025e00] codec type or id mismatches
[14:36] <burek> its not ac3
[14:36] <zetheroo> this happens with each audio format other than PCM
[14:36] <burek> ffmpeg works, camera works
[14:36] <burek> guvcview doesn't work now
[14:36] <zetheroo> ok
[14:36] <burek> thats why i said man guvcview
[14:36] <burek> to set some parameters
[14:38] <zetheroo> I cannot see anything useful there ... 
[14:40] <zetheroo> mentions video input formats but nothing about audio
[14:40] <zetheroo> anyhow ... thanks for all your help
[14:40] <zetheroo> I'll try again tomorrow .... it's late here ;)
[15:53] <dajak> What could be wrong with my packet if avcodec_decode_video2() inside av_packet_split_side_data() ? : (
[15:56] <dajak> or is there a way to check if my packet is correct?
[16:05] <dajak> @dajak thats what parsers are for
[16:10] <Zeqadious> shouldn't ffmpeg built with --enable-vdpau have symbols in the resulting libs?
[16:26] <dajak> why should they
[16:28] <dajak> you should enable debug  and disable optimizations
[16:39] <Zeqadious> dajak: When building XBMC against ffmpeg GIT, the configure looks for: checking for ff_vdpau_vc1_decode_picture in -lavcodec... no
[16:40] <Zeqadious> ffmpeg 0.7.x seemed to have this symbol, but 0.8.x (git head), doesn't.  Trying to figure out if this is by design or a bug in the build process somewhere.
[16:40] <Zeqadious> dajak: insterestingly the static lib built libavcodec.a does have this symbol :)
[16:41] <Zeqadious> interestingly*
[18:36] <Snaggle> I'm trying to compile libavcodec as a separate package, and then have ffmpeg/libav-everything-else link to this separate libavcodec (as opposed to a monolithic build-everything-together, which I have working).  I can build libavcodec by itself with --disable-{everything} during ./configure, but when I try to make a new build for everything _but_ libavcodec, this 2nd build fails with "No rule to make target `libavcodec/libavcodec.dylib".  H
[18:36] <Snaggle> I make the everything-but-libavcodec build find my existing external libavcodec?
[18:38] <Zeqadious> You probably would be better off building it monolithic and then packaging it in pieces.
[18:38] <kakohari> Hi there, I'd like to change the pixel chroma format. Capturing from Decklink-cards gives UYVY, everything else seems to need YUV. How could I transform this without changing anything else with ffmpeg?
[18:39] <kakohari> Hmm, it is not the chroma itself, is is the color-subsampling-format which I meant.
[18:40] <Snaggle> Zeqadious: I'm splitting it because I was trying to get libavcodec support in OpenCV and OpenCV support in libavfilter.  And if libav is built monolithic, this would create circular dependencies
[19:40] <BlackBishop> [matroska,webm @ 0x688e90] Too many streams
[19:40] <BlackBishop> is this the cause of having ~ 39 subtitles in ?
[21:49] <fris> how can i tell which ffmpeg version , ffmpeg -version spits out ffmpeg N-34954-g856b33f
[21:50] <relaxed> fris: 34954 is the revision number
[22:01] <fris> so 0.856 ?
[22:02] <sacarasc> From git is not a release.
[22:03] <sacarasc> If anything, it's an early form of 0.9.
[22:03] <fris> ahh ok
[22:12] <macromancer> hey i'm running ffmpeg on ubuntu 8.04 jeos...and i'm getting this error:
[22:12] <macromancer> [flv @ 0x8f37a80] Could not find codec parameters (Audio: speex, 16000 Hz, 1 channels)
[22:12] <macromancer> [flv @ 0x8f37a80] Could not find codec parameters (Audio: speex, 16000 Hz, 1 channels) \ /usr/share/red5/webapps/audiorecorder/streams/audioStream_1321648462114_43.flv: could not find codec parameters
[22:12] <macromancer> that "\" is a line break
[22:12] <macromancer> ffmpeg -i /usr/share/red5/webapps/audiorecorder/streams/audioStream_1321648462114_43.flv -ac 2 -ar 44100 /var/www/tmp/streams/audioStream_1321648462114_43.wav
[22:12] <macromancer> is my command
[22:12] <macromancer> ffmpeg -i /usr/share/red5/webapps/audiorecorder/streams/audioStream_1321648462114_43.flv /var/www/tmp/streams/audioStream_1321648462114_43.wav
[22:12] <macromancer> doesn't work either
[23:30] <Freakshow> iive: ping
[23:34] <necromancer> apparently that last problem has to do with Ubuntu
[23:34] <necromancer> tried it on my Debian server and it worked kinda
[23:34] <necromancer> now i get this: https://gist.github.com/1377987
[23:34] <necromancer> thoughts?
[23:35] <necromancer> OH
[23:35] <necromancer> APPARENTLY whoever DELETED my fucking ffmpeg install also deleted its reference to LAME...
[23:35] <necromancer> fuck you dreamhost
[23:36] <sacarasc> Also, 0.5.5 is rather old...
[23:37] <necromancer> pretty sure i compiled it from git
[23:39] <necromancer> it must be reading the wrong binary
[23:48] <iive> Freakshow: timeout
[00:00] --- Sat Nov 19 2011


More information about the Ffmpeg-devel-irc mailing list