Welcome, Guest
Username Password: Remember me

TOPIC: [UNSOLVED]Semi-Native HDV import

[UNSOLVED]Semi-Native HDV import 10 years, 5 months ago #4266

  • khaver
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 3533
  • 10 years, 5 months ago
For those on Windows PC's I found a way you can use your untranscoded HDV files in Lightworks. You'll need to create separate WAVs of the audio. Here's what you will need:

1) ffmpeg.exe
2) ffdshow + ff_vfw (the latest ffdshows have ff_vfw included) For those on 64bit systems, use the 32bit version of ffdshow since Lightworks is 32bit.

Install ffdshow and in the VFW configuration make sure you enable "MPEG in AVI" in the Codecs section. You can also select Deinterlacing if you're creating a progressive project.

Now you have to add something to your registry. Open regedit and go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\Drivers32

You should see some entries like VIDC.FFDS. Some of these will have a REG_SZ value of ff_vfw.dll. These just tell Windows apps to use a certain decoder for certain video formats that use the AVI container.

Right click in the Drivers32 area and select "New>String Value". Name it VIDC.MPG2. Double click it and add ff_vfw.dll to the Value data. Close regedit.

Now we need to change our HDV m2t files to avi files. FFMpeg can do this without transcoding them. Go to the directory where you have your HDV m2t files. Enter the command:
Path\to ffmpeg\ffmpeg -i yourHDV.m2t -vcodec copy -vtag MPG2 -an yourHDV.avi

This will run extremely fast because it only copies the MPG2 video data into an AVI container.

To make the wav files, use the command:
Path\to ffmpeg\ffmpeg -i yourHDV.m2t -vn -acodec pcm_s16le yourHDV.wav

Now you can import these into Lightworks using "Create link".

Be aware that in Lightworks, playback of these mpeg-2 in avi files may not be perfect because of the long GOP nature of HDV, but it will work when you do your export render.

Actually, you can use this technique for any video format that ff_vfw can decode. Just make sure it's enabled in the VFW Configuration and you add the fourcc value to the registry.
Work Comp: Retired!
Home Comp: Newer! Bigger! Faster!
Send me a tip: paypal.me/4khaver
Last Edit: 10 years, 3 months ago by khaver.

Re: Semi-Native HDV import 10 years, 5 months ago #4270

  • drkuli
Thanks a lot. Sounds convincing. Do you have Matrox codecs installed? I'm just curious of possible codec conflict.

EDIT

It might work for XDCAM EX streams also!
Last Edit: 10 years, 5 months ago by .

Re: Semi-Native HDV import 10 years, 5 months ago #4271

  • khaver
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 3533
  • 10 years, 5 months ago
Yes, I have the Matrox codecs installed. The Matrox codecs use fourccs of M701, M702, M704, M705 and MMES. The fourcc of MPG2 will be used by ff_vfw as long as you have it enabled in its configuration.

In my previous post I said you could do this for any codec ff_vfw could decode. I just tried this with a Canon 5D mark II mov video file (h264) and it wouldn't work. Just black video.

It does work with m-jpeg avi files. Just add VDIC.MJPG to the registry and enable MJPEG in ff_vfw. Before doing this I was not able to import mjpeg avi files into LW even though I had ff_vfw installed and MJPEG enabled. It took adding the VDIC.MJPG into the registry for LW to accept them.
Work Comp: Retired!
Home Comp: Newer! Bigger! Faster!
Send me a tip: paypal.me/4khaver

Re: Semi-Native HDV import 10 years, 5 months ago #4272

  • drkuli
I often deal with XDCAM EX streams which are MPEG2 VBR at 35 Mb/s, 1920x1080 25p with 4 channels of PCM 16bit audio. It may work for them. I'll check tomorrow and report back.

Re: Semi-Native HDV import 10 years, 5 months ago #4274

  • khaver
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 3533
  • 10 years, 5 months ago
Just tried it with an xdcam d10 imx30 mxf file and it worked. This is only SD video but if ffmpeg can decode it, your HD files should work.
Work Comp: Retired!
Home Comp: Newer! Bigger! Faster!
Send me a tip: paypal.me/4khaver

Re: Semi-Native HDV import 10 years, 5 months ago #4275

  • khaver
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 3533
  • 10 years, 5 months ago
Just tried it with an xdcam ex mp4 file and it worked. Playback messes up sometimes but export render comes out fine.

Just did a little editing (added 2 clips and trimmed a few frames from the head and tail of the clips) and exporting is not very good (frame glitches and macro blocks). I think it's because of the long GOPs not allowing accurate seeking. I think you will be better off transcoding the xdcam footage, until...
Work Comp: Retired!
Home Comp: Newer! Bigger! Faster!
Send me a tip: paypal.me/4khaver
Last Edit: 10 years, 5 months ago by khaver.

Re: Semi-Native HDV import 10 years, 5 months ago #4279

  • drkuli
Thank you very much! Your testing is a good reason for my laziness BTW, if I would be inclined to 'conspiracy theories', I would think that devs are sitting quietly in the shadow, waiting for us to see what else we can find in LW... Just a joke

Re: Semi-Native HDV import 10 years, 5 months ago #4287

  • shaunthesheep
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 2711
  • 10 years, 5 months ago
1) ffmpeg.exe
2) ffdshow + ff_vfw (the latest ffdshows have ff_vfw included) For those on 64bit systems, use the 32bit version of ffdshow since Lightworks is 32bit.


Thanks for the info. Could you please provide download links to this software?
Desktop
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor, 6 GB Dual Channel DDR3, Windows 7 64 bit SP1/Ubuntu Studio 14.04.2 duel boot. On-board graphics chip. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard.

Laptop
Dell Precision M6700, i7 3740QM CPU @2.70Ghz, NVidia Quadro K3000M, 8GB ram. Windows 7 64 bit SP1.

I am not employed by EditShare. I am a Lightworks user.
Last Edit: 10 years, 5 months ago by shaunthesheep.

Re: Semi-Native HDV import 10 years, 5 months ago #4288

  • drkuli
Hi, Shaun. I have no idea which versions khaver used in his testing, but if you cannot wait - these are the latest for Windows, 32bit to be on the safe side.
FFmpeg
ffdshow

Re: Semi-Native HDV import 10 years, 5 months ago #4294

  • shaunthesheep
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 2711
  • 10 years, 5 months ago
Many thanks drkuli. I have just realised that I already have a version of ffmpeg in my (x86) Programs folder in a folder called "FFMPEG for Audacity". I must have downloaded it when I installed the open source Audacity audio editor.

What to do?

I see that the version you suggested does not have an installation file. Presumably, I would just copy it to my (x86) Programs folder and operate it via command line (as per khaver's instructions) or for more general purposes use a GUI?
Desktop
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor, 6 GB Dual Channel DDR3, Windows 7 64 bit SP1/Ubuntu Studio 14.04.2 duel boot. On-board graphics chip. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard.

Laptop
Dell Precision M6700, i7 3740QM CPU @2.70Ghz, NVidia Quadro K3000M, 8GB ram. Windows 7 64 bit SP1.

I am not employed by EditShare. I am a Lightworks user.
Last Edit: 10 years, 5 months ago by shaunthesheep.

Re: Semi-Native HDV import 10 years, 5 months ago #4295

  • drkuli
khaver uses commad line, I think the same, it's simplier. You can leave your unpacked FFmpeg wherever you want, you only need to specify the path in the command line. It doesn't disturb your current Audacity installation.

Re: Semi-Native HDV import 10 years, 5 months ago #4297

  • shaunthesheep
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 2711
  • 10 years, 5 months ago
Thanks.

As a matter of interest does anyone know--or recommend--a Windows GUI for FFMPEG? I already have the freeware Mediacoder which I see installs its own version of FFMPEG in the Mediacoder installation directory. Are there any open source ones?
Desktop
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor, 6 GB Dual Channel DDR3, Windows 7 64 bit SP1/Ubuntu Studio 14.04.2 duel boot. On-board graphics chip. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard.

Laptop
Dell Precision M6700, i7 3740QM CPU @2.70Ghz, NVidia Quadro K3000M, 8GB ram. Windows 7 64 bit SP1.

I am not employed by EditShare. I am a Lightworks user.
Last Edit: 10 years, 5 months ago by shaunthesheep.

Re: Semi-Native HDV import 10 years, 5 months ago #4299

  • drkuli
Take a look here, there are 14 front-ends/GUIs listed. I have no idea which are open source.

Re: Semi-Native HDV import 10 years, 5 months ago #4301

  • shaunthesheep
  • Pro User
  • OFFLINE
  • Platinum Boarder
  • Posts: 2711
  • 10 years, 5 months ago
@ drkuli. Once again my thanks.
Desktop
Dell Inspiron 560MT. Intel Core 2 Quad Q8300 Processor, 6 GB Dual Channel DDR3, Windows 7 64 bit SP1/Ubuntu Studio 14.04.2 duel boot. On-board graphics chip. Samsung SyncMaster S23B35OH LED monitor. EchoAudio Mia 24/96 soundcard.

Laptop
Dell Precision M6700, i7 3740QM CPU @2.70Ghz, NVidia Quadro K3000M, 8GB ram. Windows 7 64 bit SP1.

I am not employed by EditShare. I am a Lightworks user.

Re: Semi-Native HDV import 10 years, 5 months ago #4308

  • drkuli
It was a pleasure. I hope khaver won't blame me of stolen thread.
Time to create page: 0.48 seconds
Scroll To Top