Thanks again!
I was able to use your xvid script to ouput avi files, but when I tried to open them in virtualdub, it now has a warning that AVI: Variable bitrate (VBR) audio detected, VBR audio in AVI is non-standard, and that can lead to audio out of sync
I ignored the error and joined the avi files, the audio is indeed out of sync.
Is it possible to modify your script to have a CBR audio?
Thanks again for your help!
+ Reply to Thread
Results 211 to 240 of 404
-
-
It's not my script creating that. It's an audio setting in VirtualDub.
In the mean time, you can convert your XVID audio files to CBR with this:
Use Avi_Gain_Regular.bat
https://forum.videohelp.com/topic314909.html
Then you should be able to join the normalized files with VirtualDub -
Hi, I am new to all this and the advice on this forum is amazing. I've got a Panasonic SD9 which records AVCHD direct to SD card and produces MTS files. All I want is to be able to edit them easily and then produce a standard quality DVD. Who would have thought it would be so hard!!
I tried converting them through ULEAD 11 which worked, but the quality of the output was really poor. That software has a batch conversion utility - takes MTS file and can produce a PAL-DVD compliant MPG2.
So to get a better quality results - I followed the instructions at the beginning of the forum, and everything seems to work. I have installed the Lararith lossless encoder and script files. Using the __1024x576_Deinterlaced__PAL.bat file, various files are produced. I then open the AVS file in VirtualDub, and choose Video->Compression->Laragith. Then File->Save As and the program saves an AVI file.
The problem is that the AVI is "chunky". It pixelates, stops/starts, and audio is choppy. I have attached the MTS file from the camera. Can anyone else check whether they get the same results?
Thanks!!
00005.mts -
I have followed the instructions as mentioned in the beginning of the forum.
Now, i see several 200+ .AVS files. How can i put all in one and convert as DVD?
From VDUB, i was able to convert one at a time. Is there any eazy way of doing it? Please suggest me.
Thanks for your help. Appreciated your time!!! -
alcatrav - your camera is producing files aren't compatible (yet) with the scripts
You're not the only one. The developer has been alerted.
sma3har - I have no idea -
New Version of the Vimeo Conversion scripts:
Added 24P and 25P batch files for cameras that shoot in progressive format. No deinterlacing performed on the source. Once again, not all AVCHD files are compatible with the version of Libavcodec (the file which decodes the AVCHD file for re-encoding by x264.exe), so if you see artifacts in your footage, you'll just have to wait until the fix is in.
Here's an example of 24p output:
vimeo_24p.mp4 -
Regarding the issue of "avcsource: no GOPs found (no IDRs or recovery points)", the last post i found is:
Originally Posted by dererik
Using a Canon HF100, I recorded non-sto for about 40 minutes at full quality. After saving the files to my computer, I discovered that the camera actually split the recording into 3 files. The first file converted normally, but the additional 2 files, give the 'no GOPS found' errors.
Additional information - 1. the action was minimal in the recording as I was primarily interested in the audio. 2. The first and second file were 1.9gigs and the third file was 690 megs (apparently, there is a limit to the recording at 1.9gigs). 3. I was capturing to a 16gig memory card. 4. I successfully converted the files using TMPGEnc.
Hope this helps. -
I have been reviewing the posts from Neutron2 and Soopafresh and tried updating the avchd_convert_v5 with the latest versions of the DGAVCDec. Then I downloaded the avchd_convert_v6 and tried that. So far no luck.
Yeah, I've been doing the same. That's why I haven't updated the files in a while. He's still working on a number of bug fixes and the version I included seems to work pretty well for most .MTS files. -
Hey there,
First, I gotta drop some props on this thread for being one of the most informative, well-written, and easiest to use I've seen while cruising the internet hopelessly for solutions. I've read through the whole thread and learned a heck of a lot from it. So thanks!
Here's my situation:
I have a Canon HF10. I will probably end up recording in all of the different video modes it has, which means I'll get 24p, 30p, and 60i video. The problem is that it all ends up in a 60i container, no matter what. If I'm recording in 60i, that's not a problem for me, I'll just run the batch files from the first one, and I see that there's one that will convert 1920x1080 60i to 24p. But what about 30p? W
For now all I'm looking to do is transcode the AVCHD files into x264 with decent quality, so I can distribute them. I'm trying to figure out a way to do this without having multiple intermediate files (although later when I intend to edit them, I'll go with the lossless codecs mentioned earlier). Currently what I do is convert the files to AVI with VoltaicHD, and then use AVIdemux to encode them to x264.
I'm new to writing batches, but I've found that one way to IVTC the stuff I get off of the HF10 is to use this in the AVIsynth script
loadplugin("dgavcdecode.dll")
video=AVCSource("00001.dga")
audio=wavsource("00001.wav")
audiodub(video,audio)
AssumeTFF()
Telecide()
Decimate(cycle=5)
DelayAudio(-0.222)
I was wondering if I should try my hand at adding this to one of the scripts Soopafresh has provided, or if the 24p one will work just fine. Also, I'm wondering if I'm just looking to get it in x264, if there's a problem just sorta taking the line from the 24p script and putting that in the Vimeo script somewhere? Obviously I don't know very well what I'm doing, but I kinda liked the one-click-ey ness of the Vimeo scripts, especially since for the moment all I'm doing is recording short clips (hip-hop routines, if you must know) that require no editing. I'm just hoping to be able to use the 24p or 30p and get the best quality out of it. -
Hi ch1apet, thanks for your kind words
What you're doing to get 24p out of 60i is fine - you're performing an inverse telecine using Don Graft's excellent Telecide and Decimate functions. The one I wrote uses Tritical's TFM and Tdecimate functions. They're functionally identical.
If you're shooting at 30p, then there's no need to deinterlace, so you can do the following with the batch files if you choose:
Open the .BAT with notepad and remove this line:
The lines which do the automatic transcoding to h264 are located at the bottom of the Vimeo Script, ala
Let me know if you'd like a 60i-24p batch file which automatically creates a Vimeo compatible .MP4 -
Yeah, that'd be great! Thanks a ton.
This is probably an ignorant question, but shouldn't I deinterlace anyways, even if it was recorded in 30p? Because the video still comes out of the camera at 60i? Because I'd deinterlace if I recorded in the 60i mode, correct? -
I have a Canon HV30 HDV camera which has a setting to record at 30p and it's progressive, so no deinterlacing required. People have posted AVCHD progressive footage in this thread. Are you sure everything comes out of the HF10 at 60i ? I'll bet the 30p setting doesn't need to be deinterlaced. Reading the comments in the link below says it makes the footage progressive automatically for you internally in the camera.
http://vimeo.com/912349
Here's an updated zip file - This includes 2 additional batch files for Vimeo compatible conversion:
_multi_demux_mts_HQ_Vimeo_60i_to_24p.bat - which will do Inverse Telecine and Pulldown to 23.976fps video
_multi_demux_mts_HQ_Vimeo_30p_Source.bat - which will work for cameras that can shoot progressive 29.97fps video
avchd_convert__vimeo_test.zip -
Hey soopafresh, I stumbled upon this thread after several hours googling for an AVCHD solution. I'm kind of in awe of how much time you've spent helping out those of us that struggle with this format.. especially being that you don't even record in avchd. Pretty generous of you.
I've read through everything up until this point but could still use a little help developing a decent workflow. I'm pretty newb when it comes to video editing, codecs, etc. so bear with me if you can stand it
Here is what I'm looking to do (nothing really fancy):
Camera: Canon HF100 (NTSC) btw - the HF100 and HF10 are identical aside from the built-in 16gb flash memory on the HF10. You probably already know this but jic it may be helpful in troubleshooting future posts.
Currently I'm editing .m2ts clips in Vegas Pro 8.0, and when I have a completed project, I output to .mp4 (h.264 I think?) to get a manageable file size. This works great for vimeo, and I'm generally very satisfied with the quality even at 1920x1080. But like others I'd like to also work with video into After Effects etc. My aim is to keep working with clips at 1920 with as little degradation as possible to video quality (nothing new). I have a quadcore @ 2.4, 2gb ram, 8800 GTS 512 and a raptor.. and up until this point everything has been pretty smooth. The first hitch came after trying to playback the 1920x1080 lossless Lagarith .AVI in media player classic. The image quality seems to look ok but playback is nowhere near smooth. I guess my first question is:
1. Is this normal or should my machine be capable of playing it back smoothly? It has no trouble at all with uncompressed .mts/.m2ts files so I wonder if I'm doing something wrong in creating the AVI or if perhaps I'm lacking some essential codec.
Maybe you can spot an error in my processing:
I start with the .m2ts file from my camera (Canon HF100 - NTSC)
Video: MPEG4 Video (H264) 1920x1080 29.97fps 60i = .m2ts (renamed .mts)
Audio: Dolby AC3 48000Hz stereo [Audio]
I place that file in your avchd_convert_v6 directory. I have the latest VirtualDub installed as well as the latest Avisynth.
I want to retain as much quality as possible to take and edit with - so I choose the batch file:
" 1920x1080_Same_As_Source.bat " (I also tried huffy and had the same issues but with an even more enormous file size)
---> creates .AVS ---> Open VirtualDub ---> Open that .AVS file ---> Select Lagarith under "Compression"
and finally ---> Save as .AVI.
This takes me from the original 46MB .mts to a lossless Lagarith .AVI that is 1.2GB.
Does that seem right? It plays back awful in mpc and is a bitch to work with in After Effects. I've played HD content with similar file sizes fine in the past.. (perhaps b/c they were compressed to some extent?) I have no idea
I uninstalled K++ codec pack... uninstalled coreAVC... downloaded latest MPC... re-installed CoreAVC ... installed FFDShow MPEG-4 Video Decoder 2008-08-11... rebooted many times.. same thing. I played around with various switches in all three to no avail.
2. And finally as far as work flow goes, what would you suggest? (assuming I can get beyond the problems above)
Like I said I'm pretty new to the process of piecing together video in general. Say I have 30 different short .mt2s clips... I'll probably do the majority of editing in Vegas as it seems to support AVCHD fairly well. So say I'm pruning the clips for what I'd like to use in the project (using vegas). Am I already making a mistake here? Should I first be transcoding the .mts clip(s) that I want to apply an effects plugin to using your method so that I can manipulate it in After Effects? And if so, is Lagarith .AVI the way to go? .. and then say in Adobe when I've applied the effect and done, would I again render to the lossless Lagarith AVI (which next would be pulled back into Vegas for integration)? Sorry this is a lot.. lol I've looked and looked for hints on how to do things properly and work efficiently and just end up with even more variables to get lost in... If you have the time to shed some light on what approach to take and my issues with the scripts I would be most grateful.
Thanks in advance.i r noob -
Hi fugazi
1) Yes, whenever you convert any file to lossless lagarith or Huffyuv there's stuttering on playback - especially when you're looking at 1920x1080 dimensions. I have a 8 Core 3 GHz machine at work, and HD lagarith stutters on that as well.
The lossless conversion is meant to be used as a high quality file that you feed to Vegas or Premiere. It's not meant for playback.
2) Because so few apps can use the original .M2TS AVCHD file (although Vegas can), you should convert all your files to lagarith AVIs, then as you're saving your cuts and moving between applications, save again using lagarith in After Effects or Vegas. That way there's no quality degradation from re-encoding (lossless to lossless).
When you're finally ready, render your stuff to whatever final codec you want - h264, xvid, whatevah
I'd try the 848x480 batch file just because you'll be able to test this all out without having to deal with the massive 1920x1080 size. -
Originally Posted by Soopafresh
I'm trying to understand what you're putting in the batch file, but I was wondering, is there a difference between "normalize" that you have in the Vimeo and "Audiolimiter" that you have in the v6? Does one give better quality than the other?
Another question, in your v6 batch files, is it really necessary for the "same as source" ones to do the Lanczos4Resize? Can you just take that line out? -
The normalize vs audiolimiter difference is really a workaround I had to come up with when I was creating the Vimeo specific batch files. It's because x264 is a video-only tool, where VirtualDub will do both audio and video in one shot. Quality isn't different, but the audiolimiter one is a bit more nifty because it reduces the dynamic range, making the loud parts less loud and the quiet parts louder.
Another question, in your v6 batch files, is it really necessary for the "same as source" ones to do the Lanczos4Resize? Can you just take that line out?
If you camera is shooting at true 1920x1080 dimensions, then you can remove it. A lot of so called "HD" cameras actually record at 1440x1080 and your video player stretches it out to 1920x1080.
Try removing it and see if it comes out right. If it doesn't, then your camera is shooting at 1440x1080 -
Many thanks for taking the time to respond and school me. It's nice to know I'm not alone re: playing back lossless .AVI's - although maybe a little discouraging to read that even a 8 Core (damn..) machine struggles.
Originally Posted by Soopafresh
I'm curious then - when an expert like yourself wants to manipulate/arrange video to sync precisely with the rhythm of an audio track or needs to perform some other task where pinpointing video details in playback seems important, how do you go about working with the stuttering lossless files in the editor? Would you maybe have a duplicate video track(timeline) that mirrors the same footage (but in a form that is playable in-editor)? .. and then mirror the changes or effects to the lossless track for later render?
Thanks again for this guide and all your helpi r noob -
I'm far from an expert on this stuff. I know a bit about the "how", but very little about the "why".
If you're going to be feeding an uncompressed 1920x1080 clip to an editor, you're not going to be able to do audio sync tweaks, at least not with any of the free lossless codecs (lagarith, huffyuv). You can use the amazing Cineform codec, which is multi-processor optimized to play back at realtime at 1920x1080, but it's an expensive bit of software - $500. However, at 848x480 resolution you can use lagarith with no problem.
In certain programs, like After Effects CS3 (maybe earlier ones too), you can use a lower res "Proxy" to do your editing, then replace it with your high res files when you're ready to render. I have no idea about how to go about doing this, but the option appears to be there:
"Proxy
Any file used to temporarily replace a footage item, but most often a lower-resolution or still version of an existing footage item used to replace the original. Often, storyboard images are used as proxies. You can use a proxy either before you have the final footage or when you have the actual footage item but you want to speed up previewing or rendering of test movies. You must have a file available to use as a proxy.
Any masks, attributes, expressions, effects, and keyframes that you apply to the layer are retained when you replace its placeholder or proxy with the final footage item."
http://livedocs.adobe.com/en_US/AfterEffects/8.0/help.html?content=WSB356ACD2-AF59-460...687DB5ACC.html
Oh yeah, you can also beef up your hardware: http://www.cray.com/products/xt5/index.html -
Originally Posted by Soopafresh
-
Hi guys and gals, in particular Soopafresh;
I have a couple of advancements to your scripts for PAL 25 fps sources (from Canon HF 10 and HF 100 for example);
Download entire set including all needed files here (3 MB). Only requires latest Avisynth installed..
If you want to use it, just dump your .MTS files in the folder where the bat files are, then run one of the bat-files.
- I prefer neroAacEnc over faac, so it is using that instead for higher audio quality.
- I also added something to azid making the normalizing script you use obsolete (the built-in option in azid does a better and faster job, even).
- Also added is MSharpen, one of the best sharpening plugins for avisynth in my opinion. So the post-Resize sharpening line is added:
for %%a in ("*.dga") do @echo MSharpen(threshold=12,strength=81,highq=true) >> "%%~na.avs"
And last but not least I tried to create Quicktime compatible mp4 results with x264.
The download contains 3 great batch scripts:
_HD25p_MTS_to_MP4__16-9_640x360.bat -> around 1 Megabits/sec mp4 result
_HD25p_to_Vimeo__MTS_to_MP4__16-9.bat
and one using letterboxing (from 16:9 to 4:3) :
_HD25p_MTS_to_MP4__16-9_to_4-3_640x480.bat
Hope you find a use for it. I might add more batch files and options to it in the future. -
Thanks bayme, I'll take a look and incorporate most of it into the next version. I'm waiting for the bugfix for libavcodec which should be coming soon and I'll throw it all together then. The only thing I can't do is swap out Faac with Nero's AAC encoder because although it's free, Nero refuses to allow anyone to include neroAacEnc with their own software
. That's why I had to use FAAC to begin with.
Great idea on using Azid to do the normalizing! -
Originally Posted by Soopafresh
Hmm.. I think I'll leave my file online until they complain. My experience is they won't be complaining soon with specialized scripts like this.
Next version I will put in its place will have a link where to download the file at nero ahead.de so they can't complain.
By the way, do you know a decent encoder command to use (at the end of these scripts) for MPEG-2 video with MP3 audio output, so .mpg output with a bitrate around 5000 kbit/s average, using 1024x576 at 25 fps ? -
From the official Dgavcdec thread on Doom9 http://forum.doom9.org/showthread.php?t=122598&page=68
Q-"neuron2, can You please update libavcodec.dll to new version from ffmpeg? Maybe some of us will be lucky, and at least some decoding problems is fixed in latest ffmpeg"
A- "The changes I need to do are extensive. I'm waiting for a final version that is really fixed, because I have no way to be sure things won't change again before that happens. Michael tells me he's still fixing PAFF bugs, so we'll all just have to wait until he's finished."
This means it will be a while longer to resolve some of those artifacts present on output from several of the newer cameras. If you're having problems with your output file looking blocky, you'll have to look for another solution in the meantime - CoreAVC and DirectShow (read this thread) or other apps such as VoltaicHD
vimeo_00144.mp4 -
Hi, another Newbie here.
I have been reading this thread and gotten so far as to achieve one of my goals, namely converting the mts files (I just rename the m2ts files) from my Canon HF100 (25p) to avi files with Lagarith compression using Soopafresh (Thank you very much!!) bat files at the start of this thread (I use the "__1920x1080_Same_As_Source.bat") and then open them in VirtualDub and saving with Lagarith compression.
I wonder if there is a way to kind of skip the virtualdub part and add something to the bat file so it produces the Lagarith compressed avi files directly (and it would also be neat if all the wav-, ac3-, avs-, dga- and mts-files were deleted, leaving only the avi files).
After reading a post about this I tried with putting avs2avi in the directory and just add the line "for %%a in ("*.avs") do avs2avi "%%a" "%%~na.avi" -c LAGS -e" towards the end of the bat file and something happened in the DOS prompt window but no avi-files were created and since "I do not know what I´m doing" I gave up there.
Shortly: can one modify the bat file so that when you run it, the mts-files are replaced with Lagarith compressed avi-fles?
Can this be taken a step further and generate HDV and DV compressed avi files (are there any free HDV and DV codecs?)?
My dream and ultimate goal is to have a directory with 1920x1080 25p mts-files and then be able to convert them to either 1920x1080 25p Lossless or 1440x1080 25p HDV with a "double-click" or having a directory with 1920x1080 50i mts-files and then be able to convert them to 720x576 50i DV.
Is something of this possible? -
Hi jodal:
Thank you for your kind words. Yes, all of those things are possible, to a certain extent. That's why I created batch files - to keep it open for anyone to modify to their liking.
The AVS2AVI command should work. I think the syntax is this:
for %%a in ("*.avs") do avs2avi "%%a" "vid-%%~na.avi" -c LAGS
Put a pause command after that line and see if you can catch the error. It might also be your version of AVS2AVI.
The problem you'll have is that AVS2AVI only converts video, so you'll have to mux the WAV or AC3 file with the video output by using VirtualDub
You probably noticed the Huffyuv converter batch file I created, which uses FFMPEG to create the AVI file. This would be easier to do, although the output file will be a bit bigger than lagarith.
https://forum.videohelp.com/images/guides/p1819223/huffyuv_xvid_addon.zip
That might be one way to create DV format files as well, as FFmpeg has that conversion ability. HDV as an MPEG2 transport stream is a little tricky to do from the command line. It's the muxing that makes it difficult. There are command line HD Mpeg2 encoders like HCenc which can convert the video portion pretty easily. FFmpeg might be able to create a very high bitrate MPEG2 with WAV audio, but you'll have to study the ffmpeg commands to figure out the syntax.
If you want to get rid of all of the temporary files, add this to the bottom of your batch file:
del *.avc
del *.dga
del *.ac3
del *.wav
del *.avs
del *.log
Look at this page for more conversion ideas: http://blog.somestuff.org/comments.php?y=06&m=03&entry=entry060303-052230 -
Thanks for quick reply Soopafresh!
For some reasons (size and compatibility with my x64 system9) I would like to continue using Lagarith instead of Huffyuv, but your Huffyuv-batchfile works nice (infact, I think I'll use that instead of the "SameAsSource" since the audio dynamic range is not limited and just remove the line creating the avi-file).
Now forgive me if I am talking stupid things here but I am really not familliar with the world of scripting (and maybe I should not enter a forum named Advanced tthen). When using Virtualdub I can create a job-file which as I understand it is some kind of a script telling virtual dub what to do. Is there some easy way to incorporate such a job-file in the batchfiles you and others create?
While I´m waiting for the either Adobe to support AVCHD or someone to create the for me "ultimate" conversion batchfile I will "survive" with the workflow of using your batchfiles to create fullhd avs-files, use virtualdub to compress one fullres clip with Lagarith and one 720x576 clip with panasonic DV-codec, edit with the DV-clip in PremierePro and when I am ready for the final render, replace the DV-clip with the fullres-clip.
If someone happens to write or spot a free conversion tool/script/batch-file that do convert mts/m2ts-files to Lagarith compressed avi-files (and or DV avi-files) with fewer steps I will be most interested.
Presently I do not have the time to learn enough "scripting" to be able to pull that task off.
But again Soopafresh, theese batch-files have made it possible for me to edit my fullhd-files without resolution loss (as in using elecard converter studio) and the need to learn and purchase new editing software (like Sony Vegas). Thanks again! -
Apologize if this is the wrong place to ask about this, but I am trying to repair an .MST file that was recovered from the drive in a Sony HDR-SR5 after someone unplugged the camcorder without disconnecting it via the software first. The video no longer shows up on the camera, but with a data recovery program I was able to track down the file. Whenever I try to open it with any kind of conversion utility I get an error of some sort or the other, the most frequent is "missing sync byte."
Does anyone know of a utility or a way to mend files that may have been corrupted in this way?
Much appreciated. -
Try the Vimeo Conversion batch file on the first page of the post
Similar Threads
-
Skilled in making AVCHD (mini-bluray) disks?
By dizzie in forum Authoring (Blu-ray)Replies: 10Last Post: 23rd May 2010, 14:51 -
Searching Freeware for DVD-AVCHD (mini Blueray) Authoring
By benji179 in forum Newbie / General discussionsReplies: 5Last Post: 30th Mar 2010, 13:17 -
Using AVCHD (1080i) instead of regular AVI-DV (480i) MINI-DV - argh!
By eddie24 in forum Video ConversionReplies: 4Last Post: 6th Oct 2008, 19:32 -
Put severeal AVCHD Mini-Disc onto a DVD-5: How?
By gekko_video in forum Authoring (Blu-ray)Replies: 4Last Post: 14th Apr 2008, 15:35 -
Mini Review - Elecard Converter Studio AVCHD Edition
By Soopafresh in forum Video ConversionReplies: 6Last Post: 5th Feb 2008, 11:38