VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Hello,

    I record some sports events (*.TS @25fps/s) through a Dreambox and want to convert them to mp4 format.


    So I use Megui tools to demux streams, encode audio AC3 to AAC, then encode h264 (interlaced top filed first > applied yadif) video to mp4 and here is problem!

    When Megui doesn't crash (coz of x264) the encoded file I get is 31fps/s and the video is shaking.

    What should I do to get back to 25fps?
    Quote Quote  
  2. I used this avs script :

    LoadPlugin("C:\Megui\tools\dgavcindex\DGAVCDecode.dll")
    AVCSource("C:\REC.h264")
    crop(6, 2, -6, -2)
    LanczosResize(720,408) # Lanczos (Sharp)
    #denoise
    Quote Quote  
  3. It might pay to post the full MeGUI log file. It should tell you the frame rate it's using. Depending on the indexer MeGUI could also add frame rate conversion to the script. That'll be in the log file too. If the video is interlaced AVC it can cause decoding issues. You could try remuxing the ts file as an MKV using MKVMergeGUI and opening the MKV for re-encoding instead. Depending on the type of video the result might be different.
    If you can, it might also pay to upload a small sample of the video in question. The more info you can provide, the less guessing there'll be. The x264 encoder shouldn't cause MeGUI to crash. If it does crash, it's more likely to be because of a decoding problem, but anything is possible.
    Quote Quote  
  4. I can't offer any help with DGAVCDecode as I've never used it, but uploading a sample and the log file would probably be a good idea.
    Quote Quote  
  5. OK many thank for willing to help

    Here's Megui log, when i want to use those filters, it crashes... Will up a sample too.

    [Error] Log for job11 (video, T1_Video - .avs -> T1_Video - .264)
    -[Information] [18/03/2014 18:39:39] Started handling job
    -[Information] [18/03/2014 18:39:39] Preprocessing
    -[Information] [18/03/2014 18:39:39] Avisynth input script
    --[NoImage] LoadPlugin("C:\Megui\tools\dgavcindex\DGAVCDecode.dll")
    --[NoImage] AVCSource("C:\Users\Masmas\Desktop\Lille - Montpellier\T1_Video - .dga")
    --[NoImage] Load_Stdcall_Plugin("C:\Megui\tools\yadif\yadif.dl l")
    --[NoImage] Yadif(order=1)
    --[NoImage] crop(6, 2, -6, -2)
    --[NoImage] LanczosResize(720,408) # Lanczos (Sharp)
    --[NoImage] #denoise
    -[Information] [18/03/2014 18:39:39] resolution: 720x408
    -[Information] [18/03/2014 18:39:39] frame rate: 50000/2000
    -[Information] [18/03/2014 18:39:39] aspect ratio: 30:17 (1.765)
    -[Information] [18/03/2014 18:39:39] Job commandline: "C:\Megui\tools\x264\x264.exe" --level 3.1 --preset slow --vbv-bufsize 17500 --vbv-maxrate 17500 --sar 1:1 --output "C:\Users\Masmas\Desktop\Lille - Montpellier\T1_Video - .264" "C:\Users\Masmas\Desktop\Lille - Montpellier\T1_Video - .avs"
    -[Information] [18/03/2014 18:39:39] Process started
    -[Information] [18/03/2014 18:39:39] Standard output stream
    -[Information] [18/03/2014 18:39:39] Standard error stream
    --[Information] [18/03/2014 18:39:41] avs [info]: 720x408p 1:1 @ 25/1 fps (cfr)
    --[Information] [18/03/2014 18:39:41] x264 [info]: using SAR=1/1
    --[Information] [18/03/2014 18:39:41] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    --[Information] [18/03/2014 18:39:41] x264 [info]: profile High, level 3.1
    --[Information] [18/03/2014 18:40:45] This application has requested the Runtime to terminate it in an unusual way.
    --[Information] [18/03/2014 18:40:45] Please contact the application's support team for more information.
    -[Error] [18/03/2014 18:41:00] Process exits with error: 3
    -[Information] [18/03/2014 18:41:00] Job completed
    Quote Quote  
  6. This is TS sample :
    Code:
    http://speedy.sh/8RcCJ/source.TS
    Quote Quote  
  7. Maybe some of this is over my head, but (from MediaInfo).....

    Video
    ID : 166 (0xA6)
    Menu ID : 4007 (0xFA7)
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.0
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : 27
    Duration : 12s 500ms
    Bit rate : 7 500 Kbps
    Width : 1 440 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Standard : Component
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : MBAFF
    Bits/(Pixel*Frame) : 0.193
    Stream size : 11.2 MiB (86%)
    Encryption : Seca Mediaguard 1/2
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    Is there some sort of copy protection?
    I couldn't get any of the indexers to work correctly, although nothing would decode the first couple of seconds. That may be due to it being split. Anyway in order to re-encode it......

    I remuxed it as an MKV so MeGUI could open the MKV and extract the audio. I was able to open the ts file via DirectShow (indexing the MKV version didn't work either). That's the only decoding method which worked for me. MeGUI wrote a ridiculous delay value to the audio file when extracting it which probably should be ignored. I opened the script creator, added the TS file as the source video and chose DirectShow as the decoding method.
    In my case I have ffdshow installed which seemed to decode it okay (except the first few seconds). If you have a different DirectShow AVC decoder installed it'd probably pay to try it first. Given ffdshow was decoding, I enabled it's de-interlacing filter and selected Yadif, so there was no need for de-interlacing in the script, although with ffdshow decoding the de-interlacing seemed to work either way. With ffdshow de-interlacing the script was nice and simple. I cropped a bit to clean up the edges and resized to 704x396 as it's exactly 16:9, but that's just me .

    DirectShowSource("E:\source.TS", fps=25.000, audio=false, convertfps=true).AssumeFPS(25,1)
    crop(6, 4, -4, -4)
    Spline36Resize(704,396)

    That's the only way I found to do it successfully. Maybe someone more clever will come along with a better idea but at least that worked.
    Image Attached Files
    Last edited by hello_hello; 18th Mar 2014 at 20:34.
    Quote Quote  
  8. Hi hello_hello,

    Thank you very much for helping, I will try it the way you describe
    Quote Quote  



Similar Threads

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