Wary/Racy 5.3RC2 (5.2.91)

Please post any bugs you have found
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: ffmpeg and x11grab

#281 Post by shinobar »

Karl Godt wrote:I also tried shinobars' three ffmpeg-svn* back then saying x11grab enabled but did not work either and wondered what was wrong
Now its all solved thanks to npierce.
http://www.murga-linux.com/puppy/viewto ... 471#642471

BTW, you can check if the ffmpeg supports x11grab by typing:

Code: Select all

# ffmpeg -formats 2>/dev/null | grep x11
 D  x11grab
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

Re: ffmpeg and x11grab

#282 Post by technosaurus »

npierce wrote:And, of course, I added --extra-ldflags="-L/usr/X11R7/lib".
yes, /usr/X11* is a royal PITA... I sometimes mv everything into /usr, rm -rf /usr/X11R7 and then cd /usr; ln -s . X11R7 ... Just to avoid all the damned workarounds.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
WB7ODYFred
Posts: 169
Joined: Sun 14 Dec 2008, 02:15
Location: Oregon & Washington

create programs ffplay and ffserver

#283 Post by WB7ODYFred »

Hello, I am reading the configure file for ffmpeg and the makefile. I am trying to build a new version of ffplay and ffserver. Can someone post
a configure command line or a make command line with the options to build a functioning ffplay and ffserver? Sorry to ask, but you made running configure easy from previous window.

thanks for your ./configure command line above. I was able to copy and paste in my terminal window and then run "make" and "make install".
Although "make check" had a error with libavutil/cabac.h and lib???/time.h
compile. "make" and "make install" did complete properly.

May "make check" error. have searched google for the below errors.
http://ffmpeg.org/faq.html#toc-error_00 ... 27asm_0027 says gcc error DONT REPORT TO ffmpeg bugs
http://forums.gentoo.org/viewtopic-t-89 ... art-0.html
Regardless, I suspect you're running into an old gcc bug, that's been fixed in the recent 4.5 series.
There's a note about it in one of old ffmpeg bugs.
Yes, I'm running gcc-4.3.4. So, you said I need upgrade to gcc-4.5 (4.5.1, 4.5.2 or 4.5.3) Anyway it's good idea since 4.5 support Intel Atom which is inside in my eeepc ;)
Yes, upgrade gcc to 4.5.3 solved the problem

Code: Select all

sh-4.1# pwd
/root/OpenMovieEditor/ffmpeg-0.11.1
sh-4.1# make check
CC	libavcodec/cabac-test.o
libavcodec/cabac.c: In function 'main':
libavcodec/x86/cabac.h:167: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
libavcodec/x86/cabac.h:167: error: 'asm' operand has impossible constraints
./libavutil/x86/timer.h:31: error: 'asm' operand has impossible constraints
make: *** [libavcodec/cabac-test.o] Error 1
sh-4.1# 
when you run "make check" do your have errors, too? Or do you use different source base for ffmpeg?

I also had to download, compile, and install libvpx before configuring and compiling ffmpeg.
http://www.linuxfromscratch.org/blfs/vi ... ibvpx.html
ffmpeg.org/faq.html


libvpx > 0.9.1
http://ffmpeg.gusari.org/viewtopic.php?f=9&t=26
Where do these new update libraries get uploaded to, so that a non-DEVELOPER could use Puppy Package Manager to install Libpng14, Libjpeg.so.8 and many other useful libraries.


I am compiling openmovieeditor and needed a working ffmpeg libraries
ps. In addition to RoxTerm and Geany editor what other developer tools do you use?
Eclipse? Anjunta? CodeBlocks?

Should we use a newer version of GCC 4.5 in the devx_5.2.8.sfs ?
I see am using 4.4.3 version.
sh-4.1# gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Attachments
ffmpeg_configure_files.tar.gz
configure and Makefile plus a lot of other files like config.log
Sample of configure file that worked for me for ffmpeg-0.11.1 source code.
(95.28 KiB) Downloaded 833 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#284 Post by Karl Godt »

Fred, when i compile ffmpeg i get 1000 lines of warnings. I seldom->never run make check or make test. Why? Good questions, probably because i can not do much to fix them. The programs run anyway.

But because i had compiled ffmpeg-1.11 lately and still had the folder i couriously ran make check on it :
Di 31. Jul 08:29:10 GMT+1 2012 check
/bin/make 'check'
/root/Downloads/COMPILE/FFMPEG/ffmpeg-0.11.1:/root/Downloads/COMPILE/FFMPEG/ffmpeg-0.11.1
tools/lavfi-showfiltfmts.c: In function ‘print_formats’:
tools/lavfi-showfiltfmts.c:61: Warnung: assignment from incompatible pointer type
tools/lavfi-showfiltfmts.c:62: Warnung: assignment from incompatible pointer type
libavcodec/options_table.h:84: Warnung: ‘sub_id’ is deprecated (declared at libavcodec/avcodec.h:1356)
libavcodec/options_table.h:148: Warnung: ‘luma_elim_threshold’ is deprecated (declared at libavcodec/avcodec.h:1588)
libavcodec/options_table.h:149: Warnung: ‘chroma_elim_threshold’ is deprecated (declared at libavcodec/avcodec.h:1595)
libavcodec/options_table.h:284: Warnung: ‘color_table_id’ is deprecated (declared at libavcodec/avcodec.h:1834)
libavcodec/options_table.h:307: Warnung: ‘inter_threshold’ is deprecated (declared at libavcodec/avcodec.h:1897)
libavcodec/options_table.h:312: Warnung: ‘quantizer_noise_shaping’ is deprecated (declared at libavcodec/avcodec.h:1904)
libswscale/swscale_internal.h:549:5: warning: "FF_API_SWS_FORMAT_NAME" is not defined
libavfilter/formats.c: In function ‘ff_default_query_formats’:
libavfilter/formats.c:458: Warnung: ‘avfilter_all_formats’ is deprecated (declared at libavfilter/formats.c:265)
libavcodec/dct-test.c:106: Warnung: ‘ff_prores_idct_put_10_sse2_wrap’ defined but not used
libavcodec/fft-test.c: In function ‘main’:
libavcodec/fft-test.c:295: Warnung: ‘av_set_cpu_flags_mask’ is deprecated (declared at ./libavutil/cpu.h:73)
In file included from libavcodec/fft-fixed-test.c:20:
libavcodec/fft-test.c: In function ‘main’:
libavcodec/fft-test.c:295: Warnung: ‘av_set_cpu_flags_mask’ is deprecated (declared at ./libavutil/cpu.h:73)
libavcodec/rangecoder.c: In function ‘ff_init_range_decoder’:
libavcodec/rangecoder.c:56: Warnung: passing argument 1 of ‘bytestream_get_be16’ from incompatible pointer type
libavcodec/rangecoder.c:54: Warnung: passing argument 2 of ‘ff_init_range_encoder’ discards qualifiers from pointer target type
libavcodec/motion-test.c: In function ‘main’:
libavcodec/motion-test.c:142: Warnung: ‘dsp_mask’ is deprecated (declared at libavcodec/avcodec.h:2664)
libavcodec/motion-test.c:146: Warnung: ‘dsp_mask’ is deprecated (declared at libavcodec/avcodec.h:2664)
libswscale/swscale-test.c: In function ‘doTest’:
libswscale/swscale-test.c:124: Warnung: passing argument 2 of ‘sws_scale’ from incompatible pointer type
libswscale/swscale-test.c:167: Warnung: passing argument 2 of ‘sws_scale’ from incompatible pointer type
libswscale/swscale-test.c:199: Warnung: passing argument 2 of ‘sws_scale’ from incompatible pointer type
libswscale/swscale-test.c: In function ‘main’:
libswscale/swscale-test.c:365: Warnung: passing argument 2 of ‘sws_scale’ from incompatible pointer type
libavutil/opt.c: In function ‘av_find_opt’:
libavutil/opt.c:42: Warnung: ‘av_next_option’ is deprecated (declared at libavutil/opt.h:348)
libavutil/opt.c: In function ‘av_opt_set_defaults’:
libavutil/opt.c:614: Warnung: ‘av_opt_set_defaults2’ is deprecated (declared at libavutil/opt.h:371)
make: *** [fate-acodec-aref] Fehler 1
I have written a /bin/make wrapper script to collect /usr/bin/make $@ 2>make-errs.log.
You see i have warnings and no errors, but still get an "1" as error return code.

*

Fred, I don't use anything else than what you use (rox, geany), but have adjusted new2dir and dir2pet for my experiments.
But my header and supporting library structure had need to grow for 1½ years. So the configure script automatically puts things in like SDL.

*

Fred, since you refer to 528 i am guessing that you run Lupu/Lucid (while this is a Wary/Racy thread).

Fred, i am guessing, that such questions are better addressed here in the Compiling section.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: create programs ffplay and ffserver

#285 Post by shinobar »

@WB7ODYFred
Your post can be off topic. I think you are better to post a new thread somewhere.
As for the configure option for lupu, i used next options to make the ffmpeg-8.11 on lupu-528JP, based on lupu-528.005 + Pmusic_Upgrade.

Code: Select all

./configure --prefix=/usr --disable-static --enable-shared --enable-nonfree --arch=i486 --enable-libfaac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-runtime-cpudetect --enable-gpl --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-debug --enable-bzlib --enable-zlib --enable-libspeex --enable-version3 --enable-x11grab --enable-libdc1394 --enable-libdirac --enable-small
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#286 Post by antiloquax »

Thanks very much for your work on this guys.
I can now use ffconvert on my Racy installation :D
I was wondering how I can tell ffconvert to use the audio from a usb headset? I have managed to do this using ffmpeg before (with the pup_rec script), but I'd like to be able to do it within ffconvert so that I can take advantage of the other setting available ...
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

audio recording

#287 Post by shinobar »

antiloquax wrote: I'd like to be able to do it within ffconvert so that I can take advantage of the other setting available ...
ffconvert is basically an av file converter. I recommend the mhWaveEdit for short time audio recording and the Bacon Recorder for long.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

Re: audio recording

#288 Post by antiloquax »

shinobar wrote:I recommend the mhWaveEdit for short time audio recording and the Bacon Recorder for long.
Sorry, I should have been more specific. I am trying to make screencasts, I have go the screen-grab aspect of ffconvert working (and I like the way you can just grab one window). But I can't see how to get the input from my usb headset to become the audio track.

Using Lobster's "pup_rec" script, this works fine - so maybe I will just stick to that. :)
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: audio recording

#289 Post by shinobar »

antiloquax wrote: I am trying to make screencasts, I have go the screen-grab aspect of ffconvert working (and I like the way you can just grab one window). But I can't see how to get the input from my usb headset to become the audio track.

Using Lobster's "pup_rec" script, this works fine - so maybe I will just stick to that. :)
Your post at proper topic is welcome. Do you get some error messages?
http://www.murga-linux.com/puppy/viewtopic.php?t=54056
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

Re: audio recording

#290 Post by antiloquax »

shinobar wrote: Your post at proper topic is welcome. Do you get some error messages?
http://www.murga-linux.com/puppy/viewtopic.php?t=54056
Thanks, I will do that.
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#291 Post by antiloquax »

Not a bug, just wanted to.mention that I have had success compiling GCC 7. This was on my old Pentium three laptop. I left it working overnight. I haven't used it yet for any serious compiling, but it seems okay. I had to install some gnu floating point things first.

I now only have 256 mb of RAM on this machine as one of my memory slots has stopped working. It still does the business, as long as I don't ask it to do too many things at once.
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#292 Post by Karl Godt »

GCC 7
Do you mean gcc-4.4.7 ? ( Wary/Racy devx has gcc-4.3.4 by default ) .

And for your RAM :
Image

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#293 Post by antiloquax »

Yes, sorry 4.7.0. Posting from my phone is not helping my accuracy.
Thanks for the RAM tomb. :D
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

Post Reply