View Full Version : how to encoder a avi whose fps is 120 into rmvb

7th April 2004, 17:58
I have a avi,and fps is 120.I want to convert it into rmvb.
But when i add it into real anime and encode,it seems something is
how can i deal with this avi.
I think maybe avs will help me.but i donot know how to do with avs!

7th April 2004, 18:16
I think producer is maxed with 60FPS. You should reduce the framerate.

7th April 2004, 18:30
install avisynth and use this avs:

this avs script will reduce the framerate to 30fps.

7th April 2004, 19:11
the goal of 120FPS is to have hibrid content displayed ok. Just reducing by 4 will have loss.

8th April 2004, 08:51
yes,I think simply reducing the frame by select one frame of four frames will have some troubles.
So how I correctly reduce the frame?

8th April 2004, 09:15
afaik these 120fps avis are full of notcoded/dropped frames

now to be able to convert this stream to rv9 (and get down to a lower framerate) you could drop these notcoded frames (they dont store any info anyways)

to do this you can use the the 3ivx mp4 muxer. mux the avi to mp4 with it and with the "compress n-vops" option enabled
the output will be a variable framerate mp4 file with far less framerate

in the next step you can extract the video stream again (to avi for example) and encode it with rv9 as you wished

now of course there will be sync problems if you only use the rv9 stream you get, therefore you will have to place it in matroska as a variable framerate stream (similar to how it was stored in mp4)
now to create a vfr matroska file you need to create a .txt file which contains the duration of each frame
to find out the durations of the frames you have to analyse the mp4 file created by 3ivx with a tool called dumpster (http://developer.apple.com/quicktime/quicktimeintro/tools/index.html)
drag&drop the file in there and go to moov -> trak (the first one) -> mdia -> minf -> stbl -> stts
there you will find a lot of "time-to-sample tables"
right to these there are two values (both in hexadecimal, which you will have to convert to decimal (windows calculator can do this))
the first value indicates the number of the frames, ie "00000001" means 1 frame (the frames are listed as they will be displayed during playback from top to bottom)
the second value shows the duration of this/these frame in ticks (to convert from tick to second you have to look in moov/track/mdia/mdhd for the timescale (the timescale gives you the number of ticks per second))

now for example the following means (timescale is 120000):
00000001 000012c0
0000004a 00029040the first frame has a duration of 0.04 secs (4800/120000)
the next 74 frames have a duration of 1.4 secs (168000/120000)

its hard work but if you analyse this you will be able to create a list of how much duration each frame of your movie has, and you will be able to create a correctly working (sync with audio) vfr rv9 encode in matroska
(of course if thats too much work you can also only keep the mp4 ;) )

8th April 2004, 09:29
thanks a lot!
I will have a try:)

8th April 2004, 10:17
I would just keep the MP4 ;)

RealProducer should be able to encode from an MP4 source

9th April 2004, 13:51
I have used graphedit to convert avi to mp4 with 3ivx muxer.
But...how can i extract the video from mp4 into avi?
I used mp4UI and mp4extract0.exe ,but neither will well.
I want to use graphedit,but i donot know how to use it.
And this avi is xvid+ac3,but 3ivx muxer donot support ac3,of corouse
it doesnot matter if i can extract video from mp4 into avi ,i can merge xivd and ac3 later.
Now the problem is how i can extract video from mp4 in avi?
sorry for my poor english.

9th April 2004, 14:11
Originally posted by Garfiled
I have used graphedit to convert avi to mp4 with 3ivx muxer.
But...how can i extract the video from mp4 into avi?
I used mp4UI and mp4extract0.exe ,but neither will well.as stux said, maybe you can feed realproducer directly with the .mp4
no need to convert to avi

btw what framerate does mp4ui display for the video now?

9th April 2004, 15:01
I have encoded mp4 in realanime and it seems ok
but mp4 container does not support ac3,and it will have no audio:(
the video's framerate is 24,it is right.
the problem is how i emerge the video of xvid and audio of ac3 into mp4?

9th April 2004, 15:26
Originally posted by Garfiled
I have encoded mp4 in realanime and it seems okso now you have a rv9 stream, right?

the problem is how i emerge the video of xvid and audio of ac3 into mp4?you cant mux ac3 into mp4 (only formats like aac or mp3)

also if your goal is a rv9 encode you can merge the rv9 video stream with ac3 directly into .mkv

9th April 2004, 15:39
now i can convert video into a rv9 stream(by convert avi into mp4 and encode mp4)
i can extract audio from avi and convert it to mp3 or realaudio .
and i can merge ac3 or mp3 and rv9 into .mkv,however...my goal is a
realmedia (rmvb).for .mkv is not common here and many people donot know how to play it though it is simple.
so is it possible to merge audio and video into a realmedia(.rmvb)?

9th April 2004, 15:42
Originally posted by Garfiled
so is it possible to merge audio and video into a realmedia(.rmvb)?i am not the .rmvb specialist, but it will surely be possible
as audio format you should use aac (does vorbis also work in .rmvb?)

9th April 2004, 15:56
I can only separately encode video and audio,no matter aac or vorbis i convert audio to,I can't merge audio and video into a .rmvb file...
so i can only encode a .mp4 into a .rmvb,but .mp4 do not support ac3
so...i am puzzled how to do:(

9th April 2004, 16:35
i am pretty sure there are tools which mux rmvb files :search:

9th April 2004, 18:14
Hi, Garfiled
if your source video is mpeg4, you can try to use xvid DS decoder to decode it, i think it also suppress n-vops. then you can feed the avi directly to producer. I know it worked for lots of people when the source is xvid mpeg4, but i never tried on other mpeg4 sources, but i think it should work.

10th April 2004, 09:45
Originally posted by bond
i am not the .rmvb specialist, but it will surely be possible
as audio format you should use aac (does vorbis also work in .rmvb?)
You can add support of ogg vorbis to the helix producer(providing it with vorbis.dll, ogg.dll and vorbisenc.dll), but it is very limited and the resulting files will be audio only. No way to mux video and ogg vorbis audio into a rmvb container!
The side address may have changed, but that is what i once copied from helixcommunity.org:



Vorbis Audio Codecs*
Number of Channels Sample Rate Codec Name Flavor Player Compatibility
1 (mono) 8 kHz vorbis 0 Vorbis
1 (mono) 22.05 kHz vorbis 1 Vorbis
1 (mono) 44.1 kHz vorbis 2 Vorbis
1 (mono) 48 kHz vorbis 3 Vorbis
2 (stereo) 8 kHz vorbis 4 Vorbis
2 (stereo) 22.05 kHz vorbis 5 Vorbis
2 (stereo) 44.1 kHz vorbis 6 Vorbis
2 (stereo) 48 kHz vorbis 7 Vorbis

* Vorbis audio codes are variable bit rate (VBR). Thus, the bit rate is not defined as part of the codec flavor as is done with other CBR codecs.
* Vorbis audio codec support not shipped with the Retail encoder from RealNetworks

9. If building completes successfully, proceed to step 10 to set up and run the application. If not, see the troubleshooting section of the Helix DNA Producer Project ReadMe for helpful tips.

If you agreed to the Helix DNA Binary EULA, you will have all necessary binaries included in your build to capture from audio or video devices, encode to RealMedia files and broadcast to RealMedia servers as well as encode to Ogg Vorbis audio files. If not, you can still perform file to file encoding to Ogg Vorbis audio files as long as you download the necessary DLLs from Vorbis.com as described below.

Before running a producer encode for the Ogg Vorbis format, you must download and install the Ogg and Vorbis libraries from http://www.xiph.org. You can find compiled copies or source for these DLLs in the Ogg Vorbis SDK at http://www.vorbis.com/download.psp. The following DLLs are required:

* ogg.dll, vorbis.dll, vorbisenc.dll

In order for the producer to find these DLLs, they will need to be located the command line application directory or somewhere else in your command path.
# Set up the application by finding the file 'producer.zip' in the 'release' or 'debug' directory and unpack it anywhere on your system.
# Run the application by opening a command prompt, change directory to the location where you unpacked producer.zip and type the following command or type 'producer -m' for detailed help.

producer -i test.wav -o test.ogg -ad v56k