Thanks for the info, manonoThat's the cool thing about this hobby - always learning something new. In that case, Vertical, open up the batch file and change
-Autogop
to
-Autogop 12
--------------------------------------------------------------------------------------------------------
Here's a different attempt at directly encoding to Mpeg2 with mencoder.
http://www.bestsharing.com/files/xfeVI233764/MencTest2DVD.zip.html
The end result isn't quite as detailed looking as the one above, but it is faster and it doesn't require any huge temp files. Again, I have no idea how the sync is going to turn out.
Copy the romeo.ts file into the same folder and click mtest.bat to start.
Plan on some experimentation. h264 TS files are relatively new beasts to conquer, so there aren't the same number of utilities and scripts to process them like there are in the MPEG2 TS world
+ Reply to Thread
Results 31 to 60 of 125
-
-
I've been looking at some useful tools for h264 transport streams:
http://www.techpowerup.com/downloads/435/TS_Packet_Editor_0.301.html
How to use the TS Packet Editor
http://www.flaskmpeg.info/board/thread.php?postid=68161&sid=4bb930ec4ef749a2557276284d...51b5#post68161
---------------------------------------------------------------------------------------------
PTScalc (Determines the A/V sync difference in h264 TS files !)
http://rickman.ri.funpic.de/show_artikel.php?id=4&show_kommentar=1#upd_1 -
Hi,
It has just finished converting and I've got XviD.avi with a picture of a very decent quality. The audio is out of synch.
I was surprised that the file is only 530 MB.
I did not try to convert to mpeg2 yet.
I am wondering whether it is the top quality that can be received from ts file or it can be even better? For example if to increase the file size.
While browsing Internet last night, I found such a program as Elecard Encoder. Will the picture quality be better with it or the same?
Thank you! -
You can increase the bitrate for the Xvid encode, but playback gets to be difficult past 5000. Experiment. Mencoder has some filters built in, but I've never tried using them as I gravitate towards Avisynth for image enhancement. I noticed there was a fair amount of fast moving grain on the clip you uploaded, so I used a smoother to calm the image down. All of that stuff will slow down your conversion time.
You should consider converting to Xvid rather than Mpeg2. It'll be a lot easier. Buy a DivX player if you want to watch the stuff on the TV -
Soopafresh, thank you.
How can I increase the bitrate? What smoother can I use?
Eventually I will convert the Xvid to NTSC DVD. That was the plan. I convert everything to NTSC DVD though I have a player that works with Xvid.
Can you please share your opinion about Elecard? Thanks. -
Why not convert directly to mpeg-2 ? Xvid is lossy, so you throw away information when you encode with it, then throw more away when you encode this to mpeg-2. Wouldn't you rather just throw away one set of information, once ?
-
guns1inger, I would be happy to. Do you mean I should try the second option suggested by Soopafresh? I sure will. I just had no time to try it. I hope the quality would be better than with Xvid.
If you are aware of any other way, your advice would be appreciated.
Thank you. -
Hi,
I tried to ocnvert the sample file to mpeg and it worked fine though it was giving error messages during processing. I've got an mpeg file with a picture of a very good quality.
I an confused about "batch file":
"open up the batch file and change
-Autogop
to
-Autogop 12"
I do not see a batch file in the enc2mpeg2 file. Could somebody please advise where the batch file is. Thank you! -
gubs1inger,
Actaullt my guess was about exactly this file but once I open it everything is running there so quick that it is impossible even to read the text.
How can i make the changes? Thanks! -
Right click on it and choose "Edit".
.BAT is just a text file that contains commands that automatically run when you click on it. -
You young whippersnappers with your new fangled "gooey" interfaces and your mouse and windows and everything. Back in my day we did everything with batch files. You couldn't run a game in more than 16 colours unless you new how you load 4 different memory manager, configure a sound card and load the CD drivers - all by typing text into an ascii based editor.
Those were the days.Read my blog here.
-
You are right, guns1inger. As far as I underastand it is DOS stuff. For me it has always been like a plague...
-
Back in school, the teacher used the back of a shovel as a blackboard
I too am from the Days O' DOS. I look for command line utils to accomplish tasks, mainly because they provide a lot of automated control, and writing scripts keeps the ol' brain from turning into mush... -
Hi,
I have converted a bigts (4,20 GB) and it looks like everything was fine but I've got not m2v but mp.4 and ac3 files.
What should I do with mp4 file? TDA does not accept it. Why there is no m2v file? Thanks!
I played ac3 now and believe it or not, Romeo speaks Chineese! Why is it in Chineese when it was in English? -
Yes, it is 2.5.
Do I understand right that I was not supposed to do any changes to the files in enc2mpeg2 except the one (actually two) you advised?
Soopafresh, sorry but I have to leave now. -
Soopafresh, thank you.
If there are two ways to do it (remeber you offered one with a better picture quality and the second one that was easier but not that good pic quality?) I would definitely go for the best possible quality no matter how complicated the procedure is and how big the file would be.
Meanwhile I am going to delete the existing folder and will download the whole thing anew and will try one more time. -
As promised, I deleted the folder and downloaded everything anew, made the changes you advised but the result is the same: it's mpeg4 but the ac3 is in English.
-
I still haven't uploaded the new version
Give me an hour or so, OK ?
Still, if you want really good quality, you're looking at around 5fps encoding speed. That's 5 hrs encoding time for every 1 hour of movie.
2 hr movie=10 hrs encoding time -
Soopafresh, thank you. I'll be waiting for the results. Good luck!
I confirm: I will definitely put the picture quality above all other factors. -
Okay, I am creating a couple of different scripts, depending on the quality of your source. That Romeo clip you provided is a difficult source, as it is soft and noisy at the same time.
Also, you'll need to have .NET 2.0 runtimes installed. I suspect you already do, but it'll be necessary to do the initial processing.
What we're trying to do here is to maintain as perfect A/V sync as possible. That's tough to do with h264 sources - they're very different than Mpeg2.
Almost done.... -
Thank you!
".NET 2.0 runtimes installed" - Do you mean .NET 2.0 Framework". I do have that one. -
Yes, .NET 2.0 Framework.
Here's How It Works:
I created 3 batch files, all of which address different scenarios for encoding video
_encode_Fast.bat : This one is for material you don't really need to make perfect or if you're in a hurry. The filters here only do basic smoothing to keep the bitrate in check during the Mpeg2 encoding. It runs pretty fast - 7 to 8 fps on a 3GHz P4
_encode_Normal.bat : This one is the workhorse, uses FFt3dfilter to perform very good looking denoising and minor sharpening. This is an excellent filter, and can go much stronger if you need the extra denoising. This should run at 5fps on a 3Ghz P4
_encode_HQ : This one is as slow as it gets, but if your source is really noisy, this is the one to use. Uses motion compensated degraining to remove "swimmy" types of noise. Don't expect more than 1 or 2fps during encoding. The newer E6600 Intel procs can run this script at 8-10fps. You should try this script just to see how your machine rates in comparison. Also, the final MPG file ends up much smaller in size than the other two batch scripts above. Good if you're determined to fit "Apocalypse Now Redux" on 1 DVD
There's basically 4 parts to this process
1) Repairing the .TS file by creating a "fixed" copy of the source
2) Demuxing the audio and video and ensuring A/V sync
3) Creating the Script and the Index File for the h264/AVC file
4) Encoding to MPEG2 720x480 16:9 and Performing Pulldown 25fps-29.97
Note: During the script creation, you'll see DGAVCIndex pop up. This is the app which indexes our h264 file.
--------------------------------------------------------------------------------------------------------------
I've included your example video clip (named INPUT.TS) for you to practice with in the download.
http://www.bestsharing.com/files/17ty5236908/enc2mpeg2_NEW.rar.html
Example Encoding Scenario
You've got your TS file ready to encode to Mpeg2
-- NOTE - YOUR INPUT TS file MUST BE NAMED INPUT.TS for the scripts to work ---
1) Rename your file to INPUT.TS
2) Place in same folder as the enc2mpeg2 files
3) Determine which batch file would best suit your material
4) Double click on batch file to begin
What Occurs During the Processing
1) Repairing the .TS file by creating a "fixed" copy of the source
The batch file automatically runs Mpeg2Repair, which actually fixes h264 TS files these days
Depending on the size of your INPUT.TS and the speed of your PC, this can take several minutes. You'll hear grinding sounds coming from your hard drive.
2) Demuxing the audio and video and ensuring A/V sync
The Xport.exe file runs, demuxing the audio and video from the fixed file in step 1
Remember to copy the AC3 file it creates to a seperate folder BEFORE you process another INPUT.TS file, otherwise it will be written over when the batch file is run again.
3) Creating the Script and the Index File for the h264/AVC file
This is where the DGAVCIndex popup happens. Follow instructions from above pics. You always want to choose "OUTPUT.H264" and the program will always create "OUTPUT.DGA" once you run the indexing.
4) Encoding to MPEG2 720x480 16:9 and Performing Pulldown 25fps-29.97
The slow part. There's a lot of CPU power required to process a 1080p h264 file, even if it is being resized to NTSC specs. As I mentioned, anticipate 5 hours of processing time for every hour of the movie running time. -
Soopafresh, thank you.
I hope there will be instructions how to do each section as for a newbie like myself it looks unclear.
Sorry my post came up before I saw the bottom of yours. -
- Yeah, of course I'll document it all. Most of it is automated.
Similar Threads
-
Help with m2v files
By Mikhel in forum Video ConversionReplies: 0Last Post: 19th Feb 2012, 06:22 -
Change the aspect ratio of an m2v MPEG2 file?
By theDruid in forum Newbie / General discussionsReplies: 6Last Post: 29th May 2010, 22:16 -
join .m2v files?
By just in forum Newbie / General discussionsReplies: 5Last Post: 24th Nov 2008, 20:11 -
edit m2v files?
By SUPERIOR in forum EditingReplies: 2Last Post: 16th May 2008, 02:42 -
problems Muxing M2V and Aiff files to MPEG2
By bbaddorf in forum ffmpegX general discussionReplies: 4Last Post: 18th Jun 2007, 15:14