xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


projects:nogold

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:nogold [2013/07/16 17:55] Julien Deswaefprojects:nogold [2013/09/03 15:17] (current) – [Ubuntu bugs and other things] Julien Deswaef
Line 12: Line 12:
 Stream a Fluxus window to icecast: Stream a Fluxus window to icecast:
 <code=bash>gst-launch ximagesrc xname="fluxus scratchpad 0.18" ! \ <code=bash>gst-launch ximagesrc xname="fluxus scratchpad 0.18" ! \
-    ffmpegcolorspace ! theoraenc quality=! oggmux ! \+    ffmpegcolorspace ! theoraenc quality=16 ! oggmux ! \
     shout2send ip=localhost port=8000 password=hackme mount=test.ogg</code>     shout2send ip=localhost port=8000 password=hackme mount=test.ogg</code>
 +    
 +Stream from a video capture card to icecast:
 +<code=bash>gst-launch v4l2src ! videoscale ! video/x-raw-yuv,width=768,height=576 ! \
 +    ffmpegcolorspace ! theoraenc quality=16 ! oggmux ! \
 +    shout2send ip=localhost port=8000 password=hackme mount=test.ogg</code>
 +    
 +    
 +Launch VLC with no interface, fullscreen, without OnScreenDisplay and cropped (left+top+right+bottom)
 +<code=bash>cvlc -f --no-osd --crop 0+2+400+300 http://localhost:8000/test.ogg</code>
 +    
 +==== Ubuntu bugs and other things ====
 +=== White screen on second, third and fourth monitor ===
 +
 +Especially with multiple sessions of Xwindow and Xinerama **disabled**.\\ 
 +BUG: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/885989 \\
 +Nautilus is buggy. Replaced with Thunar.
 +
 +:!: Removing Nautilus from a clean Ubuntu will remove gnome-session and break the desktop. You don't want that. To keep a working gnome-session, I added the gnome3 ppa before removing nautilus. Which actually updated gnome-session in the process.
 +<code=bash>sudo add-apt-repository ppa:gnome3-team/gnome3</code>
 +
 +And to get something like DISPLAY:=0.1 in the command line, you need to bee in Unity2D. Geez.
 +
 +=== Cropping source videos ===
 +Since Noemie has done some editing to the videos. She has brought letterboxed videos to display. And since we wanted the image to be fullscreen. I cropped the video using FFMpeg:
 +
 +
 +<code=bash>ffmpeg -i input.dvd -vf "cropdetect=24:16:0" dummy.mpeg
 +</code>
 +
 +detects where the cropping should happend. I could make calculations myself, but it was more fun to have it done by FFMpeg. 
 +
 +<code=bash>ffmpeg -i input.dvd -vf "crop=720:432:0:72" -sameq -an cropped.dvd</code> 
 +
 +Crops the video while keeping the quality the same, though removing the unecessary audio.
  
  
projects/nogold.1373990106.txt.gz · Last modified: 2013/07/16 17:55 by Julien Deswaef