Lossless editing of hd1000 material at DVinfo.net
DV Info Net

Go Back   DV Info Net > And Now, For Something Completely Different... > The Archives > (MPG4) Sanyo Xacti (all models)
Register FAQ Today's Posts Buyer's Guides

(MPG4) Sanyo Xacti (all models)
A compact 720p MPEG4 digital media camera recording to SD Card.

 
 
Thread Tools Search this Thread
Old April 9th, 2008, 10:12 AM   #1
New Boot
 
Join Date: Mar 2008
Location: London, UK
Posts: 22
Lossless editing of hd1000 material

Hi
just got my hd1000, and in quite happy with it, but the bitrate is just a little to low for my taste, and i dont think it survives a re-encode very well.. so...

other than the in-camera editing, does anyone know if theres any NLE that will do lossless editing of these mp4 files?
Olas Polare is offline  
Old April 10th, 2008, 03:57 PM   #2
New Boot
 
Join Date: Nov 2007
Location: Gothenburg Sweden
Posts: 14
Quote:
Originally Posted by Olas Polare View Post
Hi
just got my hd1000, and in quite happy with it, but the bitrate is just a little to low for my taste, and i dont think it survives a re-encode very well.. so...

other than the in-camera editing, does anyone know if theres any NLE that will do lossless editing of these mp4 files?
I'm using the older Hd1a but I think this will work with the h264 video from the Hd1000 as well:

Install "Haali Media Splitter", "Ffdshow"and "Avisynth 2.57" . They will make it possible to open the MP4 files in AviSynth with the simple .AVS file:

Directshowsource("AnyFileName.MP4")

You write it yourself with Notepad as Avisynth has no interface but works with scripts. It is btw. a rather competent NLE with lots of interesting plugins available. I use it for most of my editing. Video editing in Notepad may seem akward at first but when you have written a few scripts it's mostly a copy and paste job.

I use Virtualdub as frontend for Avisynth (opens the .AVS scripts as a video file). Virtualdub needs codecs to encode the video. For intermediate files I use Lagarith (losseless) or Xvid/DivX in unconstrained mode (almost lossless and smaller files). The rather large lossless .AVI file can finally be reencoded with Virtualdub or other similar apps.

With this method you will have to reencode the video only once to get the final product in 2-pass Xvid or h264. And also note that if you don't need any Virtualdub filters when editing (they only work in RGB) there are no colour conversions to and from RGB in contrary to most commercial solutions.

I have some problems with the AAC Audio. It does not get recognized by Avisynth allthough it should as I have Ffdshow setup. For now I use "Mp4Cam2AVI" to extract the audio to WAV.

I mostly use a separate fieldrecorder (Zoom H2) that records in 4 channels that I feed into Avisynth to get a 5.1 surround WAV file. The camera audio is only used to trim the H2 WAV's for lip sync. Finally the 5.1 WAV is fed to the Aften AC3 encoder to get an AC3 audio file that can be muxed with the video with VirtualdubMod.

All this can for example end up in a 720x400 DivX video with Dolby Digital 5.1 surround sound that will play in any DivX certified DVD-player or a HD 1280x720 23.976 fps (from 29.97 original with motion estimation a la Twixtor with the Avisynth plugin MVTools) like this:

http://www.vimeo.com/863627

All software is freeware (except DivX if you prefer that to XVid).
Kenneth Medin is offline  
Old April 11th, 2008, 05:15 AM   #3
New Boot
 
Join Date: Mar 2008
Location: London, UK
Posts: 22
Tjena Kenneth!

Thanks for your extensive answer, but it didnt actually answer the question since the output from the avisynth script will have to be re-encoded.
also editing in a text editor is not really an option if you want to do anything beyond merge a few clips.

if no solution presents itself, i might have to resort to writing some kind of script that will take an EDL from an editing app, and then use a muxer like mp4box to cut and merge the whole thing together, tho it will take a bit of work..
Olas Polare is offline  
Old April 11th, 2008, 12:32 PM   #4
New Boot
 
Join Date: Nov 2007
Location: Gothenburg Sweden
Posts: 14
Quote:
Originally Posted by Olas Polare View Post
Tjena Kenneth!

Thanks for your extensive answer, but it didnt actually answer the question since the output from the avisynth script will have to be re-encoded.
If you don't mind the AVI container you can let Mp4Cam2AVI convert it with audio decoded to WAV and use Virtualdub to cut at keyframes in "Direct stream copy" mode. Just tested with a 1280x720 @ 60 fps video from a Hd1000 and it worked great. Note however that at least older versions of Mp4Cam2AVI choked on file lengths over 2 GB.

A quick and lossless solution, but AVI is not at all ideal for h264 video...

Quote:
also editing in a text editor is not really an option if you want to do anything beyond merge a few clips.
My longest video sofar built on short clips is over 48 min and edited with Avisynth... The trick is to use several scripts and run them from a "master script".

Quote:
if no solution presents itself, i might have to resort to writing some kind of script that will take an EDL from an editing app, and then use a muxer like mp4box to cut and merge the whole thing together, tho it will take a bit of work..
If you want to stay within a MP4 container that might be a good solution.

But, I'm not shure you have a reason to be afraid of a single reencode just because the original material suffers from various encoding degrations. At equal bitrates a video with more detail would suffer the most.

On the contrary, you might get a better looking result by applying some filters, deblockers perhaps...
Kenneth Medin is offline  
 

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > And Now, For Something Completely Different... > The Archives > (MPG4) Sanyo Xacti (all models)


 



All times are GMT -6. The time now is 09:19 PM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network