digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Convertir y Codificar Video (Español) (http://www.digitalfaq.com/archives/espanol/)
-   -   Cómo pasar un kvcd (mpeg1) de 29 fps a 25 fps (http://www.digitalfaq.com/archives/espanol/12919-pasar-kvcd-mpeg1.html)

hav 11-17-2004 07:00 AM

Cómo pasar un kvcd (mpeg1) de 29 fps a 25 fps
 
Hola amigos, me he encontrado con un problema que no atino a solucionar. Tengo un kvcd a 29 fps y quiero pasarlo a 25 fps, intento crear un script con el moviestacker, pero no me deja cargar la fuente original al tratarse de un mpg1. ¿Podría alguien explicarme cómo puedo crear el script o si existe alguna otra alternativa?.

Sé que podría decirle al tmpgencoder que recodifique directamente a 25 fps, pero entonces se producirían los molestos saltos que todos conocemos. Si alguien pudiera echarme una mano se lo agradecería mucho :roll: .

Un saludo

Prodater64 11-17-2004 07:27 AM

Haz probado si tu reproductor lo acepta?

También puedes intentar aplicarle dvdpatcher, cambiando en la cabecera el framerate a 25 y probar si tu reproductor lo reproduce bien.

Con esto te evitarías recodificar.

hav 11-17-2004 01:40 PM

Voy a meter varios kvcd en un dvd con el DVD Author y para ellos es imprescidible que todas las pelis contengan el mismo número de fps, por lo que es necesario convertir el kvcd que está a 29 fps y pasarlo a 25.

Prodater64 11-17-2004 02:43 PM

Mira, puedes intentarlo de todas formas, ya que generalmente los programas de autoría van a ver en las cabeceras con qué están trabajando.
Siendo mpeg1 el estándar sólo admite 352*288, así que también deberías comprobar si tu player lo puede reproducir.

hav 11-23-2004 12:39 PM

No, no vale, para hacer la autoría del dvd con tmpgenc DVD Author necesito que todos los kvcd estén a los mismos fps, es decir 25 fps. ¿Nadie puede aclararme mi duda, por favor?. Gracias

fabrice 11-24-2004 12:57 AM

Hola,

Para poder abrir archivos mpeg1 en un script avisynth, debes utilizar directshowsource.

De todas formas, he hecho una prueba, y SI el TDA te deja meter varios framerate en un mismo DVD: solo tienes que crear 'tracks' distintas (ahora mismo, tengo un proyecto con una a 29,97 y otra a 25 fps...)

Salu2
Fabrice

hav 11-26-2004 03:50 PM

Muchísimas gracias Fabrice, podrías darme algo más de información sobre directshowsource. ¿Se intala?, ¿Cómo va eso?.

Prodater64 11-26-2004 06:23 PM

Quote:

Originally Posted by fabrice
Hola,
Para poder abrir archivos mpeg1 en un script avisynth, debes utilizar directshowsource.

Esto es algo que vengo escuchando hace mucho tiempo, pero no es cierto también desde hace mucho tiempo.
Yo mismo he recodificado mpeg1 con el plugin de avisynth MPEGDecoder
http://nic.dnsalias.com/mpegdecoder.html
Lo que posiblemente sucede, es que como es una recompresión, y por supuesto el resultado no es high quality, posiblemente nunca se haya mencionado, aunque si se ha tratado muchas veces el tema. Pero repito nunca he leido a alguien que de una referencia hacia este plugin.
Lo que sí, hacerlo con directshowsource es más rápido, ya que este plugin tiene ciertos inconvenientes, pero que no impiden por ello, cargar un mpeg1 con avisynth.

Quote:

Originally Posted by mpegdecoder.html.................................. ..................
MPEGDecoder.dll YV12 Version for AviSynth 2.5 Only!
(Version 2.03 Alpha)
By Nic
Introduction

This DLL lets you load VOB/MPEG-2 ES,PS,TS/MPEG-1 files to be loaded directly into Avisynth.

A Sample AVISynth Script looks like this:

LoadPlugin("MPEGDecoder.dll")
MPEGSource("d:\kiss\kiss.vob")

This avs file can now be loaded into VDub/etc.


The Way it works
Unlike the previous version, this MPEGDecoder.dll is primarily based on the DVD2AVI d2v file format.
However, if no D2V file is supplied, it creates one itself


Main Parameters
The parameters for 'MPEGSource' are as follows:
For normal use:

MPEGSource("e:\rip\spiderman.d2v")
Which will load a d2v as normal

or:

MPEGSource("e:\rip\VTs_01_1.vob+e:\rip\VTs_01_2.vo b+e:\rip\VTs_01_3.vob)
Here the first thing that MPEGDecoder.dll will do is to check for a e:\rip\VTs_01_1.d2v file.
if a file with that name exists it will load that and assume that the d2v is for the three files.

if e:\rip\VTs_01_1.d2v does not exist, it will be created and then loaded automatically.

For D2V files created automatically by MPEGDecoder.dll it does not know if force film should be turned on.
If it should then put "ff" as the third parameter
i.e.
MPEGSource("e:\rip\big.vob", 0, "ff")

Detailed Parameter Description
Usage:
MPEGSource(file names, number of frames, commands)

file names
This can be a sequence of MPEG files combined with a '+' or a d2v file.

number of frames
This should always be 0 as a default. But can be used to force the decoder to return a certain number of frames. MPEGSource can not correctly create d2v files for MPEG-1 yet, so use this to input the correct number of frames.
A value of -2 can also be written here. This means no d2v can be used and therefore only files can be inputed in the first parameter. From the files specified Directshow is asked to get the correct number of frames.

commands
The only two commands at present are "ff" which forces film. (as described above) and "nod2v".
"nod2v" is similar to the -2 command in that you can only specify files and nod2v is used or created. But it allows you to specify a number of frames in the "number of frames" parameter.
Misc/Notes
Pro's/Con's


BUG: The MPEG2 Repeat Field flag is not taken into consideration. So when decoding NTSC films its like Force Film is already turned on.

PRO: Its fast, faster decoding than normal MPEG2DEC.DLL(MPEG2Source). This speeds up encoding :)


Info


Read this document carefully!
Transport streams can be used the same as Program Streams, the MPEGDecoder should detect that they are transport streams and determine the PIDs automatically.


Bugs


When creating d2v files for MPEG-1 files the, number of frames determined is wrong. either use -2, or enter the correct number of frames. (if you want to find to find the correct number of frames exactly, load the mpeg-1 into VirtualDub and it will tell you the number of frames through File->File Information)

When seeking, sometimes the video looks corrupt, ignore this as it will not look corrupt when encoding

@hav, lee:

http://www.avisynth.org/
http://www.avisynth.org/index.php?page=YourFirstScript
http://www.avisynth.org/DirectShowSource

y la explicación previa del plugin mpegdecoder.

fabrice 11-27-2004 02:50 AM

Hola,

Quote:

Originally Posted by hav
Muchísimas gracias Fabrice, podrías darme algo más de información sobre directshowsource. ¿Se intala?, ¿Cómo va eso?.

Este es un plugin de avisynth, que viene de 'fabrica', es decir que con tener instalado avisynth, lo tienes.

Más información alli: http://www.avisynth.org/DirectShowSource

@prodater64: yo tasmbién he intentado utilziar este plugin, y tuve muchos problemas en cuanto a longitud de fuentes (se lo tenia que indicar yo), y que me saltaba frames, a parte de que no hay format de previsualizar la peli saltando manualmente trozos en el virtualdub....

Salu2
Fabrice

EDIT: Veo que los problemas que encontre con mpegdecoder estan espcificados como bug! :oops:

Prodater64 11-27-2004 07:35 AM

Quote:

Originally Posted by fabrice
EDIT: Veo que los problemas que encontre con mpegdecoder estan espcificados como bug! :oops:

A eso me refería, si haces lo que está resaltado en azul, no hay problemas con la codificación.
(disculpen que está citado en inglés, pero quería mantener la fidelidad a la documentación original)

hav 12-11-2004 10:36 PM

Muchas gracias, problema resuelto.

Prodater64 12-12-2004 07:26 AM

Quote:

Originally Posted by hav
Muchas gracias, problema resuelto.

Sería interesante que postearas de qué forma lo has solucionado.
Saludos.

hav 01-26-2005 03:38 PM

Hola, creía que sí, pero no he conseguido solucionarlo. Logro hacer el avs y cargarlo en el tmpgencoder, pero sólo me hace la mitad de la peli, la otra mitad se queda la imagen pillada en una escena. He probado a hacerlo a partir de un m1v, pero el resultado es el mismo.

Os dejo el avs que he creado por si se os ocurre a qué puede deberse el citado error:

#==============================================#
# -= AviSynth script by MovieStacker v1.1.1 =- #
#==============================================#

LoadPlugin("D:\PROGRAMAS EN USO\MPEGDECODER\MPEGDecoder_YV12 (AVISYNTH 2.5)\MPEGDecoder.dll")

MPEGSource("D:\Películas\Decoys.mpg")
ConvertToYuy2()
ConvertFPS(25)

fabrice 01-27-2005 12:16 AM

Hola,

Y has intentado con directshowsource?

Salu2
Fabrice

hav 01-28-2005 04:47 PM

fabrice puedes explicarme cómo instalo eso?. O cómo lo uso?. Gracias

Dialhot 01-28-2005 05:39 PM

Quote:

Originally Posted by hav
fabrice puedes explicarme cómo instalo eso?. O cómo lo uso?. Gracias

http://www.avisynth.org/DirectShowSource

fabrice 01-29-2005 02:10 AM

Hola,

Reemplazando mpegsource por DirectShowSource en tu script...

Salu2
Fabrice

hav 02-11-2005 09:11 PM

Parece que todo va bien Fabrice, ya les informaré. Muchas gracias

manoletier 02-13-2005 05:27 PM

Hola a todos, este es el script básico que uso para codificar pelis a KDVD con Quenc usando directshowsource:

LoadPlugin("i:\Filters25\MPEG2Dec3dg.dll")
LoadPlugin("i:\Filters25\GripFit_YV12.dll")

DirectshowSource("e:\pelis\peli.mpg", audio=false)
converttoyuy2()
#trim(0,1000)
#SSRC(48000)
GripCrop(704, 576, overscan=2, source_anamorphic=true, dest_anamorphic=true)
GripSize(resizer="bicubicResize")
GripBorders()
converttoyv12()

Si te ayuda me alegraré. :wink:

manoletier 02-15-2005 02:55 AM

LoadPlugin("i:\Filters25\MPEG2Dec3dg.dll")
LoadPlugin("i:\Filters25\GripFit_YV12.dll")

DirectshowSource("e:\pelis\peli.mpg", audio=false)
converttoyuy2()
#trim(0,1000)
#SSRC(48000)
AssumeFps(25.000)
GripCrop(704, 576, overscan=2, source_anamorphic=true, dest_anamorphic=true)
GripSize(resizer="bicubicResize")
GripBorders()
converttoyv12()

Faltaba el assumefps(25.000) que siempre me ha funcionado correctamente.

El archivo origen puede ser también un avi.

Saludos.


All times are GMT -5. The time now is 08:57 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.