VideoHelp Forum
+ Reply to Thread
Results 1 to 24 of 24
Thread
  1. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Hi... I have tried Avidemux for the job, flagged the interlaced lossless AVI input footage as interlaced in Avidemux's x264 configuration... but the MediaInfo showed the MP4 output was progressive afterwards. Please tell me if you need any other info on the specific case. Or just to try another software maybe?
    Quote Quote  
  2. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    We would certainly like to see that MediaInfo report. Best in full mode which describes a possibly used interlacing mode more detailed.

    The x264 encoder is capable of encoding video in interlaced mode, it uses the MBAFF method. Avidemux may not reveal many details about conversion interna (except it writes a log file, what I don't know), we can only hope that it stores the x264 core parameter set in the video stream so MediaInfo can quote that.

    But if you use a converter which uses the separate x264 CLI encoder, it may log its full command line string as well. MeGUI / StaxRip / Hybrid may do that.

    Alternatively, you could even use VirtualDub2 as a most simple application.
    Quote Quote  
  3. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Thanks, will post the info later when I get home from work.
    Quote Quote  
  4. Works here:

    Code:
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 3 min 5 s
    Bit rate                                 : 1 722 kb/s
    Width                                    : 720 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 4:3
    Original display aspect ratio            : 3:2
    Frame rate mode                          : Constant
    Frame rate                               : 29.970 (30000/1001) FPS
    Standard                                 : NTSC
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : MBAFF
    Scan type, store method                  : Interleaved fields
    Scan order                               : Top Field First
    Bits/(Pixel*Frame)                       : 0.166
    Stream size                              : 38.1 MiB (93%)
    Writing library                          : x264 core 152 r2854 e9a5903
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Though my input was huffyuv YUY2 and AviDemux converted to YV12 incorrectly resulting in the colors of the two field being blurred together. I didn't see any settings to correct that in AviDemux 2.7.1.
    Quote Quote  
  5. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    here it is...

    AVI info (input file):

    Code:
    General
    Complete name               : H:\5.avi
    Format                      : AVI
    Format/Info                 : Audio Video Interleave
    Format profile              : OpenDML
    File size                   : 48.0 GiB
    Duration                    : 2 h 4 min
    Overall bit rate            : 55.3 Mb/s
    Writing library             : VirtualDub build 35491/release
    
    Video
    ID                          : 0
    Format                      : HuffYUV
    Format version              : Version 2
    Codec ID                    : HFYU
    Duration                    : 2 h 4 min
    Bit rate                    : 53.8 Mb/s
    Width                       : 720 pixels
    Height                      : 576 pixels
    Display aspect ratio        : 5:4
    Frame rate                  : 25.000 FPS
    Standard                    : PAL
    Color space                 : YUV
    Chroma subsampling          : 4:2:2
    Bit depth                   : 8 bits
    Scan type                   : Interlaced
    Bits/(Pixel*Frame)          : 5.187
    Stream size                 : 46.6 GiB (97%)
    
    Audio
    ID                          : 1
    Format                      : PCM
    Format settings             : Little / Signed
    Codec ID                    : 1
    Duration                    : 2 h 4 min
    Bit rate mode               : Constant
    Bit rate                    : 1 536 kb/s
    Channel(s)                  : 2 channels
    Sampling rate               : 48.0 kHz
    Bit depth                   : 16 bits
    Stream size                 : 1.33 GiB (3%)
    Alignment                   : Aligned on interleaves
    Interleave, duration        : 40  ms (1.00 video frame)
    Interleave, preload duratio : 500  ms
    MP4 info (output file):

    Code:
    General
    Complete name               : H:\5.mp4
    Format                      : MPEG-4
    Format profile              : Base Media
    Codec ID                    : isom (isom/iso2/avc1/mp41)
    File size                   : 1.19 GiB
    Duration                    : 2 h 4 min
    Overall bit rate mode       : Variable
    Overall bit rate            : 1 371 kb/s
    Writing application         : Lavf58.20.100
    
    Video
    ID                          : 1
    Format                      : AVC
    Format/Info                 : Advanced Video Codec
    Format profile              : Baseline@L3
    Format settings             : 5 Ref Frames
    Format settings, CABAC      : No
    Format settings, Reference  : 5 frames
    Codec ID                    : avc1
    Codec ID/Info               : Advanced Video Coding
    Duration                    : 2 h 4 min
    Bit rate                    : 788 kb/s
    Width                       : 720 pixels
    Height                      : 576 pixels
    Display aspect ratio        : 4:3
    Original display aspect rat : 5:4
    Frame rate mode             : Variable
    Frame rate                  : 25.000 FPS
    Minimum frame rate          : 24.975 FPS
    Maximum frame rate          : 25.025 FPS
    Standard                    : PAL
    Color space                 : YUV
    Chroma subsampling          : 4:2:0
    Bit depth                   : 8 bits
    Scan type                   : Progressive
    Bits/(Pixel*Frame)          : 0.076
    Stream size                 : 701 MiB (58%)
    Writing library             : x264 core 146 r2538 121396c
    Encoding settings           : cabac=0 / ref=5 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=8 / sliced_threads=1 / slices=8 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=788 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
    Codec configuration box     : avcC
    
    Audio
    ID                          : 2
    Format                      : AAC LC
    Format/Info                 : Advanced Audio Codec Low Complexity
    Codec ID                    : mp4a-40-2
    Duration                    : 2 h 4 min
    Bit rate mode               : Variable
    Bit rate                    : 576 kb/s
    Maximum bit rate            : 640 kb/s
    Channel(s)                  : 2 channels
    Channel layout              : L R
    Sampling rate               : 48.0 kHz
    Frame rate                  : 46.875 FPS (1024 SPF)
    Compression mode            : Lossy
    Stream size                 : 512 MiB (42%)
    Default                     : Yes
    Alternate group             : 1
    Quote Quote  
  6. Apparently you didn't specify interlaced. interlaced=tff or bff is not in your x264 encoder settings metadata like it is in mine.

    Even if you fix that avidemux will screw up your colors. I wouldn't use it.
    Quote Quote  
  7. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Thanks.. what do you suggest anyway? I need to have a software that has the option to set the enforced DAR for MP4/x264 and Avidemux has it (see the pic below). That was the only reason I ended up using it, for any other tool I've checked for the option, it's not (visually) present (VidCoder, Handbrake and more than half a dozen of others). Obviously I'm trying to find something that works with no need to use command line-like parameters.

    Name:  Untitled.png
Views: 5812
Size:  45.6 KB
    Last edited by kodec; 13th Jun 2019 at 13:28. Reason: pic change
    Quote Quote  
  8. I use AviSynth scripts for processing (eg, convert YUY2 to YV12) and the x264 command line encoder. Sometimes QSVEncC or ffmpeg. But they're all command line encoders.
    Quote Quote  
  9. I just tested with RipBot264 and it can do it:

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4
    Format settings : CABAC / 3 Ref Frames
    Format settings, CABAC : Yes
    Format settings, RefFrames : 3 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 20 s 895 ms
    Bit rate mode : Variable
    Bit rate : 1 061 kb/s
    Maximum bit rate : 25.0 Mb/s
    Width : 704 pixels
    Height : 480 pixels
    Display aspect ratio : 16:9
    Original display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 23.976 (24000/1001) FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : MBAFF
    Scan type, store method : Interleaved fields
    Scan order : Top Field First

    Bits/(Pixel*Frame) : 0.131
    Stream size : 2.64 MiB (100%)
    Title : Test
    Writing library : x264 core 142 r2479 dd79a61
    Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
    Encoded date : UTC 2019-06-13 18:55:31
    Tagged date : UTC 2019-06-13 18:55:32


    The only change from my usual settings was to specify interlaced:
    Image Attached Thumbnails Click image for larger version

Name:	Interlaced.jpg
Views:	293
Size:	44.9 KB
ID:	49361  

    Quote Quote  
  10. Will ripbot convert from interlaced YUY2 to interlaced YV12 correctly? Ie, ConvertToYV12(interlaced=true) rather than ConvertToYV12(interlaced=false) or ConvertToYV12().
    Quote Quote  
  11. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Originally Posted by manono View Post
    I just tested with RipBot264 and it can do it

    Thanks manono, gonna try it now. Meanwhile I also tried TMPGEnc Video Mastering Works (same input file) and thought it was excellent cause it had everything to set as I wanted, but alas the info file shows something unbelievable, that the output is NTSC and PAL now at the same moment (it is PAL avi, as seen in the post above)... oh dear. Browsing thru the app's settings to no avail, can't see anything where it could possibly have gone wrong.

    Code:
    General
    Complete name               : H:\5.mp4
    Format                      : MPEG-4
    Format profile              : Base Media / Version 2
    Codec ID                    : mp42 (mp42/isom/avc1)
    File size                   : 1.37 GiB
    Duration                    : 2 h 4 min
    Overall bit rate mode       : Variable
    Overall bit rate            : 1 576 kb/s
    Writing application         : TMPGEnc Video Mastering Works 5 Version. 5.0.6.38
    
    Video
    ID                          : 2
    Format                      : AVC
    Format/Info                 : Advanced Video Codec
    Format profile              : Main@L3
    Format settings             : CABAC / 3 Ref Frames
    Format settings, CABAC      : Yes
    Format settings, Reference  : 3 frames
    Codec ID                    : avc1
    Codec ID/Info               : Advanced Video Coding
    Duration                    : 2 h 4 min
    Bit rate mode               : Variable
    Bit rate                    : 1 000 kb/s
    Maximum bit rate            : 2 000 kb/s
    Width                       : 720 pixels
    Height                      : 576 pixels
    Display aspect ratio        : 4:3
    Original display aspect rat : 4:3
    Frame rate mode             : Constant
    Frame rate                  : 25.000 FPS
    Standard                    : NTSC
    Color space                 : YUV
    Chroma subsampling          : 4:2:0
    Bit depth                   : 8 bits
    Scan type                   : MBAFF
    Scan type, store method     : Interleaved fields
    Scan order                  : Top Field First
    Bits/(Pixel*Frame)          : 0.096
    Stream size                 : 885 MiB (63%)
    Writing library             : x264 core 114
    Encoding settings           : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=12 / sliced_threads=0 / slices=1 / nr=0 / decimate=1 / interlaced=tff / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=2000 / vbv_bufsize=1998 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
    Color range                 : Limited
    Color primaries             : BT.601 PAL
    Transfer characteristics    : BT.470 System B/G
    Matrix coefficients         : BT.470 System B/G
    Codec configuration box     : avcC
    
    Audio
    ID                          : 1
    Format                      : AAC LC
    Format/Info                 : Advanced Audio Codec Low Complexity
    Codec ID                    : mp4a-40-2
    Duration                    : 2 h 4 min
    Bit rate mode               : Constant
    Bit rate                    : 576 kb/s
    Channel(s)                  : 2 channels
    Channel layout              : L R
    Sampling rate               : 48.0 kHz
    Frame rate                  : 46.875 FPS (1024 SPF)
    Compression mode            : Lossy
    Stream size                 : 512 MiB (37%)
    Quote Quote  
  12. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    RipBot not working for me, hangs on Please Wait... Demuxing... for 5 mins at least after opening that 50 GB avi file, tried several times, it never finished it. All the other tools I've tried do it in a second or two.
    Quote Quote  
  13. Originally Posted by jagabo View Post
    Will ripbot convert from interlaced YUY2 to interlaced YV12 correctly? Ie, ConvertToYV12(interlaced=true) rather than ConvertToYV12(interlaced=false) or ConvertToYV12().
    I haven't a clue. My Lagarith AVI was YY12 already. I opened an AviSynth script of a film I had been working on and trimmed off 500 frames, just to test if it would encode as interlaced and it does. I'd do the ConvertTo in the script if needed. Virtually all my stuff is black and white anyway. The x264 settings are exposed for those that want to edit them themselves.

    Originally Posted by kodec View Post
    RipBot not working for me, hangs on Please Wait... Demuxing...
    I handle all my audio separately and open it in the audio window. You could try the same thing - demuxing it and opening it separately from the video. If there's a problem with the program you might ask the developer at Doom9. I don't think he visits here often.

    https://forum.doom9.org/showthread.php?t=127611
    Last edited by manono; 13th Jun 2019 at 18:19.
    Quote Quote  
  14. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Just for the info, I have tried about two dozens of tools last couple of days and the only two that have all the options to set and that work are Avidemux and autox264, in case anyone will need it for this exact thing. Jagabo was right, Avidemux works, didn't set it right the first time around, and the colours look the same to me afterwards.
    Quote Quote  
  15. First answer you got, there was four of them recommended.

    They are x264 encoder based and if there is no dedicated button for interlaced/progressive, you can always put :
    --tff
    or
    --bff
    where you can add additional commands, similar like in that avidemux
    Quote Quote  
  16. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Originally Posted by _Al_ View Post
    First answer you got, there was four of them recommended.

    They are x264 encoder based and if there is no dedicated button for interlaced/progressive, you can always put :
    --tff
    or
    --bff
    where you can add additional commands, similar like in that avidemux
    Neither of those first worked obviously. I have tried about 20 in total as mentioned already. Prolly everything from the dedicated software page section here with the rating over 7 or 8. Either they can't force the DAR even if you can add the parameter to counter the progressive output, or they can force the DAR but have no advanced option to add the field command at all, or just mess things up. Out all of the tools I've tried only Avidemux and autox264 work for this matter and I recommend them for this job. I could have kept the list and published what didn't work and why but it's too late now, deleted all from the PC already.
    Last edited by kodec; 15th Jun 2019 at 15:39.
    Quote Quote  
  17. No, they work, they all have advanced options, setting interlaced encodings or setting SAR for a video stream, Ripbot, Staxrip, VirtualDub2 and pretty sure Hybrid as well

    In advanced sections as for "enforcing DAR". You cannot enforce DAR in a stream, you are enforcing SAR if encoding anamorphic video, that is how it operates in "manual mode", which is a fraction that multiplies fraction of your resolution and it gives you DAR while playing that stream on screen, for example:
    720/576 x SAR = DAR
    720/576 x 16/15 = 4/3 = 1.333
    So you'd add SAR in advanced x264 options as: --sar 16:15 , it is direct command line option with a argument

    Also x264 encoder (all above GUI's work with that one) has --tff or --bff option in advanced section for x264 encoder.

    MeGui has a dedicated button in settings for interlaced encoding and to set correct DAR it tries to figure out SAR itself. Which should not be a problem for 720x576.

    What could be done , is simple:

    I have this GUI encoder, how do I set up interlaced encoding or how do I force aspect ratio to have DAR xy while previewing and also provide your video resolution you had.
    Then you'd get answer for particular recommended software.

    As a note, you set these for video stream, in x264 video settings, NOT to mp4 muxer.
    Quote Quote  
  18. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    You like flogging a dead horse don't you. Earlier I've mention to be looking for a tool with not a steep learning curve that does exactly that, if any. And have found two, thank you very much.
    Quote Quote  
  19. Originally Posted by kodec View Post
    Avidemux works, didn't set it right the first time around, and the colours look the same to me afterwards.
    Look for large motions of highly saturated colors. Here's an example from AviDemux:

    Image
    [Attachment 49387 - Click to enlarge]


    The red in his hair is a blend of where it is in the current frame and where it was in the previous frame.
    Quote Quote  
  20. Originally Posted by kodec View Post
    You like flogging a dead horse don't you. Earlier I've mention to be looking for a tool with not a steep learning curve that does exactly that, if any. And have found two, thank you very much.
    Oh god, you should differentiate what does not work and what I cannot do, even if extremely trivial.
    Quote Quote  
  21. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Originally Posted by kodec View Post
    These are options for the MP4 container.

    But interlacing is not an attribute of the container. It is an attribute of the content. Try to configure the x264 codec, not the MP4 container, to find interlacing options.
    Quote Quote  
  22. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Originally Posted by jagabo View Post
    Originally Posted by kodec View Post
    Avidemux works, didn't set it right the first time around, and the colours look the same to me afterwards.
    Look for large motions of highly saturated colors. Here's an example from AviDemux:

    Image
    [Attachment 49387 - Click to enlarge]


    The red in his hair is a blend of where it is in the current frame and where it was in the previous frame.
    Yes, spotted some and decided to learn the command line, had a few days off, it was worth it. Thanks.
    Last edited by kodec; 1st Jul 2019 at 10:40.
    Quote Quote  
  23. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Originally Posted by _Al_ View Post
    Originally Posted by kodec View Post
    You like flogging a dead horse don't you. Earlier I've mention to be looking for a tool with not a steep learning curve that does exactly that, if any. And have found two, thank you very much.
    Oh god, you should differentiate what does not work and what I cannot do, even if extremely trivial.

    I wouldn't be at the site called VideoHelp if I could do it all by myself beforehand, would I. Anyway, you are quite irritating but your critique also helped. Thanks, Al.
    Quote Quote  
  24. Member
    Join Date
    Mar 2014
    Location
    PALaland
    Search Comp PM
    Originally Posted by LigH.de View Post
    Originally Posted by kodec View Post
    These are options for the MP4 container.

    But interlacing is not an attribute of the container. It is an attribute of the content. Try to configure the x264 codec, not the MP4 container, to find interlacing options.

    In the end I've learned how to do it command line in VDub2, also without changing the color depth in the process. Thanks everyone.
    Quote Quote  



Similar Threads

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