Why Use an RTOS?

Total Page:16

File Type:pdf, Size:1020Kb

Why Use an RTOS? RT Computer and Machine Vision An Overview of MPEG and Image Processing Tips December 12, 2017 Sam Siewert FFMPEG FAQ Read It!! http://ffmpeg.org/faq.html You should know how to Decode Video (recorded from your camera or pre- recorded by someone else) You should know how to Encode Video (to turn in with your labs) Sam Siewert 2 Ffmpeg (avconv) Notes sudo apt-get install ffmpeg ffmpeg -i movie.mpg –ss 30 –t 30 movie%d.ppm –- 30 seconds @ 30 sec ssiewert@ssiewert-VirtualBox:~/a485/media$ ffmpeg -i big_buck_bunny_480p_surround-fix.avi -ss 30 -t 30 bbb%d.ppm ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Apr 2 2013 17:02:36 with gcc 4.6.3 Input #0, avi, from 'big_buck_bunny_480p_surround-fix.avi': Duration: 00:09:56.45, start: 0.000000, bitrate: 2957 kb/s Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 854x480 [PAR 1:1 DAR 427:240], 24 tbr, 24 tbn, 24 tbc Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s Incompatible pixel format 'yuv420p' for codec 'ppm', auto-selecting format 'rgb24' [buffer @ 0x907700] w:854 h:480 pixfmt:yuv420p [avsink @ 0x9054c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x905b60] w:854 h:480 fmt:yuv420p -> w:854 h:480 fmt:rgb24 flags:0x4 Output #0, image2, to 'bbb%d.ppm': Metadata: encoder : Lavf53.21.1 Stream #0.0: Video: ppm, rgb24, 854x480 [PAR 1:1 DAR 427:240], q=2-31, 200 kb/s, 90k tbn, 24 tbc Stream mapping: Stream #0.0 -> #0.0 Press ctrl-c to stop encoding ... Last message repeated 719 times -0kB time=29.00 bitrate= -0.0kbits/s frame= 720 fps= 38 q=0.0 Lsize= -0kB time=30.00 bitrate= -0.0kbits/s video:864686kB audio:0kB global headers:0kB muxing overhead -100.000002% ssiewert@ssiewert-VirtualBox:~/a485/media$ Sam Siewert 3 Now with PPM Frames PPM is Simple, but No Compression – Good for CV – http://en.wikipedia.org/wiki/Netpbm_format - Read this! – JPEG, PNG are Compressed – TIFF is an Alternative, but More Complex Sam Siewert 4 Simple Re-encode When Quality is not a Concern, Keep it Simple ffmpeg -f image2 -i bbb%d.ppm bbbtrans.mpg vlc bbbtrans.mpg Sam Siewert 5 Quality Encoding is Tricky Use MPEG4 HQ Settings, Encode 480p, AR=4:3 ffmpeg -f image2 -i bbb%d.ppm -maxrate 20000k - bufsize 32M -s 640x480 -vcodec mpeg4 -qscale 1 bbbtranshq.mp4 Sam Siewert 6 Color and Object Recognition Demo (Revisited) Object Recognition and Tracking Using Color in Real-Time Use Color Models or “Signatures” for Known Objects – General Color Perception and Recognition – Computer Vision – Specific Color Signature Recognition – Machine Vision – Controlled Lighting, Apriori algorithm, not tracking primary colors, but rather centroids of objects with a color signature ECEN 4623/5623 – University of Colorado Boulder Sam Siewert 7 Basic Concepts Single Camera Tilt/Pan Object Tracking – 2 Axes of Rotation – +/- 45 deg Tilt Rotation Servo – +/- 45 deg Pan Rotation Servo – Side or Rear Mounting of Tilt Servo Front View Side View Camera Pan Camera Rotation Tilt Rotation Pan Rotation Tilt Rotation Pan Servo Pan Tilt Servo Servo Tilt Servo Mounting Plane Mounting Plane Sam Siewert 8 Dual Camera Tilt/Pan Tracking Baseline with 2 Fixed Cameras – Pan Serve Pans Entire Baseline – Tilt Servo Tilts Pan Servo – Side Mounting Plate Camera Camera Tilt Rotation Pan Rotation Pan Servo Tilt Servo Mounting Plane Sam Siewert 9 Target Centroid Apply Edge Detection or Enhancement – High Pass Filter PSF Convolution – Point Spread Function – E.g. Edge Enhancement kernel -k/8 -k/8 -k/8 – 9 multiplications at every pixel and accumulate for new pixel value -k/8 k+1 -k/8 – k=0,1,2,3,… (k=0, no change) Raster Processing to Find Edges on Rows -k/8 -k/8 -k/8 Raster Processing to Find Edges on Columns Use Target Shape Characteristics Threshold Filter to Clean up Sharpened Image Chapter 24, “The Scientist and Engineer’s Guide to Digital Signal Processing”, by Steven Smith Sam Siewert 10 Edge Enhancement/Filter RGB Sharpen and Filter Sharpen Balanced Gray Sharpen and Filter Sharpen Sam Siewert 11 Pixel Coordinates Define Image Coordinates to Track Object Centroid Tilt/Pan With Servos to Keep Target Centroid in FOV Center X Frame Origin Reference Target Pixel Address 0,0 Pixel Address 160, 120 w o R l e t x i a P m r 0 o 4 F 2 C S T N Y NTSC 320 Pixel Column Format Sam Siewert 12 Stereo Ranging with Common Tilt/Pan Fixed Camera Baseline Target centroid ∆centroid = (dl + dr) ∆centroid b α θ = f d f ≡ focal − length d L lens R lens b α f f θ L detector R detector dl dr Sam Siewert 13 Pixel to Servo Calibration at Distance Pan Shifted Tilt One Servo Frame Tilt Shifted Frame Increment Pan One Servo Reference Target Increment Pixel Address Pan Shifted 160, 120 Target Pixel w o Address 158, 120 R l e t x i a P m r 0 o 4 F 2 Tilt Shifted Target C Pixel Address S 160, 122 T N NTSC 320 Pixel Column Format Pan 1 Servo Increment and Find Centroid X Pixel Change Tilt 1 Servo Increment and Find Centroid Y Pixel Change Sam Siewert 14 Characterize Camera FOV at Distances FOV Width/Height Linear as a Function of Distance Pixels/Inch Not Necessarily Linear as Function of Distance Use to Calibrate Servo Step Size (Gain) for Target Centering – For Servo Step Sizes of 1 Increment in Tilt/Pan, Camera Will Track Slowly – For Larger Servo Step Sizes May Over-shoot – Determine Deadbands (Servo Limits for Pixel Change Accuracy) CCTV FOV analysis Pixels Per Inch at Distances 50 y = 1.2132x - 1.1711 40 40 30 30 measured FOV 20 20 linear fit 10 10 Pixels Per Inch Per Pixels 0 0 distance from target distance from 0 20 40 0 10 20 30 40 50 FOV width Distance to Target Sam Siewert 15 Finding Centroid In Image Target Known by Color, Shape, or Brightness Raster to Find Target Edges and Max Width and Height Scanline for Symmetric targets Mark Centroid in Image for Easy Debug Noise in Image Will Cause Centroid Error – Use Averaging Pan Right to Move Target Left in Image Tilt Up to Move Target Down in Image Sam Siewert 16 More Tips Consider Controlled Lighting or For Mobile Robots, On-Board Lighting with LEDs Use Frame Grabber ADC Sensitivity Settings to Control Brightness Consider Automatic Calibration Sequences – Place Reference Targets to Set Pixel Step Size as a Function of Servo Step Size – Use Stereo Range Estimation to Determine Distance to Target and Set Tracking Gains for Current Distance When Target is Lost, Go Into Search Mode – Start from Max Tilt/Pan and Raster to Min Tilt/Pan to Find Target – For Search Modes Use Coarser Step Size Consider Small Servo Step Size, But High Frame Rate and Servo Command Rate Be Careful of Processor Overload with Image Processing at 30 FPS Sam Siewert 17 Project Suggestions Target Tracker – Tilt/Pan Camera Target Tracker – Fixed Camera, Tilt/Pan Laser Pointer Stereo Ranging Tracker Stereo Scene Imager – Raster a Scene with Tilt/Pan Laser Pointer – Fixed Camera Ranges to Each Laser Pointer Location – Builds 3-D Scene Map Line Follower Mobile Robot – Downward Camera Keeps Robot On Course – Image Processing Drives Steering Commands – Can Look Upward and Use Laser Pointer to detect Obstacles GPS Coarse Navigation with Close-In Computer Vision Scanners – Image to XY Plot Combine with Robotic Projects for Arm Navigation Sam Siewert 18 Video Media Sam Siewert 19 Embedding Video Codecs Codec = Compression, Decompression Build Your Own – Run Length Encoding – Difference Images – Python Viewer (Displays PPM sequences) – X-Windows Viewer (Displays PPM sequences) Theora/Ogg Open Source Option – http://www.theora.org/ – Stream over Raw TCP to VLC Viewer MJPEG Open Source Option – http://mjpeg.sourceforge.net/ Sam Siewert 20 Notes on Computer Color Encoding RGB, 24-bit, [0-255] for each color band Each Pixel is a 3-D Vector in RGB Space Blue Cyan Magenta White Green Black Red Yellow Sam Siewert 21 YUV/YCrCb RGB An Alternative to RGB is YUV, Where Y is Luminance and CrCb is Chrominance The following 2 sets of formulae are taken from information from Keith Jack's excellent book "Video Demystified" (ISBN 1-878707-09-4). RGB to YUV Conversion (For Computers with RGB [0-255]) – Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16 – Cr = V = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128 – Cb = U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128 YUV to RGB Conversion – B = 1.164(Y - 16) + 2.018(U - 128) – G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128) – R = 1.164(Y - 16) + 1.596(V - 128) In both these cases, you have to clamp the output values to keep them in the [0-255] range. Sam Siewert 22 RGB to Grayscale From 24 bits to 8 bits most often Single Color Band from RGB – Not True Grayscale, but Useful for Computer Vision Applications – Some Targets Like a Laser Pointer are Best Seen in Red Band or Green Band Alone GIMP Uses a Conversion to 8-bit Luminance – Y = 0.3R + 0.59G + 0.11B – Defined by equal amounts of color the eye is most sensitive to green, then red, and then blue Sam Siewert 23 R, G, or B band only vs.
Recommended publications
  • The Kid3 Handbook
    The Kid3 Handbook Software development: Urs Fleisch The Kid3 Handbook 2 Contents 1 Introduction 11 2 Using Kid3 12 2.1 Kid3 features . 12 2.2 Example Usage . 12 3 Command Reference 14 3.1 The GUI Elements . 14 3.1.1 File List . 14 3.1.2 Edit Playlist . 15 3.1.3 Folder List . 15 3.1.4 File . 16 3.1.5 Tag 1 . 17 3.1.6 Tag 2 . 18 3.1.7 Tag 3 . 18 3.1.8 Frame List . 18 3.1.9 Synchronized Lyrics and Event Timing Codes . 21 3.2 The File Menu . 22 3.3 The Edit Menu . 28 3.4 The Tools Menu . 29 3.5 The Settings Menu . 32 3.6 The Help Menu . 37 4 kid3-cli 38 4.1 Commands . 38 4.1.1 Help . 38 4.1.2 Timeout . 38 4.1.3 Quit application . 38 4.1.4 Change folder . 38 4.1.5 Print the filename of the current folder . 39 4.1.6 Folder list . 39 4.1.7 Save the changed files . 39 4.1.8 Select file . 39 4.1.9 Select tag . 40 The Kid3 Handbook 4.1.10 Get tag frame . 40 4.1.11 Set tag frame . 40 4.1.12 Revert . 41 4.1.13 Import from file . 41 4.1.14 Automatic import . 41 4.1.15 Download album cover artwork . 42 4.1.16 Export to file . 42 4.1.17 Create playlist . 42 4.1.18 Apply filename format . 42 4.1.19 Apply tag format .
    [Show full text]
  • Screen Capture Tools to Record Online Tutorials This Document Is Made to Explain How to Use Ffmpeg and Quicktime to Record Mini Tutorials on Your Own Computer
    Screen capture tools to record online tutorials This document is made to explain how to use ffmpeg and QuickTime to record mini tutorials on your own computer. FFmpeg is a cross-platform tool available for Windows, Linux and Mac. Installation and use process depends on your operating system. This info is taken from (Bellard 2016). Quicktime Player is natively installed on most of Mac computers. This tutorial focuses on Linux and Mac. Table of content 1. Introduction.......................................................................................................................................1 2. Linux.................................................................................................................................................1 2.1. FFmpeg......................................................................................................................................1 2.1.1. installation for Linux..........................................................................................................1 2.1.1.1. Add necessary components........................................................................................1 2.1.2. Screen recording with FFmpeg..........................................................................................2 2.1.2.1. List devices to know which one to record..................................................................2 2.1.2.2. Record screen and audio from your computer...........................................................3 2.2. Kazam........................................................................................................................................4
    [Show full text]
  • EMA Mezzanine File Creation Specification and Best Practices Version 1.0.1 For
    16530 Ventura Blvd., Suite 400 Encino, CA 91436 818.385.1500 www.entmerch.org EMA Mezzanine File Creation Specification and Best Practices Version 1.0.1 for Digital Audio‐Visual Distribution January 7, 2014 EMA MEZZANINE FILE CREATION SPECIFICATION AND BEST PRACTICES The Mezzanine File Working Group of EMA’s Digital Supply Chain Committee developed the attached recommended Mezzanine File Specification and Best Practices. Why is the Specification and Best Practices document needed? At the request of their customers, content providers and post‐house have been creating mezzanine files unique to each of their retail partners. This causes unnecessary costs in the supply chain and constrains the flow of new content. There is a demand to make more content available for digital distribution more quickly. Sales are lost if content isn’t available to be merchandised. Today’s ecosystem is too manual. Standardization will facilitate automation, reducing costs and increasing speed. Quality control issues slow down today’s processes. Creating one standard mezzanine file instead of many files for the same content should reduce the quantity of errors. And, when an error does occur and is caught by a single customer, it can be corrected for all retailers/distributors. Mezzanine File Working Group Participants in the Mezzanine File Working Group were: Amazon – Ben Waggoner, Ryan Wernet Dish – Timothy Loveridge Google – Bill Kotzman, Doug Stallard Microsoft – Andy Rosen Netflix – Steven Kang , Nick Levin, Chris Fetner Redbox Instant – Joe Ambeault Rovi
    [Show full text]
  • Nvidia Video Technologies
    NVIDIA VIDEO TECHNOLOGIES Abhijit Patait, 5/8/2017 NVIDIA Video Technologies New SDK Release Major Focus Areas AGENDA Video SDK Features Software Flow FFmpeg Performance and Benchmarking Tips Benchmarks 2 NVIDIA VIDEO TECHNOLOGIES 3 VIDEO CODEC SDK A comprehensive set of APIs for GPU- accelerated Video Encode and Decode The SDK consists of two hardware acceleration interfaces: NVENCODE API for video encode acceleration NVIDIA Video Codec SDK technology is used to stream video with NVIDIA ShadowPlay running on NVIDIA GPUs NVDECODE API for video decode acceleration (formerly called NVCUVID API) Independent of CUDA/3D cores on GPU 4 NVIDIA VIDEO TECHNOLOGIES FFMPEG & LIBAV Easy access to NVIDIA GPU hardware acceleration VIDEO CODEC SDK A comprehensive set of APIs for GPU-accelerated Video Encode and Decode for Windows and Linux SOFTWARE CUDA, DirectX, OpenGL interoperability NVIDIA DRIVER NVENC NVDEC Independent Hardware Encoder Function Independent Hardware Decoder Function HARDWARE 5 NVIDIA VIDEO TECHNOLOGIES Decode HW* Encode HW* Formats: CPU • MPEG-2 Formats: • VC1 • H.264 • VP8 • H.265 • VP9 • Lossless • H.264 • H.265 Bit depth: • Lossless • 8 bit NVDEC Buffer NVENC • 10 bit Bit depth: • 8 bit Color** • 10 bit • YUV 4:4:4 • YUV 4:2:0 Color** • YUV 4:2:0 CUDA Cores Resolution • Up to 8K*** Resolution • Up to 8K*** * See support diagram for previous NVIDIA HW generations ** 4:2:2 is not natively supported on HW 6 *** Support is codec dependent VIDEO SDK EVOLUTION Video SDK 8.0 SDK 7.x Pascal 10-bit encode SDK 5.0 FFmpeg Maxwell 2 ME-only for VR HEVC Quality++ Perf++ SDK 6.0 SDK 4.0 ARGB Maxwell 1 SDK 8.0 Quality+ 10-bit transcode H.264 Dec+Enc 4:4:4, lossless 10/12-bit decode ME-only OpenGL Dec.
    [Show full text]
  • Ffmpeg Codecs Documentation Table of Contents
    FFmpeg Codecs Documentation Table of Contents 1 Description 2 Codec Options 3 Decoders 4 Video Decoders 4.1 hevc 4.2 rawvideo 4.2.1 Options 5 Audio Decoders 5.1 ac3 5.1.1 AC-3 Decoder Options 5.2 flac 5.2.1 FLAC Decoder options 5.3 ffwavesynth 5.4 libcelt 5.5 libgsm 5.6 libilbc 5.6.1 Options 5.7 libopencore-amrnb 5.8 libopencore-amrwb 5.9 libopus 6 Subtitles Decoders 6.1 dvbsub 6.1.1 Options 6.2 dvdsub 6.2.1 Options 6.3 libzvbi-teletext 6.3.1 Options 7 Encoders 8 Audio Encoders 8.1 aac 8.1.1 Options 8.2 ac3 and ac3_fixed 8.2.1 AC-3 Metadata 8.2.1.1 Metadata Control Options 8.2.1.2 Downmix Levels 8.2.1.3 Audio Production Information 8.2.1.4 Other Metadata Options 8.2.2 Extended Bitstream Information 8.2.2.1 Extended Bitstream Information - Part 1 8.2.2.2 Extended Bitstream Information - Part 2 8.2.3 Other AC-3 Encoding Options 8.2.4 Floating-Point-Only AC-3 Encoding Options 8.3 flac 8.3.1 Options 8.4 opus 8.4.1 Options 8.5 libfdk_aac 8.5.1 Options 8.5.2 Examples 8.6 libmp3lame 8.6.1 Options 8.7 libopencore-amrnb 8.7.1 Options 8.8 libopus 8.8.1 Option Mapping 8.9 libshine 8.9.1 Options 8.10 libtwolame 8.10.1 Options 8.11 libvo-amrwbenc 8.11.1 Options 8.12 libvorbis 8.12.1 Options 8.13 libwavpack 8.13.1 Options 8.14 mjpeg 8.14.1 Options 8.15 wavpack 8.15.1 Options 8.15.1.1 Shared options 8.15.1.2 Private options 9 Video Encoders 9.1 Hap 9.1.1 Options 9.2 jpeg2000 9.2.1 Options 9.3 libkvazaar 9.3.1 Options 9.4 libopenh264 9.4.1 Options 9.5 libtheora 9.5.1 Options 9.5.2 Examples 9.6 libvpx 9.6.1 Options 9.7 libwebp 9.7.1 Pixel Format 9.7.2 Options 9.8 libx264, libx264rgb 9.8.1 Supported Pixel Formats 9.8.2 Options 9.9 libx265 9.9.1 Options 9.10 libxvid 9.10.1 Options 9.11 mpeg2 9.11.1 Options 9.12 png 9.12.1 Private options 9.13 ProRes 9.13.1 Private Options for prores-ks 9.13.2 Speed considerations 9.14 QSV encoders 9.15 snow 9.15.1 Options 9.16 vc2 9.16.1 Options 10 Subtitles Encoders 10.1 dvdsub 10.1.1 Options 11 See Also 12 Authors 1 Description# TOC This document describes the codecs (decoders and encoders) provided by the libavcodec library.
    [Show full text]
  • Avpy Documentation Release 0.1.1
    Avpy Documentation Release 0.1.1 sydh February 14, 2016 Contents i ii CHAPTER 1 Overview Avpy is a ctypes (python) binding for libav and ffmpeg. Examples Code examples. Frequently Asked Questions Some questions that come up often. avpy The complete API documentation, organized by classes and functions. 1 Avpy Documentation, Release 0.1.1 2 Chapter 1. Overview CHAPTER 2 Getting Help If you’re having trouble or have questions, you can write me an email (sydhds __at__ gmail __dot__ com) or create an issue in the bug tracker (see Issues) and mark it as an ehancement or a proposal. 3 Avpy Documentation, Release 0.1.1 4 Chapter 2. Getting Help CHAPTER 3 Issues All issues should reported at the Avpy bug tracker. 5 Avpy Documentation, Release 0.1.1 6 Chapter 3. Issues CHAPTER 4 Changes See the Changelog for a full list of changes. 7 Avpy Documentation, Release 0.1.1 8 Chapter 4. Changes CHAPTER 5 Contributions Fork the git repo and submit a pull request. 9 Avpy Documentation, Release 0.1.1 10 Chapter 5. Contributions CHAPTER 6 Indices and tables • genindex • modindex • search 6.1 Examples The examples in this section are intended to give in depth overviews of how to accomplish specific tasks in Python. Unless otherwise noted, all examples assume that the Avpy module can be imported. See also: see ‘examples’ folder in avpy repository 6.1.1 First Steps This example covers your first steps with Avpy. Importing Let’s start with printing some media information: from avpy import Media # print media info (streams, codecs...) m= Media('test.avi') print
    [Show full text]
  • Indiana University Media Digitization and Preservation Initiative (MDPI)
    Indiana University Media Digitization and Preservation Initiative (MDPI) White Paper: Encoding and Wrapper Decisions and Implementation for Video Preservation Master Files Authored by: Mike Casey, Director of Technical Operations, MDPI Reviewed by: Carla Arton, Film Digitization Specialist, IU Libraries Moving Image Archive Jon Cameron, Digital Media Service Manager, IU Libraries Jon Dunn, Assistant Dean for Library Technologies, IU Libraries Heidi Kelly, Digital Preservation Librarian, IU Libraries Brent Moberly (Appendix author), Software Developer, UITS, IU Brian Wheeler, Senior Systems Engineer, IU Libraries Special thanks to Dave Rice for astute comments and suggestions Copyright 2017 Trustees of Indiana University This document is licensed under a Creative Commons Attribution 4.0 International license (CC BY 4.0) https://creativecommons.org/licenses/by/4.0/ Release date: March 27, 2017 Indiana University Media Digitization and Preservation Initiative Encoding and Wrapper Decisions and Implementation for Video Preservation Master Files 1. Overview There is no consensus in the media preservation community on best practice for encoding and wrapping video preservation master files. Institutions engaged in long- term video preservation typically choose from three paths, each of which are currently seen as viable for this purpose: 10-bit, uncompressed, v210 codec, usually with a QuickTime wrapper JPEG 2000, mathematically lossless profile, usually with an MXF wrapper FFV1, a mathematically lossless format, with an AVI or Matroska wrapper No single path can be said to be widely adopted, in part because there are relatively few institutions engaged in digitizing video for long-term preservation, especially at scale. It appears as of this writing that institutions are roughly evenly divided between the three paths listed above.
    [Show full text]
  • Yt2mp3 Documentation
    yt2mp3 Documentation Brett Stevenson Aug 03, 2020 Contents 1 Contributing 3 2 Contents 5 3 Indices and tables 13 i ii yt2mp3 Documentation A program that simplifies the process of searching, downloading and converting Youtube videos to MP3 files from the command-line. All you need is the video URL or the name of the artist/track you’re looking for. The program will attempt to retrieve data for a song matching the provided input by querying the iTunes API and use the data to find a corresponding YouTube video, if a URL is not provided. The video will then be downloaded, converted, and the gathered data will be used to populate the metadata of the MP3. Note: If a URL is provided and no match is found for the song data, the program will prompt the user for the title/artist and the YouTube thumbnail will be used as the album artwork. Contents 1 yt2mp3 Documentation 2 Contents CHAPTER 1 Contributing If you’d like to contribute to the project, feel free to suggest a feature request and/or submit a pull request. 3 yt2mp3 Documentation 4 Chapter 1. Contributing CHAPTER 2 Contents 2.1 Getting Started 2.1.1 Install You can install the program with the following command: $ pip install yt2mp3 Prerequisites The program only requires that you have Python 3.4+ and ffmpeg or libav installed. More installation information is available on the additional setup page. 2.1.2 Usage Once installed, the program can be executed via the command-line as follows: $ yt2mp3 [-options] When the program is finished, you can find the resulting MP3 file in your Downloads directory, with the following file-structure Music/{artist}/{track}.mp3.
    [Show full text]
  • Ffmpeg - the Universal Multimedia Toolkit
    Introduction Resume Resources FFmpeg - the universal multimedia toolkit Appendix Stefano Sabatini mailto:[email protected] Video Vortex #9 Video Vortex #9 - 1 March, 2013 1 / 13 Description Introduction Resume Resources multiplatform software project (Linux, Mac, Windows, Appendix Android, etc...) Comprises several command line tools: ffmpeg, ffplay, ffprobe, ffserver Comprises C libraries to handle multimedia at several levels Free Software / FLOSS: LGPL/GPL 2 / 13 Objective Introduction Resume Provide universal and complete support to multimedia Resources content access and processing. Appendix decoding/encoding muxing/demuxing streaming filtering metadata handling 3 / 13 History Introduction 2000: Fabrice Bellard starts the project with the initial Resume aim to implement an MPEG encoding/decoding library. Resources The resulting project is integrated as multimedia engine Appendix in MPlayer, which also hosts the project. 2003: Fabrice Bellard leaves the project, Michael Niedermayer acts as project maintainer since then. March 2009: release version 0.5, first official release January 2011: a group of discontented developers takes control over the FFmpeg web server and creates an alternative Git repo, a few months later a proper fork is created (Libav). 4 / 13 Development model Source code is handled through Git, tickets (feature requests, bugs) handled by Trac Introduction Resume Patches are discussed and approved on mailing-list, Resources and directly pushed or merged from external repos, Appendix trivial patches or hot fixes can be pushed directly with no review. Every contributor/maintainer reviews patches in his/her own area of expertise/interest, review is done on a best effort basis by a (hopefully) competent developer. Formal releases are delivered every 6 months or so.
    [Show full text]
  • Kafl: Hardware-Assisted Feedback Fuzzing for OS Kernels
    kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels Sergej Schumilo1, Cornelius Aschermann1, Robert Gawlik1, Sebastian Schinzel2, Thorsten Holz1 1Ruhr-Universität Bochum, 2Münster University of Applied Sciences Motivation IJG jpeg libjpeg-turbo libpng libtiff mozjpeg PHP Mozilla Firefox Internet Explorer PCRE sqlite OpenSSL LibreOffice poppler freetype GnuTLS GnuPG PuTTY ntpd nginx bash tcpdump JavaScriptCore pdfium ffmpeg libmatroska libarchive ImageMagick BIND QEMU lcms Adobe Flash Oracle BerkeleyDB Android libstagefright iOS ImageIO FLAC audio library libsndfile less lesspipe strings file dpkg rcs systemd-resolved libyaml Info-Zip unzip libtasn1OpenBSD pfctl NetBSD bpf man mandocIDA Pro clamav libxml2glibc clang llvmnasm ctags mutt procmail fontconfig pdksh Qt wavpack OpenSSH redis lua-cmsgpack taglib privoxy perl libxmp radare2 SleuthKit fwknop X.Org exifprobe jhead capnproto Xerces-C metacam djvulibre exiv Linux btrfs Knot DNS curl wpa_supplicant Apple Safari libde265 dnsmasq libbpg lame libwmf uudecode MuPDF imlib2 libraw libbson libsass yara W3C tidy- html5 VLC FreeBSD syscons John the Ripper screen tmux mosh UPX indent openjpeg MMIX OpenMPT rxvt dhcpcd Mozilla NSS Nettle mbed TLS Linux netlink Linux ext4 Linux xfs botan expat Adobe Reader libav libical OpenBSD kernel collectd libidn MatrixSSL jasperMaraDNS w3m Xen OpenH232 irssi cmark OpenCV Malheur gstreamer Tor gdk-pixbuf audiofilezstd lz4 stb cJSON libpcre MySQL gnulib openexr libmad ettercap lrzip freetds Asterisk ytnefraptor mpg123 exempi libgmime pev v8 sed awk make
    [Show full text]
  • Cannot Find Codec Libx264 in Libavcodec
    Cannot find codec libx264 in libavcodec -ovc lavc -lavcopts vcodec=libx (I also tried with libxvid). It spat out this error at the end: Code: Cannot find codec 'libxvid' in libavcodec. [SOLVED] unsuported codecs in kdenlive. configure --enable-gpl --enable-libx and you need recent x (maverick) this codec is provided by package libavcodec-extra Cannot find codec 'libx' in libavcodec Couldn't open video filter 'lavc'. Failed to open the encoder. libx is right in the man page under. I didnt get how to "install" the x codec on windows so i can use ffmpeg to hmm - but i cant load the h codec - the avcodec_open function failed! as . double videoPTS; // init libavcodec, register all codecs and formats. Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Cannot find codec 'h' in libavcodec VDecoder init failed:(Opening. I installed the x codec thus: Code: root@a:/home/g/dnlds# whereis decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: [Log in to get rid of this advertisement] Quality, I get error message that codecs libx and libmp3lame are missing. 0 libavcodec MOV track #0: chunks, samples MOV: AVC decoder configuration Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Forced video codec: vssh Cannot find codec matching selected -vo. I've successfully compiled: x codec, libavcodec with x support enabled, -vf scale= Cannot find codec 'x' in libavcodec. In general, codecs are utilized by multimedia applications to encode or decode audio or video GStreamer; xine; libavcodec. [audio options] [output] ffmpeg [input] -vcodec libx -vpre medium -b k. sudo apt-get install libavcodec-extra libavdevice-extra To get even more codec support you can enable the Medibuntu repository.
    [Show full text]
  • Ffmpeg's FFV1 Lossless Video Codec
    FFmpeg's FFV1 lossless video codec Peter Bubestinger Intro FUD FFmpeg's FFV1 lossless video codec Challenges FS Super Powers A Free Software success story Romance Conclusions Happy End Peter Bubestinger 09. May, 2015 1 / 40 We needed something that works. How did all this begin. ? FFmpeg's FFV1 lossless video codec Peter Bubestinger Intro FUD Challenges FS Super Powers Romance Conclusions Happy End 2 / 40 How did all this begin. ? FFmpeg's FFV1 lossless video codec Peter Bubestinger Intro FUD Challenges FS Super Powers Romance We needed something Conclusions Happy End that works. 3 / 40 At the end of 2009 FFmpeg's FFV1 lossless video codec Peter Bubestinger Who is \we"? Intro The Austrian National A/V Archive (Osterreichische¨ Mediathek) a FUD wanted to digitize video for long-term preservation. Challenges a FS Super Powers http://www.mediathek.at/ Romance Conclusions For audio it's clear: Happy End Format is uncompressed(=lossless) PCM (WAV). We just applied the same requirements to video. But uncompressed was not an option (too huge!) 4 / 40 At the end of 2009 FFmpeg's FFV1 lossless video codec Peter Bubestinger Intro So how do others archive video professionally? FUD The situation we found: Challenges FS Super Powers Majority uses lossy codecs: Romance IMX, ProRes, MPEG-2, MPEG-4 Conclusions Industry proposed format: JPEG2000-lossless/PCM in MXF Happy End One existing product: FrontPorch Digital "Samma" Issues with: Access, interoperabilty and transcoding of produced files (Even between different versions of same vendor) 5 / 40 JPEG2000 A jack-of-all-trades video codec FFmpeg's FFV1 lossless video codec Peter Bubestinger The industry proposed format: Intro Official ISO standard (lossy and lossless) FUD Challenges Very few, but \maybe-compatible" implementations.
    [Show full text]