VideoHelp Forum




+ Reply to Thread
Page 2 of 5
FirstFirst 1 2 3 4 ... LastLast
Results 31 to 60 of 125
  1. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Thanks for the info, manono That'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
    Quote Quote  
  2. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    I started converting one file with mencoder. It looks like it will take a while. Once it is done, I will post about the result.
    Quote Quote  
  3. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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!
    Quote Quote  
  5. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  6. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  7. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    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 ?
    Quote Quote  
  8. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  9. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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!
    Quote Quote  
  10. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    One of the files you have downloaded will have an extension .bat
    XP will refer to it as an MS-DOS Batch File.
    Read my blog here.
    Quote Quote  
  11. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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!
    Quote Quote  
  12. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Right click on it and choose "Edit".

    .BAT is just a text file that contains commands that automatically run when you click on it.
    Quote Quote  
  13. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    Thank you! Sorry for the ignorance.
    Quote Quote  
  14. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    It's all cool, we're all learning
    Quote Quote  
  15. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    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.
    Quote Quote  
  16. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    You are right, guns1inger. As far as I underastand it is DOS stuff. For me it has always been like a plague...
    Quote Quote  
  17. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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...
    Quote Quote  
  18. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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?
    Quote Quote  
  19. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Do you have Avisynth installed? It is required for that batch file to run properly.
    Quote Quote  
  20. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  21. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    No problemo. Looks like a working AVC plugin for Avisynth has arrived, so I'll post a new procedure later on this evening.
    Quote Quote  
  22. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  23. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  24. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  25. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  26. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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....
    Quote Quote  
  27. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    Thank you!

    ".NET 2.0 runtimes installed" - Do you mean .NET 2.0 Framework". I do have that one.
    Quote Quote  
  28. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  29. Member
    Join Date
    Jun 2006
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  30. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    - Yeah, of course I'll document it all. Most of it is automated.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!