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

burek burek021 at gmail.com
Fri Sep 21 02:05:01 CEST 2012


[05:13] <mrugiero> Hi, I'm trying to build ffmpeg with libx264 support, I followed this guide http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide, when I'm trying to configure ffmpeg it says "ERROR: libx264 not found".
[05:13] <mrugiero> Does anyone know how can we solve it?
[05:14] <mrugiero> I did followed the same procedure this morning on another computer this morning and worked flawlessly, except I had to add --enable-shared to x264 config.
[05:30] <mrugiero> Already solved, thanks.
[05:40] <chamunks> I have to set myself up a zoneminder instance and I want to convert the http://camip/img/video.asf feed to mpeg or something more compatible.
[05:40] <chamunks> I have a crap old HP laptop for doing this and it has to handle about 3 cams and 2 webcams
[05:59] <fling> [alsa @ 0x184a380] cannot set sample format 0x10000 2 (Invalid argument) http://dpaste.com/803372/
[05:59] <fling> I need to fix it somehow
[05:59] <fling> I want to capture today
[09:07] <fling> how can I compress my audio?
[10:20] <fling> ffmpeg -i infile.flac -f alaw outfile.alaw
[10:20] <fling> ^ I hear only noise in outfile.alaw
[10:25] <fling> looks like this is right > for file in * ; do ffmpeg -i $file -acodec pcm_alaw -ar 8000 -f alaw ${file/flac/alaw} ; done
[12:21] <zonemiderN00B> burek, ?
[12:27] <zonemiderN00B> ?
[12:51] <burek> hi zonemiderN00B :)
[12:51] <burek> <chamunks> I have a crap old HP laptop for doing this and it has to handle about 3 cams and 2 webcams
[12:51] <burek> just forget about it
[12:52] <burek> especially if they are connected via usb
[12:52] <burek> fling, also update your ffmpeg
[13:06] <zonemiderN00B> burek, i'm back :)
[13:06] <burek> welcome back :)
[13:07] <burek> http://ffmpeg.org/trac/ffmpeg/ticket/1753
[13:07] <burek> until that is implemented (if) there should be another method used for buffering/delaying
[13:08] <burek> the samplicator's -x option doesn't do what is expected from the docs, it just sleep()s for N mseconds ignoring packets in that time period :)
[13:08] <burek> so I'm modifying samplicator now to add some buffering to it
[13:33] <fling> burek: ok :p
[14:04] <fling> burek: I have updated it
[14:05] <fling> I have 5 problems at least
[14:05] <fling> 1) audio/video desync everywhere (capture/reencode/remux)
[14:06] <fling> 2) video stops capturing with strange error
[14:06] <fling> 3) can not capture from my soundcard (but I can with arecord)
[14:07] <fling> 4) alsa xruns (mostly probably another alsa rergression in the kernel)
[14:08] <fling> 5) video is not playing on windows or if uploaded on youtube (but plays with my mplayer2)
[14:24] <relaxed> Without pastebining what you're doing no one can help you.
[14:24] <relaxed> fling: ^
[14:25] <fling> relaxed: [alsa @ 0x184a380] cannot set sample format 0x10000 2 (Invalid argument) http://dpaste.com/803372/
[14:26] <fling> relaxed: but I'm capturing with arecord > arecord -f S32_LE -r 192000 $output
[14:26] <fling> Recording WAVE '/home/fling/capture/2012.09.20-19:26:22.wav' : Signed 32 bit Little Endian, Rate 192000 Hz, Mono
[14:27] <relaxed> Try with -r:a 48000 before the input.
[14:28] <relaxed> Is that from arecord?
[14:29] <fling> relaxed: http://dpaste.com/803533/
[14:31] <relaxed> ffmpeg -f alsa -ac 1 -c:a pcm_s32le -r:a 192000 -i hw:0
[14:32] <relaxed> Also, you should at least use the latest version of ffmpeg or git.
[14:32] <fling> http://dpaste.com/803535/
[14:32] <fling> ok, updating
[14:33] <fling> relaxed: also 'arecord | aplay' works even if I do not specify any options
[14:35] <fling> Cloning into bare repository '/usr/portage/distfiles/egit-src/ffmpeg.git'...
[14:42] <fling> relaxed: ffmpeg version N-44632-ga16c512
[14:42] <fling> '[alsa @ 0x127b270]' changed color to magenta, everything else looks the same
[14:46] <fling> relaxed: so is it a bug? > cannot set sample format 0x10000 2
[14:46] <fling> or is it because of something wrong in alsa again?
[15:00] <relaxed> pastebin the output of "ffmpeg -f alsa -i hw"
[15:11] <fling> relaxed: http://dpaste.com/803546/
[15:12] <lemonzest> when i did it, i got alsa sample rate 48000 blah 16bit 1536kb/s etc
[15:12] <lemonzest> Input #0, alsa, from 'hw:0':
[15:12] <lemonzest>   Duration: N/A, start: 1348146753.421640, bitrate: N/A
[15:12] <lemonzest>     Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[15:13] <lemonzest> fling: what is your problem btw?
[15:13] <fling> lemonzest: [alsa @ 0x2454170] cannot set sample format 0x10000 2 (Invalid argument)
[15:13] <lemonzest> ah
[15:13] <fling> lemonzest: ffmpeg is not capturing from a soundcard
[15:13] <lemonzest> bummer
[15:13] <fling> lemonzest: I do not want to capture with arecord
[15:14] <lemonzest> my version is 10.4
[15:14] <fling> 03:01.0 Multimedia audio controller: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller (rev 02)
[15:14] <fling> Subsystem: VIA Technologies Inc. M-Audio Delta 1010LT Kernel driver in use: snd_ice1712
[15:14] <fling> lemonzest: my is latest
[15:15] <lemonzest> tried with the static nightly from the page, and i get "alsa not reqognised" so i cant help further
[15:15] <lemonzest> i use a cmedia 8738 a xonar and onboard and hdmi (no recording)
[15:16] <lemonzest> but the other 3 are fine
[15:16] <lemonzest> yeah just checked, my 3 recording devices work hw:0 to 2
[15:17] <lemonzest> fling: how is it set up? what does arecord -l give you?
[15:17] <fling> lemonzest: what is your kernel version? I also have alsa xruns on all the boxen
[15:18] <fling> lemonzest: http://dpaste.com/803547/
[15:18] <lemonzest> 3.3.8
[15:18] <lemonzest> no xruns here
[15:19] <lemonzest> does soundrecoreder etc work?
[15:19] <fling> soundrecorder?
[15:19] <lemonzest> its a gnome app, sorry
[15:19] <fling> idk, sorry :p
[15:19] <fling> arecord works fine
[15:19] <lemonzest> can you record from a mic with something else?
[15:20] <lemonzest> oh right
[15:20] <lemonzest> so recording works, just not with ffmpeg?
[15:20] <lemonzest> tried with another ver?
[15:20] <fling> http://dpaste.com/803533/
[15:20] <fling> lemonzest: yes, tried with your version
[15:20] <lemonzest> so its broke then in git?
[15:21] <fling> umm?
[15:21] <fling> if it is a bug, it is not fixed yet
[15:21] <lemonzest> yeah
[15:21] <lemonzest> glad what little i did sorta helped :)
[15:21] <fling> also intel_hda mic in works on 2.6.39 but not on any newer kernel
[15:22] <lemonzest> works here
[15:22] <lemonzest> with 3.3.8 mageia kernel
[15:22] <fling> and I have alsa xruns since 3.x.x
[15:22] <lemonzest> Linux electronicbox 3.3.8-desktop-2.mga2 #1 SMP Mon Jul 30 21:35:06 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[15:22] <fling> there are different intel mobos
[15:22] <fling> so mic in is not working on half of them
[15:22] <lemonzest> heh, this is amd S800 something
[15:22] <fling> electronicbox :D
[15:23] <lemonzest> fling: it is a box of electronics :P
[15:23] <fling> I may downgrade to 3.0.0 or something older and alsa xruns will go away probably
[15:24] <fling> but it is the pain
[15:25] Action: dTal just got an email from his computer-illiterate manager asking if we have Quicktime Pro, and noting that we could upgrade to it from QuickTime 7 for a mere 20 pounds
[15:25] <dTal> Reasoning? "It seems that the pro version of this video player has a function to export the video as a sequence of single frame png files."
[15:32] <lemonzest> O_O
[15:32] <lemonzest> some people
[15:32] <lemonzest> ffmpeg does all that, for FREE
[15:33] <lemonzest> thanks guys btw :D awesome software
[15:43] <relaxed> are you using pulse too?
[15:48] <lemonzest> heh, of course
[15:48] <lemonzest> forced resampling to 128Khz too
[15:49] <jShaf> can ffmpeg transcode vp8 to H264 and vice versa?
[15:49] <lemonzest> jShaf: can trans anyting to anything
[15:49] <lemonzest> but not change it as in no reencode
[15:49] <jShaf> reencode?
[15:50] <lemonzest> jShaf: i dont know if you want to re-ecode from vp8 to h264, or "change it from one format to another" without the encode step
[15:51] <jShaf> was thinking in terms of webrtc/vp8 to sip/h264 for video conference
[15:51] <jShaf> there is already webrtc to sip solution
[15:51] <jShaf> so I began researching just now on vp8 to h264
[15:52] <jShaf> so that folks on web can video chat with folks using sip video softphone
[15:55] <jShaf> so in my simple thinking, if it can transcode, awesome but when you say, no re-encoding, thats where I need to learn more
[15:56] <jShaf> whats the difference between encoding and transcoding? lemonzest
[15:57] <lemonzest> encoding (hopefully lossless or a camcorder or something) is usually from a source to an end format, transcoding is from one compressed format to another
[15:57] <lemonzest> with quality loss useually
[16:10] <jShaf> got it, thanks
[16:20] <tr33fall> my doubt is here since it envolves some code: http://pastebin.com/zKPtLMS8
[16:23] <tr33fall> but basically i capture frame in android (format NV21) -> ffmpeg (in here i say that the format is YUV420P but dont do any conversion) -> server(image is in grayscale) , but if try to convert from NV21 to YUV420P server wont show any images
[16:37] <burek> fling, did you resolve your issue
[16:40] <fling> burek: which one? :p
[16:40] <fling> burek: no
[16:41] <fling> but now I have new ffmpeg and mplayer2 broken
[16:41] <burek> fling, pastebin the output of: arecord -L
[16:41] <fling> burek: http://dpaste.com/803575/
[16:41] <burek> now try: ffmpeg -f alsa -i front:CARD=M1010LT,DEV=0
[16:42] <burek> and pastebin the output
[16:42] <fling> http://dpaste.com/803576/
[16:42] <burek> and this: ffmpeg -f alsa -i default:CARD=M1010LT
[16:43] <fling> oh!
[16:43] <fling> http://dpaste.com/803578/
[16:43] <burek> yeah
[16:43] <burek> misconfigured alsa
[16:43] <fling> great
[16:43] <burek> it tries to capture from front speakers :)
[16:43] <fling> .asoundrc > https://gist.github.com/3756343
[16:44] <burek> consult people from #alsa please
[16:44] <fling> burek: thanks!
[16:44] <burek> :beer: :)
[16:49] <tr33fall> here is full C code used: http://pastebin.com/BW30mYfR
[16:50] <burek> tr33fall, just a remark
[16:50] <burek> do you really think someone is going to go through your entire source code, searching for errors?
[16:50] <tr33fall> oh now
[16:50] <tr33fall> oh no
[16:50] <tr33fall> just the conversion part
[16:51] <burek> narrow down your issue and people might be willing to take a look, but when they open 2-3 pages of code, it's just too boring to even read
[16:51] <tr33fall> because im trying to convert from NV21 pix_fmt to yuv420p and i get the packets transmitted but no image is shown
[16:51] <burek> did you check how does ffmpeg do that?
[16:51] <tr33fall> the conversion?
[16:51] <burek> did you check ffmpeg's source code
[16:51] <tr33fall> yes
[16:52] <tr33fall> the conversion example is from there :)
[16:52] <burek> well, then you should know how it is properly done, right?
[16:52] <tr33fall> yes
[18:01] <Utopiah> hi #ffmpeg
[18:03] <Utopiah> Im trying to convert from http://pastebin.com/raw.php?i=pbMb97F2 to http://www.tvdelivery.ro/html/?page_id=176
[18:04] <Utopiah> but I admit I dont really know what Im doing :-# I tried with options  -acodec -vcodec -s but the best I get is a duration of 00:00:15.36 rather than 00:00:15.00 or an usable format
[18:13] <sacarasc> So you want to cut ~1/3 of a second and make it so it matches their specs?
[18:13] <chamunks> burek, any tips on how I should convert /dev/video0-2 into an mpeg stream possibly?
[18:17] <burek> chamunks
[18:17] <burek> did you try
[18:18] <burek> Grabbing/Capturing
[18:18] <burek> http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input#Linux
[18:40] <chamunks> burek, no i hadn't had much luck with this endeavour
[18:41] <burek> well, that's how you use /dev/videoX to capture it
[18:41] <burek> for everything else, please use pastebin
[18:50] <JCDenton> Getting an error when compiling ffmpeg with openjpeg support. It seems unable to find it, even though I've compiled and installed it without issue. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -E -o /tmp/ffconf.g5ISbtm5.o /tmp/ffconf.hLd9YIsn.c
[18:50] <JCDenton> /tmp/ffconf.hLd9YIsn.c:1:22: error: openjpeg.h: No such file or directory; ERROR: libopenjpeg not found
[18:51] <JCDenton> /usr/local/include/openjpeg-1.99/openjpeg.h is the location of the file it can't find
[18:55] <burek> JCDenton
[18:56] <burek> check /usr/local/lib/libopenj*
[18:56] <burek> does it exist
[18:56] <JCDenton> /usr/local/lib/libopenjpeg.a   /usr/local/lib/libopenjpeg.so	/usr/local/lib/libopenjpeg.so.1.99.0    /usr/local/lib/libopenjpeg.la  /usr/local/lib/libopenjpeg.so.1
[18:56] <burek> try typing ldconfig
[18:56] <JCDenton> Already did
[18:56] <JCDenton> No luck
[18:57] <burek> what does your config.log looks like (pastebin) ?
[18:58] <JCDenton> http://pastie.org/4761624 last 500 lines, if that's enough.
[19:01] <burek> can you just pastebin the content of ld.so.conf?
[19:01] <burek> if you are on debian/ubuntu, then /etc/ld.so.conf
[19:01] <JCDenton> include /etc/ld.so.conf.d/*.conf
[19:02] <JCDenton> that's it. heh
[19:02] <JCDenton> hang on
[19:02] <JCDenton> /usr/local/lib, /usr/local/lib, and /usr/lib/x86_64-linux-gnu
[19:02] <burek> also, check the config.log a couple of lines above, where it says: #include <lame/lame.h>
[19:03] <burek> lame.h is in a subdir
[19:03] <burek> as openjpeg.h is
[19:03] <burek> but include expects it in /usr/local/include
[19:03] <burek> not /usr/local/include/openjpeg-1.99
[19:03] <JCDenton> I thought that was odd. Could I just symlink it?
[19:04] <burek> well, I think ld.so.conf.d/*.conf might contain something about openjpeg
[19:04] <burek> which doesn't correctly set the path
[19:04] <JCDenton> there were two .conf files in there, which are just what I posted above
[19:04] <JCDenton> /usr/local/lib, /usr/local/lib, and /usr/lib/x86_64-linux-gnu
[19:04] <JCDenton> Add that path in there somewhere?
[19:05] <burek> hmh, let me ask google for a second
[19:06] <burek> http://ffmpeg.org/pipermail/ffmpeg-user/2011-July/001691.html
[19:06] <burek> :)
[19:09] <burek> btw are you compiling the latest ffmpeg and latest openjpeg?
[19:09] <JCDenton> Symlinking gives another error, but the cflags tag works, thanks
[19:09] <JCDenton> and I am
[19:21] <JCDenton> http://pastie.org/4761756 Hum. Now openjpeg gives an error when compiling
[19:36] <chamunks>  burek that link outputs to a file is there a way to push it just directly to a stream?
[19:39] <burek> chamunks of course
[19:39] <burek> instead of specifying the file
[19:39] <burek> specify the output stream
[19:39] <burek> like udp://remote_ip:port
[19:39] <burek> or rtmp://...
[19:39] <chamunks> oh beautiful it looks like it wants rtsp http://www.zoneminder.com/wiki/index.php/How_to_setup_H.264_streaming_with_Ffmpeg_monitor_from_an_Axis_P3343-VE-12mm_camera
[19:40] <chamunks> thats not related to my cameras just reference to it showing that it will accept those imputs.
[19:41] <burek> yeah
[19:41] <chamunks> *input
[19:41] <burek> you can even pipe it to some other process
[19:41] <chamunks> oh nice
[19:41] <burek> if you have a "professional" broadcaster or something :)
[19:42] <chamunks> well my cause is just to catch some stupid punk "college" kid who's renting from my basement and robbing the other tennants.
[19:42] <chamunks> this kid has cost me 2 tennants them a laptop and 200$ straight from their wallet.
[19:43] <chamunks> plus six hours of sleep working on learning and configuring zoneminder and another 200$ of extra equipment just to catch this little punk or stop him from doing things.
[19:45] <chamunks> ok in this case of ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 (can i stream this to vlc to test?)
[19:46] <burek> yes
[19:46] <burek> ffmpeg -f v4l2 -r 25 -s 640x480 -i /dev/video0 -vcodec libx264 -f mpegts udp://localhost:1234
[19:47] <burek> and start vlc like: vlc udp://@:1234
[19:52] <chamunks> burek,  ok I'm getting *** This program is depricated ***
[19:52] <JEEB> that is libav, because in libav the ffmpeg binary was left unmaintained
[19:52] <JEEB> and was removed after the 0.8 release
[19:52] <chamunks> http://paste.ubuntu.com/1217225/
[19:52] <teratorn> ffmpeg supports xvp8 yet? ;)
[19:52] <JEEB> switch to the avconv command
[19:52] <JEEB> teratorn, lol
[19:53] <JEEB> not like it can encode much but intra atm
[19:53] <chamunks> so just use avconv in place of v4l2?
[19:53] <JEEB> and that isn't exactly useful
[19:53] <JEEB> no, in place of 'ffmpeg'
[19:53] <teratorn> JEEB: sure!
[19:53] <teratorn> JEEB: might be better than libvpx
[19:53] <teratorn> (haha)
[19:53] <t355u5> Quite interesting that 1.11.2 does not support libopus. I believe that someone forgot to update the configure script.... Unknown option "--enable-libopus".
[19:53] <teratorn> i guess libvpx isn't all that bad nowadays
[19:53] <JEEB> teratorn, it might end up being better quite much, yes
[19:53] <JEEB> esp. from a usability standpoint
[19:53] <JEEB> > crf
[19:53] <teratorn> I sure hope so
[19:53] <JEEB> boy I wish libvpx had crf
[19:53] <chamunks> JEEB, ffmpeg is huge i cant imagine it is discontinued.
[19:54] <JEEB> chamunks, the project isn't
[19:54] <teratorn> we are getting very occasional stream corruption in our libvpx pipeline
[19:54] <JEEB> your ffmpeg binary comes from project libav
[19:54] <JEEB> they rewrote parts of ffmpeg and named that avconv
[19:54] <teratorn> the decoded data just looks garbled in a section of the video
[19:54] <JEEB> ffmpeg (the project) then merged that into the ffmpeg (tool)
[19:54] <teratorn> and the stream does not appear to correct itself quickly :/
[19:54] <JEEB> you are using libav -> use 'avconv'
[19:54] <JEEB> because that is the one that was updated
[19:55] <JEEB> the ffmpeg binary is basically a very old ffmpeg
[19:55] <chamunks> JEEB, so will the syntax be mostly the same as this: ffmpeg -f v4l2 -r 25 -s 640x480 -i /dev/video0 -vcodec libx264 -f mpegts udp://localhost:1234
[19:55] <chamunks> i mean my /video0 is a -s 1920x1080
[19:55] <JEEB> yes, just switch to avconv from ffmpeg and you will get a newer tool used
[19:55] <teratorn> so ffmpeg, or a compatible product, is no longer available through Debian?
[19:55] <teratorn> is that correct?
[19:56] <JEEB> I think they have an ffmpeg package as well?
[19:56] <JEEB> not sure tho
[19:56] <teratorn> because I think my company has a major problem with that
[19:56] <teratorn> JEEB: no they dont
[19:56] <JEEB> \o/
[19:56] <chamunks> JEEB, new issue then http://paste.ubuntu.com/1217232/
[19:56] <JCDenton> Bah. Well now I'm having problems with libvpx
[19:56] <teratorn> debian should not be rejecting ffmpeg from packaging just because libav is made available too
[19:56] <JEEB> teratorn, I do agree
[19:56] <ubitux> teratorn: maybe debian-multimedia, or build it yourself, or complain to the packager
[19:57] <JEEB> personally I'd like to see both available
[19:57] <ubitux> who is libav-sided, good luck, we tried several times
[19:57] <JCDenton> ffmpeg wouldn't compile because libvpx wasn't compiled with --enable-shared apparently, and libvpx gives an error when trying to compile with the flag.
[19:57] <teratorn> JEEB: it probably needs a new packager, if the current one is incompetent? or if there is not one?
[19:57] <chamunks> apparently v4l2 is an unknown format
[19:57] <ubitux> he is libav-sided
[19:57] <JEEB> chamunks, seems like ther is no such formats, yes
[19:57] <teratorn> he needs to be replaced if he is standing in the way of a functional Debian ffmpeg package.
[19:58] <chamunks> well video4linux exists
[19:58] <teratorn> that is just normal Debian procedure
[19:58] <JCDenton> http://pastie.org/4761996
[19:58] <JEEB> chamunks, try that
[19:58] <ubitux> chamunks: you are not using ffmpeg, but libav
[19:58] <JCDenton> Do you have non-free / contrib enabled?
[19:58] <ubitux> chamunks: and libav doesn't have "v4l2"
[19:58] <ubitux> try "video4linux2"
[19:58] <ubitux> or use ffmpeg
[19:58] <JEEB> you could also ask on #libav
[19:58] <chamunks> i was just told to not use ffmpeg :S
[19:58] <ubitux> chamunks: by who?
[19:58] <JEEB> the project he meant
[19:59] <JEEB> I was talking about the tool
[19:59] <chamunks> ubitux, JEEB
[19:59] <JEEB> because the ffmpeg tool in libav is outdated
[19:59] <teratorn> if you are using libav, then use avconv. end of story.
[19:59] <burek> JEEB, the point of "THIS PROGRAM IS DEPRECATED" message is intentional
[19:59] <chamunks> i really have zero preference
[19:59] <ubitux> yes, but complain on their channel
[19:59] <teratorn> that too
[19:59] <chamunks> I just want to catch this idiot stealing stuff lol.
[19:59] <burek> no need to pretend it was just a coincidence
[19:59] <chamunks> so whatever really works i guess
[19:59] <teratorn> burek: sure.
[20:00] <chamunks> and will run on limited hardware.
[20:00] <JEEB> burek, I have no idea, but I'm just trying to tell people what it means
[20:00] <burek> so, at least no need to justify libav wrongdoings
[20:00] <teratorn> burek: it was clearly intentional. and very bad for a DD. Is he a DD actually?
[20:00] <JEEB> burek, I'm not trying to justify anything
[20:00] <burek> it already stated what it means
[20:00] <chamunks> ok ok so ubitux to i want to try updating my ffmpeg to that static build?
[20:00] <burek> and they told it several times directly
[20:00] <burek> so at least we don't need to support that kind of attitude
[20:00] <chamunks> or what am i trying to learn here so that I can make this work lol.
[20:00] <ubitux> chamunks: the static build is just a helper if you're too lazy to build it yourself
[20:01] <JEEB> I have absolutely no idea what you're talking about burek
[20:01] <burek> shortly, chamunks, apt-get --purge remove ffmpeg
[20:01] <JEEB> ...
[20:01] <burek> and compile ffmpeg from git
[20:01] <ubitux> chamunks: basically if you just want to try ffmpeg
[20:01] <burek> or use static build
[20:01] <JEEB> that will purge all of the libavcodec packages, no?
[20:01] <JEEB> that's generally a /bad/ idea
[20:01] <JEEB> esp. on desktops
[20:01] <chamunks> well a compile from git shouldnt be too difficult yes?
[20:01] <JEEB> where packages depend on them
[20:01] <burek> JEEB > #libav 2>&1
[20:01] <burek> it's their fault
[20:01] <JEEB> I was telling that to chamunks
[20:01] <chamunks> i just need to test it on my desktop than replicate that proceedure into the zoneminder (repurposed crap HP laptop_
[20:01] <JEEB> not ubitux or others
[20:02] <burek> so let people actually complain to the real source of issues
[20:02] <burek> not to us
[20:02] <JEEB> yes
[20:02] <JEEB> ARGH
[20:02] <ubitux> you guys should really complain to #ubuntu, #libav, #debian etc :p
[20:02] <burek> ok ok
[20:02] <JEEB> you yes, were misreading me
[20:02] Action: JEEB herps a derp
[20:02] <chamunks> ok this is getting crazy lol.
[20:02] <ubitux> what is crazy?
[20:02] <chamunks> just people debating about this lol.
[20:02] <JEEB> chamunks, you could ask #libav how it's done correctly in avconv or use the static build / compile ffmpeg yourself
[20:02] <JEEB> :)
[20:02] <JEEB> there's no debate
[20:02] <chamunks> im trying to follow along getting a headache lol
[20:03] <JEEB> it's just that burek seemingly misunderstood something, that's all
[20:03] <chamunks> ok thats what i'm gathering
[20:03] <chamunks> just compile from git i suppose
[20:03] <chamunks> or ya know what static because I dont have time
[20:03] <JEEB> gup
[20:03] <JEEB> yup
[20:03] <chamunks> hehe gup
[20:03] <ubitux> you can also just replace v4l2 with video4linux2 in your cmd line
[20:03] <JEEB> I was one line too low with my fingers :)
[20:04] <ubitux> but i won't help you anymore with that tool if it still doesn't work
[20:04] <ubitux> we can't support it here
[20:04] <chamunks> ubitux, fair enough
[20:04] <ubitux> note that both "video4linux2" and "v4l2" work in ffmpeg
[20:04] <chamunks> well I just want to get my head wrapped around this
[20:04] <chamunks> then I gotta stream it to zoneminder after.
[20:04] <chamunks> plus then I have to make that happen automatically on boot.
[20:12] <chamunks> the most frustrating part of this is i can never remember the -args for extracting a damn tar file lol.
[20:12] <chamunks> I have to google it every single time.
[20:12] <JEEB> tar xvf file.tar.whatever
[20:13] <chamunks> I just wish I could commit that to longterm memory
[20:13] <chamunks> also thanks
[20:15] <chamunks> where can I stuff this bin file
[20:16] <JEEB> it should work from wherever you want
[20:17] <chamunks> ok i was just hoping to just plug it in just like how I can fun ffmpeg from any dir
[20:17] <chamunks> but i'll have to run it from a static location than.
[20:17] <chamunks> from an absolute path I mean
[20:17] <JEEB> well you could put it into /usr/local/bin or something, that's in PATH afaik
[20:17] <burek> chamunks, try: alias mytar='tar -xzf'
[20:18] <burek> or -xjf if it is .bz2
[20:18] <JEEB> I think in new enough tar you don't have to specify it and xvf (or xf) is enough
[20:19] <JEEB> as long as the file name tells enough, or possibly the magic numbers at the beginning of the file
[20:19] <JEEB> when you hit an older system with a tar that doesn't support that, then you have to specify
[20:19] <JEEB> or when you're dealing with a file that it can't autodecide with
[20:20] <chamunks> alais untar/unbz created ! i always forget that I can do that.
[20:20] <JEEB> :)
[20:21] <chamunks> ok so i suppose I could even create aliases for starting these streams too
[20:21] <chamunks> once i get it online ish.
[20:28] <burek> don't forget to save aliases in ~/.bashrc
[20:28] <burek> when you log out, all those alias cmds will get forgotten if you only typed it in the cmd shell
[20:33] <chamunks> burek, ah ok fair enough would there be a way to possible script it up so that when you alias it dumps into the .bashrc automatically?
[20:34] <chamunks> ok nvm i cant get into that right now lol.
[20:34] <burek> just nano ~/.bashrc
[20:34] <burek> and after that
[20:34] <burek> source ~/.bashrc
[20:34] <burek> to update it
[20:34] <burek> or vi or edit, whtvr
[20:34] <chamunks> i like nano it spoonfeeds me
[20:35] <chamunks> I hate trying hard for simple tasks like text files.
[20:35] <JEEB> yes, it's the simplest thing to get a grasp of
[20:36] <chamunks> burek, you mentioned to push to udp://localhost:1234 now vlc wont open the stream :S but the webcam's light is on.
[20:37] <burek> are vlc/ffmpeg on the same machine
[20:37] <chamunks> ahh nvm it works with udp://@:1234
[20:37] <JEEB> :)
[20:37] <burek> :)
[20:38] <chamunks> albeit huge lag time
[20:38] <chamunks> and about the bottom third of the screen is bleeding instead of being rendered correctly.
[20:38] <JEEB> you might want to check out the presets I talked about
[20:38] <JEEB> and check the encoding log that you're going fast enough
[20:39] <JEEB> try something like -preset superfast for the lulz? Huge bandwidth but if you're running it on localhost I guess it's OK?
[20:39] <JEEB> also it could be because you haven't gotten an IDR frame yet?
[20:40] <JEEB> (you have one on the beginning of the stream, but you naturally most probably missed that one, and you'll need to wait at max ~10 seconds to get the next)
[20:41] <chamunks> JEEB, this is what I'm getting http://paste.ubuntu.com/1217325/
[20:41] <chamunks> i shouldn't be pasting that here i just realised im avconv'ing
[20:41] <chamunks> anyways thats what i'm getting just re me in the other channel i guess.
[21:40] <DrSlony> Help, I'm testing transcode to deshake video and I would like to save the video directly to h.264 with crf 25, how do I specify ffmpeg options in transcode? I want to use the following: -acodec libmp3lame -ar 41k -aq 2 -vcodec libx264 -preset slower -crf 25
[21:40] <DrSlony> the transcode line I use now is (this creates huge intermediate files): transcode -g 1920x1080 -x mplayer,mplayer -J transform -i shaky.mp4 -y ffmpeg,ffmpeg -F huffyuv -o out_transcode.mp4
[21:43] <DelphiWorld> hi FFmpegist
[21:44] <DelphiWorld> guys how it's easy to rip a dvd using FFmpeg?
[21:45] <DrSlony> DelphiWorld there are tutorials that cover that
[21:46] <DelphiWorld> DrSlony: but do i need another tool like mencoder? or ffmpeg itself is enough
[21:48] <DrSlony> mencoder is ffmpeg's competition
[21:50] <DelphiWorld> hmmmmm
[21:52] Action: DelphiWorld yel at burek
[21:52] <burek> :)
[21:54] <chamunks> burek, ok I think that I mostly have my stream configured now how to i output to  rtsp
[21:55] <burek> :)
[21:57] <chamunks> burek, you wouldn't happen to know off hand would you?
[21:57] <chamunks> im getting really beyond the time I should be elsewhere.
[21:58] <JEEB> you give it an rtsp:// url?
[21:58] <JEEB> not exactly sure
[21:58] <JEEB> but that /should/ in theory work
[21:58] <DelphiWorld> chamunks: you use ffserver?
[21:59] <JEEB> and yes, it seems to be rtsp://hostname[:port}/path
[21:59] <chamunks> oh hey you're back :P woot
[21:59] <chamunks> and no i dont think so.
[22:00] <DelphiWorld> chamunks: DO *YOU* use *FFSERVER*
[22:01] <chamunks> DelphiWorld, ! i dont think i do.
[22:01] <DelphiWorld> chamunks: so how you will output to rtsp?
[22:01] <JEEB> I think he has a server he's sending stuff to
[22:01] <chamunks> DelphiWorld, I have no idea thats why I'm here really.
[22:02] <JEEB> which ffmpeg should be able to do by itself
[22:02] <DelphiWorld> chamunks: use ffserver
[22:02] <chamunks> DelphiWorld, unless you have a suggestion of exactly how to do this I really cant spend another 3 hours learning something else.
[22:02] <DelphiWorld> chamunks: please read ffserver.conf
[22:03] <chamunks> I really dont have the time.
[22:03] <JEEB> DelphiWorld, I really wonder if you're high or not
[22:03] <JEEB> as far as I can see, ffmpeg can send an rtsp stream to a server by itself
[22:03] <DelphiWorld> chamunks: ok pay me ?
[22:03] <JEEB> without ffserver
[22:03] <DelphiWorld> JEEB: i'm sure that rtsp need ffserver
[22:04] <DelphiWorld> JEEB: and the far end need to grab it through rtsp
[22:04] <JEEB> maybe if you need to handle being the server, too
[22:04] <chamunks> DelphiWorld, i dunno i just know that zoneminder accepts rtsp
[22:04] <JEEB> IIRC he had a server somewhere to which he is sending that stream, that /should/ be doable by ffmpeg itself
[22:04] <chamunks> after that i have no idea about any of the automagic that goes on and i really dont want to at this point.
[22:04] <DelphiWorld> chamunks: that all i know. i do input stream to ffserver and output it as rtsp
[22:05] <JEEB> DelphiWorld, http://ffmpeg.org/ffmpeg.html#rtsp
[22:05] <chamunks> DelphiWorld, what i'm trying to do here is just make zoneminder accept /dev/video0
[22:05] <JEEB> "To send a stream in realtime to a RTSP server, for others to watch: "
[22:05] <JEEB> ffmpeg -re -i input -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
[22:05] <JEEB> see that
[22:05] <JEEB> doesn't talk about ffserver
[22:05] <chamunks> and the tutorials say use some long gone vaporware mpeg_streamer crap
[22:06] <DelphiWorld> chamunks: do you have a rtsp server?
[22:06] <chamunks> no
[22:06] <chamunks> i figured this stuff would just do that.
[22:07] <DelphiWorld> chamunks: so you use ffserver than. ffserver is a x proto server
[22:08] <chamunks> ok heres something different
[22:08] <chamunks> how about streaming this to a format like this http://admin:admin@192.168.1.115/img/mjpeg.cgi
[22:08] <chamunks> would this be possible without other crazy stuff happening?
[22:08] <DelphiWorld> chamunks: please explain in detail what you gonna do to get a real suggestion.
[22:09] <chamunks> DelphiWorld, I've been here for hours already doing that but anyways what i need is to take webcam feed A (/dev/video0) and push it to either a rtsp:// output or an output like this http://admin:admin@192.168.1.115/img/mjpeg.cgi
[22:09] <DelphiWorld> chamunks: please listen to me:
[22:09] <DelphiWorld> 1. compile or install ffmpeg (ffserver included)
[22:09] <llogan> if you don't want to shit around with "server" junk you can also output from ffmpeg to something like justin.tv
[22:10] <DelphiWorld> 2. create a ffserver.conf coppy it from the default one, default settings are enough
[22:10] <JEEB> maybe you let him be for a moment so he can figure out if he has an rtsp server or not >_>
[22:10] <JEEB> or something to send the rtsp stream to
[22:10] <JEEB> he seems to be rather disorientated at the moment
[22:10] <DelphiWorld> 3. start FFMpeg with your camera input but output to http://1.2.3.4/stream.ffm or /tmp/stream.ffm if i'm correct then the FFServer will fetch it and output it to any proto you want;
[22:10] <DelphiWorld> is that enough?
[22:11] <chamunks> DelphiWorld, I am listening to you :)
[22:11] <DelphiWorld> JEEB: ;-)
[22:11] <DelphiWorld> hey llogan
[22:11] <llogan> hej
[22:11] <chamunks> ok DelphiWorld I can run this from either libav or ffmpeg I have a copy of the latest static binary
[22:12] <chamunks> but this is my command so far.
[22:12] <DelphiWorld> chamunks: depand
[22:12] <chamunks> DelphiWorld, avconv -f video4linux2 -r 25 -s 1920x1080 -i /dev/video0 -vcodec libx264 -preset veryslow -crf 32 -f mpegts rtsp://localhost:1234/
[22:12] <JEEB> chamunks, you should first of all check if you have an rtsp server to send the stuff to
[22:12] <chamunks> JEEB, zoneminder accepts rtsp seamlessly.
[22:12] <DelphiWorld> JEEB: :P
[22:12] <JEEB> you would've not brought rtsp up otherwise, most probably
[22:13] <chamunks> its already accepting other things like that but I really am not pinned to using rtsp
[22:13] <chamunks> pushing it to an http feed is fine too.
[22:14] <JEEB> well, the point is if it is just reading an rtsp server's output or if it actually acts as the server itself and thus takes in the streams from things
[22:14] <chamunks> now idgaf really what type of output it is but one with the most automagic is what I'm looking for at this point
[22:14] <JEEB> what container does your thingy take over http then, it sounds like the simplest solution
[22:14] <JEEB> if you don't know if you have an rtsp server in it or not
[22:14] <chamunks> yeah it looks for ffmpeg
[22:14] <JEEB> you lost me
[22:15] <DelphiWorld> question first
[22:15] <DelphiWorld> chamunks: you want to view it over internet?
[22:15] <JEEB> I don't know what DelphiWorld is pushing but if your that thingy can take http, and you have no effing idea about rtsp, then a http stream /will/ be simpler to set up
[22:16] <JEEB> chamunks, what container does that thing want?
[22:16] <DelphiWorld> JEEB: if he's not willing to view over the net he can simply use rtp over mcast
[22:16] <JEEB> I don't know of that and http is simple enough if it can be used, so (´
[22:17] <JEEB> chamunks, does it want mpeg-ts over http or what?
[22:17] <chamunks> ok this is all i know http://imgur.com/pfEbQ,vED3l
[22:17] <chamunks> thats what its asking for thats how my other cam works
[22:17] <chamunks> http://imgur.com/pfEbQ,vED3l#1
[22:17] <JEEB> I have no idea what it's expecting :D
[22:18] <JEEB> or how it reads whatever comes by
[22:18] <chamunks> http://www.lolroflmao.com/wp-content/uploads/2012/04/no-idea-what-im-doing-dog-driving.jpg
[22:19] <chamunks> http://www.zoneminder.com/wiki/index.php/Documentation#Source_Tab_.28ffmpeg.29
[22:20] <chamunks> JEEB, ^
[22:21] <burek> :)
[22:21] <chamunks> all that I need to do is plug the webcam video feed into zoneminder than zoneminder does the rest of the magic.
[22:21] <JEEB> ok, so I guess you could just output -vcodec libx264 -preset veryslow -crf 32 -f mpegts http://localhost:1234 or something?
[22:21] <chamunks> it handles dumping to harddrives etc.
[22:21] <burek> chamunks, did you manage it
[22:21] <JEEB> and then you should be able to read that stream I guess
[22:21] <chamunks> burek, we're working on it now lol.
[22:21] <JEEB> I have no idea how to get the "correct" URL, but if that's ffmpeg reading the stream it should work
[22:21] <chamunks> JEEB, ok fair enough
[22:22] <chamunks> it should be ffmpeg on the zoneminder machine
[22:22] <JEEB> maybe http://@:1234/ , maybe http://localhost:1234/derp.ts
[22:22] <JEEB> aanyways, in theory it should be able to read it
[22:22] <chamunks> the zoneminder is another box entirely from this one.
[22:22] <JEEB> well, I just don't know how to set up it to push stuff out on http and let other machines access it
[22:23] <chamunks> so rtsp would be the way to go
[22:23] <JEEB> nah, http should be fine as well
[22:23] <chamunks> ok
[22:23] <chamunks> thank science
[22:23] <chamunks> JEEB, I couldn't manage to get bufsize and maxrate to work they just killed the feed.
[22:24] <chamunks> and im still getting almost a full 30 second lag time but its fine I cant care anymore I gotta just get it recording so i can get on with life.
[22:24] <JEEB> maxrate and bufsize should work just fine >_>
[22:25] <burek> chamunks, save this as your ffserver.conf
[22:25] <burek> http://pastebin.com/nw4P09qk
[22:25] <chamunks> avconv -f video4linux2 -r 25 -s 1920x1080 -i /dev/video0 -vcodec libx264 -preset fast -crf 35 -bufsize 5000k -maxrate 2000k -f mpegts udp://localhost:1234 killed it.
[22:25] <burek> run ffserver with ffserver -f ffserver.conf
[22:25] <burek> and ffmpeg with: ffmpeg -f v4l2 ... -i /dev/videoX ... http://localhost:8090/feed1.ffm
[22:25] <burek> then access your rtsp stream using vlc
[22:25] <JEEB> can't ffmpeg just serve to a http url and port by itself?
[22:26] <chamunks> i have no idea where ffserver.conf would be :S
[22:26] <chamunks> locate ffserver.conf?
[22:26] <burek> wherever
[22:26] <burek> /etc/ffserver.conf ?
[22:27] <chamunks> ah ok i get it.
[22:27] <chamunks> sec
[22:28] <burek> also, if you don't use audio, just comment out audio options
[22:28] <burek> and put 1 line instead: NoAudio
[22:28] <chamunks> it doesn't matter about audio i just need the video feed.
[22:28] <DelphiWorld> burek: so he's back to my idea
[22:29] <chamunks> DelphiWorld, yes but hes explaining it a smidge better
[22:29] <burek> I didn't follow the entire conversation, I was coding something cool :D
[22:29] <chamunks> i dunno jeeb's idea will likely work fine.
[22:29] <DelphiWorld> burek: lol, show me
[22:29] <burek> let me finish first :)
[22:29] <burek> I can record thunderbolts now :D
[22:29] <burek> \o/
[22:30] <DelphiWorld> burek: using ffm?
[22:30] <burek> ffmpeg only
[22:33] <chamunks> burek, http://paste.ubuntu.com/1217551/
[22:33] <chamunks> I dont have time to figure this out.
[22:33] <chamunks> I have to stick with the http method.
[22:33] <burek> wait a little bit
[22:34] <burek> what is your overall goal
[22:34] <chamunks> I'm trying to feed /dev/video0 to zoneminder
[22:34] <chamunks> once plugged into zoneminder it handles the rest.
[22:34] <burek> why zoneminder
[22:35] <chamunks> because i need a security system to catch this punk college kid.
[22:35] <chamunks> so that I can kick him or his friends out of being a tennant at my house.
[22:35] <burek> again, why zoneminder
[22:35] <chamunks> zoneminder handles motion detection and only recording what needs to be recorded sort of thing.
[22:36] <chamunks> why not zoneminder.
[22:36] <DelphiWorld> siwork
[22:36] <burek> I agree
[22:36] <burek> it can be accomplished with ffmpeg too, using filters that detect brightness change or motion or something, but ok
[22:36] <burek> which format does zoneminder require on input
[22:36] <chamunks> this is all that I know about that question http://imgur.com/pfEbQ,vED3l#1
[22:37] <chamunks> and this http://imgur.com/pfEbQ,vED3l#0
[22:37] <chamunks> since that source path is truncated I'll paste that also
[22:37] <burek> go to source tab
[22:37] <chamunks> http://admin:admin@192.168.1.115/img/mjpeg.cgi
[22:37] <burek> 192.168.x.x :)
[22:37] <chamunks> I'm there
[22:38] <burek> that's not a valid public ip
[22:38] <chamunks> its lan
[22:38] <chamunks> its all lan
[22:38] <burek> why are you giving me your lan link if I can't connect there
[22:39] <chamunks> because im not giving you my ip on a publically logged irc :P
[22:39] <chamunks> thats just whats from the source tab
[22:39] <chamunks> with the file path
[22:40] <burek> I already see your public ip..
[22:40] <burek> you should've know that by now :)
[22:40] <burek> anyway, did you try #zoneminder
[22:40] <burek> or some similar channel
[22:40] <chamunks> yes
[22:40] <burek> and?
[22:40] <chamunks> dead
[22:40] <chamunks> and i dont have time for mailing lists
[22:41] <chamunks> its basically down to what I'm asking at this point due to time constraints.
[22:41] <burek> well, if you don't have time for now
[22:41] <burek> just leave it to record stuff
[22:42] <burek> and re-run it periodically
[22:42] <burek> deleting old videos
[22:42] <burek> until you find some time to properly set it up
[22:42] <burek> irc is usually not a good place for time critical things
[22:44] <chamunks> other constraints leave always on as not an option either
[22:44] <chamunks> i'm like 90% of the way there
[22:45] <chamunks> I just need to find the easiest way to output into either an rtsp stream or an ffmpeg encoded http stream
[22:45] <chamunks> I believe it handles x264 just fine as the recieving machine also runs the same exact os which means that it should be able to decode or whatever it does behind the scenes.
[22:46] <chamunks> burek, you're probably right but I really dont see anything more high bandwidth than irc really at this point.
[22:48] <chamunks> DelphiWorld, ok I'm going to attempt to follow your instructions here.
[22:48] <DelphiWorld> chamunks: LOL. you rejected so keep lost in the ocean
[22:49] <chamunks> DelphiWorld, i didnt reject it i was just already on a different path but ok whatever then.
[22:49] <DelphiWorld> chamunks: lol
[22:51] <burek> chamunks, find in zoneminder
[22:51] <burek> option to accept input source from udp
[22:51] <burek> and you're done
[22:51] <burek> because with ffmpeg you can already directly send udp stream
[22:51] <burek> no need for a http server and similar
[22:52] <burek> just find the way to tell the zoneminder to capture the stream from a udp port
[23:03] <chamunks>   burek yeah kus I'm already running a udp stream
[23:03] <chamunks> so i'd imagine that would suffice.
[23:04] <chamunks> burek, I'm getting Incompatible pixel format 'yuyv422' for codec 'libx264', auto-selecting format 'yuv420p'
[23:04] <chamunks>  is it possible to avoid having that be autoselected without the error message?
[23:08] <burek> its a warning not an error
[23:12] <chamunks> burek, fair enough
[23:13] <JEEB> an error would just stop everything at that point
[23:19] <chamunks> yeh i just figured pointing it at the codec would be a good idea but i guess it doesnt matter.
[23:21] <burek> omg
[23:21] <burek> chamunks
[23:21] <burek> the field "Source path"
[23:21] <burek> just put udp://@:1234
[23:22] <burek> and with ffmpeg, target the output to be the ip address of the machine where zoneminder is installed and running
[23:22] <burek> ffmpeg ... udp://ip:1234
[23:25] <chamunks> burek, that could help lower latency i think
[23:25] <chamunks> also ...
[23:25] <chamunks> i've got zoneminder accepting the feed now.
[23:25] <chamunks> via udp
[23:25] <burek> so, does it work finally?
[23:26] <chamunks> yeah at like 5fps but i guess thats just tweaking after that.
[23:26] <DelphiWorld> chamunks: rtsp://live.ennahartv.net:1935/live/EnnaharTV
[23:29] <chamunks> DelphiWorld, those guys look excited.
[23:29] <chamunks> I got a whole 1 frame before it pooed.
[23:29] <DelphiWorld> chamunks: watch me at 10:00PM gmt+1 tomorrow
[23:29] <chamunks> nvm there it goes.
[23:29] <JEEB> chamunks, it seems like the 1080p output was 5fps
[23:29] <JEEB> it can be seen in the log
[23:30] <JEEB> wonder if there's a way to ask for more, or if it really is the maximum it can give with that resolution?
[23:30] <chamunks> this cam pushes amazing fps normally.
[23:31] <burek> what does ffmpeg output say (pastebin) ?
[23:32] <chamunks> burek,  sec
[23:32] <chamunks> http://paste.ubuntu.com/1217643/
[23:33] <burek> well your camera's input is at 5fps
[23:33] <JEEB> yup
[23:33] <burek> The driver changed the time per frame from 1/25 to 1/5
[23:33] <burek> try -s 640x480
[23:34] <burek> also, keep in mind that most of webcams are having a hard time during the night
[23:34] <chamunks> burek, that results in 24fps
[23:34] <burek> when they need to wait for more light to get in, for a single frame (exposure), so I guess your problem is not exposure
[23:34] <burek> :)
[23:35] <burek> but just a weak hardware in the camera
[23:36] <burek> try: v4l2-ctl --list-formats-ext
[23:36] <burek> you'll see which fps/framesize your camera supports
[23:36] <JEEB> :)
[23:38] <chamunks> burek, http://paste.ubuntu.com/1217648/
[23:39] <burek> is that logitech c920
[23:39] <chamunks> yup
[23:39] <burek> i knew it the moment i saw the log
[23:39] <DelphiWorld> i think burek is a FBI inspector ;-)
[23:39] <chamunks> lol its a nice cam
[23:39] <burek> inspector of fbi inspectors :)
[23:40] <burek> nice and what's most funny, it has h264 encoder inside itself
[23:40] <burek> :)
[23:40] <DelphiWorld> burek: media inspector
[23:40] <burek> so you don't even need ffmpeg :)
[23:41] <burek> but, to make things more funny, there is no normal driver for it so far so you're stuck with external encoders, like ffmpeg :)
[23:41] <chamunks> it really wont encode faster
[23:41] <chamunks> yup
[23:41] <chamunks> which is mindboggling because it really should encode fine
[23:41] <chamunks> my computer is very fast.
[23:41] <burek> try to switch to mjpeg chroma format
[23:41] <burek> or pixel format
[23:42] <burek> vlc names it chroma..
[23:42] <chamunks> burek, i dont know how to accomplish that.
[23:42] <burek> -f v4l2 ... -pixel_format mjpg -i /dev/videoX ...
[23:42] <burek> or mjpeg
[23:42] <burek> and set -r 30
[23:43] <burek> -pix_fmt sorry
[23:44] <burek> again mistake.. -input_format
[23:45] <chamunks> burek,  so basically "avconv -f video4linux2 -r 25 -s 1920x1080 -i /dev/video0 -vcodec libx264 -preset veryfast -crf 30 -f mpegts udp://localhost:1234" becomes ...
[23:46] <burek> ffmpeg -f v4l2 -r 30 -input_format mjpeg -s 1920x1080 -i /dev/video0 -vcodec libx264 -preset veryfast -crf 30 -f mpegts udp://localhost:1234
[23:46] <chamunks> I can ffmpeg thats fine too.
[23:47] <burek> if that doesn't work try -pixel_format instead of -input_format
[23:48] <burek> and try both mjpg and mjpeg
[23:48] <burek> im not sure which one i used
[23:48] <burek> ffmpeg -f v4l2 -r 30 -vcodec mjpeg -s 1920x1080 -i /dev/video0 -vcodec libx264 -preset veryfast -crf 30 -f mpegts udp://localhost:1234
[23:48] <burek> that should work 100%
[23:52] <chamunks> ok fps problem is fixed.
[23:52] <chamunks> its pushing 30
[23:54] <JEEB> yeah, it was then limited by the fact that it couldn't push more than 5fps as raw video
[23:54] <JEEB> mjpeg is compressed and thus it can push more
[23:54] <burek> yes, usb limitation probably
[23:54] <JEEB> yea, probably
[23:54] <chamunks> burek, its strange because it seems fine for most other things the motherboard its plugged into is some bleeding edge asus thing
[23:54] <chamunks> i dunno whichever as long as it works.
[23:55] <burek> chamunks, usb 2.0 has its bandwidth limit
[23:55] <burek> just like any other cable stuff that you stuck into your machine
[23:55] <chamunks> only thing is at this point I'm not able to open the stream in vlc but zoneminder has likely already hooked it anyways.
[23:55] <JEEB> + the camera might impose its own limitations
[23:55] <burek> yes
[23:55] <burek> anyway chamunks, does everything work now finally :)
[23:56] <burek> will you be able to sleep tight :D
[23:59] <burek> zonemiderN00B
[23:59] <burek> it is your lucky day today :)
[23:59] <burek> I just tested the delay thingy and it works :)
[00:00] --- Fri Sep 21 2012


More information about the Ffmpeg-devel-irc mailing list