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

burek burek021 at gmail.com
Sun Dec 30 02:05:01 CET 2012


[00:44] <p4plus21> Just out of curiosity is the screen capture portion of ffmpeg also multi threaded?
[01:49] <mpfundstein_home> can anyone explain me what the crf value actually does?
[01:49] <mpfundstein_home> %s/crf/cfr/
[01:50] <llogan> mpfundstein_home: https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide
[01:50] <llogan> http://homepage.univie.ac.at/werner.robitza/crf.html
[01:50] <mpfundstein_home> thanks
[01:53] <mpfundstein_home> pretty clear thanks
[01:56] <kara_sweets> hey guys, I'm installing ffmpeg on a server i don't have root access too.  I've had no problem compiling ffmpeg from source, however when i try to compile with --enable-libmp3lame or --enable-libfaac, i get errors that they could both not be find.  The server is running Ubuntu 10.0.4, has anybody experience this and know a proper solution?
[01:56] <ubitux> you need the -dev packages
[01:56] <ubitux> libmp3lame-dev etc
[01:58] <kara_sweets> is there a version of ffmpeg source that includes those? or should i change the flags from -enable-libmp3lame to libmp3lame-dev
[10:05] <p4plus21> Is there any way to have ffmpeg display when a frame is dropped when doing a screen capture -- it seems to handle what I need quite well but I want to do a bit of a more complete testing bench mark to ensure I iron out the problem with my settings before I record a ton to find a problem
[10:07] <p4plus21> actually maybe a better question
[10:08] <p4plus21> when recording where it says "FPS" is that showing the setting for how many it should be capturing or how many it *is* capturing
[10:24] <crashovrd> how do i accomplish this?  ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4   but instead of input.mkv    *.mkv in the folder mkv
[10:25] <p4plus21> hmm
[10:25] <p4plus21> find ./ -type f -exec
[10:25] <p4plus21> may be able to do something
[10:26] <crashovrd> how do i accomplish this?  ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4   but instead of input.mkv  i want *.mkv  and  output.mp4 to be  samenameasinput.mp4
[10:26] <p4plus21> pipe that to xargs maybe?
[10:26] <microchip_> crashovrd: for i in *.mkv; do ffmpeg -i "$i.mkv".... ; done
[10:26] <crashovrd> does that work in cmd.exe?
[10:26] <microchip_> no
[10:26] <microchip_> it's for linux
[10:27] <p4plus21> oh... I guess windows complicates a few things..
[10:27] <crashovrd> how do you do it in cmd
[10:27] <p4plus21> hmm
[10:28] <p4plus21> crashovrd: http://stackoverflow.com/questions/1355791/batch-file-loop
[10:28] <p4plus21> that could help a bit I imagine
[10:29] <crashovrd> i use cmd.exe but i do have linux commandline apps  like grep.exe/wget.exe/awk.exe/etc
[10:29] <crashovrd> which i use it all the time
[10:29] <p4plus21> oh, well then maybe try what microchip_ suggested
[10:30] <crashovrd> for i ?  do i need for.exe ?
[10:30] <p4plus21> well heres a slightly different question do you have those utilities from cygwin or something like that?
[10:30] <crashovrd> p4plus21 yes, and they work fine
[10:31] <p4plus21> ok, then try just "for i" first
[10:31] <crashovrd> let me see if i even have for.exe
[10:31] <p4plus21> well its something built into the shell
[10:32] <p4plus21> but I think the cygwin shell should still support it
[10:32] <crashovrd> i don't see for.exe
[10:32] <p4plus21> I wouldn't think you would
[10:33] <p4plus21> try using the command in the cygwin shell reguardless though
[10:33] <crashovrd> but it has a lot of *.exe like  mv.exe cp.exe  md5sum.exe etc
[10:34] <crashovrd> can this be done without  "for i"
[10:34] <p4plus21> well yes most come that way but some would be built into the shell itself
[10:34] <p4plus21> maybe -- I am not a huge windows user
[10:34] <crashovrd> well even in linux,  can this be done without "for i"
[10:34] <crashovrd> using grep
[10:35] <p4plus21> how would grep manage to apply the command to multiple files? that is what youre after right
[10:36] <crashovrd> instead of input.mkv  i want *.mkv in that folder and  output.mp4 to be  samenameasinput.mp4
[10:36] <crashovrd> correct
[10:37] <grepper> for i in *.mkv; do ffmpeg -i "$i" .... ${i%.*}.mp4
[10:38] <p4plus21> grepper: he doesn't want to use for i in apparently
[10:38] <grepper> probably should quote the last too
[10:38] <grepper> why ?
[10:38] <p4plus21> windows for one, but I still think he should try it since cygwin is installed
[10:39] <grepper> yeah, should work in bash in cygwin fine
[10:39] <crashovrd> it won't, since i don't have for.exe
[10:39] <p4plus21> you shouldn't
[10:39] <p4plus21> its built into bash
[10:40] <crashovrd> i don't have bash, but i just have bunch of .exe files like  mv.exe/cp.exe/grep.exe/awk.exe/rm.exe/etc
[10:40] <p4plus21> you said you had cygwin though...?
[10:40] <crashovrd> isn't mv.exe/cp.exe/grep.exe/awk.exe/rm.exe/etc  = cygwin
[10:41] <p4plus21> no
[10:41] <crashovrd> then what do you call those
[10:41] <grepper> you should have a cygwin terminal that runs bash
[10:42] <p4plus21> if you installed cygwin they are part of the cygwin bundle, otherwise they are just clones of the originals ported individually to windows (which many exist)
[10:44] <crashovrd> for i in *.mkv; do ffmpeg -i input.mkv -vcodec copy -acodec copy "$i" .... ${i%.*}.mp4
[10:44] <crashovrd> is that the command?
[10:44] <grepper> no
[10:44] <p4plus21> well the .... would expand to the rest of your desired settings
[10:44] <grepper> for i in *.mkv; do ffmpeg -i "$i"
[10:45] <crashovrd> greeper i don't see -vcodec copy  acodec copy
[10:45] <p4plus21> he was pointing out you need to replace your input file
[10:45] <grepper> yes, as crashovrd said I was leaving out the parts that remain the same during expansion
[10:46] <grepper> er, as p4plus21 said I mean
[10:46] <crashovrd> for i in *.mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy "$i" .... ${i%.*}.mp4
[10:46] <crashovrd> is this right?
[10:46] <grepper>  for i in *.mkv; do ffmpeg -i "$i"   -vcodec copy -acodec copy  ${i%.*}.mp4
[10:46] <p4plus21> assuming you finish expanding the command that looks fine
[10:47] <crashovrd> grepper and that will do  every .mkv in that folder?
[10:47] <grepper> his was wrong, an extra "$i" in there
[10:47] <grepper> yes, not recursively though
[10:47] <p4plus21> oh I overlook that, whoops
[10:47] <crashovrd> what is recursively?
[10:48] <p4plus21> means it won't go into subdirectories
[10:48] <crashovrd> i see
[10:48] <crashovrd> that's fine
[10:48] <grepper> you can add an 'echo'  before the 'ffmpeg' to see what it will do before you run it if you wish
[10:48] <grepper> always a good idea with commands you don't understand
[10:49] <crashovrd> i have cygwin now; how do i change directory to  D:\backup
[10:50] <burek> cd d:/backup
[10:50] <crashovrd> burek that didn't work  but i figured out
[10:50] <p4plus21> isn't it "cd /cygdrive/d/backup" ?
[10:50] <crashovrd> cd /cygdrive/d
[10:50] <crashovrd> p4plus21 yes
[10:50] <burek> rtfm :)
[10:51] <crashovrd> so this should work? right?   for i in *.mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy  ${i%.*}.mp4
[10:52] <p4plus21> looks fine to me -- if you want to preview the command just add the word echo between do and ffmpeg and it will do a "dry run" so to speak, as suggested by grepper
[10:53] <grepper> "${i%.*}.mp4" just to be safe for files with spaces, always a good habit
[10:53] <grepper> ie. quote it
[10:53] <crashovrd> didn't work
[10:53] <p4plus21> can you be a tad more specific
[10:54] <crashovrd> not only it didn't work,  it went into a mode where i cannot even  change directories
[10:54] <crashovrd> how do i get out of this mode
[10:55] <grepper> did you leave something without a closing quote ?
[10:55] <luc4> Hi! Can anyone suggest me a good ffmpeg tutorial? I found some, but all seem a little outdated. I know ffplay.c is available, I worked in the past with it. I just wanted to know if there is something like a tutorial explaining what I'm doing.
[10:55] <burek> luc4, there are many
[10:55] <burek> what exactly do you need
[10:56] <grepper> ctrl-c or ctrl-d should get you back to the command line
[10:56] <luc4> burek: I'm interested mostly in demuxing and getting the streams. I'll decode with hardware accelerated libraries.
[10:56] <burek> luc4, there are docs/examples
[10:56] <burek> iirc
[10:56] <crashovrd> grepper  okay  ctrl-c worked:  but command didn't work
[10:57] <grepper> crashovrd: copy and paste the EXACT command you used
[10:57] <crashovrd> for i in *.mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy "${i%.*}.mp4"
[10:57] <grepper> heh
[10:58] <p4plus2> oh
[10:58] <grepper> or i in *.mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy "${i%.*}.mp4"; done
[10:58] <p4plus2> you need a don...
[10:58] <p4plus2> yeah
[10:58] <grepper> sorry, assumed too much bash knowledge there
[10:58] <crashovrd> i need what?
[10:58] <p4plus2> grepper already posted it
[10:58] <grepper> a 'for' loop always ends with a 'done'
[10:59] <grepper>  for i in *.mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy "${i%.*}.mp4"; done
[10:59] <crashovrd> okay it worked
[11:00] <p4plus2> save that from now on in a .sh file so you can use it in the future ;)
[11:01] <luc4> burek: sorry, connection lost
[11:01] <burek> re: luc4, there are docs/examples
[11:01] <luc4> burek: yes, but where can I find those docs? I found some but all are quite outdated.
[11:02] <crashovrd> how good is ffmpeg's  mkv to mp4  converter?
[11:02] <luc4> burek: on the ffmpeg website?
[11:02] <burek> luc4 in ffmpeg source dir
[11:02] <burek> did you compile ffmpeg
[11:02] <luc4> burek: in the past, yes.
[11:03] <luc4> burek: I'll look into the sources for the docs. Thanks!
[11:04] <crashovrd> i have a strange question
[11:06] <crashovrd> what happens if you are converting using ffmpeg  one format to another but what if the source file  was named  input.wmv  but it's actually a mkv file
[11:07] <crashovrd> would that screw up
[11:07] <burek> why dont you try and see
[11:08] <crashovrd> just asking
[14:07] <p4plus2> do setting faster presets with a higher crt value degrade image quality further or is a higher preset only how much time ffmpeg will generally spend compressing a frame
[14:08] <sacarasc> Presets are about compressing, I believe. Slower presets compress better but they should be the same quality as the faster ones. Just smaller files.
[14:09] <p4plus2> thats what I was interpreting it as, but I wanted to be on the safe side and double check, thanks
[14:09] <sacarasc> I think there is some quality change with different presets, but not as much as with crf.
[14:10] <p4plus2> hmm, I'll play around with it and see what settings I can come up with for this recording setup
[14:10] <p4plus2> so far my computer is fine with ultrafast and crt 0 or 25 -- so maybe I'll try something like 20 with a slower preset
[14:11] <p4plus2> try and strike a happy median somewhere
[14:11] <p4plus2> middle*
[14:17] <p4plus2> ctr 18, medium preset causes only three dropped frames over four minutes-- not too bad at all
[14:18] <p4plus2> I must say
[14:18] <p4plus2> ffmpeg really does its job well :D
[14:40] <Abhijit> hi
[14:40] <Abhijit> I am getting this error ffmpeg.c:166:8: error: ‘AVFrame’ has no member named ‘age’ help please
[14:50] <burek> <p4plus2> ctr 18, medium preset causes only three dropped frames over four minutes-- not too bad at all
[14:50] <burek> are you doing live encoding
[14:50] <burek> or re-encoding a file?
[14:50] <burek> Abhijit, where exactly?
[14:52] <Abhijit> burek, while trynig to build a sample of vaapi
[14:52] <burek> it might be you are using incompatible versions of ffmpeg and vaapi (whatever that is)
[14:53] <Abhijit> burek, tryign to build this http://gitorious.org/hwdecode-demos/
[14:53] <burek> oh
[14:54] <Abhijit> burek, can i install run enable vaapi on
[14:54] <Abhijit> Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03)
[14:54] <burek> well..
[14:54] <burek> if im correct
[14:54] <burek> ffmpeg.c
[14:54] <burek> is the file, coincidentaly named the same as ffmpeg's ffmpeg.c
[14:54] <burek> shortly it doesn't have anything to do with ffmpeg
[14:55] <burek> so you should contact their support
[14:55] <Abhijit> ok :-(
[14:55] <burek> to ask them what did they put into that file wrongly
[14:55] <burek> i.e. that ffmpeg.c file is not our code
[14:55] <burek> it's theirs
[14:55] <burek> probably just a wrapper for ffmpeg library calls
[14:56] <Abhijit> ok
[17:20] <cris__> Hello to all.
[17:20] <cris__> I want stream from a webcam but have this error with ffmpeg with this webcam input.
[17:20] <cris__> I think  is a problem of pixel format but can not resolve it.
[17:20] <cris__> Can someone help me?
[17:20] <cris__> Many thanks in advance.
[17:20] <cris__> This is the command output
[17:20] <cris__> ffmpeg -v debug -f video4linux2 -i /dev/video1 -vcodec mpeg2video output.mpg
[17:20] <cris__> ffmpeg version 0.8.4-6:0.8.4-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the Libav developers
[17:20] <cris__>   built on Nov  6 2012 16:49:20 with gcc 4.7.2
[17:20] <cris__>   configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --en
[17:20] <cris__> able-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu --enable-shared --disable-static
[17:20] <cris__>   avutil      configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:21] <cris__> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:21] <cris__> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:21] <cris__>   avcodec     configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:21] <cris__> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:21] <cris__> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:21] <cris__>   avformat    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:21] <cris__> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:21] <cris__> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:21] <cris__>   avdevice    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis...
[17:21] <cris__> ...--enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
[17:21] <cris__>   avfilter    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis...
[17:21] <cris__> ...--enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
[17:21] <cris__>   swscale     configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:21] <cris__> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:21] <cris__> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:21] <cris__>   postproc    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:21] <cris__> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:21] <cris__> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:21] <cris__>   libavutil    51. 22. 1 / 51. 22. 1
[17:21] <cris__>   libavcodec   53. 35. 0 / 53. 35. 0
[17:21] <cris__>   libavformat  53. 21. 0 / 53. 21. 0
[17:21] <cris__>   libavdevice  53.  2. 0 / 53.  2. 0
[17:21] <cris__>   libavfilter   2. 15. 0 /  2. 15. 0
[17:21] <cris__>   libswscale    2.  1. 0 /  2.  1. 0
[17:21] <cris__>   libpostproc  52.  0. 0 / 52.  0. 0
[17:21] <cris__> *** THIS PROGRAM IS DEPRECATED ***
[17:21] <cris__> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[17:21] <cris__> [video4linux2 @ 0x8152880] [5]Capabilities: 85000001
[17:21] <cris__> [video4linux2 @ 0x8152880] Querying the device for the current frame size
[17:21] <cris__> [video4linux2 @ 0x8152880] Setting frame size to 352x288
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x32315559 to 0x37303250
[17:21] <cris__>     Last message repeated 1 times
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x50323234 to 0x37303250
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x56595559 to 0x37303250
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x59565955 to 0x37303250
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x50313134 to 0x37303250
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x39565559 to 0x37303250
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x4F424752 to 0x37303250
[17:21] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x50424752 to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x33524742 to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x33424752 to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x34524742 to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x59455247 to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x3231564E to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x47504A4D to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x4745504A to 0x37303250
[17:22] <cris__> [video4linux2 @ 0x8152880] Cannot find a proper format for codec_id 0, pix_fmt -1.
[17:22] <cris__> /dev/video1: Input/output error
[17:22] <cris__> The command vl4-info /dev/video1  give me this output:
[17:22] <cris__> ### v4l2 device info [/dev/video1] ###
[17:22] <cris__> general info
[17:22] <cris__>     VIDIOC_QUERYCAP
[17:22] <cris__> driver                  : "pac207"
[17:22] <cris__> card                    : "CIF Single Chip     "
[17:22] <cris__> bus_info                : "usb-0000:00:1d.1-1"
[17:22] <cris__> version                 : 3.5.7
[17:22] <cris__> capabilities            : 0x85000001 [VIDEO_CAPTURE,READWRITE,STREAMING,(null)]
[17:22] <cris__> standards
[17:22] <cris__> inputs
[17:22] <cris__>     VIDIOC_ENUMINPUT(0)
[17:22] <cris__> index                   : 0
[17:22] <cris__> name                    : "pac207"
[17:22] <cris__> type                    : CAMERA
[17:22] <cris__> audioset                : 0
[17:22] <cris__> tuner                   : 0
[17:22] <cris__> std                     : 0x0 []
[17:22] <cris__> status                  : 0x0 []
[17:22] <cris__> video capture
[17:22] <cris__>     VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
[17:22] <cris__> index                   : 0
[17:22] <cris__> type                    : VIDEO_CAPTURE
[17:22] <cris__> flags                   : 0
[17:22] <cris__> description             : "P207"
[17:22] <cris__> pixelformat             : 0x37303250 [P207]
[17:22] <cris__>     VIDIOC_G_FMT(VIDEO_CAPTURE)
[17:22] <cris__> type                    : VIDEO_CAPTURE
[17:22] <cris__> fmt.pix.width           : 352
[17:22] <cris__> fmt.pix.height          : 288
[17:22] <cris__> fmt.pix.pixelformat     : 0x37303250 [P207]
[17:23] <cris__> fmt.pix.field           : NONE
[17:23] <cris__> fmt.pix.bytesperline    : 352
[17:23] <cris__> fmt.pix.sizeimage       : 101952
[17:23] <cris__> fmt.pix.colorspace      : SRGB
[17:23] <cris__> fmt.pix.priv            : 0
[17:23] <cris__> controls
[17:23] <cris__>     VIDIOC_QUERYCTRL(BASE+0)
[17:23] <cris__> id                      : 9963776
[17:23] <cris__> type                    : INTEGER
[17:23] <cris__> name                    : "Brightness"
[17:23] <cris__> minimum                 : 0
[17:23] <cris__> maximum                 : 255
[17:23] <cris__> step                    : 1
[17:23] <cris__> default_value           : 46
[17:23] <cris__> flags                   : 32
[17:23] <cris__>     VIDIOC_QUERYCTRL(BASE+17)
[17:23] <cris__> id                      : 9963793
[17:23] <cris__> type                    : INTEGER
[17:23] <cris__> name                    : "Exposure"
[17:23] <cris__> minimum                 : 3
[17:23] <cris__> maximum                 : 90
[17:23] <cris__> step                    : 1
[17:23] <cris__> default_value           : 5
[17:23] <cris__> flags                   : 16
[17:23] <cris__>     VIDIOC_QUERYCTRL(BASE+18)
[17:23] <cris__> id                      : 9963794
[17:23] <cris__> type                    : BOOLEAN
[17:23] <cris__> name                    : "Gain, Automatic"
[17:23] <cris__> minimum                 : 0
[17:23] <cris__> maximum                 : 1
[17:23] <cris__> step                    : 1
[17:23] <cris__> default_value           : 1
[17:23] <cris__> flags                   : 8
[17:23] <cris__>     VIDIOC_QUERYCTRL(BASE+19)
[17:23] <cris__> id                      : 9963795
[17:23] <cris__> type                    : INTEGER
[17:23] <cris__> name                    : "Gain"
[17:23] <cris__> minimum                 : 0
[17:23] <cris__> maximum                 : 31
[17:24] <cris__> step                    : 1
[17:24] <cris__> default_value           : 7
[17:24] <cris__> flags                   : 16
[17:24] <cbreak> spammers get dumber by the minute...
[17:26] <cris19291> Hello to all.
[17:26] <cris19291> I want stream from a webcam but have this error with ffmpeg with this webcam input.
[17:26] <cris19291> I think  is a problem of pixel format but can not resolve it.
[17:26] <cris19291> Can someone help me?
[17:26] <cris19291> Many thanks in advance.
[17:26] <cris19291> This is the command output
[17:26] <cris19291> ffmpeg -v debug -f video4linux2 -i /dev/video1 -vcodec mpeg2video output.mpg
[17:26] <cris19291> ffmpeg version 0.8.4-6:0.8.4-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the Libav developers
[17:26] <cris19291>   built on Nov  6 2012 16:49:20 with gcc 4.7.2
[17:26] <cris19291>   configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --en
[17:26] <cris19291> able-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu --enable-shared --disable-static
[17:26] <cbreak> worthless spammers...
[17:26] <cris19291>   avutil      configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:26] <cris19291> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:26] <cris19291> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:26] <cris19291>   avcodec     configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:26] <cbreak> get dumber by the second
[17:26] <cris19291> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:26] <cris19291> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:26] <cris19291>   avformat    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:26] <cris19291> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:26] <cris19291> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:26] <cris19291>   avdevice    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis...
[17:26] <cris19291> ...--enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
[17:27] <cris19291>   avfilter    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis...
[17:27] <cris19291> ...--enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
[17:27] <cris19291>   swscale     configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:27] <cris19291> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:27] <Mavrik> !ops
[17:27] <cris19291> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:27] <cris19291>   postproc    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.4ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger -
[17:27] <cris19291> -enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb...
[17:27] <cris19291> ...--enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
[17:27] <cris19291>   libavutil    51. 22. 1 / 51. 22. 1
[17:27] <cris19291>   libavcodec   53. 35. 0 / 53. 35. 0
[17:27] <cris19291>   libavformat  53. 21. 0 / 53. 21. 0
[17:27] <cris19291>   libavdevice  53.  2. 0 / 53.  2. 0
[17:27] <cris19291>   libavfilter   2. 15. 0 /  2. 15. 0
[17:27] <cris19291>   libswscale    2.  1. 0 /  2.  1. 0
[17:27] <cris19291>   libpostproc  52.  0. 0 / 52.  0. 0
[17:27] <cris19291> *** THIS PROGRAM IS DEPRECATED ***
[17:27] <cris19291> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[17:27] <cris19291> [video4linux2 @ 0x8152880] [5]Capabilities: 85000001
[17:27] <cris19291> [video4linux2 @ 0x8152880] Querying the device for the current frame size
[17:27] <cris19291> [video4linux2 @ 0x8152880] Setting frame size to 352x288
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x32315559 to 0x37303250
[17:27] <cbreak> bots should just auto kick ban such morons
[17:27] <cris19291>     Last message repeated 1 times
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x50323234 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x56595559 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x59565955 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x50313134 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x39565559 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x4F424752 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x50424752 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x33524742 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x33424752 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x34524742 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x59455247 to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x3231564E to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x47504A4D to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] The V4L2 driver changed the pixel format from 0x4745504A to 0x37303250
[17:27] <cris19291> [video4linux2 @ 0x8152880] Cannot find a proper format for codec_id 0, pix_fmt -1.
[17:27] <cris19291> /dev/video1: Input/output error
[17:27] <cris19291> The command vl4-info /dev/video1  give me this output:
[17:27] <cris19291> ### v4l2 device info [/dev/video1] ###
[17:28] <cris19291> general info
[17:28] <cris19291>     VIDIOC_QUERYCAP
[17:28] <cris19291> driver                  : "pac207"
[17:28] <cris19291> card                    : "CIF Single Chip     "
[17:28] <cris19291> bus_info                : "usb-0000:00:1d.1-1"
[17:28] <cris19291> version                 : 3.5.7
[17:28] <cris19291> capabilities            : 0x85000001 [VIDEO_CAPTURE,READWRITE,STREAMING,(null)]
[17:28] <cris19291> standards
[17:28] <cris19291> inputs
[17:28] <cris19291>     VIDIOC_ENUMINPUT(0)
[17:28] <cris19291> index                   : 0
[17:28] <cris19291> name                    : "pac207"
[17:28] <cris19291> type                    : CAMERA
[17:28] <cris19291> audioset                : 0
[17:28] <cris19291> tuner                   : 0
[17:28] <cris19291> std                     : 0x0 []
[17:28] <creep> haha
[17:28] <creep> i suspect the new $5 webcam from tesco
[17:33] <klaxa> woah, wtf
[17:36] <klaxa> cris19291
[17:36] <klaxa> <cris19291> *** THIS PROGRAM IS DEPRECATED ***
[17:36] <klaxa> <cris19291> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[17:36] <klaxa> wrong channel dude
[17:48] <ReneDescartes> Over 9000 thousands lines of console output! X)
[17:58] <cris19291> klaxa yes I know but if i use avconv the output is the same
[18:07] <burek> cris19291, are you really such an idiot
[18:07] <burek> or you are just trying to be
[18:15] <klaxa> at this point i'm pretty much convinced he is just trolling
[18:43] <cris19291> I'm sorry.  No I'm not an idiot , i'm don't try to be and i'm not trolling.  It is just the first time for me on a irc chat and do not speak good english . I'm sorry again. Bye.
[18:50] <ubitux> try ffmpeg, and with --enable-libv4l maybe
[18:54] <durandal_1707> that work for older version (1 not 2)
[18:55] <durandal_1707> what is the problem?
[19:08] <cris19291> durandal_1707, many thanks. Have I to build ffmpeg  with --enable-lib4l in the configure options?
[19:09] <durandal_1707> only older version, because newer do not work
[19:09] <durandal_1707> cris19291: what is problem you  want to resolve?
[19:35] <cris19291> durandal_1707, i want to stream input from  pac207 based webcam  over network with rtp format
[19:47] <cris19291> durandal_1707: maybe i have solved many thanks again!!
[20:15] <ubitux> durandal_1707: it's supposed to work with v4l2
[20:15] <ubitux> and actually that's what cris19291 did, through ld preload
[20:15] <durandal_1707> ld preload, why?
[20:30] <ubitux> 18:51:45 <@BBB> LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so avconv -f video4linux2 -i ...
[20:30] <ubitux> 18:51:49 <@BBB> should fix it
[20:30] <ubitux> 18:51:58 <@BBB> it'll convert your weird format to regular yuv
[20:30] <ubitux> that's exactly what libv4l is for
[20:30] <ubitux> --enable-v4l makes is builtin
[20:31] <durandal_1707> and what is name for weird format?
[23:24] <p4plus2> (05:51:09) burek: <p4plus2> ctr 18, medium preset causes only three dropped frames over four minutes-- not too bad at all
[23:24] <p4plus2> (05:51:14) burek: are you doing live encoding
[23:24] <p4plus2> live
[00:00] --- Sun Dec 30 2012


More information about the Ffmpeg-devel-irc mailing list