Encode to MPEG-TS: BVOP,GOP and BT709

713 views
Skip to first unread message

azzoli...@gmail.com

unread,
Jun 28, 2014, 11:38:10 PM6/28/14
to ffmbc-...@googlegroups.com
Hi,
i' using the latest ffmbc version 0.71 and i try to encode an AVC MTS file to obtain an MPEG TS as follows:
(from MediaInfo)
General
ID                                       : 255 (0xFF)
Format                                   : MPEG-TS
Commercial name                          : HDV 1080i
Overall bit rate mode                    : Variable
Overall bit rate                         : 26.1 Mbps
Maximum Overall bit rate                 : 33.0 Mbps

Video
ID                                       : 2064 (0x810)
Menu ID                                  : 100 (0x64)
Format                                   : MPEG Video
Commercial name                          : HDV 1080i
Format version                           : Version 2
Format profile                           : Main@High 1440
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Codec ID                                 : 2
Bit rate                                 : 24.5 Mbps
Maximum bit rate                         : 25.0 Mbps
Width                                    : 1 440 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.629
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

My commandline for ffmbc is:

-i "<SourceFileName>" -f mpegts -vcodec mpeg2video  -tff -qscale 1 -acodec pcm_s16le -ar 48000 -ac 2 -y "<OutputPath><OutputFileName>.m2t"

but the result is obviously different...


ID                                       : 1 (0x1)
Format                                   : MPEG-TS
Overall bit rate mode                    : Variable
Overall bit rate                         : 78.7 Mbps

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : No
Format settings, Matrix                  : Default
Format settings, GOP                     : N=12
Codec ID                                 : 2
Duration                                 : 9s 880ms
Bit rate mode                            : Variable
Bit rate                                 : 74.8 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First


could someone please explain me the right parameters to achieve BVOP = Yes,GOP M=3,N=12 and to set color primaries to BT709?

Thanks,
/L


azzoli...@gmail.com

unread,
Jun 29, 2014, 7:56:23 AM6/29/14
to ffmbc-...@googlegroups.com
Hi,

i got it after reading a post from bevand10 in CasparCG forum

-i "<SourceFileName>"
-threads 8
-f mpegts
-vf scale=1440:1080:interl=1
-vcodec mpeg2video -flags2 +ivlc+non_linear_q -dc 11
-g 15 -bf 2 -qscale 1 -qmin 1
-b 35000000 -maxrate 35000000 -minrate 35000000
-color_primaries bt709 -color_transfer bt709 -color_matrix bt709
-pix_fmt yuv420p -aspect 16:9 -tff
-intra_matrix 8,17,17,19,17,19,21,21,21,21,21,21,23,22,23,24,24,24,24,24,24,24,25,25,25,26,26,26,29,29,29,26,26,26,25,25,27,27,28,29,29,29,31,32,32,31,31,30,30,33,33,34,34,34,38,38,37,37,43,43,44,50,50,58
-inter_matrix 16,17,17,18,18,18,19,19,19,19,20,20,20,20,20,21,21,21,21,21,21,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,25,24,24,24,25,26,26,26,26,25,27,27,27,27,27,28,28,28,28,30,30,30,31,31,33
-acodec mp2 -ab 384k -ar 48000
-y "<OutputPath><OutputFileName>.m2t"


the advantage of this encoding is that it will load into Avid MC with the "fast import" option saving a lot of time.
Maybe this helps some other people.

/L


Reply all
Reply to author
Forward
0 new messages