VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 34
  1. Hello everybody..

    I need some advice to make this video look as good as possible, I have tried A LOT OF THINGS, when I convert it it looks weird when the camera moves and the players makes passes og shots, its like the camera cannot follow it.. I need it to look smooth... Please Help me.

    Here is the info:

    Filename Fodbold FC Midtjylland-SønderjyskE (02).ts
    Format : MPEG-TS
    File size : 6.10 GiB
    Duration : 1h 37mn
    Overall bit rate mode : Variable
    Overall bit rate : 8 987 Kbps

    Video
    ID : 3100 (0xC1C)
    Menu ID : 1 (0x1)
    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 : 1h 37mn
    Bit rate : 8 155 Kbps
    Width : 1 920 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.157
    Stream size : 5.54 GiB (91%)
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    Audio
    ID : 3106 (0xC22)
    Menu ID : 1 (0x1)
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Format settings, Endianness : Big
    Codec ID : 6
    Duration : 1h 37mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 267 MiB (4%)
    Language : Danish


    JackDanielZ
    Quote Quote  
  2. That information is useless. If you'd like advice please post a small sample of the video.

    Is your problem interlacing? If so, what do you plan on doing with the video? Upload to YouTube or some such? Make a DVD or convert it to some other format? What?
    Quote Quote  
  3. Originally Posted by manono View Post
    That information is useless. If you'd like advice please post a small sample of the video.

    Is your problem interlacing? If so, what do you plan on doing with the video? Upload to YouTube or some such? Make a DVD or convert it to some other format? What?
    The plan is to make it mp4 and aac-lc sound I really want it to be watchable on the XBOX 360.
    I am currently working on a sammple to show you.
    Quote Quote  
  4. Probably the wrong field order. Or the conversion didn't take in to account the video was interlaced. Or the decoder couldn't handle MBAFF. But without a sample of the source and the converted video there's no way to say for sure.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    Probably the wrong field order. Or the conversion didn't take in to account the video was interlaced. Or the decoder couldn't handle MBAFF. But without a sample of the source and the converted video there's no way to say for sure.
    I have the sample ready now, its the raw footage http://gratisupload.dk/vis/692951
    Quote Quote  
  6. Can't see anything particularly wrong in the file. How are you trying to convert it?
    Quote Quote  
  7. This better?
    Code:
    ffVideoSource("sample.ts")
    Yadif(mode=1, order=1)
    First 10 seconds:
    Image Attached Files
    Quote Quote  
  8. Originally Posted by jagabo View Post
    This better?
    Code:
    ffVideoSource("sample.ts")
    Yadif(mode=1, order=1)
    First 10 seconds:
    Its just the way I want it..

    Is it possible to do the same thing with MP4 output?

    The programs i use is:
    Handbrake
    VideCoder
    Ripbot264
    Staxrip

    Do I have to choose the same resolution as the real footage?

    Witch of them will you recommend for me? and are they all compatible with just putting your command into a command line?

    Hope you will help me the last few steps to my longtime goal..

    -JackDanielZ
    Quote Quote  
  9. Originally Posted by JackDanielZ View Post

    Is it possible to do the same thing with MP4 output?
    Yes, sure. I've never used any of the programs you listed (and maybe one or more can do it) but XviD4PSP can do it easily enough. It accepts AviSynth scripts as input and even has an XBox360/MP4 preset. You can feed it external audio as well (audio not already included in the script).
    Do I have to choose the same resolution as the real footage?
    You can use any resolution you like and add it to the script.
    Quote Quote  
  10. Originally Posted by manono View Post
    Originally Posted by JackDanielZ View Post

    Is it possible to do the same thing with MP4 output?
    Yes, sure. I've never used any of the programs you listed (and maybe one or more can do it) but XviD4PSP can do it easily enough. It accepts AviSynth scripts as input and even has an XBox360/MP4 preset. You can feed it external audio as well (audio not already included in the script).
    Do I have to choose the same resolution as the real footage?
    You can use any resolution you like and add it to the script.
    Thank you so much...
    Quote Quote  
  11. I used the AviSynth script I gave earlier and fed the x264 command line encoder with:

    Code:
    x264.exe --preset=fast --crf=21 --sar=1:1 --output sample.mkv sample.avs
    The command line specified MKV as the output container but you can specify MP4 if you prefer.
    Last edited by jagabo; 6th Mar 2013 at 16:24.
    Quote Quote  
  12. Originally Posted by jagabo View Post
    I used the AviSynth script I gave earlier and fed the x264 command line encoder with:

    Code:
    x264.exe --preset=fast --crf=21 --sar=1:1 --output sample.mkv sample.avs
    The command line specified MKV as the output container but you can specify MP4 if you prefer.
    The file you made for me.. Why is the framerate changed for that file?
    Quote Quote  
  13. Originally Posted by JackDanielZ View Post
    The file you made for me.. Why is the framerate changed for that file?
    In the AviSynth script he used, Yadif was in Bob mode (doubles the framerate). To keep it at the original framerate while still deinterlacing, Change Mode=1 to Mode=0.
    Quote Quote  
  14. Originally Posted by manono View Post
    Originally Posted by JackDanielZ View Post
    The file you made for me.. Why is the framerate changed for that file?
    In the AviSynth script he used, Yadif was in Bob mode (doubles the framerate). To keep it at the original framerate while still deinterlacing, Change Mode=1 to Mode=0.
    aha.. Thank you again manono

    Yadif(mode=1, order=1) both to mode=0 or just one of them?
    Quote Quote  
  15. Your source is 25 interlaced frames per second. Each frame contains two half-pictures, called fields. The two fields are intended to be viewed separately and sequentially, hence 50 different fields per second for fluid motion. Marketing droids have started calling this 50i rather than 25i because the bigger number sounds better.

    Yadif(mode=1) converts each field into a full frame, retaining the full fluidity of the 50 fields per second source. If you change it to mode=0 you will get 25 frames per second. That will flicker during high motion and motions won't be as fluid.

    Do not change order=1. If you do the two fields of each frame will be displayed in the wrong order when bobbing. You will get a two-steps-forward-one-step-back motion, 25 times a second. Very jerky.
    Quote Quote  
  16. I did this now Yadif(mode=1, order=1)

    Its looks amazing, but its like its slowmotion..?

    this was the script:

    video = DirectShowSource("C:\Users\Daniel\Desktop\Sample.t s", audio=false, fps=25.000, convertfps=true)
    audio = NicAC3Source("C:\Temp\0004_0.ac3")
    AudioDub(video, audio)

    ConvertToYV12(interlaced = true)
    Yadif(mode=1, order=1)

    ###[FILTERING]###
    ###[FILTERING]###

    Lanczos4Resize(1280, 720)
    Quote Quote  
  17. Originally Posted by JackDanielZ View Post
    I did this now Yadif(mode=1, order=1)

    Its looks amazing, but its like its slowmotion..?
    What did you encode with? Many of the GUI front ends for x264 won't encode at 50 fps. They'll set the frame rate to 25 fps -- resulting in either jerky motion (because they threw out every other frame) or slow motion (because they simply flagged the 50 fps input as 25 fps). Check the frame rate of your output file. It should be 50 fps.

    I suppose DirectShowSource() could be a source of your problem too. It's behavior will depend on what DirectShow components you have installed.
    Quote Quote  
  18. Originally Posted by jagabo View Post
    Originally Posted by JackDanielZ View Post
    I did this now Yadif(mode=1, order=1)

    Its looks amazing, but its like its slowmotion..?
    What did you encode with? Many of the GUI front ends for x264 won't encode at 50 fps. They'll set the frame rate to 25 fps -- resulting in either jerky motion (because they threw out every other frame) or slow motion (because they simply flagged the 50 fps input as 25 fps). Check the frame rate of your output file. It should be 50 fps.

    I suppose DirectShowSource() could be a source of your problem too. It's behavior will depend on what DirectShow components you have installed.
    I used XviD4PSP 5

    the mediainfa is here:

    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 27.6 MiB
    Duration : 1mn 58s
    Overall bit rate mode : Variable
    Overall bit rate : 1 961 Kbps
    Encoded date : UTC 2013-03-07 12:54:11
    Tagged date : UTC 2013-03-07 12:54:11

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 1mn 58s
    Bit rate : 1 780 Kbps
    Maximum bit rate : 5 823 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 25.000 fps
    Original frame rate : 50.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.077
    Stream size : 25.1 MiB (91%)
    Writing library : x264 core 125 r2208 d9d2288
    Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=12 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.50 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=24000 / vbv_bufsize=24000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.10 / aq=1:1.00
    Encoded date : UTC 2013-03-07 12:54:11
    Tagged date : UTC 2013-03-07 12:54:12

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 59s 263ms
    Bit rate mode : Variable
    Bit rate : 353 Kbps
    Maximum bit rate : 366 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Delay relative to video : 80ms
    Stream size : 2.50 MiB (9%)
    Encoded date : UTC 2013-03-07 12:54:12
    Tagged date : UTC 2013-03-07 12:54:12
    Quote Quote  
  19. It looks like Xvid4PSP changed the frame rate to 25 fps. I haven't used the program in years so I don't know if it has a setting for that. If you switch to mode=0 you should get a video that plays at the right speed. But it will not be as smooth as 50 fps.
    Quote Quote  
  20. Originally Posted by jagabo View Post
    It looks like Xvid4PSP changed the frame rate to 25 fps. I haven't used the program in years so I don't know if it has a setting for that.
    Okay.. What do you reccomend for me to use then? MeGui?
    Quote Quote  
  21. I don't use any of the GUI front ends for x264 so I can't tell you which support 50 fps encoding.
    Quote Quote  
  22. Since I'm the one that recommended XviD4PSP, I feel a bit responsible. I thought maybe XBox360 didn't like 50fps MP4s, but that wasn't it. I did test encodes using regular settings at 50fps and using the XBox360 preset and both worked well. Since I didn't have any PAL stuff available I used this in an NTSC film script:

    AssumeFPS(25)
    Yadif(Mode=1)


    and the log of the XviDPSP encode for the preset showed this:

    avs [info]: 640x480p 1:1 @ 50/1 fps (cfr)
    x264 [info]: using SAR=1/1
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
    x264 [info]: profile High, level 4.1

    and checking the video afterwards also showed it to be 50fps and playing at regular speed (except for the slight speedup from 23.976fps to 25fps). So I have no idea what the trouble could be.
    Even adding audio to be encoded and then muxed caused no problems. Check the log or post it here, the same part I showed just above. XviD4PSP does encode for 50fps.

    If it's a long encode and you want to run a quick test, maybe cut off a piece. You might add something like:

    Trim(5000,6000)

    to the bottom of the script and that will encode 1000 frames beginning at frame number 5000. Always test your scripts first in VDub to make sure they're good (don't result in an error) and they do what you want (check File->File Information).

    You have the audio in the script. I suspect that's the problem as I didn't test that. You might also try encoding a small piece of video alone to convince yourself XviD4PSP really can handle 50fps. And after you see that working, maybe try adding the audio separately in the Audio->Audio Processing Options at the top. That is, don't include it in the script. If you like you can set its encoding settings in Audio->Encoding Settings, but on the main screen I think you'll see it uses some default setting for the XBox360.
    Last edited by manono; 7th Mar 2013 at 13:36.
    Quote Quote  
  23. Originally Posted by manono View Post
    Since I'm the one that recommended XviD4PSP, I feel a bit responsible. I thought maybe XBox360 didn't like 50fps MP4s, but that wasn't it. I did test encodes using regular settings at 50fps and using the XBox360 preset and both worked well. Since I didn't have any PAL stuff available I used this in an NTSC film script:

    AssumeFPS(25)
    Yadif(Mode=1)


    and the log of the XviDPSP encode for the preset showed this:

    avs [info]: 640x480p 1:1 @ 50/1 fps (cfr)
    x264 [info]: using SAR=1/1
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
    x264 [info]: profile High, level 4.1

    and checking the video afterwards also showed it to be 50fps and playing at regular speed (except for the slight speedup from 23.976fps to 25fps). So I have no idea what the trouble could be.
    Even adding audio to be encoded and then muxed caused no problems. Check the log or post it here, the same part I showed just above. XviD4PSP does encode for 50fps.

    If it's a long encode and you want to run a quick test, maybe cut off a piece. You might add something like:

    Trim(5000,6000)

    to the bottom of the script and that will encode 1000 frames beginning at frame number 5000. Always test your scripts first in VDub to make sure they're good (don't result in an error) and they do what you want (check File->File Information).

    You have the audio in the script. I suspect that's the problem as I didn't test that. You might also try encoding a small piece of video alone to convince yourself XviD4PSP really can handle 50fps. And after you see that working, maybe try adding the audio separately in the Audio->Audio Processing Options at the top. That is, don't include it in the script. If you like you can set its encoding settings in Audio->Encoding Settings, but on the main screen I think you'll see it uses some default setting for the XBox360.
    Any chance you can put out a Sample for you test?
    I have tried a millions times, the quality I got is good, but I want (great) maybe the problem is that its not possible? my problem is when the picture moves forward/fast is blurred a bit.. but quality overall is much improved since i started
    Here is my newest sample http://gupl.dk/693013/

    I really appreciated the amount of time you are dedicating to help me with this
    Quote Quote  
  24. Originally Posted by JackDanielZ View Post
    Any chance you can put out a Sample for you test?
    It wouldn't help. I work with NTSC film sources and only modified a film source on my computer to try and mimic XBox360 50fps encoding. Your sample looked fine to me. It looks to me like the XviD4PSP XBox360 setting is restricted to CRF 21 which isn't bad (but could be better). Maybe there are bitrate limits for XBox360 MP4s. I don't really know.

    There are better deinterlacers for AviSynth, but the encoding speed goes way down. If you don't care about how long it takes, give QTGMC a try. And maybe the best way you can improve the quality (or at least the smoothness of the playback) is to make it for 50fps.
    Quote Quote  
  25. Originally Posted by manono View Post
    Originally Posted by JackDanielZ View Post
    Any chance you can put out a Sample for you test?
    It wouldn't help. I work with NTSC film sources and only modified a film source on my computer to try and mimic XBox360 50fps encoding. Your sample looked fine to me. It looks to me like the XviD4PSP XBox360 setting is restricted to CRF 21 which isn't bad (but could be better). Maybe there are bitrate limits for XBox360 MP4s. I don't really know.

    There are better deinterlacers for AviSynth, but the encoding speed goes way down. If you don't care about how long it takes, give QTGMC a try. And maybe the best way you can improve the quality (or at least the smoothness of the playback) is to make it for 50fps.
    There a no birate limits for xbox 360 its very limited with sound, and you can not go higher then @ 4.1 and HIGH also ref frame not higher then 4 sound has to be AAC LC and at highest 160.

    With all my rips of my dvd i use crf 19 - do you have a suggestion at quality in general ?
    Do I have to do something smart AVS script or can i just choose 50 fps as output framerate?
    Quote Quote  
  26. Originally Posted by JackDanielZ View Post
    Do I have to do something smart AVS script or can i just choose 50 fps as output framerate?
    Just adding in the bobber (Yadif(Mode=1)) should make it 50fps. As I suggested before, encode a small section of the video alone to convince yourself it encodes at 50fps just fine. And after that works, then add in the audio separately (rather than in the script). I'm fairly sure it'll give you 50fps output then. I hope.
    Quote Quote  
  27. Originally Posted by manono View Post
    Originally Posted by JackDanielZ View Post
    Do I have to do something smart AVS script or can i just choose 50 fps as output framerate?
    Just adding in the bobber (Yadif(Mode=1)) should make it 50fps. As I suggested before, encode a small section of the video alone to convince yourself it encodes at 50fps just fine. And after that works, then add in the audio separately (rather than in the script). I'm fairly sure it'll give you 50fps output then. I hope.
    Its getting more and more sence..

    look at my 50fps sample http://gupl.dk/693014/


    here is the script for the one that wont change to 50 fps:

    video = DirectShowSource("C:\Users\Daniel\Desktop\Sample.t s", audio=false, fps=25.000, convertfps=true)
    audio = NicAC3Source("C:\Temp\0006_0.ac3")
    AudioDub(video, audio)

    ConvertToYV12(interlaced = true)
    Yadif(order=1)

    ###[FILTERING]###
    ###[FILTERING]###

    Lanczos4Resize(1280, 720)
    Trim(0, 1505)
    Quote Quote  
  28. Here's how I've suggested you do it:

    DirectShowSource("C:\Users\Daniel\Desktop\Sample.t s", audio=false, fps=25.000, convertfps=true)
    Yadif(order=1)

    ###[FILTERING]###
    ###[FILTERING]###
    Lanczos4Resize(1280, 720)
    Trim(0, 1505)


    And add in the audio separately. Except I would use DirectShowSource only as a last resort if nothing else worked. But you seem to be doing well with it. Is this how you made your 50fps sample from your last post?
    Quote Quote  
  29. In the last 50fps sample i triede the program XMedia Recode

    and i did this:
    video = DirectShowSource("C:\Users\Daniel\Desktop\Sample.t s", audio=false, fps=25.000, convertfps=true)
    audio = NicAC3Source("C:\Temp\0006_0.ac3")
    AudioDub(video, audio)

    ConvertToYV12(interlaced = true)
    Yadif(order=1)

    ###[FILTERING]###
    ###[FILTERING]###

    Lanczos4Resize(1280, 720)
    Trim(0, 1505)

    And changed the output frame to 50 fps instead of 25 fps
    Quote Quote  
  30. OK, good. If XMediaRecode works to give you XBox360 compatible MP4s, then use it instead.
    Quote Quote  



Similar Threads

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