Log in

View Full Version : recompress RV9


DoomDoom
7th September 2004, 22:16
I have some matroska files with video RV9 I must recompress.

With Virtualdubmod isn't possibile ...

I need help.

Thanks!

damrod
7th September 2004, 23:13
you can do it with realbatch, realanime or any gui who use producer....activex or cmdline version it don't matter

if it's playable in directshow player then it's ok....

i do it myself for some stuff....anime episode of 200Mo in rv10 ehq100 700k !!! (too big no? ;))

Sirber
7th September 2004, 23:24
VirtualDubMod --> Open with AVISynth --> DirectShowSource

BTW, you won't gain any quality by recompressing RV9.

damrod
7th September 2004, 23:58
if it don't work use an avs script with directshowsource("toto.mkv",<your video framerate>) in it

DoomDoom
8th September 2004, 03:46
I've tried:

VDubmod -> File -> Open Video File ... ->Use AviSynth template DirectShowSource

But it answers me with "AVI Import Filter Error: (Unknown) (80040154)"

VDubMod automatically creates a little AVS script with two lines:
#ASYNTHER DirectShowSource
DirectShowSource("myanime.mkv")

I've also tried changing them in:
#ASYNTHER DirectShowSource
DirectShowSource("myanime.mkv", fps=25)

and loading it with VDubMod but it gives me the same bad error.
the same AVS script, opened with Realanime, gives "Error in jobfile, going for next file".

RealBatch doesn't even execute: it says that my Pc lacks memory .... I have "only" 512 MB ...

Damrod wrote: "if it's playable in directshow player then it's ok...."
How can I be sure? I see the videos with mediaplayer classic ... does it mean that are playable in directshow player?

Since every matroska file with video encoded with RV9 has the same problem, I must be sure that I have proper codecs installed. I can see them with media player classic but I can't open recompress them.

Where can I find realvideo codecs? I've tried here http://www.realnetworks.com/products/codecs/realvideo.html
but I cannot understand WHAT I have to download ... HELIX producer? REAL producer ? I only need the codecs.

I have RealOne player installed: have I to uninstall it?

Please help me .. I really want to do the same thing as Damrod does: "i do it myself for some stuff....anime episode of 200Mo in rv10 ehq100 700k !!! (too big no? )"

Help help help please

Sirber
8th September 2004, 04:12
Real codecs are not VFW nor DirectShow. Do you have RealMedia splitter installed?

DoomDoom
8th September 2004, 05:25
It seems that the problem was that I hadn't the last version of AVISYNTH.

After installing AVISYNTH 2.5.5 from Realanime package, VDubMod reads the mkv file (every frame is marked as K frame!) but cannot output anything (even a direct stream).

RealAnime now creates good RV9 or RV10 rmvb files from AVI XVID or DIVX files BUT STILL cannot succeed in recompressing my matroska (RV9 video, AAC audio) anime files. It hangs and I must kill the process from task manager.

I also have installed Realplayer 10.

So I need help again ...
I want to recompress RV9, AAC matroska files !!!

DoomDoom
8th September 2004, 05:26
and ... yes, I have Realmedia splitter installed in my windows/system32 directory.

DoomDoom
8th September 2004, 05:57
Now I'm using REALANIME and since I can't recompress RV9 files to Rv9 files, I tried to recompress RV9 to XVID with VORBIS or AAC sound.

RESULT: in the temporary directory I found a good output AVI file WITHOUT SOUND and I obtained a log file and a DOS window with an ERROR log.

Hope it helps, I copy and paste as it is, the error seems to be that it cannot find the audio codecs ?

Diagnostic Command Line 2004/09/08 06:47:06 0 "C:\Programmi\RealAnime\producer.exe -j G:\temp\anime.rpjf -lc e,i,d" command line being run
Diagnostic File Reader 2004/09/08 06:47:14 8050 --------- Input File Properties from rn-avfile-directshow
Diagnostic File Reader 2004/09/08 06:47:14 8051 Input Filename: G:\temp\anime.avs
Diagnostic File Reader 2004/09/08 06:47:14 8052 File Size: 1KB
Diagnostic File Reader 2004/09/08 06:47:14 8053 Total Duration: 08.040
Diagnostic File Reader 2004/09/08 06:47:14 8080 Video Track
Diagnostic File Reader 2004/09/08 06:47:14 8081 Dimensions: 640 x 448
Diagnostic File Reader 2004/09/08 06:47:14 8082 Frame Rate: 25.000 FPS
Diagnostic File Reader 2004/09/08 06:47:14 8083 Format: YV12
Diagnostic File Reader 2004/09/08 06:47:14 8084 Duration: 08.040
Diagnostic File Reader 2004/09/08 06:47:14 8060 Audio Track
Diagnostic File Reader 2004/09/08 06:47:14 8061 Channels: Stereo
Diagnostic File Reader 2004/09/08 06:47:14 8062 Bit Depth: 16
Diagnostic File Reader 2004/09/08 06:47:14 8063 SampleRate: 48000 Hz
Diagnostic File Reader 2004/09/08 06:47:14 8064 Format: Uncompressed Audio
Diagnostic File Reader 2004/09/08 06:47:14 8065 Duration: 08.040
Diagnostic File Reader 2004/09/08 06:47:14 8054 --------- End Input File Properties
Diagnostic SDK Configuration 2004/09/08 06:47:15 10405 Audience RealAnime written to memory
Diagnostic SDK Configuration 2004/09/08 06:47:15 10409 Audience RealAnime loaded from memory
Diagnostic SDK Configuration 2004/09/08 06:47:15 10405 Audience RealAnime written to memory
Diagnostic SDK Configuration 2004/09/08 06:47:15 10410 Audience loaded from memory
Error SDK Configuration 2004/09/08 06:47:15 0 Failure to initialize audience with updated codecs contained in codec mapping file C:\Programmi\RealAnime\resources\CodecMapping.txt
Informational SDK Encoding 2004/09/08 06:47:15 15000 Starting encode
Diagnostic SDK Encoding 2004/09/08 06:47:15 0 FilteredLoadHeadings: Reference Time, Stream Time, Delay, Interval Load, Average Interval Load, Processing Load, Stream Interval, Reference Interval, Accrued Delay, Average Delay, Load Level
Diagnostic SDK Encoding 2004/09/08 06:47:15 0 Using RealAnime Audience
Diagnostic SDK Encoding 2004/09/08 06:47:15 0 Using audio codec: racp (64000 bps)

DoomDoom
8th September 2004, 16:10
no suggestions?

"Failure to initialize audience with updated codecs contained in codec mapping file C:\Programmi\RealAnime\resources\CodecMapping.txt"

???

help me please

karl_lillevold
8th September 2004, 16:34
that error can be ignored.

1. make sure you have the latest Avisynth installed. [done]
2. make sure you have realmediasplitter installed and registered. [done]
3. make sure you have the latest matroskasplitter installed and registered. did you do this?
3. create avisynth script: DirectShowSource("filename.mkv", fps=yourframerate)
4. play avisynth script in a couple of DS players to make sure you see both video and hear sound.
5. now open avisynth script in VirtualDub. Recompress. It should work.

karl_lillevold
8th September 2004, 17:03
I went through these steps myself, and found that even though I can play the matroska file in Media Player Classic, and Graphedit, I can not play the Avisynth script. I thought it was because there is a subtitle track in my Matroska file, and Avisynth appears to have trouble with this. So I demuxed the Matroska file, and re-muxed without the subtitles. (Q: is there a way to remove a track from a matroska file without full demux / remux?) In any case, now Avisynth had no problems, and I could open the script in any player as well as VirtualDubMod. I re-compressed the RV10 file to XviD, my other favorite codec ;)

damrod
8th September 2004, 18:17
when i encode mkv in rmvb...i always remove subtitles tracks from the mkv...as for others audio to have only one video and one audio track....that's way it works wonderfully ....else there some b....it of vbr-mp3 audio tracks...who can be so stupid to use that ....berk always have pb with the header and the synchro audio/video

:|

damrod
8th September 2004, 18:19
@doomdoom

seems there's a pb with realanime :p

did you try to use directly the producer.exe in dos window??

DoomDoom
8th September 2004, 20:16
karl_lillevold has said right, I've also done all the steps in the checklist but ... no recompress.

But also my matroska files are subtitled !

You said I have to remove subtitles ... how can I do this ? Demuxing ? But Realanime has a known bug and the matroska demuxer doesn't work. Please give me a hint, it's my first time ;-)

Thanks

DoomDoom
8th September 2004, 21:34
with mkvinfo and "mkvmerge --identify" I've found that subtitles aren't a separate track inside the matroska.
They are hardcoded into the RV9 video.

So all I have is a mtroska file with Rv9 video and AAC audio muxed with mkvmerge.

I used mkvextract to demux and obtain an RV9 video and NOW Virtualdubmod recompress with XVID .... but VDubmod don't open my AAC track so I can't mux it together with the video ... I have to use mkvmerge again ...

The procedure I found till now:
1 - mkvextract (?) -> RV9 video and AAC audio ...
2 - recompress only video with VDubMod (IS THERE A WAY TO MUX NOW AAC AUDIO with VDubMod ???)
3 - mux AAC audio together with the new XVID video

I think it's a bit complex and time-consuming ....

damrod
8th September 2004, 21:46
ok i find your problem

the aac audio decoder is the problem

sometimes it occurs also for ogg .....i have the same problem sometimes


for aac i use => coreaac, same for vorbis

the one with no tray icones and which don't crash producer :-)

DoomDoom
8th September 2004, 22:14
I have the last CoreAAC filter registered.

The problem is that Realbatch says I have too low memory. How much memory needs?

If I have to use producer from the command line, can you give me some hint?
I want to recompress matroska files with video RV9 and audio AAC to video Rv9 OR video XVID and mantain same audio or MP3 audio ....

DoomDoom
8th September 2004, 22:56
I also have tried AutoRV10 beta 6

I copied the "CodecMapping.txt" file from RealAnime package to the producer folder inside AutoRv10 ... the video is recompressed with Rv10 codec but AUTORV10 doesn't read AAC streams !

till now i found two methods, BOTH very annoying:
1 - mkvextract for both audio and video
- VdubMod for the video
- mkvmerge
RESULT: matroska with AAC and XVID video

2 - mkvextract for only the audio (?)
- decompress ACC to WAV
- autoRV10
RESULT: real video with RV10 and AAC

Any other more simple option ?

DoomDoom
8th September 2004, 23:25
oops ... the method n.2 is full of errors.

I have to try to use producer from a dos window, but I've seen that with autorv10 producer goes to livelock.

Can you give me a hint about the producer command line ?

thanks

damrod
9th September 2004, 19:53
you can try with an audience file (.rpad file in audience subdir of producer cmdline)

for exemple with toto.rpad ;)

producer.exe -i "toto.avi" -o "toto.rmvb" -ad "toto.rpad" -dt -am music -vm sharp

be careful for full path in name

and launch it from the producer.exe directory :)

Sirber
9th September 2004, 20:16
Why exactly do you want to recompress RV9 anyway?

DoomDoom
9th September 2004, 20:45
Sirber:
"Why exactly do you want to recompress RV9 anyway?"
Simply 'cause I usually recompress ALL ANIMES before archiving them.
The PC does all the work and I can put a video of 20' from 200 MB to 90 MB. when you have little space at home and several anime series to archive ... saving space becomes more important than quality.

But matroska videos with RV9 and AAC are something new for me so I need some help.

Last news: I have tried with AutoRV10, passing to it AVS scripts with directsource(), the video output is wonderful at only 30-40MB (instead of 200-250MB!) but until now I've tried with an XVID MP3 file and audio goes out of synchro.

How can I force producer to leave audio sampling rate as it is ? 48000 Hz input but 44100 Hz output SO IT LOOSE SYNCHRO !!!

who can help?

Sirber
9th September 2004, 20:58
RC9 + AAC? Maybe you just need to recompress AAC to HE-AAC to gain space. Recompressing RV9 is a bad idea.

DoomDoom
9th September 2004, 21:25
well,maybe you're right ... but I can't tell you 'cause I'never seen any result ...


now I'm trying to recompress XVID + MP3 48000Hz to RV10 + ??? audio I don't reallu mind.

I'm trying using producer from the command line: how can I be sure that audio stays synchro with video? Is ther some command option? The problem is that with AUTORV10 my 48000Hz MP3 audio becomes 41000Hz and loose synchro.... I don't know why.

Now I'm doing some tests with producer from the command line.
I'm studying the producer man pages ... hope it helps.

Sirber
9th September 2004, 21:40
HE-AAC at 64kbps is pretty good. Give it a try :)

DoomDoom
10th September 2004, 00:07
my "AUDIO OUT OF SYNCHRO" PROBLEM is now solved:
autorv10 produces a bad audio synchro 'cause the AVS script contains
Video=Import("my.avs").ConvertToYV12()
[my.avs contains simply: DirectShowSource("mytestvideo.avi", fps=25)]

while REALANIME AVS script contains:
anime=DirectShowSource("mytestvideo.avi")
and doesn't create any out of synchro.

Instead, REALANIME let producer doing cropping and resizing, while AUTORV10 let avisynth doing the dirty job. Result: AUTORV10 has much faster encoding.

So I decided to use REALANIME, passing it an AVS script that does cropping and resizing.

Sirber
10th September 2004, 02:40
You can crop/resize with RealAnime using AVISynth, it's just not automatic. RealAnime is not for DVD backup, so the source is usualy already resized and cropped. Good to know you use RealAnime though :D

DoomDoom
10th September 2004, 15:17
ehm .... now I've abandoned Realanime. The problem was that I noticed that it took a lot of time to encode ... and the hard disk went crazy ...

I didn't realize what was happening ... till WinXp said: "virtual memory insufficient" and killed realanime.
I think realnime was seriously attempting to the life of my HD ...

The same thing desn't happen with AUTORV10.

I've Athlon XP 2,6Ghz and 512 DDR RAM, no other applications opened, antivirus closed ...

Differences:
1 - realanime was working in SDK mode, while autorv10 works in DOS WINDOWS COMMAND LINE mode (I think).
2 - Some differences in the audience file ... I didn't investigate much further.
3 - Others I haven't noticed?

Now, while I'm writing, autorv10 has finished recompressing an XVID to RV9 quality 50%, EHC 60%, with stereo RealAudio (Cook/AAC) HR.
Result file is 40MB (form 180MB) with audio perfectly synchronized, no bad memory usage, very good HD usage and about 20 minutes encoding time for 20 minutes video length.

Sirber
10th September 2004, 15:59
As stated everywhere, Helix Producer and AVISynth cause heavy memory leaking because of DirectShow. That's what happen when you don't read before using :p. Use the commandline version. You can choose encoder in the first menu.

damrod
11th September 2004, 12:23
so if my old activex dll version of realbatch keep crashing when encoding the second file in the list come from memory leak??

damrod
11th September 2004, 12:44
it does the same with cmdline... producer.exe crash....can't read memory....i don't understand why!!!

Sirber
11th September 2004, 15:30
*every* proiducer leak, but SDK is the worst about that, since it does not terminate itself after each 2-pass.

karl_lillevold
11th September 2004, 16:45
It is Microsoft's DirectShow AVI reader, when used to read Avisynth files, that leaks memory, because it does not release handles such that Avisynth can free the memory it uses.

Sirber
11th September 2004, 16:48
Is there a way to "kill" those after encoding? Externaly :D

karl_lillevold
11th September 2004, 16:52
Kill process 'explorer.exe' :mad:

Sirber
11th September 2004, 17:04
"explorer.exe" is managing DShow? :eek:

karl_lillevold
11th September 2004, 17:08
hmm, you might have to force a reboot, and set yourself up in the the registry such that RealAnime restarts after the reboot. :cool:

Sirber
11th September 2004, 17:18
That's kinda "uncool", not to say a &?%?$?%"$!(/?(%$&( solution ;)

damrod
11th September 2004, 18:46
looks like a krosoft solution ;)

very weird : producer encode then crash but the encoding is done...

i re-install all the codecs/players.....good news now avi-divx decoded by ffdshow or divx or xvid won't be readable by directshowsource avs
or by producer !!! i must use an avs with avisource to be able to encode in rmvb with latest producer cmdline....

i don't want to reinstall xp but i think i must..it's really a shit!!!

Sirber
11th September 2004, 18:53
I got some problems like this long ago. Formating is a wise solution :)

damrod
12th September 2004, 09:32
i know.....pfff i hate windaube ...i don't know why ;)

i think i will install "xp sp2 lsd edition" ...

i will try this before :
http://telechargement.zebulon.fr/92-Codec-Sniper.html