<commit_before><planet>
  <!-- the manager and the bouncer with user/password <PASSWORD> 
       This bouncer is user to authenticate other components in the
       system, but not client connecting to the stream. -->
  <manager>
    <component name="manager-bouncer" type="htpasswdcrypt">
<data><![CDATA[
test:PSfNpHTkpTx1M
]]></data>
    </component>
  </manager>

  <flow name="dv-example">
    <!-- a component that reads from a firewire port, decodes the dv audio/video, resizes
         and resamples and corrects for dropouts -->
    <component name="dv-camera" type="producer">
      <feed>video</feed>
      <feed>audio</feed>
      <pipeline>
         dv1394src ! dvdec name=dec drop-factor=2 ! video/x-raw-yuv,format=(fourcc)YUY2 ! 
           videorate ! videoscale ! video/x-raw-yuv,width=384,height=288 ! 
           videoscale ! video/x-raw-yuv,width=384,height=268,framerate=12.5,format=(fourcc)YUY2 ! @feeder::video@
         dec. ! audio/x-raw-int ! audiorate ! 
           audioscale ! audio/x-raw-int,rate=24000 ! @feeder::audio@
      </pipeline>
    </component>
    
    <!-- add an overlay to the raw video stream, make sure to have a png image in
         the directory where you start the server. -->
    <component name="dv-with-overlay" type="converter">
      <source>dv-camera:video</source>
      <pipeline>
         filesrc location=dv_384x268.png blocksize=100000 ! pngdec ! 
           alphacolor ! videomixer name=mix ! @feeder::video@
         @eater:dv-camera:video@ ! video/x-raw-yuv,width=384,height=268,framerate=12.5 ! ffmpegcolorspace ! alpha ! mix. 
      </pipeline>
      <feed>video</feed>
    </component>
  
    <component name="dv-theora" type="converter">
      <source>dv-with-overlay</source>
      <pipeline>ffmpegcolorspace ! theoraenc bitrate=300</pipeline>
      <feed>video</feed>
    </component>

    <component name="dv-vorbis" type="converter">
      <source>dv-camera:audio</source>
      <pipeline>audioconvert ! rawvorbisenc bitrate=32000</pipeline>
      <feed>audio</feed>
    </component>

    <component name="dv-ogg-theora-vorbis" type="converter">
      <source>dv-theora:video</source>
      <source>dv-vorbis:audio</source>
      <feed>ogg</feed>
      <pipeline>
          { @eater:dv-vorbis:audio@ } { @eater:dv-theora:video@ } 
          eater:dv-vorbis:audio. ! queue max-size-buffers=16 ! oggmux name=mux 
          eater:dv-theora:video. ! queue max-size-buffers=16 ! mux. mux. ! @feeder::ogg@
      </pipeline>
    </component>

    <component name="streamer-ogg-theora" type="http-streamer">
      <source>dv-ogg-theora-vorbis:ogg</source>
      <port>8800</port>
      <logfile>/tmp/ogg-test-theora.access.log</logfile>
    </component>
  </flow>
</planet>
<commit_msg>Updated example, added comments<commit_after><planet>
  <!-- the manager and the bouncer with user/password <PASSWORD>/test 
       This bouncer is user to authenticate other components in the
       system, but not client connecting to the stream. -->
  <manager>
    <component name="manager-bouncer" type="htpasswdcrypt">
<data><![CDATA[
test:PSfNpHTkpTx1M
]]></data>
    </component>
  </manager>

  <flow name="dv-example">
    <!-- a component that reads from a firewire port, decodes the dv audio/video, resizes
         and resamples and corrects for dropouts -->
    <component name="dv-camera" type="producer">
      <feed>video</feed>
      <feed>audio</feed>
      <pipeline>
         <!-- read from firewire, decode video, drop every 2 frames -->
         dv1394src ! dvdec name=dec drop-factor=2 ! video/x-raw-yuv,format=(fourcc)YUY2 ! 
	   <!-- normalize rate, scale down to get rid of interlace -->
           videorate ! videoscale ! video/x-raw-yuv,width=384,height=288 ! 
	   <!-- scale down some more to correct aspect ratio -->
           videoscale ! video/x-raw-yuv,width=384,height=268,framerate=12.5,format=(fourcc)YUY2 ! @feeder::video@
	 <!-- audio gets rate corrected -->
         dec. ! audio/x-raw-int ! audiorate ! 
	   <!-- downsample audio to encode it at lower bitrate -->
           audioscale ! audio/x-raw-int,rate=24000 ! @feeder::audio@
      </pipeline>
    </component>
    
    <!-- add an overlay to the raw video stream, make sure to have a png image in
         the directory where you start the server. -->
    <component name="dv-with-overlay" type="converter">
      <source>dv-camera:video</source>
      <pipeline>
	 <!-- read png -->
         filesrc location=dv_384x268.png blocksize=100000 ! pngdec ! 
	   <!-- convert RGBA to YUVA and send to videomixer -->
           alphacolor ! videomixer name=mix ! @feeder::video@
	 <!-- take dv video, color convert and send to video mixer -->
         @eater:dv-camera:video@ ! video/x-raw-yuv,width=384,height=268,framerate=12.5 ! ffmpegcolorspace ! alpha ! mix. 
      </pipeline>
      <feed>video</feed>
    </component>
  
    <component name="dv-theora" type="converter">
      <source>dv-with-overlay:video</source>
      <!-- colorspace convert and theora encode at 300kbps -->
      <pipeline>ffmpegcolorspace ! theoraenc bitrate=300</pipeline>
      <feed>video</feed>
    </component>

    <component name="dv-vorbis" type="converter">
      <source>dv-camera:audio</source>
      <!-- audio convert and vorbis encode at 32kbps -->
      <pipeline>audioconvert ! rawvorbisenc bitrate=32000</pipeline>
      <feed>audio</feed>
    </component>

    <component name="dv-ogg-theora-vorbis" type="converter">
      <source>dv-theora:video</source>
      <source>dv-vorbis:audio</source>
      <feed>ogg</feed>
      <pipeline>
          <!-- take audio and send to the muxer -->
          { @eater:dv-vorbis:audio@ } ! queue max-size-buffers=16 ! oggmux name=mux 
          <!-- take video and send to the muxer -->
	  { @eater:dv-theora:video@ } ! queue max-size-buffers=16 ! mux. mux. ! @feeder::ogg@
      </pipeline>
    </component>

    <component name="streamer-ogg-theora" type="http-streamer">
      <!-- send muxed ogg to http streamer on port 8800 -->
      <source>dv-ogg-theora-vorbis:ogg</source>
      <port>8800</port>
      <logfile>/tmp/ogg-test-theora.access.log</logfile>
    </component>
  </flow>
</planet>

{'fraction_non_alphanumeric': 0.1462546513509141, 'fraction_numerical': 0.022650056625141562, 'mean_word_length': 2.8469197261978842, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 0, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7434379', 'n_tokens_mistral': 2139, 'n_tokens_neox': 2039, 'n_words': 446}