Videogrep: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 31: Line 31:
http://www.archive.org/details/night_of_the_living_dead
http://www.archive.org/details/night_of_the_living_dead


{{#widget:video|url=http://www.archive.org/download/night_of_the_living_dead/night_of_the_living_dead_512kb.mp4}}
{{#widget:video|url=http://www.archive.org/download/night_of_the_living_dead/night_of_the_living_dead.ogv}}


[[Category: Prototyping]]
[[Category: Prototyping]]

Revision as of 22:41, 7 October 2010

aka grep meets SRT

The idea of this assignment is to familiarize yourself with:

  • basic text/code editing in Linux
  • commandline basics
  • big idea: working in a "pipeline" (both literally, and more metaphorically)

Ingredients

Plain text?

file nameofyourfile.srt

Redirecting stderr to stdout

ffmpeg's output is actually to the stderr and not the stdout. In other words, its output is tagged as "error" information, and the ability to distinguish between this and "regular" information can sometimes be useful. In this case however, we want ffmpeg's output to be treated like "regular" command output. You do this by "redirecting stderr to stdout" with the rather cryptic addition of "2>&1".

ffmpeg -i foo.ogg 2>&1

[1]

Search & Replace

sed is good for search and replace...

sed s/a/*/g from to


http://www.archive.org/details/night_of_the_living_dead