XF705 MXF file not recognized

GJeffrey wrote on 11/11/2023, 5:03 PM

XF705, hevc, 422-10bits files can't be added to Vegas 21-187 timeline.

Is there any plan to add support? I don't want to transcode each time.....

Format                                   : MXF
Format version                           : 1.3
Format profile                           : OP-1a
Format settings                          : Closed / Complete
File size                                : 278 MiB
Duration                                 : 22 s 80 ms
Overall bit rate                         : 106 Mb/s
Frame rate                               : 50.000 FPS
Encoded date                             : 2023-10-08 17:22:57.000
Writing application                      : CANON XF705 1.00Video
ID                                       : 2
Format                                   : 0E15000402100001-0E15000500013000
Format settings, wrapping mode           : Frame
Codec ID                                 : 0E15000402100001-0E15000500013000
Duration                                 : 22 s 80 ms
Bit rate                                 : 101 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 50.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.244
Stream size                              : 266 MiB (96%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Delay_SDTI                               : 4348800Audio #1
ID                                       : 3
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 22 s 80 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 50.000 FPS (960 SPF)
Bit depth                                : 24 bits
Stream size                              : 3.03 MiB (1%)
Delay_SDTI                               : 4348800
Locked                                   : YesAudio #2
ID                                       : 4
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 22 s 80 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 50.000 FPS (960 SPF)
Bit depth                                : 24 bits
Stream size                              : 3.03 MiB (1%)
Delay_SDTI                               : 4348800
Locked                                   : YesAudio #3
ID                                       : 5
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 22 s 80 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 50.000 FPS (960 SPF)
Bit depth                                : 24 bits
Stream size                              : 3.03 MiB (1%)
Delay_SDTI                               : 4348800
Locked                                   : YesAudio #4
ID                                       : 6
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 22 s 80 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 50.000 FPS (960 SPF)
Bit depth                                : 24 bits
Stream size                              : 3.03 MiB (1%)
Delay_SDTI                               : 4348800
Locked                                   : YesOther #1
ID                                       : 1-Material
Type                                     : Time code
Format                                   : MXF TC
Frame rate                               : 50.000 FPS
Time code of first frame                 : 01:12:28:40
Time code of last frame                  : 01:12:50:43
Time code settings                       : Material Package
Time code, stripped                      : YesOther #2
ID                                       : 1-Source
Type                                     : Time code
Format                                   : MXF TC
Frame rate                               : 50.000 FPS
Time code of first frame                 : 01:12:28:40
Time code of last frame                  : 01:12:50:43
Time code settings                       : Source Package
Time code, stripped                      : YesOther #3
Type                                     : Time code
Format                                   : SMPTE TC
Muxing mode                              : SDTI
Frame rate                               : 50.000 FPS
Time code of first frame                 : 01:12:28:40

 

Comments

RogerS wrote on 11/11/2023, 9:46 PM

Are there codecs other than OP-1a this camera can record to?

GJeffrey wrote on 11/11/2023, 10:54 PM

Yes, that camera can record XAVC 420 8bits but I am expecting Vegas to decode 422 10bits hevc especially that it's mentioned in the release notes that the mxf plugin should accept more format...

Former user wrote on 11/11/2023, 11:08 PM

Have you tried rewrapping to mov using something such as shutter encoder?

You can try rewrapping to mp4 too, but shutter encoder may not want to do that

RogerS wrote on 11/11/2023, 11:15 PM

Is this HEVC?

Format                                   : MXF

Format version                           : 1.3

Format profile                           : OP-1a

Edit: looks like it is using a variant: Canon XF HEVC. Could you upload a sample clip?

Last changed by RogerS on 11/11/2023, 11:19 PM, changed a total of 1 times.

Custom PC (2022) Intel i5-13600K with UHD 770 iGPU with latest driver, MSI z690 Tomahawk motherboard, 64GB Corsair DDR5 5200 ram, NVIDIA 2080 Super (8GB) with latest studio driver, 2TB Hynix P41 SSD and 2TB Samsung 980 Pro cache drive, Windows 11 Pro 64 bit https://pcpartpicker.com/b/rZ9NnQ

ASUS Zenbook Pro 14 Intel i9-13900H with Intel graphics iGPU with latest ASUS driver, NVIDIA 4060 (8GB) with latest studio driver, 48GB system ram, Windows 11 Home, 1TB Samsung SSD.

VEGAS Pro 21.208
VEGAS Pro 22.250

Try the
VEGAS 4K "sample project" benchmark (works with VP 16+): https://forms.gle/ypyrrbUghEiaf2aC7
VEGAS Pro 20 "Ad" benchmark (works with VP 20+): https://forms.gle/eErJTR87K2bbJc4Q7

GJeffrey wrote on 11/11/2023, 11:48 PM

Here is a link of a sample clip

https://1drv.ms/u/s!Anyx6_WOWn2eg602T8653JutCTalXw

That's hevc indeed even though it doesn't show in media info

@Former userI will try to rewrap it in mov and post back.

RogerS wrote on 11/12/2023, 1:00 AM

Rewrapping it to a mov took a few seconds and seems to work perfectly in VP 21.187.

Grazie wrote on 11/12/2023, 4:37 AM

Working for XF300 output. Must now work for XF700 output.

Reproed here too. I wanted to check against my XF300 output which DOES import off of the Bat - no need for rewrapping. But yes, it took seconds to go through Wondershare Uniconvertor came out as an MP4 - bosh!:

And then straight into B187:

Now, @GJeffrey, is there any, ANY Canon s/w that can deal with transcoding to something else?

In any event, this is an urgent requirement for the TeamVegas to get cooking. Can't be that difficult - surely?

john_dennis wrote on 11/12/2023, 9:42 AM

My Shutter Encoder Experience

Which reminds me, I have to throw some more money at Paul Pacifico.

Howard-Vigorita wrote on 11/12/2023, 9:59 AM

When rewrapped to a mov (at 454 fps on my machine), ffmpeg also fixes Canon's screwy codec metadata. My clips have similar metadata as above but ffmpeg fixes them during the re-wrap:

General
Complete name                            : E:\test clips xf705\xf705copy.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 292 MiB
Duration                                 : 16 s 16 ms
Overall bit rate                         : 153 Mb/s
Frame rate                               : 59.940 FPS
Writing application                      : Lavf58.76.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Format Range@L5.1@High
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 16 s 16 ms
Bit rate                                 : 152 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.306
Stream size                              : 290 MiB (99%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : hvcC

 

GJeffrey wrote on 11/12/2023, 3:52 PM

Thank you all.

Rewrapping to mov works. Shutter encoder also allows mp4 but there is only 1 audio channel.

That's still a workaround. I would expect Vegas to read natvely camera footage which have been around for 5 years...

Howard-Vigorita wrote on 11/12/2023, 4:10 PM

@john_dennis got all 4 channels with it... probably a setting.

GJeffrey wrote on 11/12/2023, 4:22 PM

@Howard-Vigorita. Because he is rewrapping to mov.

Rewrapping to mp4 only shows 1 channel on vegas timeline

Grazie wrote on 11/13/2023, 12:30 AM

@Howard-Vigorita. Because he is rewrapping to mov.

Rewrapping to mp4 only shows 1 channel on vegas timeline

@GJeffrey - O..K..? I was further intrigued to check out your comment.

So what's this? 2-Channels in an MP4? And I've included the MOV for the sake of comparison. What have I unearthed? 🤓

RogerS wrote on 11/13/2023, 12:44 AM

Thank you all.

Rewrapping to mov works. Shutter encoder also allows mp4 but there is only 1 audio channel.

That's still a workaround. I would expect Vegas to read natvely camera footage which have been around for 5 years...

My guess would be because it's a non-standard implementation of HEVC done by one company on only a handful of its cameras (if that). I searched and it seems that SMPTE came out with a standard for HEVC in MXF in Nov 2020. Hopefully the devs here can add support for this HEVC variant.

GJeffrey wrote on 11/13/2023, 1:26 AM

@Grazie The audio should be 4 mono channels. It's stereo in your screenshot.

RogerS wrote on 11/13/2023, 2:07 AM

Under Preferences\Options\General tab is it a difference in whether 'Import stereo as dual mono' is checked? Or a ShutterEncoder setting?

Grazie wrote on 11/13/2023, 2:22 AM

@Grazie The audio should be 4 mono channels. It's stereo in your screenshot.

@GJeffrey - Hah.. I thought I was getting somewhere! Apparently not. O..K... Is these 4 channel indicated or suggested in the MediaInfo you provided?

Always willing to learn.

Grazie wrote on 11/13/2023, 2:27 AM

Under Preferences\Options\General tab is it a difference in whether 'Import stereo as dual mono' is checked? Or a ShutterEncoder setting?


@RogerS - Yeah, I looked for that and it isn't - pooo . .

Or a ShutterEncoder setting?

Above my Pay Grade!

RogerS wrote on 11/13/2023, 3:03 AM

Yes, the Mediainfo at top lists 4 audio channels (count the references to PCM).

RogerS wrote on 11/13/2023, 3:11 AM

I'd stick to MOV for HEVC plus PCM. Here are the settings I used to get a legal MP4 file (converted from PCM to AAC).

Here's the resulting MediaInfo:

General
Complete name                  : D:\A003C026H231008DS_CANON.mp4
Format                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom (isom/iso2/mp41)
File size                      : 266 MiB
Duration                       : 22 s 80 ms
Overall bit rate mode          : Variable
Overall bit rate               : 101 Mb/s
Frame rate                     : 50.000 FPS
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC
Writing application            : Lavf60.9.100

Video
ID                             : 1
Format                         : HEVC
Format/Info                    : High Efficiency Video Coding
Format profile                 : Format Range@L5.1@High
Codec ID                       : hev1
Codec ID/Info                  : High Efficiency Video Coding
Duration                       : 22 s 80 ms
Bit rate                       : 100 Mb/s
Width                          : 3 840 pixels
Height                         : 2 160 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 50.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:2
Bit depth                      : 10 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.242
Stream size                    : 264 MiB (99%)
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709
mdhd_Duration                  : 21940
Codec configuration box        : hvcC

Audio #1
ID                             : 2
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 22 s 80 ms
Source duration                : 22 s 101 ms
Bit rate mode                  : Variable
Bit rate                       : 160 kb/s
Maximum bit rate               : 288 kb/s
Channel(s)                     : 1 channel
Channel layout                 : M
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 432 KiB (0%)
Source stream size             : 432 KiB (0%)
Default                        : Yes
Alternate group                : 1
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC

Audio #2
ID                             : 3
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 22 s 80 ms
Source duration                : 22 s 101 ms
Bit rate mode                  : Variable
Bit rate                       : 132 kb/s
Maximum bit rate               : 288 kb/s
Channel(s)                     : 1 channel
Channel layout                 : M
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 360 KiB (0%)
Source stream size             : 360 KiB (0%)
Default                        : No
Alternate group                : 1
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC

Audio #3
ID                             : 4
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 22 s 80 ms
Source duration                : 22 s 101 ms
Bit rate mode                  : Variable
Bit rate                       : 161 kb/s
Maximum bit rate               : 288 kb/s
Channel(s)                     : 1 channel
Channel layout                 : M
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 433 KiB (0%)
Source stream size             : 433 KiB (0%)
Default                        : No
Alternate group                : 1
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC

Audio #4
ID                             : 5
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 22 s 80 ms
Source duration                : 22 s 101 ms
Bit rate mode                  : Variable
Bit rate                       : 160 kb/s
Maximum bit rate               : 288 kb/s
Channel(s)                     : 1 channel
Channel layout                 : M
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 432 KiB (0%)
Source stream size             : 432 KiB (0%)
Default                        : No
Alternate group                : 1
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC

Other
ID                             : 6
Type                           : Time code
Format                         : QuickTime TC
Duration                       : 22 s 80 ms
Frame rate                     : 50.000 FPS
Time code of first frame       : 01:12:28:40
Time code of last frame        : 01:12:50:43
Time code, stripped            : Yes
Language                       : English
Default                        : No
Encoded date                   : 2023-11-13 09:07:08 UTC
Tagged date                    : 2023-11-13 09:07:08 UTC
mdhd_Duration                  : 21940

 

Grazie wrote on 11/13/2023, 3:13 AM

Yes, the Mediainfo at top lists 4 audio channels (count the references to PCM).

Well, look at that! OK, I’ve got Canon’s proprietary MXF Reader, I’ll have a go with that now. And it’s only Monday.

Howard-Vigorita wrote on 11/13/2023, 9:48 AM

I'd stick to MOV for HEVC plus PCM. Here are the settings I used to get a legal MP4 file (converted from PCM to AAC).

Here's the resulting MediaInfo:

...

Writing application            : Lavf60.9.100

I agree. The writing application, Lavf60.9.100, is ffmpeg6. Because pcm is not legal in an mp4 container, and although it reads it, ffmpeg enforces the rules writing out anything. And pcm is much higher quality than lossy compression. I also tried writing out a legal mvk but Vegas did not recognize it.

If the Shutter Encoder or other ffmpeg-gui lacks the menu options, the following powershell scripts call on ffmpeg directly. Which is how I do it. This one makes a four-channel pcm mov with all the streams copied:

$in = "A005C012_220903X4_CANON.mxf" 
$out = "4chan.mov" 
ffmpeg -y -i $in -c:v copy -c:a copy -map 0:v:0 -map 0:a:0 -map 0:a:1 -map 0:a:2 -map 0:a:3 $out

But I usually only want the 1st 2 mono channels:

$in = "A005C012_220903X4_CANON.mxf" 
$out = "2chan.mov" 
ffmpeg -y -i $in -c:v copy -c:a copy -map 0:v:0 -map 0:a:0 -map 0:a:1 $out

If you want an mp4, however, the audio stream has to be transcoded instead of copied. Just adjust $out and replace -c:a copy with -c:a aac to get aac encoding which ffmpeg docs recommend.

john_dennis wrote on 11/13/2023, 11:47 AM

I said in the past (probably, more than once) "I will never own a camera that records audio to a lossy codec, AAC."

Thus, my affinity for the MOV wrapper. It has good support for PCM audio, even with compressed video codecs.

Howard-Vigorita wrote on 11/13/2023, 1:28 PM

One quirk I noticed about the way Vegas treats clips with multiple mono audio streams... there's a setting, now in i/o prefs, to import MXF as multi-channel. But nothing like that for MOV. 4-channel movs always seem to come in with 4 mono audio tracks while movs with 2 mono streams get imported as a single stereo track.