VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 57
  1. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    ok people, here's the deal:

    i have a number of, what i can only surmise are, improperly encoded wmv files. normally 1440x1080 are supposed to use non-square 4:3 pixels, however these files were encoded in a rather odd way. when i try to play them in any video player, say media player classic or vlc, the files display as "squished" on the left and right side, which results in black borders on either side and the image having an unnatural elongated appearance, this is with the aspect ratio setting at "default", if i manually set the aspect ratio to 16:9, if i set it to 1:1 or 4:3 there is no change from the default view.

    all video players agree that the files have resolutions of 1440x1080, here's where the plot, much like oprah, thickens: if i load the file into media info, the default output tells me that they are vc-1, specifically wmv3, mp@hl, 30fps, 6818 kbps, and 1440x1080 (4:3) and that they were created with windows movie maker.

    however when i dig deeper it gets really interesting, media info still tells me that the files are 1440 wide by 1080 high with a display aspect ratio of 4:3 but "general" it tells me that "aspect ratio x" is 1440 and "aspect ratio y" is 1920, in effect telling me that the files in question have a resolution of 1440x1920.

    does this mean that the headers on these files are wrong and if so is there a way, other than a hex editor, to fix them?

    if it's not the header then what is the problem and how can it be fixed, assuming it can be fixed.

    thanks.
    Quote Quote  
  2. try wmvarchanger to "fix" the AR
    Quote Quote  
  3. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    sounds like the original video maker blew it. try re-encoding to square pixel 1920x1080.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  4. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    thanks for both the suggestions, unfortunately neither one works, wmvarchanger seems to "correct" the but accomplishes nothing, as confirmed by playing the file back and media info, attempts to re-encode to 1920x1080 with square pixels results in a file that plays just like the original and in a really odd turn of events, re-encoding to a different hd resolution, like 1280x720 or 960x540 with square pixels or 16:9 results in the a file that likewise plays back like the original.

    it looks like i'm breaking out a hex editor and trying to manually fix the files, not looking forward to this.
    Quote Quote  
  5. Originally Posted by deadrats
    attempts to re-encode to 1920x1080 with square pixels results in a file that plays just like the original and in a really odd turn of events, re-encoding to a different hd resolution, like 1280x720 or 960x540 with square pixels or 16:9 results in the a file that likewise plays back like the original.
    You're doing something wrong. In all likelihood your editor saw the apparent 4:3 source and added black pillarbox bars when you resized to a 16:9 resolution. You have to convince your encoder your source is 16:9 to start with.
    Quote Quote  
  6. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    deadrats - can you post a sample? here's a tools that may be able to cut one if you don't have the tools.



    makesample.zip
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  7. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    You're doing something wrong. In all likelihood your editor saw the apparent 4:3 source and added black pillarbox bars when you resized to a 16:9 resolution. You have to convince your encoder your source is 16:9 to start with.
    that did the trick, this is one of the reasons i like tmpg express, when i import the clip i have the option of setting the aspect ratio of the source, i had tried almost ever option available but for some reason it didn't occur to me to set the source aspect as 16:9, du'h!

    while i'm at it, i just had a thought: if the source is 1440x1080 with 4:3 pixels then it doesn't make much sense to re-encode to 1920x1080 with square pixels, does it? i mean were do the extra 480 pixels come from?

    regardless, i decided to just re-encode to 1280x720 16:9 and be done with it, thanks for to all for your help.
    Quote Quote  
  8. Originally Posted by deadrats
    if the source is 1440x1080 with 4:3 pixels then it doesn't make much sense to re-encode to 1920x1080 with square pixels, does it?
    It does if you can't view it properly any other way.

    Originally Posted by deadrats
    i mean were do the extra 480 pixels come from?
    The same place they come from when you adjust the AR during playback, a resizing filter.
    Quote Quote  
  9. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by aedipuss
    deadrats - can you post a sample?
    that's a nice little tool, here's a 20 mb sample, warning, it's from adult content but i made sure that the sample was well in compliance with this forum's rules:

    http://www.mediafire.com/?zriu5tmmetz
    Quote Quote  
  10. Plays with the correct DAR with MPCHC.
    Quote Quote  
  11. Plays fine in KMPlayer for me, but not MPC, VLC, SMplayer. For the other players you can force 16:9 display
    Quote Quote  
  12. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    Plays fine in KMPlayer for me, but not MPC, VLC, SMplayer. For the other players you can force 16:9 display
    i believe i did mention that forcing an aspect ratio of 16:9 causes the file to play fine, but the file is obviously incorrectly encoded, maybe i should have mentioned this earlier but i was thinking of making a blu-ray compliant m2ts out of this file, since vc-1 is a blu-ray compliant codec, if everything else was fine then i could just remux it in a m2ts container and i could then author a blu-ray for viewing on a PS3 or any blu-ray player, as it stands now it will not display correctly if authored to blu-ray.

    so, with that additional info, i assume that my only option remains to re-encode to a blu-ray complaint resolution, in this case i'm assuming the best choice would be 1280x720 16:9, no? i can also re-encode to 1440x1080 16:9 but my understanding is that it is not a blu-ray compliant resolution, re-encoding to 1440x1080 4:3 results in file that improper aspect ratio.

    in other words, if you had say 20 such files, all in the 1-1.2 gig range, all improperly encoded like the sample i provided and you wanted to make on blu-ray compliant disk out of them, how would you guys go about it?
    Quote Quote  
  13. Originally Posted by deadrats
    Originally Posted by poisondeathray
    Plays fine in KMPlayer for me, but not MPC, VLC, SMplayer. For the other players you can force 16:9 display
    i believe i did mention that forcing an aspect ratio of 16:9 causes the file to play fine, but the file is obviously incorrectly encoded, maybe i should have mentioned this earlier but i was thinking of making a blu-ray compliant m2ts out of this file, since vc-1 is a blu-ray compliant codec, if everything else was fine then i could just remux it in a m2ts container and i could then author a blu-ray for viewing on a PS3 or any blu-ray player, as it stands now it will not display correctly if authored to blu-ray.

    so, with that additional info, i assume that my only option remains to re-encode to a blu-ray complaint resolution, in this case i'm assuming the best choice would be 1280x720 16:9, no? i can also re-encode to 1440x1080 16:9 but my understanding is that it is not a blu-ray compliant resolution, re-encoding to 1440x1080 4:3 results in file that improper aspect ratio.

    in other words, if you had say 20 such files, all in the 1-1.2 gig range, all improperly encoded like the sample i provided and you wanted to make on blu-ray compliant disk out of them, how would you guys go about it?

    It's wmv3, not vc-1, so you will have to re-encode eitherway

    And I believe the file is correctly encoded. As jagabo said earlier, it's the programs you used that decode the file improperly, so the resulting re-encoded file is screwed up.

    It's 30.0fps, which isn't compliant either. 29.97 (or 30000/1001) is, but only with interlaced content (really 29.97 frames or 59.94 fields per second)

    Are you talking real blu-ray or AVCHD disc on DVD media? Remember that the PS3 can play out of spec content

    To make a legit blu-ray, most would duplicate frames (from 30p) and resize to 720p60 (really 720p59.94). 1920x1080p30 and 1440x1080p30 are never legal
    Quote Quote  
  14. It's unfortunate that Blu-ray is so inflexible with frame rates and frame sizes.

    http://www.blurayjukebox.com/pdfs/2b_bdrom_audiovisualapplication_0305-12955-13403.pdf

    Originally Posted by poisondeathray
    It's 30.0fps, which isn't compliant either. 29.97 (or 30000/1001) is, but only with interlaced content (really 29.97 frames or 59.94 fields per second)
    It could just be encoded interlaced.
    Quote Quote  
  15. I would just get a mediabox or HTPC and call it a day
    Quote Quote  
  16. I just tried the file on my WDTV Live. It played with the wrong AR (4:3). Playing via a DLNA server (PlayOn) it also played with the wrong AR.
    Quote Quote  
  17. jagabo, does your WDTV support many flag options?

    here is a cut from deadrats' video, but re-wrapped into .mkv


    out.mkv
    Quote Quote  
  18. Yes, it usually responds to AR flags in MKV, AVI, MP4, TS, VOB, etc. Your out.mkv displayed properly as 16:9. It didn't play the audio though. The audio in the original WMV file played fine.
    Quote Quote  
  19. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    It's wmv3, not vc-1, so you will have to re-encode eitherway
    not to be a ball breaker but wmv3 is microsoft's implementation of the vc-1 spec:

    http://en.wikipedia.org/wiki/VC-1

    Simple and Main Profiles of VC-1 remained completely faithful to the existing WMV3 implementation, making WMV3 bitstreams fully VC-1 compliant.
    Originally Posted by poisondeathray
    And I believe the file is correctly encoded. As jagabo said earlier, it's the programs you used that decode the file improperly, so the resulting re-encoded file is screwed up.
    if that's the case then why is it that media info gives me that screwy description of the file as being 1440 x resolution and a y resolution of 1920 and why would i have to force most players and video editors to see the source as 16:9 when 1440x1080 is supposed to use 4:3 pixels and have a DAR of 1.333?

    Originally Posted by poisondeathray
    Are you talking real blu-ray or AVCHD disc on DVD media? Remember that the PS3 can play out of spec content.
    no, i'm talking real blu-ray, just like you would buy from a store.

    Originally Posted by poisondeathray
    To make a legit blu-ray, most would duplicate frames (from 30p) and resize to 720p60 (really 720p59.94). 1920x1080p30 and 1440x1080p30 are never legal

    It's 30.0fps, which isn't compliant either. 29.97 (or 30000/1001) is, but only with interlaced content (really 29.97 frames or 59.94 fields per second)
    ok, so i looked over the specs here:

    http://en.wikipedia.org/wiki/Blu-ray_Disc

    it looks like 720p60 also is not a legal blu-ray resolution, so of the legit blu-ray specs, which do you think is better, encoding to 1440x1080p24 or 1440x1080i59.94, with the source i have.

    as a side note, i discovered something quite interesting, microsoft actually has their own h264 codec:

    http://www.microsoft.com/expression/products/Encoder_Features.aspx

    unfortunately the ability to encode to h264 isn't available in the free version of "expression encoder" and i'n not willing to spend $50 for the higher end version just to try it out. <evil thought alert> i wonder if maybe i could find a "demo" version somewhere out there just to see what kind of h264 codec microsoft put together, for some reason i have a feeling that it has to be pretty good.

    oh, and one last probably stupid question, how do you interlace content? is it as simple as just choosing the "interlace" option within the encoder output settings?

    thanks.
    Quote Quote  
  20. Originally Posted by deadrats

    not to be a ball breaker but wmv3 is microsoft's implementation of the vc-1 spec:

    http://en.wikipedia.org/wiki/VC-1

    Simple and Main Profiles of VC-1 remained completely faithful to the existing WMV3 implementation, making WMV3 bitstreams fully VC-1 compliant.
    VC-1 usually refers to the advanced profile for WMV. There is some confusion in the terminology there. When we say VC-1 for blu-ray people refer to WMV advanced profile or "WVC1" fourcc. No blu-ray disc I have seen uses WMV3 fourcc (it might work you can try it out and report back).

    if that's the case then why is it that media info gives me that screwy description of the file as being 1440 x resolution and a y resolution of 1920 and why would i have to force most players and video editors to see the source as 16:9 when 1440x1080 is supposed to use 4:3 pixels and have a DAR of 1.333?
    It's microsofts (stupid) way of doing things. If you notice it will play fine in WMP11, which is the intended target. Open the file in gspot which actually scans the file. Mediainfo just reports the header info


    ok, so i looked over the specs here:

    http://en.wikipedia.org/wiki/Blu-ray_Disc

    it looks like 720p60 also is not a legal blu-ray resolution, so of the legit blu-ray specs, which do you think is better, encoding to 1440x1080p24 or 1440x1080i59.94, with the source i have.
    1280x720p59.94 is definitely 100% legal. wikipedia is often wrong, as in this case. Those other options you list are problematic because you either have jerky frames from decimation, interlacing issues (you don't have 60p material to interlace, you only have 30p temporal resolution). I would still use 720p59.94. You can either dupe frames, or use motion interpolation software like avisynth's mflowfps or mvflowfps or smoothfps

    as a side note, i discovered something quite interesting, microsoft actually has their own h264 codec:

    http://www.microsoft.com/expression/products/Encoder_Features.aspx

    unfortunately the ability to encode to h264 isn't available in the free version of "expression encoder" and i'n not willing to spend $50 for the higher end version just to try it out. <evil thought alert> i wonder if maybe i could find a "demo" version somewhere out there just to see what kind of h264 codec microsoft put together, for some reason i have a feeling that it has to be pretty good.
    MS's implementation is pretty crappy. x264 with the proper patches are completely compliant now with the proper settings, and pass verification. They even work with scenarist which is the gold standard for authoring


    oh, and one last probably stupid question, how do you interlace content? is it as simple as just choosing the "interlace" option within the encoder output settings?
    Not that simple, you need the temporal resolution to generate interlacing (60 moments in time, but you only have 30). See above. If you had the temporal res, then you could do it pretty easily in avisynth
    Quote Quote  
  21. Originally Posted by jagabo
    Yes, it usually responds to AR flags in MKV, AVI, MP4, TS, VOB, etc. Your out.mkv displayed properly as 16:9. It didn't play the audio though. The audio in the original WMV file played fine.

    Probably an issue with it's mkv splitter
    Quote Quote  
  22. Originally Posted by poisondeathray
    oh, and one last probably stupid question, how do you interlace content? is it as simple as just choosing the "interlace" option within the encoder output settings?
    Not that simple, you need the temporal resolution to generate interlacing (60 moments in time, but you only have 30). See above. If you had the temporal res, then you could do it pretty easily in avisynth
    No, deadrats is right. You can just tell the encoder to encode interlaced. The encoder doesn't know if the two fields come from the same point in time or not. Obviously, you won't get the smoothness of 60 fields per second. And field order doesn't matter. Since both fields come from the same point it time it doesn't matter which you see first.

    If you really want the smoothness of 60 different images per second you could try using one of the motion vector based frame rate changers in AviSynth followed by pulling down fields. It's probably not worth it though.

    Progressive YV12 sources should be converted to interlaced YUY2 or interlaced YV12 first.
    Quote Quote  
  23. Really? And what happens when the stream is deinterlaced on playback on the device? I guess you only see 30p but with deinterlacing artifacts?

    All the professionally done blu-ray discs (replicated) use the frame repeat method I mentioned earlier from 30p sources.
    Quote Quote  
  24. Originally Posted by poisondeathray
    Really? And what happens when the stream is deinterlaced on playback on the device? I guess you only see 30p but with deinterlacing artifacts?
    It works exactly the same as any other 1080i video. Logically, the fields are displayed one at a time at 1/60 second intervals. It's just that with a 30p source encoded as 30i you will only have 1/30 second motion granularity, vs 1/60 second with true 30i sources.

    And just to be sure we're all on the same page: 60i is just another name for 30i. Marketers like bigger numbers. The video is encoded as 30 frames per second, displayed one field at a time at 60 fields per second.

    Originally Posted by poisondeathray
    All the professionally done blu-ray discs (replicated) use the frame repeat method I mentioned earlier from 30p sources.
    I thought we were talking about converting to 1080i because Blu-ray doesn't support 1080p60? Obviously, you can simply duplicate frames to go from 1440x1080p30 to 720p60. Or motion interpolate if you can live with the artifacts.
    Quote Quote  
  25. Originally Posted by jagabo
    I thought we were talking about converting to 1080i because Blu-ray doesn't support 1080p60? Obviously, you can simply duplicate frames to go from 1440x1080p30 to 720p60. Or motion interpolate if you can live with the artifacts.
    I had suggested 720p60 earlier, because that's what most people do with 30p sources intended for blu-ray. Deadrats was under the impression that 720p60 is not legal. It's what is usually used in the industry, because deinterlacing degrades quality, and interlaced encoding is inherently much less efficient than progressive (with either MPEG2 , WVC1, or h.264).

    I guess you could encode it as interlaced as another option, but it doesn't make much sense to me - what's the benefit?
    Quote Quote  
  26. Originally Posted by poisondeathray
    I guess you could encode it as interlaced as another option, but it doesn't make much sense to me - what's the benefit?
    1440x1920 resolution vs 1280x720 resolution with resizing artifacts.
    Quote Quote  
  27. Are the fields resized when you encode interlaced? As in real interlaced content:
    ie. 1440x540?

    or do you retain the full frame size?

    Wouldn't the downsizing artifacts be minor compared to the deinterlacing artifacts?
    Quote Quote  
  28. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    It's microsofts (stupid) way of doing things. If you notice it will play fine in WMP11, which is the intended target. Open the file in gspot which actually scans the file. Mediainfo just reports the header info
    gspot, after thanking me for finding it, tells me that the file(s) in question are 1440x1080 with a DAR of 1.333 (4:3) and a PAR of 1.000 (1:1), which is an improperly encoded 1440x1080 file, it should have a PAR of 4:3 for a DAR of 1.78.

    oddly enough, even manually setting the source PAR as 1 within my encoder and the output as 1440x1080 with either 4:3 or 16:9 PAR results in an improperly encoded file, in the case of the former it comes out just like the source, in the case of the latter it comes out with black borders all the way around, a truly crappy encode (basically it comes out letter boxed and pillar boxed).

    the only thing that seems to work is jagabo's suggestion of basically "lying" to the encoder and telling it that the source has a PAR of 16:9, it doesn't make any sense to me, but that's the way it is.

    i do wonder if it has something to do with the version of movie maker that was used to create these files, while trying to fix them i decided to use the windows movie maker for xp64 and discovered that the highest output resolution supported was 720x480, yet media info says they were created with movie maker. i'm guessing that they were created on a vista or win 7 pc, most likely vista considering the age of the files, so i'm assuming that the movie maker in vista supports hd resolutions, maybe there was an incompatibility between the source files and movie maker or maybe a codec issue and that resulted in screwy files.
    Quote Quote  
  29. Originally Posted by deadrats

    gspot, after thanking me for finding it, tells me that the file(s) in question are 1440x1080 with a DAR of 1.333 (4:3) and a PAR of 1.000 (1:1), which is an improperly encoded 1440x1080 file, it should have a PAR of 4:3 for a DAR of 1.78.
    In gspot 2.70a, it shows a PAR of 4:3 and DAR of 1.78. Are you using a different file?



    oddly enough, even manually setting the source PAR as 1 within my encoder and the output as 1440x1080 with either 4:3 or 16:9 PAR results in an improperly encoded file, in the case of the former it comes out just like the source, in the case of the latter it comes out with black borders all the way around, a truly crappy encode (basically it comes out letter boxed and pillar boxed).
    What encoder are you using? Are you encoding to WMV again?

    the only thing that seems to work is jagabo's suggestion of basically "lying" to the encoder and telling it that the source has a PAR of 16:9, it doesn't make any sense to me, but that's the way it is.
    You could do it through avisynth, which always assumes square pixel for decoding, then specify AR when encoding or in the container (depending on what format you are using)
    Quote Quote  
  30. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    deadrats - you seem to be using words you don't understand. the PAR - pixel aspect ratio - of a 1440x1080 widescreen video is 1.33333 so it's not "lying" to the encoder, but telling it to treat the video properly.

    and no, before you whine that 1.33333 is 4:3, it's not in pixel aspect ratio terms. par only relates to the shape of the pixel not it's output on a monitor.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  



Similar Threads

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