GstConstants.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #include "Constants.h"
  2. const uint8 GST::MIN_MAJOR_VERSION = 1 ;
  3. const uint8 GST::MIN_MINOR_VERSION = 6 ;
  4. // NOTE: compositor inputs are either mutually exclusive (compositor disabled)
  5. // or must all be enabled (compositor enabled)
  6. // N_COMPOSITOR_INPUTS is coupled to the state of AvCaster::DisabledFeatures
  7. const int GST::N_COMPOSITOR_INPUTS = 2 + !TEXT_BIN_NYI + !IMAGE_BIN_NYI ;
  8. // element IDs
  9. const String GST::PIPELINE_ID = "pipeline" ;
  10. const String GST::SCREENCAP_BIN_ID = "screencap-bin" ;
  11. const String GST::CAMERA_BIN_ID = "camera-bin" ;
  12. const String GST::TEXT_BIN_ID = "text-bin" ;
  13. const String GST::IMAGE_BIN_ID = "interstitial-bin" ;
  14. const String GST::COMPOSITOR_BIN_ID = "compositor-bin" ;
  15. const String GST::PREVIEW_BIN_ID = "preview-bin" ;
  16. const String GST::PREVIEW_SINK_ID = "preview-real-sink" ;
  17. const String GST::PREVIEW_FAUXSINK_ID = "preview-faux-sink" ;
  18. const String GST::PREVIEW_SINKPAD_ID = "preview-sinkpad" ;
  19. const String GST::AUDIO_BIN_ID = "audio-bin" ;
  20. const String GST::MUXER_BIN_ID = "muxer-bin" ;
  21. const String GST::OUTPUT_BIN_ID = "output-bin" ;
  22. // plugin IDs
  23. #if JUCE_LINUX
  24. const String GST::SCREEN_PLUGIN_ID = "ximagesrc" ;
  25. const String GST::CAMERA_PLUGIN_ID = "v4l2src" ;
  26. const String GST::ALSA_PLUGIN_ID = "alsasrc" ;
  27. const String GST::PULSE_PLUGIN_ID = "pulsesrc" ;
  28. const String GST::JACK_PLUGIN_ID = "jackaudiosrc" ;
  29. const String GST::PREVIEW_PLUGIN_ID = "xvimagesink" ;
  30. #endif //JUCE_LINUX
  31. const String GST::FAUXSRC_PLUGIN_ID = "fakesrc" ;
  32. const String GST::FAUXSINK_PLUGIN_ID = "fakesink" ;
  33. const String GST::TESTVIDEO_PLUGIN_ID = "videotestsrc" ;
  34. const String GST::TESTAUDIO_PLUGIN_ID = "audiotestsrc" ;
  35. const String GST::FILESINK_PLUGIN_ID = "filesink" ;
  36. const String GST::RTMPSINK_PLUGIN_ID = "rtmpsink" ;
  37. const String GST::LCTV_RTMP_URL = "rtmp://usmedia3.livecoding.tv:1935/livecodingtv/" ;
  38. // library error messages
  39. const String GST::ALSA_INIT_ERROR = "Could not open audio device for recording. Device is being used by another application." ;
  40. const String GST::PULSE_INIT_ERROR = "Failed to connect: Connection refused" ;
  41. const String GST::JACK_INIT_ERROR = "Jack server not found" ;
  42. const String GST::XV_INIT_ERROR = "Could not initialise Xv output" ;
  43. const String GST::FILE_SINK_ERROR = "No file name specified for writing." ;