How do I perform offline muxing and create proxy files in BRec using a MerlinIP card?

BRec,MerlinIP — Administrator @ 7:11 pm

The files in this folder, along with the ffmpeg software, will allow offline muxing of BRec created files and subsequent transcoding of the muxed file using ffmpeg.

This capability is invoked in BRec by putting a command string in the BRec post-processing command utility, which is found at the bottom of the proxy/title window under the config menu.  Other changes in the config menu which should be made to use these command files are:

Disable Muxing
Unique Temp Names


Configuration Notes:

To use the files as is with the current folder references, the following folders should be set up on the C: drive:

C:\ffmpeg  (Available on Skymicro Dropbox)

C:\ffmpeg_scripts  (Available on Skymicro Dropbox)

C:\Dropbox (Put the Skymicro_Releases folder from Dropbox under this tree or set Dropbox to sync to C:\)

C:\usr (Available on Skymicro Dropbox – this folder is not required for basic ffmpeg functionality, but necessary to use the ffmpeg provided preset configurations.)


Quickstart Instructions

1. Make BRec configuration changes as described above.

2. Copy folders to C:\ as described above, resulting in:


3. Enable post processing by checking the option box on the BRec config menu Proxy/Title Settings.

4. Paste the contents of


into the command line window for post processing in BRec.

4. Run an encode job to test.  A command window will appear with the procedure running.  Note that there are pause statements in the command files that will need response, but can be removed for deployment.


Call Sequence Summary



Job Flow:

The offline muxer and ffmpeg transcoder command files use a sequence of called programs to simplify maintenance of the batch files.  The calling sequence is:

1. C:\Dropbox\Skymicro_Releases\BRec_Post_Processing\CRecmuxHD_ffmpeg_text_for_brec.txt

- this file contains a command string that should be pasted into the BRec command string entry window on the config menu.  This file contains the following command:

C:\Dropbox\Skymicro_Releases_BRec_Post_Processing\Call_CRecmuxHD_ffmpeg %d%p~%f %d%p%f%e %d%p%f.mp4

See BRec_Post_Processing_Readme.txt for documentation of the above parameter values.

2.  C:\Dropbox\Skymicro_Releases_BRec_Post_Processing\Call_CRecmuxHD_ffmpeg.bat

-This file directly calls the offline muxer program and then calls a command file which in turn calls the ffmpeg program.  ffmpeg is called in this fashion so that the transcode parameters can be modified and tested by editing the called command file using standard %1 %2 filename parameters and tested in a command window.

Call_CRecmuxHD_ffmpeg.bat contains the following contents:

C:\Dropbox\Skymicro_Releases\Brec_Post_Processing_\sleep 2
C:\Dropbox\Skymicro_Releases\Latest_Merlin\Merlin_Distribution\Merlin\CRecMUXHD %1 %2
C:\ffmpeg_scripts\call_ffmpeg_H264_HD.bat %2 %3

The sleep statement is needed to give time to BRec so the program can release the file locks it has on the intermediate files.  The pause statements are for testing and can be removed or commented out as desired.  The program sleep.exe is provided.

3. C:\ffmpeg_scripts\call_ffmpeg_H264_HD.bat

-This program has only one executable statement, which simply calls ffmpeg:

c:\ffmpeg_scripts\ffmpeg-i %1 %2


-This program is the call to ffmpeg.exe. By hardcoding the “mp4″ file type value in CRecmuxHD_ffmpeg_text_for_brec.txt (file 1), the command passed to the ffmpeg transcoder will output a file in the mp4 format.

ffmpeg-i contains the following:

c:\ffmpeg\ffmpeg -i %1 %2

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2022 Skymicro FAQ | powered by WordPress with Barecity