Log in

View Full Version : MP4 converted to MPEG2


Jeremy Duncan
29th September 2009, 07:33
link (http://www.mediafire.com/?igmwydfwzde)
backup link (http://www.megaupload.com/?d=5RYUW0Q8)

I want to convert these mp4 files I made into mpeg2.
I need to keep them at the frame rate they are now.
Each folder has two video files, and the name of the folder described the progressive frame rate of the videos.

I could change the extension to mpg or m2v, but I wonder if that qualifies as converting them to mpeg2.

If you could please advise a mpeg2 encoder that could do this for me, or do the encoding for me and post the files you made that would be nice too.
hc enc won't convert the 48p video to mpeg2, and I need the 48p file kept at 48 frames per second.

The test files are stereoscopic for use with field sequential 3D shutter glasses and 3dtv.
I'm converting them to mpeg2 so I can post them in my 3D thread, and people who have the encoder to join the files into a field progressive 3D stream can use my test files.

manono
29th September 2009, 08:31
hc enc won't convert the 48p video to mpeg2, and I need the 48p file kept at 48 frames per second.
48fps isn't a valid MPEG-2 framerate. You have several choices. You can reinterlace it and encode it at 24fps. You can add an AssumeFPS(50) at the bottom and encode to 50fps. You can add an AssumeFPS(50) to the bottom, encode as 50fps, and then run the result through DGPulldown set for 48->50 to bring it back to 48fps again. I think all three choices are doable, but I don't know how any of them effect your 3D project.

Edit later: I just tested choices 2 and 3 and they're easily accomplished with HCEnc and DGPulldown. I don't guess you're much interested in the first solution, although it's also easy to do.

Midzuki
29th September 2009, 09:41
I want to convert these mp4 files I made into mpeg2.
I need to keep them at the frame rate they are now.

.
.
.

hc enc won't convert the 48p video to mpeg2, and I need the 48p file kept at 48 frames per second.

You might MPEG-encode at any MPEG-compliant framerate, and later
wrap the elementary stream in other containers (MKV, MP4, AVI) which support "any" framerate.

thewebchat
29th September 2009, 20:05
48fps isn't a valid MPEG-2 framerate. You have several choices. You can reinterlace it and encode it at 24fps. You can add an AssumeFPS(50) at the bottom and encode to 50fps. You can add an AssumeFPS(50) to the bottom, encode as 50fps, and then run the result through DGPulldown set for 48->50 to bring it back to 48fps again. I think all three choices are doable, but I don't know how any of them effect your 3D project.

Edit later: I just tested choices 2 and 3 and they're easily accomplished with HCEnc and DGPulldown. I don't guess you're much interested in the first solution, although it's also easy to do.

Uh, what? Where in the MPEG-2 specifications does it list what framerates you can and can not use? As far as I know, MPEG-2 only defines how frames/fields are coded and says nothing about their timing. Also, couldn't you just do an AssumeFPS(25) and then fix the timecodes after you get your m2v out of HCEnc?

Guest
29th September 2009, 23:31
Uh, what? Where in the MPEG-2 specifications does it list what framerates you can and can not use? As far as I know, MPEG-2 only defines how frames/fields are coded and says nothing about their timing. Also, couldn't you just do an AssumeFPS(25) and then fix the timecodes after you get your m2v out of HCEnc? See Table 6-4 here:

http://neuron2.net/library/mpeg2/iso13818-2.pdf

thewebchat
30th September 2009, 00:44
Do you mean that this header value restricts the user from encapsulating the MPEG-2 stream in a container and specifying frame durations of arbitrary length? And does this table apply to MPEG systems such as TS/PS or only to elementary streams?

Guest
30th September 2009, 00:46
It applies to MPEG2 video syntax. That does not change when placed in PS/TS.

I don't know about MKV. You can test it and let us know.

EDIT: I just dropped an M2V into MKVMERGE GUI and found that the FPS option is grayed out.

Jeremy Duncan
30th September 2009, 01:43
Here are the new files: link (http://www.mediafire.com/?nximwzzlnnj)
Two frame rates are in mpeg-2 from hc enc, and two frame rates are in avi.
I forget if I ran the avi files through hc enc at a accepted frame rate then made the frame rate in virtualdub again or used dgpulldown, I have been at this for a few hours now.
So I just decided enough time had been spent on the avi files and just to post what I had, I even forget the frame rate they are I had so many files made in various ways.

hc enc couldn't take assumefps(50), or assumefps(59.94). I don't know why cause dgpulldown said they were vailid framerates, so I encoded the 48fps and 60fps videos at 23.976fps in hcenc, then used either dgpulldown or virtualdub to made the frame rate what they say they are in their folder I uploaded.

And after making the 48fps file mpeg2, 23.976fps, and then using virtualdub to put the frame rate at a new frame rate. dginde didn't recognize the file virtualdub made as a valid mpeg2, something about a header not being there or I think it was a header.

Midzuki
30th September 2009, 02:56
Well, I can only say that I've already created some short mpeg-in-avi clips with ffdshow and VirtualDub, and later I changed their framerates to 0.1 fps with "avifrate.exe". The files played back as they should. :) I'm going to try to repeat the process for MKV-wrapped mpeg-video.

EDIT: .m2v file @ 30fps successfully converted to .mkv file @ 48fps ---
used tool = mkvmerge 2.9.5.

manono
30th September 2009, 05:15
hc enc couldn't take assumefps(50), or assumefps(59.94).
I already told you that I tested using AssumeFPS(50) in HCEnc. It complains about it not being DVD compliant, but it had no trouble encoding it. Using HC Enc 0.24 beta with the 0.23 GUI. Here's a part of the log:
profile: BEST
frames: 0 - 500
framerate: 50.000
aspect ratio: 16:9
chroma format: 4:2:0
bitrate: NA
max. bitrate Kb/s: 9000
pass: 1 (Constant Quant)
constant Q: 5.000
pulldown: no
closed gops: no
VBV check: yes
scene change det.: no
interlaced: auto, TFF
goplen,B-pic: 12 2
dc_precision: 10
scan method: auto
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: SSSE3
priority: idle
SMP active: no
matrix: AVAMAT7
luminance gain: no
adaptive quantization: yes, strength 1

Jeremy Duncan
30th September 2009, 08:28
I already told you that I tested using AssumeFPS(50) in HCEnc. It complains about it not being DVD compliant, but it had no trouble encoding it. Using HC Enc 0.24 beta with the 0.23 GUI. Here's a part of the log:


I have made a second set of test files: mpeg-2 this time.
The frame rates of the video: 23.976, 29.97, 50 from 48 frames, 59.94
link (http://www.mediafire.com/?tmdonnnttyl)
backup link (http://www.megaupload.com/?d=0NMIZ8I3)

I read your post that it still worked and tried it and it did work. :)

I tried to set the 48fps video to 47.952 but it wouldn't work, so I had to set it to 50fps using assumefps(50) like you told me.

So I'm all set. Thank you all for your help. I don't mind you folks carrying on the conversation your having here though.

:thanks: