Posts

Hitchhiker's Guide To DRM

 Great series on DRM, Common Encryption, FairPlay, Widevine, Playready , etc.

FFPLAY Helpful Commands

  Overlay a frame number ffplay -i input.ts -vf "drawtext=fontfile=Arial.ttf: text='%{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" Show only the first frame of a video ffplay -loop 0 -t 0 -x 500 -an file.mp4

FFPROBE Helpful Commands

 A list of helpful ffprobe commands. Get time stamps, duration, and frame type (inspired from here ) ffprobe -i file.ts -select_streams v -show_frames -show_entries frame=pkt_dts_time,pkt_duration_time,pict_type -of csv=p=0 Get frame time and picture number ffprobe -i file.ts -select_streams v -show_frames -show_entries frame=pict_type,coded_picture_number -of csv=p=0

STL Container Types

Image
 

FFMPEG x264 Command Line Options

 See this post:  https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping

Windows 10: External Drive and Execute Permissions. How To Turn On.

Image
Is your external drive not allowing you to have execute permissions?  Do this: 1- Run regedit.exe 2- Go to  HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices and set Deny_Execute to 0. 3- Go to:  Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Storage and set Deny_Execute to 0. Now restart your computer and you should be good to go.  If you work on a managed PC, the system may set these back to 1.  You will have to go back and repeat steps 1-3.

VP9 Video Encoding/Decoding Support On A PC

Image
Introduction Video decoding/encoding can take place in the following four types of silicon: 1. General purpose CPU silicon (x86, ARM, SSE, AVX, …) 2. Dedicated CPU silicon (Intel QuickSync, AMD VideoCoreNext) 3. General purpose GPU silicon (cores) (GPGPU, Cuda, OpenCL, Shaders, …) 4. Dedicated GPU silicon (NVidia PureVideo (decode), NVida NVENC (encode)) (Table 1) When video is encoded or decoded any combination of the above silicon can be used. Being this paper is focused on everyday PCs, I’ve left out things like FPGAs, but you could consider an FPGA solution to be more like a general purpose GPU silicon solution. Note, at times this paper uses the term SIP (Semiconductor Intellectual Property core) to denote dedicated encode/decode silicon. Encoding and decoding of video has a defined pipeline: When encoding or decoding video, any one of those colored blocks can be done in hardware or software.   Sometimes a full software approach is ...