VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Hi
    After I have recording some TV program I have now them in .TS but I dont know what to do to make it good quality as possible to AVI (Xvid)

    I have use mencoder and it work nice but I dont know if that is the best idea and give me the best quality.

    That I do is I convert .TS to Xvid and then open avidemux to remove all commercial and save the file (use copy movie and sound)

    The problem is that I dont know how big biterate I going to use to convert from .TS to Xvid if I dont know how long the movie going to be.

    I have try open the .TS with the avidemux but I get out of sync with the sound when I save it in Xvid.

    I was thinking about save the Xvid as good quality as possible to Xvid and then open the file with avidemux, remove the commercial and then save as Xvid in that size I want to have but have then two problem

    1)
    If that good to resave the movie in Xvid again??

    2)
    I have this code now (if the movie is in widescreen)

    Code:
    mencoder moviein.ts -oac mp3lame -lameopts abr:br=128  -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:aspect=16/9:vbitrate=1267 -vf pp=de,crop=0:0:0:0,scale=704:400 -ffourcc DX50 -o movieout.avi
    What do I have to change to make it say as best quality as possible?
    Quote Quote  
  2. software: AviSynth + VirtualDub + Xvid.

    Forget bitrate, use single pass Target Quantizer mode in Xvid. Pick the quality you want by setting the quantizer. The file will come out to whatever size (vaiable bitrate) is needed to achieve that quality.
    Quote Quote  
  3. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Originally Posted by jagabo
    software: AviSynth + VirtualDub + Xvid.

    Forget bitrate, use single pass Target Quantizer mode in Xvid. Pick the quality you want by setting the quantizer. The file will come out to whatever size (vaiable bitrate) is needed to achieve that quality.
    Hi
    I found in ffmpeg that is something that call -sameq.
    It make the file have same quality as the original but I have now problem to get ffmpeg to work

    Code:
    ffmpeg -i moviein.ts -vcodec libxvid -aspect 16:9 -acodec libmp3lame -ab 128k -sameq movieout.avi
    it say

    Could not write header for output file #0 (incorrect codec parameters ?
    Quote Quote  
  4. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    I just change the my old code a little

    Code:
    mencoder moviein.ts -oac mp3lame -lameopts abr:br=128  -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:aspect=16/9::vqscale=2  -vf pp=de,crop=0:0:0:0,scale=704:400 -ffourcc DX50 -o movieout.avi
    Remove vbitrate and add vqscale=2
    Quote Quote  
  5. I don't use mencoder but vqscale appears to be the constant quantizer setting in mencoder. I suspect 2 will make your files pretty big. 3 might be a better compromise on size vs quality. You can use values in between too.

    You may also want to use vrc_maxrate to prevent bitrate spikes that can choke set-top Divx/DVD players.
    Quote Quote  
  6. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Originally Posted by jagabo
    I don't use mencoder but vqscale appears to be the constant quantizer setting in mencoder. I suspect 2 will make your files pretty big. 3 might be a better compromise on size vs quality. You can use values in between too.

    You may also want to use vrc_maxrate to prevent bitrate spikes that can choke set-top Divx/DVD players.
    well yes the file is going to be big but I also going to remove all the commercial with avidemux
    Inside avidemux I can change so the finnish file is going to be in that size I want to have it.
    Quote Quote  
  7. So You're using Xvid as an intermediate file? If so you can set it to all I frames or short IP GOPs. That will get you better quality and easier editing. Actually, you would be better off using a lossless, all I frame, codec like HuffYUV or Lagarith.
    Quote Quote  
  8. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Originally Posted by jagabo
    So You're using Xvid as an intermediate file? If so you can set it to all I frames or short IP GOPs. That will get you better quality and easier editing. Actually, you would be better off using a lossless, all I frame, codec like HuffYUV or Lagarith.
    hmm yes

    I have to see what I going to do but right now I have something to start with
    Quote Quote  
  9. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    FWIW, I demux a small section of the TS with Dgindex.
    The demuxed audio lists the audio delay in the saved filename.
    Load the TS in Avidemux and apply the delay (shift), then cut the commercials.
    Choose AVI as output.
    XviD as video and the resize filter.
    Quote Quote  
  10. Yes, DgIndex shows a delay of 989 ms for the audio.
    Quote Quote  



Similar Threads

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