Posts

FFMPEG Deinterlacing Modes

FFMPEG has multiple supported deinterlacing filters.  Here they are: 10.14 bwdif Deinterlace the input video ("bwdif" stands for "Bob Weaver Deinterlacing Filter"). Motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic interpolation algorithms. It accepts the following parameters: mode The interlacing mode to adopt. It accepts one of the following values: 0, send_frame Output one frame for each frame. 1, send_field Output one frame for each field. The default value is send_field. parity The picture field parity assumed for the input interlaced video. It accepts one of the following values: 0, tff Assume the top field is first. 1, bff Assume the bottom field is first. -1, auto Enable automatic detection of field parity. The default value is auto. If the interlacing is unknown or the decoder does not export this information, top field first will be assumed. deint Specify which frames to deinterlace. Accept ...

Configuring Alpine

====== ALPINE ====== 1. Pull down 3.7 Alpine from http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-standard-3.7.0-x86_64.iso 2. Create a VirtualBox VM from it 3. Start Alpine 4. Log in as root, just type root as user name when Alpine starts, no password 5. Set up Alpine using the instructions here: https://project.altservice.com/issues/930 Do the "Install Alpine" section Do the "Setup Alpine" section, but edit your /etc/apk/repositories and uncomment all lines but the first. Do the "VirtualBox" section     NOTE: If installing virtualbox 3.8, you mount like this.  The key is virtualbox-guest-modules-vanilla, since 3.8 is not hardened.         % apk add virtualbox-guest-additions virtualbox-guest-modules-vanilla         % modprobe -a vboxsf         % mount -t vboxsf shared /media/shared 6. Get gcc build stuff: https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_worki...

XML2CPL Tool

XML2CPL is a command line tool that takes XML timeline files from programs like Clipster and Final Cut Pro and converts them to compliant CPL.xml files.  The generated CPL.xml files pass validation by Netflix's Photon validation tool. Git Repo (private):  https://github.com/d3sw/D3.CPS.Researches/tree/develop/xml2cpl XML2CPL dependencies Netflix Photon (requires Java 1.8):  https://github.com/Netflix/photon BMX MXF tools:  https://sourceforge.net/projects/bmxlib/ MediaInfo (Checked in to Git as part of xml2cpl):  https://mediaarea.net/en/MediaInfo Environment Variables TEMP  - This is usually defined in Windows.  It should point to a temp directory. PHOTON_HOME  - Should point to the Netflix Photon directory. JAVA_HOME  - Should point to to the JDK directory.  Pretty standard for a Java install. Current XML2CPL work flow Take a Final Cut Pro or Clipster timeline file which is in XML format and references MOV and WAV ...

Using CCExtractor, modified version

Its best to just type "ccextractor" and hit return.  Yes, its long, but all options are there.  If we add or remove options, we update the help accordingly. CCExtractor extracts digital 608 captions by default to an srt file.  If you want analog 608 (SCTE20), or digital 708 captions, or SMI output, you must specify flags for each. By default the TN will  always   use the "-noru" and "-utf8" flags.  These flags disable roll up commands, and enable UTF8 encoding, respectively.  Make sure you add these two flags to every run of ccextractor. By default ccextractor will always create an output file to receive digital 608 captions.  If no digital 608 captions exist, this file will contain no captions.  This is the way ccextractor works and there's no way to turn it off.  Kind of stupid, but that's how the code was when we got here.  It always creates the digital 608 output file at the very start and will fill it with digital 608 ca...

Valgrind

Taken from here: http://cs.ecs.baylor.edu/~donahoo/tools/valgrind/ gcc -o test -g test.c This creates an executable named test. To check for memory leaks during the execution of test, try valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./test

FFMPEG: HowTo

FFmpeg Howto * To find info about a particular encoder/decoder:  ffmpeg --help encoder=ac3 Table of Contents     * Generic Syntax     * Main Options     * Encoding :           o D10 (aka Sony IMX)           o DVCAM / DVCPRO25 / DVCPRO50           o VC-3 (aka Avid DNxHD)           o FFV1           o H.264 I-frame only in Highest Quality           o H.264 Long GOP           o MPEG-2 I-frame only in Highest Quality           o MPEG-2 Long GOP     * Muxing and Wrapping :           o D10 into QuickTime ( for Final Cut Pro import )           o MPEG-2 Program Stream     * Demuxing and Unwrapping :           o MPEG-2 Program Stream   ...