Picon

Building gst-plugins-bad source while using gstreamer packages on Ubuntu [SEC=UNCLASSIFIED]

UNCLASSIFIED

Hi,
 
I am trying to build the gst-plugins-bad source code while using the gstreamer packages downloaded using the apt-get tool on Ubuntu 10.04 LTS. I can successfully run ./configure and make install however gst-inspect doesn't seem to pick up the bad plugins.
 
Any suggestions?
 
Thanks,
Paul

IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Matthias Dodt | 1 Feb 11:18

AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

Hi George!

Thanks for your reply! I took me a while to figure out what the problem with automoc was: If I compile it with
VS2008 Express automoc always crashes at startup. With 2005 Professional it works fine- no clue why yet-

So now it start's compiling but stops with the following errors caused by
qt-gstreamer-0.10.1\src\qglib\type.h and it states that libxml cannot be found (which is weired
because I passed the path to cmake). Output:

...
9>d:\Entwicklung\ossbuild\Build\Windows\Win32\Release\include\gstreamer-0.10\gst/gstconfig
.h(131) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or
directory
9>gstqwidgetvideosink_automoc.cpp
9>c1xx : fatal error C1083: Cannot open source file: '.\gstqwidgetvideosink_automoc.cpp':
No such file or directory
9>Generating Code...
9>Build log was saved at "file://d:\SDKs\qt-gstreamer-0.10.1\build\elements\gstqwidgetvide
osink.dir\Debug\BuildLog.htm"
9>gstqwidgetvideosink - 2 error(s), 0 warning(s)
7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2065: 'QIntegerForSizeof' : un
declared identifier
7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2275: 'size_t' : illegal use o
f this type as an expression
7>        predefined C++ types (compiler internal)(19) : see declaration of 'size_t'
7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(40) : error C2955: 'boost::mpl::if_c' : use
 of class template requires template argument list
7>        d:\SDKs\boost_1_48_0\boost/mpl/if.hpp(35) : see declaration of 'boost::mpl::if_c
'
...

The cmake command was:

cmake -G "Visual Studio 8 2005" -DCMAKE_INSTALL_PREFIX="d:/SDKs/qt-gstreamer/install"
-DBOOST_ROOT="d:/SDKs/boost_1_48_0" 
-DCMAKE_INCLUDE_PATH="D:/Entwicklung/ossbuild/Shared/Build/Linux/x86/include/libxml2;d:/entwicklung/ossbuild/Shared/MSVC/Include"
-DCMAKE_PREFIX_PATH="d:/entwicklung/ossbuild/Build/Windows/Win32/Release;d:/entwicklung/ossbuild/Shared/Build/Windows/Win32;d:/entwicklung/tools/automoc/install" ..

-libxml2 is in the path. What are these type.h errors? 

Thanks a lot!

Mat

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+mdodt=xion-medical.com <at> lists.freedesktop.org
[mailto:gstreamer-devel-bounces+mdodt=xion-medical.com <at> lists.freedesktop.org] Im Auftrag von
George Kiagiadakis
Gesendet: 27 January 2012 10:25
An: Discussion of the development of and with GStreamer
Betreff: Re: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

On Thu, Jan 26, 2012 at 7:16 PM, Matthias Dodt <MDodt <at> xion-medical.com> wrote:
> Hey guys!
>
> I can't really build QtGstreamer on Windows. I followed the wiki 
> instructions, but i get a bunch of errors. The main problem is that
> automoc4 cannot be found - but i got it in my %PATH%!
>
> Another weired thing is that if i just run "automoc4" from the same 
> command line it just crashes (i don't know if this application is 
> supposed to run without arguments though-).
>
> The cmake command was:
> cmake -G "Visual Studio 9 2008"
> -DCMAKE_INSTALL_PREFIX="d:/SDKs/qt-gstreamer/install"
> -DBOOST_ROOT="d:/SDKs/boost_1_48_0"
> -DCMAKE_INCLUDE_PATH="d:/entwicklung/ossbuild/Shared/MSVC/Include"
> -DCMAKE_PREFIX_PATH="d:/entwicklung/ossbuild/Build/Windows/Win32/Relea
> se 
> ;d:/entwicklung/ossbuild/Shared/Build/Windows/Win32;d:/entwicklung/too
> ls
> /automoc" ..
>
> Automoc is located in d:/entwicklung/tools/automoc/install/bin, which 
> is within %PATH%-

Hi,

cmake looks for a certain file called Automoc4Config.cmake, not for the executable directly.
On my linux system this is in /usr/lib/automoc4/Automoc4Config.cmake,
with automoc4 being in /usr/bin. I guess that all you need to do is to put
"d:/entwicklung/tools/automoc/install/" in your CMAKE_PREFIX_PATH in the command line above,
instead of just "d:/entwicklung/tools/automoc", and assuming that Automoc4Config.cmake is in
d:/entwicklung/tools/automoc/install/lib/automoc4/, it should find it.

Regards,
George
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Matthias Dodt | 1 Feb 11:44

AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

Hi George!

Sorry I missed another thing. Running cmake as described in my last
email outputs another error. Basically the script states it can't find
the packages but summarizes that everything is there? 

-- checking for module 'gstreamer-0.10'
--   package 'gstreamer-0.10' not found
-- checking for module 'gstreamer-base-0.10'
--   package 'gstreamer-base-0.10' not found
-- Performing Test GSTREAMER_VERSION_COMPATIBLE
-- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success
-- checking for module 'gstreamer-plugins-base-0.10'
--   package 'gstreamer-plugins-base-0.10' not found
-- checking for module 'gstreamer-app-0.10'
--   package 'gstreamer-app-0.10' not found
-- checking for module 'gstreamer-interfaces-0.10'
--   package 'gstreamer-interfaces-0.10' not found
-- checking for module 'gstreamer-video-0.10'
--   package 'gstreamer-video-0.10' not found

------------------------------------------------------------------------
-----
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these
packages.
------------------------------------------------------------------------
-----
   * Qt 4 - Required for building everything
   * Boost - Required for building QtGLib
   * Automoc 4 - Required for the build system to generate moc files
properly
   * GStreamer - Required to build QtGStreamer
   * GStreamer base library - Used for building the qwidgetvideosink
element
   * GStreamer app library - Required to build QtGStreamerUtils
   * GStreamer interfaces library - Required to build QtGStreamer
   * GStreamer video library - Used for building the qwidgetvideosink
element
   * GLib - Required to build QtGLib
   * GObject - Required to build QtGLib
   * Flex - Required to build codegen, a helper code generator
   * Bison - Required to build codegen, a helper code generator
   * Doxygen - Used to generate the API documentation

Thanks again!
Jan Spurny | 1 Feb 12:00
Picon
Favicon

storing one video stream into multiple files

Hi,

I'm trying to store video from one video stream into multiple files with given duration.
Something which could look like this:

gst-launch souphttpsrc location=http://1.2.3.4/video1 ! decodebin ! x264enc ! SOMETHING
filename="file_%D_%T.mp4" duration=2m

and it would produce files like these:

file_2012-02-01_10-12-43.mp4
file_2012-02-01_10-14-43.mp4
file_2012-02-01_10-16-43.mp4
..

I don't expect that element "SOMETHING" already exists so I'll have to write it myself. I have written a few
simple gstreamer elements (mostly some kind of raw-video transformations) so I'm quite confident I'll
be able to do it, but I do need all advices and guidelines I can get.

I'll have many different inputs - different input sources (files, http streams, rtsp streams, v4l, ..) and
also different input formats (mjpeg, mpeg4, h264, raw-yuv). But that's ok, gstreamer can handle these
without problems.

Now I can either just simply reuse the stream and just "cut it into chunks of desired length", but as there are
so many different formats to work with..
Or I'll just recode video into some default format. That's why I have a "decodebin ! x264enc" in my pipeline
above. I may support more formats in the future but for the first version one is enough.

So with one known format (let's say h264) I'll have to "pack it" (muxer) into small chunks and write them down
to disk.

This is the part where I don't really know where to start - I guess studying some existing muxer and would be a
good start, but I'm really scared of all the complexity with encoded video streams, B-frames, I-frames,
and all this..

Thanks in advance for any help, advices or suggestions.

Jan Spurny
Matthias Dodt | 1 Feb 12:13

AW: Building QtGstreamer package not found errors

Sorry George, the last output was wrong - here is the right one:

D:\SDKs\qt-gstreamer-0.10.1\build>cmake -G "Visual Studio 8 2005"
-DCMAKE_INSTAL
L_PREFIX="d:/SDKs/qt-gstreamer/install"
-DBOOST_ROOT="d:/SDKs/boost_1_48_0"  -DC
MAKE_INCLUDE_PATH="D:\Entwicklung\ossbuild\Shared\Build\Windows\Win32\in
clude\li
bxml2;d:/entwicklung/ossbuild/Shared/MSVC/Include"
-DCMAKE_PREFIX_PATH="d:/entwi
cklung/ossbuild/Build/Windows/Win32/Release;d:/entwicklung/ossbuild/Shar
ed/Build
/Windows/Win32;d:/entwicklung/tools/automoc/install" ..

-- Check for working C compiler using: Visual Studio 8 2005
-- Check for working C compiler using: Visual Studio 8 2005 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 8 2005
-- Check for working CXX compiler using: Visual Studio 8 2005 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found LibXml2:
d:/Entwicklung/ossbuild/Shared/Build/Windows/Win32/lib/xml2.li
b
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: C:/Qt/4.5.3/bin/qmake.exe (found version "4.5.3")
-- Boost version: 1.48.0
-- checking for module 'gstreamer-0.10'
--   package 'gstreamer-0.10' not found
-- checking for module 'gstreamer-base-0.10'
--   package 'gstreamer-base-0.10' not found
-- Found GSTREAMER_BASE_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Rel
ease/lib/gstbase-0.10.lib
-- Found GSTREAMER_BASE_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows/Win32
/Release/include/gstreamer-0.10
-- Performing Test GSTREAMER_VERSION_COMPATIBLE
-- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success
-- Found GStreamer:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Release/lib/gstr
eamer-0.10.lib (Required is at least version "0.10.31")
-- checking for module 'gstreamer-plugins-base-0.10'
--   package 'gstreamer-plugins-base-0.10' not found
-- checking for module 'gstreamer-app-0.10'
--   package 'gstreamer-app-0.10' not found
-- Found GSTREAMER_APP_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Rele
ase/lib/gstapp-0.10.lib
-- Found GSTREAMER_APP_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows/Win32/
Release/include/gstreamer-0.10
-- checking for module 'gstreamer-interfaces-0.10'
--   package 'gstreamer-interfaces-0.10' not found
-- Found GSTREAMER_INTERFACES_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win
32/Release/lib/gstinterfaces-0.10.lib
-- Found GSTREAMER_INTERFACES_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows
/Win32/Release/include/gstreamer-0.10
-- checking for module 'gstreamer-video-0.10'
--   package 'gstreamer-video-0.10' not found
-- Found GSTREAMER_VIDEO_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Re
lease/lib/gstvideo-0.10.lib
-- Found GSTREAMER_VIDEO_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows/Win3
2/Release/include/gstreamer-0.10
-- Found GStreamerPluginsBase: TRUE (Required is at least version
"0.10.31")
-- Found GLIB2:
d:/Entwicklung/ossbuild/Shared/Build/Windows/Win32/lib/glib-2.0.
lib
-- Found GObject:
d:/Entwicklung/ossbuild/Shared/Build/Windows/Win32/include/gli
b-2.0
-- Found FLEX: D:/Entwicklung/Tools/GnuWin32/bin/flex.exe (found version
"D:/Ent
wicklung/Tools/GnuWin32/bin/flex.exe version 2.5.4")
-- Found BISON: D:/Entwicklung/Tools/GnuWin32/bin/bison.exe (found
version "2.4.
1")
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe
-- Found DOXYFILE_IN: D:/SDKs/qt-gstreamer-0.10.1/Doxyfile.in

------------------------------------------------------------------------
-----
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these
packages.
------------------------------------------------------------------------
-----
   * Qt 4 - Required for building everything
   * Boost - Required for building QtGLib
   * Automoc 4 - Required for the build system to generate moc files
properly
   * GStreamer - Required to build QtGStreamer
   * GStreamer base library - Used for building the qwidgetvideosink
element
   * GStreamer app library - Required to build QtGStreamerUtils
   * GStreamer interfaces library - Required to build QtGStreamer
   * GStreamer video library - Used for building the qwidgetvideosink
element
   * GLib - Required to build QtGLib
   * GObject - Required to build QtGLib
   * Flex - Required to build codegen, a helper code generator
   * Bison - Required to build codegen, a helper code generator
   * Doxygen - Used to generate the API documentation

------------------------------------------------------------------------
-----
-- Congratulations! All external packages have been found.
------------------------------------------------------------------------
-----

-- Configuring done
-- Generating done
-- Build files have been written to: D:/SDKs/qt-gstreamer-0.10.1/build
mehrotra_kk | 1 Feb 11:28
Picon
Favicon

real audio decoders ffdec_sipr and ffdec_real_288 giving out garbled audio output (gst-ffmpeg version used is 0.10.13)

I was trying to decode .rm files with sipr and real (28.8) audio coding using
ffdec_sipr and ffdec_real_288 but the o/p (out.flv) is garbled audio. here
is the complete pipelines i used:

gst-launch filesrc location=28dewdz-ep2.rm ! rmdemux name=demux
demux.audio_00 ! queue ! ffdec_sipr ! audioconvert ! audiorate !
ffaudioresample ! audio/x-raw-int, channels=\(int\)1, width=\(int\)16,
depth=\(int\)16, endianness=\(int\)1234,
rate=\(int\)44100,signed=\(boolean\)true ! lame bitrate=64 ! identity !
ffmux_flv name=mux ! filesink location=/tmp/out.flv

gst-launch filesrc location=bastard.rm ! rmdemux name=demux demux.audio_00 !
queue ! ffdec_real_288 ! audioconvert ! audiorate ! ffaudioresample !
audio/x-raw-int, channels=\(int\)1, width=\(int\)16, depth=\(int\)16,
endianness=\(int\)1234, rate=\(int\)44100,signed=\(boolean\)true ! lame
bitrate=64 ! identity ! ffmux_flv name=mux ! filesink location=/tmp/out.flv

i tried with various other .rm files with audio formats of sipr and real
28.8 and all the the outputs of above pipelines were giving garbled audio.

Is there known issues with these two ffmpeg decoders.

http://gstreamer-devel.966125.n4.nabble.com/file/n4347453/28dewdz-ep2.rm
28dewdz-ep2.rm 
http://gstreamer-devel.966125.n4.nabble.com/file/n4347453/bastard.rm
bastard.rm 

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/real-audio-decoders-ffdec-sipr-and-ffdec-real-288-giving-out-garbled-audio-output-gst-ffmpeg-version-tp4347453p4347453.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Matthias Dodt | 1 Feb 14:26

AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND - SOLVED!! - Wiki suggestions

Hi George!

Yeehaww! I managed to compile it;-). 

- The libxml include error is an gstreamer/ossbuild error as described
in an older mail:
http://lists.freedesktop.org/archives/gstreamer-devel/2011-December/0343
36.html

Basically it is sufficient to remove this #include from gstconfig.h.

- I used boost 1.48 which is incompatible with Qt <= 4.8.0 due to a MOC
issue:
http://comments.gmane.org/gmane.comp.lib.boost.user/71518
Qt bugreport:
https://bugreports.qt-project.org/browse/QTBUG-22829

Still if i run cmake i get the output the find_package failed like
described in my last mail - but it compiles fine ;-)

I think it would be nice to have just 2 hint's for this specific
versions of ossbuild and boost on the wiki page. I know that it's not
related to your project but it would prevent people from running into
this time consuming compilation issues. 

Thanks!

Cheers,

mat
Picon

Streaming to a Flash Media Server using the rtmpsink element

Hello,

I'm trying to stream a flv stream into a Flash Media Server using the following pipeline:

GST_DEBUG=2,*rtmp*:5 gst-launch -v videotestsrc ! videorate ! ffmpegcolorspace ! x264enc ! flvmux streamable=true ! queue2 ! rmtpsink location="rtmp://host/app/stream live=1"

This is the result: http://pastebin.com/utD1t4CE

My question is: how should I start debugging? I'm also wondering if the src caps of flvmux are okay.

Thanks in advance.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
André Dieb | 1 Feb 15:12
Picon

Re: Streaming to a Flash Media Server using the rtmpsink element

Oops, I'm sorry.


I forgot to mention the pipeline closes right after the last line of the referred paste. From the debugging it also doesn't seem to shutdown properly like other pipelines.

2012/2/1 André Dieb Martins <andre.dieb <at> gmail.com>
Hello,

I'm trying to stream a flv stream into a Flash Media Server using the following pipeline:

GST_DEBUG=2,*rtmp*:5 gst-launch -v videotestsrc ! videorate ! ffmpegcolorspace ! x264enc ! flvmux streamable=true ! queue2 ! rmtpsink location="rtmp://host/app/stream live=1"

This is the result: http://pastebin.com/utD1t4CE

My question is: how should I start debugging? I'm also wondering if the src caps of flvmux are okay.

Thanks in advance.



--
<at> andredieb
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
George Kiagiadakis | 1 Feb 16:26
Picon
Gravatar

Re: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

On Wed, Feb 1, 2012 at 12:18 PM, Matthias Dodt <MDodt <at> xion-medical.com> wrote:
> Hi George!
>
> Thanks for your reply! I took me a while to figure out what the problem with automoc was: If I compile it with
VS2008 Express automoc always crashes at startup. With 2005 Professional it works fine- no clue why yet-
>
> So now it start's compiling but stops with the following errors caused by
qt-gstreamer-0.10.1\src\qglib\type.h and it states that libxml cannot be found (which is weired
because I passed the path to cmake). Output:
>
> ...
> 9>d:\Entwicklung\ossbuild\Build\Windows\Win32\Release\include\gstreamer-0.10\gst/gstconfig
> .h(131) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or
> directory

This is a bug in ossbuild. The bundled version of gstconfig.h is
outdated. There have been previous discussions about this in this
mailing list as well. Please grab gstconfig.h from gstreamer git and
merge it appropriately.

> 9>gstqwidgetvideosink_automoc.cpp
> 9>c1xx : fatal error C1083: Cannot open source file: '.\gstqwidgetvideosink_automoc.cpp':
> No such file or directory
> 9>Generating Code...
> 9>Build log was saved at "file://d:\SDKs\qt-gstreamer-0.10.1\build\elements\gstqwidgetvide
> osink.dir\Debug\BuildLog.htm"
> 9>gstqwidgetvideosink - 2 error(s), 0 warning(s)
> 7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2065: 'QIntegerForSizeof' : un
> declared identifier
> 7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2275: 'size_t' : illegal use o
> f this type as an expression
> 7>        predefined C++ types (compiler internal)(19) : see declaration of 'size_t'
> 7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(40) : error C2955: 'boost::mpl::if_c' : use
>  of class template requires template argument list
> 7>        d:\SDKs\boost_1_48_0\boost/mpl/if.hpp(35) : see declaration of 'boost::mpl::if_c
> '

Hmm, this is a little worrying... Which version of Qt are you using?

Gmane