[HELP] "Real" PAL<>NTSC framerate conversion with speed changing? - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: [HELP] "Real" PAL<>NTSC framerate conversion with speed changing? (/thread-525.html) |
"Real" PAL<>NTSC framerate conversion with speed changing? - DannyHicks - 16.07.2018 Hi, I'm new here! I was looking for a tool to convert video files from PAL (25 FPS) to NTSC (23.97) and vice versa, and eventually, I got referred to here. I find it hard to explain what exactly I am looking for. I am looking for a way to do "real" framerate conversion, without (extra) frames added or deleted. The original total number of frames should stay the same, and since the amount of frames that can play in one second changes, the speed of both video and audio should increase or decrease, depending on the conversion. I sadly haven't found such a tool so far. There's MeGUI, but I only got it to work for audio. If I import a video file, only the audio speed will change, causing the video and audio of the result not to be synced correctly. I hope someone can help me out here. RE: "Real" PAL<>NTSC framerate conversion with speed changing? - Selur - 17.07.2018 From what I understand: What you want is a 'speed change' not a PAL<>NTSC conversion. You want to speed up / slow down the audio and change the playback frame rate of the video. Note: I assume the source:
Haven't done this in years, but here is how this should be done: 25 -> 23.976:
Same as '25->23.976', but you need to replace '23.976' with '25.000' and '25.000' with '23.976'. Cu Selur Ps.: Both of these should be possible through mkvtoolnix by just adjusting the timecodes of the audio&video streams. Downside of this is a. target needs to be mkv b. no audio pitch control. RE: "Real" PAL<>NTSC framerate conversion with speed changing? - DannyHicks - 17.07.2018 Thanks for your fast reply! I'm not sure we're on the same page. I don't want a speed-change. I want to convert PAL to NTSC and vice versa in a way it will cause the video to change in speed, as more or less frames should be played in 1 second. I don't want to affect the total number of frames. You see, a converter, asked to convert 25 fps to 24 fps (actually 23.97.. fps, can do one of the following:
(17.07.2018, 05:25)Selur Wrote: Note: I assume the source: I have to admit these terms go beyond my knowledge of video encoding (if that's the right word even). RE: "Real" PAL<>NTSC framerate conversion with speed changing? - Selur - 17.07.2018 Quote:I'm not sure we're on the same page. I don't want a speed-change. I want to convert PAL to NTSC and vice versa in a way it will cause the video to change in speed, as more or less frames should be played in 1 second. I don't want to affect the total number of frames.this is done by changing how many frames are shown during a second -> so a speed change By changing the playback speed (= the time each frame is shown) the frame count isn't changed and thus the total playback length changes. Quote:There might be more decimals after it."23.976" is internally converted to 24000/1001. Quote:I have to admit these terms go beyond my knowledge of video encoding (if that's the right word even).cfr = constant frame rate (usually anything that is broadcasted or from a physical media) vfr = variable frame rate (mobile camera captures and some anime encodes from scene groups) Cu Selur RE: "Real" PAL<>NTSC framerate conversion with speed changing? - DannyHicks - 17.07.2018 Quote:This is done by changing how many frames are shown during a second -> so a speed changeOooh, right. I didn't realise that's what playback speed is. Yes, I think we get each other now. Quote:From what I understand: However, if the thing I want is a "speed change", then what is a "PAL<>NTSC conversion" to you? Also thanks for explaining cfr and vfr. Quote:Note: I assume the source: I'm not sure it's the same things, but MPC-HC says that the "frame rate mode" is constant. The scan type is progressive. Quote:Haven't done this in years, but here is how this should be done: Could you tell me a bit more about step 2? I was first going to try "With video encoding", but I didn't know what encoder to choose. The video formats I'm currently working with are "MPEG4" and "MPEG4 (H264)" - according to MPC-HC (and my limited knowledge of how to read video file info). I can't find those in the list, so I guess I'll just go with passthrough then? I'd like the output to be as mostly the same as possible, without quality loss. As to step 6, I just went with the settings that corresponded with the input. As to step 8, I expected the "adjust pitch" option to do the opposite than it actually does. I'd say such an option should restore the original pitch, but instead, it makes sure the audio gets slowed down and the original pitch won't be restored. MeGUI has this option too, and I think the way it works is the opposite there. O, btw, there's a problem I didn't mention earlier. The 23.976 videos I'm using are ripped from an American DVD that uses framerate 29.970. I'm not sure why this is. By having done some experiments between rips from the American release and the European one, I can say for sure the videos were originally slowed down from 25 to 23.976. I suppose it was converted to 29.970 after that for some reason. It's the way of framerate conversion where frames are duplicated, so the speed won't change. I wonder why they didn't just convert 25fps to 29.970fps directly, so there wouldn't have to be a speed change at all. Anyway, I'm not sure what to do. Can I just set the setting in step 3 to 25.000? Or do I have to do something else? Should I change the input framerate somehow? RE: "Real" PAL<>NTSC framerate conversion with speed changing? - Selur - 18.07.2018 Quote:However, if the thing I want is a "speed change", then what is a "PAL<>NTSC conversion" to you?A PAL<>NTSC conversion in general often includes way more stuff since PAL is not always progressive but can be interlaced and NTSC is normally either interlaced or more often telecined content. Also a PAL<>NTSC conversion normally also includes an image resizing since typically NTSC&PAL use different resolutions. -> a speed change is just a really special case which can be used to do a PAL<>NTSC conversion. Quote:"frame rate mode" is constant. The scan type is progressive.That makes things way easier. Quote:Could you tell me a bit more about step 2? I was first going to try "With video encoding", but I didn't know what encoder to choose. The video formats I'm currently working with are "MPEG4" and "MPEG4 (H264)" - according to MPC-HC (and my limited knowledge of how to read video file info).MPEG-4 is probably MPEG-4 ASP which can be produced by Xvid, MPEG-4 AVC aka. H.264 can be produced by for example x264. -> Since you want to avoid quality loss stick with 'passthrough'. Quote:As to step 6, I just went with the settings that corresponded with the input.Then you need to adjust the reencoding setting ins the 'Audio->Base->Audio Encoding Options->Encoder' accordingly. Quote:As to step 8, I expected the "adjust pitch" option to do the opposite than it actually does. I'd say such an option should restore the original pitch, but instead, it makes sure the audio gets slowed down and the original pitch won't be restored. MeGUI has this option too, and I think the way it works is the opposite there.Hybrid uses SOX for the audio filtering and the naming is taken from sox. Quote:O, btw, there's a problem I didn't mention earlier. The 23.976 videos I'm using are ripped from an American DVD that uses framerate 29.970. I'm not sure why this is.And here is where things get more complicated. If the content is straight from the DVD it was probably telecined. (You should read up on telecine (3:2 pulldown) to understand what most Material on NTSC DVDs is saved as.) Quote:By having done some experiments between rips from the American release and the European one, I can say for sure the videos were originally slowed down from 25 to 23.976. I suppose it was converted to 29.970 after that for some reason.For the US market. 23.976 (progressive) -> 29.97 (progressive + pulldown) is what telecine is for. Starting with telecined content some morons use a deinterlacer to convert from 29.97 (progressive + pulldown) to 29.97 progressive when they should have used an inverse telecine method to convert from 29.97 (progressive + pulldown) to 23.976 (progressive). Or the original content might have been a mix of progressive, interlaced and telecined content,... This is where things can get more and more complicated. Quote:It's the way of framerate conversion where frames are duplicated, so the speed won't change. I wonder why they didn't just convert 25fps to 29.970fps directly, so there wouldn't have to be a speed change at all. Anyway, I'm not sure what to do. Can I just set the setting in step 3 to 25.000? Or do I have to do something else? Should I change the input framerate somehow?You got two solutions (without spending hours of analyzing the content): a. keep all frames and to a speed change from 29.97 to 25, downside of this is that the pitch adjustment to the audio might be more noticeable due to the greater change. b. reencode the content and throw out unneeded frames (by using Filtering->Avisynth->Restore->sRestore or Filtering->Vapoursynth->Other->Retstore->sRestore). Upside of this is that lots of unneeded frames will be removed. Downside is this will require a video reencode which always includes a quality loss (unless lossless encoding is used which would let the file size explode). -> there are other/better methods which require a lot of knowledge and understanding of the two formats, but the above two are probably the best you can do without having to spend lots of time. Cu Selur RE: "Real" PAL<>NTSC framerate conversion with speed changing? - DannyHicks - 18.07.2018 (18.07.2018, 05:29)Selur Wrote: For the US market. 23.976 (progressive) -> 29.97 (progressive + pulldown) is what telecine is for. O my god.. I've been googling a bit for methods to "inverse telecine progressive and pulldown to progressive" but no luck. It indeed seems pretty very complicated. What a shame. I expected it would just be a matter of converting 29.97 to 23.976 by removing the duplicated frames (automatically). It's hard to go with one of the simpler solutions you suggested. I mean, I'm very alert to small details like the speed difference between 23.97 fps and 25 fps. It kinda triggers me, and I'm pretty sure solution "a" would make the series unwatchable to me. And yea, the quality loss that comes with solution "b" isn't that nice either. Are you sure there isn't another way without having to spend hours? :# RE: "Real" PAL<>NTSC framerate conversion with speed changing? - Selur - 18.07.2018 If your content isn't properly flagged: No But try those two methods, in my option for 29.97 progresive input the second one should be fine. Cu Selur RE: "Real" PAL<>NTSC framerate conversion with speed changing? - DannyHicks - 18.07.2018 (18.07.2018, 20:17)Selur Wrote: If your content isn't properly flagged: No Okay, I'll try the second one then. But I can't go to the Filtering tab if I choose "passthrough" in step 3. So what type should I choose? RE: "Real" PAL<>NTSC framerate conversion with speed changing? - Selur - 18.07.2018 Yes, as soon as you mess with the frames you need to reencode and thus you need to choose an encoder. For testing purposes use the following encoding settings:
Video quality and size are not the main concern atm., just check the whether the output is better/worse than the input 'triggers' you. Also try method 1. just for comparision. (it's was faster since only the audio is reencoded) Cu Selur |