Posts

Showing posts with the label tech

Speed Up Visual Studio Debugging

Turn off "Show Threads In Source" https://stackoverflow.com/questions/805397/debugging-sometimes-very-slow/49681940#49681940

How to Change a 4-Prong Dryer Cord and Plug to a 3-Prong

https://dengarden.com/appliances/how-to-change-a-4-prong-dryer-cord-and-plug-to-a-3-prong

HDR Research

Overview We are looking at what it would take to encode HDR-10 and Dolby Vision videos using an AVC/HEVC encoder. HDR-10 : 10-bit HDR, BT.2020, PQ transfer function, static metadata Dolby Vision : 12-bit HDR (10bit YUV + deltas defined in metadata = 12 bit), BT.2020, PQ transfer function, Dolby Vision dynamic metadata  What is HDR-10? From  this  paper, we have gleaned the following: Essentially, HDR-10 is defined as the combination of the following container and coding characteristics: Color container/primaries: BT.2020 PQ Transfer function (OETF/EOTF): SMPTE ST 2084 Representation: Non Constant Luminance (NCL) YCbCr Sampling: 4:2:0 Bit Depth: 10 bits Metadata: SMPTE ST 2086, MaxFALL, MaxCLL,  AVC/HEVC Supplemental enhancement information (SEI) Messages. Encoding using: HEVC Main 10 profile or AVC High 10. The AVC/HEVC specifications support all of these features as well as metadata (SEI) that can specify the mastering and brightness limitat...

MXF Research

Image
Sony's HD Formats Guide from 2008 Avid and MXF   From digitalpreservation.gov: MXF File, OP1a, MPEG-2 in Generic Container MXF Operational Pattern 1a (OP1a) Creating MXF and AAF Files: MXF is a container format that is designed to "wrap" media files and carry associated metadata.  AAF is a metadata file format that can describe how to assemble a program from original sources. Cinecert's asdcplib  for creating MXF Advanced Authoring Format SDK  for creating AAF   XDCAM Formats from  wikipedia : DirectShow MXF Mux with Main Concept: I've been able to pull all elementary streams out of an MXF (except for the ancillary 608 CC track #9).  I've then been able to build a graph to remux all those sources using MC MXF Multiplexer. Creating XDCAM HD 422 using ffmbc: ffmbc -i Outlander211_prem_4k_30sec.h264 -target xdcamhd422 -s 1920x1080 out.mxf Creating XDCAM HD 422 using Direct Show: Main encoder settings: Advanced set...

FFMPEG Compliation Guide: libx264, MinGW and MSYS

The following were taken from  here  and  here . Get the nasm assembler:  http://www.nasm.us/ Stable build of libx264 can be found here:  ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ Build libx264 H.264 video encoder. See the  H.264 Encoding Guide  for more information and usage examples. Requires ffmpeg to be configured with --enable-gpl --enable-libx264. If your repository provides libx264-dev version ≥ 118 then you can install that instead of compiling: sudo apt-get install libx264-dev Otherwise you can compile: cd ~/ffmpeg_sources git -C x264 pull 2> /dev/null || git clone --depth 1 http://git.videolan.org/git/x264 cd x264 If not using Mingw-w64, us this configure line: ./configure --enable-static If using Mingw-w64, use this configure line: ./configure --host=x86_64-w64-mingw32 --disable-cli --enable-static --disable-gpac --disable-swscale --enable-strip make make install Now...

FFMPEG Compilation Guide: MinGW and MSYS Pure, NO VISUAL STUDIO TOOLCHAIN

Most of what is below is stolen from here, with a few tweaks:  https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW The goal is to use the MinGW-w64 build tools, like gcc.exe, but under the MinGW "Mainline" shell.  You accomplish this by putting MinGW-w64's bin first in your PATH when running a shell under MSYS, which is installed by MinGW "Mainline".  You want to find the MinGW-w64 versions of gcc.exe before finding the MinGW "Mainline" version of gcc.exe. Install MinGW-w64 MinGW-w64 can be  found on SourceForge . Change the install path to C:\mingw-w64.  This will make setting up your PATH environment variable easier.  The default install path is dumb. Install MinGW "Mainline" Go to  http://www.mingw.org  and look for the "Download" page. The recommended way to install MinGW/MSys is through the automated installer, mingw-get-setup.exe. This will download most of the basic core packages. It will usually install in C...

DOS: Concatenate binary files

copy /b *.vob combined.vob copy /b file.bin+file2.bin combined.bin

Git: Create A Patch Without A Commit

"create a patch without commit", can be also solved in this way: git diff > my_patch.txt Later you can apply this patch, also without a commit, by: git apply my_patch.txt

Visual Studio 2015: Using The Remote Debugger

Image
Intro Most of this write up just summarizes what's talked about in this video:  Visual Studio - How to Attach Debugger to a Remote Server This Microsoft web page documents how to install and run the remote debugger:  VS Remote Debugging Installation And Running Prerequisites The Visual Studio Remote Debugger for 2015 is called  rtools_setup_x64.exe To properly debug on a remote machine, you will need debug symbols for your code. Install And Run The Remote Debugger Find  rtools_setup_x64.exe , and install it on the remote server. After install, go to the  Start  menu and run  Remote Debugger . You may have to configure the firewall, this can be done through the  Remote Debugging Configuration  dialog that the  Remote Debugger  launches.  Allow everything. Once the remote debugger is running, go to the  Tools  menu and select  Options . The port will probably be 4020, change this to  4016 . ...

FFMPEG Command Examples (Useful FFMPEG Commands)

Some of these are taken from here and here  and here . Good beginner guide:  here Nice set of examples:  here FFMPEG Audio Manipulation commands: https://trac.ffmpeg.org/wiki/AudioChannelManipulation Shorten a file.  Start at 0, and encode 180 seconds.  Copy ALL streams, not just the first or "best" of each type, which is the FFMPEG default: ffmpeg -i input.mpg -ss 00:00:00 -t 180 -map 0 -codec copy output.mpg Convert MP4 frames to Annex B: ffmpeg -i input.mov -codec:v copy -codec:a copy -bsf:v h264_mp4toannexb -f mp4 -y output.mp4 Get information about a media file: ffmpeg -i video.avi Extract (demux) the audio track from a video file: ffmpeg -i video.mts -acodec copy -vn audio.ac3 Extract (demux) the video track from a video file: ffmpeg -i video.mts -vcodec copy -an -f h264 ffNT.h264 Merge an audio and a video track (mux): ffmpeg -i video.h264 -i audio.ac3 -vcodec copy -acodec copy videoaudio.ts Resize an original Full-HD (...

Force Visual Studio To Run As Administrator

http://stackoverflow.com/questions/12257110/can-you-force-visual-studio-to-always-run-as-an-administrator-in-windows-8

Fix Visual Studio MSBuild.exe zombie process

http://stackoverflow.com/questions/3919892/msbuild-exe-staying-open-locking-files

Fix Windows Side By Side Issues In Win 7

http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/error-the-application-has-failed-to-start-because/df019c0d-746e-42d0-ad68-465e18e3f3ef?auth=1 For when you see this error dialog pop up: "Please see the application event log or use the command-line sxstrace.exe tool for more detail."

ISO Reader For Windows

http://www.isoopener.com/

How to Add Any Application Shortcut to Windows Explorer’s Context Menu

http://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu/

Register and Unregister AX Files From Your Shell

register_filter.reg unregister_filter.reg

Register and Unregister All Filters In A Directory

regall.bat unregall.bat

Get Flash Working In Iron Browser

http://valgameiro.com/how-to-install-flash-player-on-srware-iron-secure-chrome-clone/

Remove and Install Visual Studio 2012

http://blogs.msdn.com/b/mandi/archive/2013/08/21/visual-studio-2012-quot-the-event-log-file-is-full-quot-error-message.aspx https://social.msdn.microsoft.com/Forums/vstudio/en-US/a987f4fa-676f-4fda-ab69-2c6bcc2684c3/visual-studio-c-2012-standard-header-files-are-missing?forum=vssetup

HEVC Companion Document - f265.org

Great rewrite of the HEVC spec. HTML PDF