[MEncoder-users] Converting m2ts from JVC GZ HD 10 to avi with mencoder
Grozdan
microchip at telenet.be
Thu May 14 15:02:45 CEST 2009
2009/5/14 tarnait <tarnai_t at yahoo.de>:
> Hi,
>
> the video is (according to mediainfo interlaced). I need to provide fps and ofps, because I got a lot of duplicate frame/skipped frame messages. The fps=50 ,ofps=25 seems to work. My current script looks like:
>
> #!/bin/bash
>
> for i in `ls -al *.mts | awk '{ print $9 }'`
> do
>
> mencoder $i -oac mp3lame -lameopts vbr=5 -o /dev/null -ovc lavc -lavcopts threads=2:mbd=2:vcodec=mpeg4:vbitrate=12000:vpass=1:v4mv:trell:turbo:aspect=16/9 \
> -fps 100 -ofps 50 -vf pullup,yadif=3,scale=1440:1080,softskip
>
> mencoder $i -oac mp3lame -lameopts vbr=5 -o $i.avi -ovc lavc -lavcopts threads=2:mbd=2:vcodec=mpeg4:vbitrate=12000:vpass=2:v4mv:trell:turbo:aspect=16/9 \
> -fps 100 -ofps 50 -vf pullup,yadif=3,scale=1440:1080,softskip
>
> rm divx2pass.log
>
> done
>
>
> double values because of the bobbing stuff you've mentioned. This seems to finally give me only a couple duplicate frames, a/v desync is not noticeable.
>
> I have to really thank you all for supporting me, I hope I can pay back (with other knowledge) someday.
if possible, can you upload a 50 MB sample to say Mediafire?
you can cut a chunk with:
mencoder file.mts ovc copy -oac copy -endpos 50mb -o output.avi
>
> Kind Regards, Tibor
>
>
>
>
> ________________________________
> Von: Grozdan <microchip at telenet.be>
> An: MEncoder usage discussions <mencoder-users at mplayerhq.hu>
> Gesendet: Mittwoch, den 13. Mai 2009, 23:43:24 Uhr
> Betreff: Re: [MEncoder-users] Converting m2ts from JVC GZ HD 10 to avi with mencoder
>
> 2009/5/13 tarnait <tarnai_t at yahoo.de>:
>> Hi Grozdan,
>>
>> first of all thanks for your answer. The original file has a framerate of 25 fps, I verified this with mediainfo, powerdirector, and some other program. I try to do a simple transcoding (because x264 playback is slow on my machine), nothing more. I don't care about the framerate, I only want the video in a well playable format, that's all.
>>
>> Kind Regards, Tibor
>
> well, if so, why are you changing framerates by forcing -fps
> 60000/1001 ? if the file is interlaced and you want to keep the 25
> fps, just deinterlace it with either yadif or one of the pp=
> deinterlacers,
>
> -vf yadif=0,softskip,harddup
>
> or
>
> -vf pp=lb,softskip,harddup
>
> also, in your original script, you use filmdint which is a inverse
> telecine filter (though it sometimes also works as deinterlacer). You
> shouldn't do that if your file is not telecined
>
> a tip on interlaced material: 25 fps interlaced has 50 fields/s and
> like belcampo said, fields != frames
>
>>
>>
>>
>>
>> ________________________________
>> Von: Grozdan <microchip at telenet.be>
>> An: MEncoder usage discussions <mencoder-users at mplayerhq.hu>
>> Gesendet: Mittwoch, den 13. Mai 2009, 19:47:34 Uhr
>> Betreff: Re: [MEncoder-users] Converting m2ts from JVC GZ HD 10 to avi with mencoder
>>
>> 2009/5/13 tarnait <tarnai_t at yahoo.de>:
>>> Hi,
>>>
>>> I read all posts which could be related to this topic not only here,
>>> but on the mencoder mailing list and other sources, still I was not
>>> able to find a proper solution. My JVC camcorder produces m2ts files
>>> (which are x264 encoded). Ironically I didn't want to be an expert in
>>> this topic, but I read through all the material about encoding just to
>>> convert my files into a well playable format. Now I have produced the
>>> following script:
>>>
>>>
>>> Code:
>>>
>>>
>>> #!/bin/bash
>>>
>>> for i in `ls -al *.mts | awk '{ print $9 }'`
>>> do
>>>
>>> mencoder $i -ovc lavc -lavcopts threads=2:mbd=2:vcodec=mpeg4:vbitrate=12000:vpass=1:v4mv:trell:turbo \
>>> -fps 60000/1001 -vf filmdint,yadif=3,scale=1440:810,softskip -oac mp3lame -lameopts vbr=5 -o /dev/null
>>>
>>> mencoder $i -ovc lavc -lavcopts threads=2:mbd=2:vcodec=mpeg4:vbitrate=12000:vpass=2:v4mv:trell:turbo \
>>> -fps 60000/1001 -vf filmdint,yadif=3,scale=1440:810,softskip -oac mp3lame -lameopts vbr=5 -o $i.avi
>>>
>>> rm divx2pass.log
>>>
>>> done
>>>
>>
>> First, what if the original frame rate of the file(s) and what are you
>> trying to achieve? You do realize that yadif-=3 is a bobber (frame
>> doubling filter)? So if you have 25 fps interlaced material and use
>> yadif=1 or yadif=3 it will make it 50 fps progressive. When using
>> yadif=1 or yadif=3 you MUST double both the input and output frame
>> rate, so it will look something like this for 25 fps interlaced
>> content:
>>
>> -vf yadif=3 -fps 50 -ofps 50
>>
>>>
>>>
>>> Still I got a lot of duplicate frame and/or Skipped frame messages
>>> which would not bother me, but the audio is out of sync, or the video
>>> is playing too fast (it drops about every 2,3,5,20,25) frame depending
>>> on the framerate. I tried fps={60,25,30, 60000/1001, 30000/1001,
>>> 24000/1001}, ofps={60,25,30, 60000/1001, 30000/1001, 24000/1001} every
>>> possible combination. And the duplicated/skipped frames where changing
>>> depending on the combo, so I assume it's the framerate. The closest
>>> problem I could found was here
>>>
>>> http://lists.mplayerhq.hu/pipermail/mencoder-users/2008-December/009634.html
>>>
>>>
>>> but the solution apparently didn't work for me. Does anyone have an idea what I could try?
>>> Oh yes, I did try to convert it with the software which they gave
>>> me to the camcorder - PowerDirector 6.50.310b - of course it did work,
>>> and the info about the file:
>>>
>>> Type: MPEG-4 AVC
>>> Bitrate: 12.09 Mbps
>>> Resolution: 1440x1080
>>> Framerate: 25.00
>>> SeitenverhältnisTyp: MPEG-4 AVC
>>> Originaldauer: 00:01:44:04
>>> Bitrate: 12.09 Mbps
>>> Auflösung: 1440x1080
>>> Bildrate: 25.00 Bilder pro Sekunde
>>> Ratio: 16:9
>>>
>>> the only problem is it runs under Windows
>>>
>>> Thanks for the answers, Kind Regards,
>>> trinux
>>>
>>>
>>>
>>> _______________________________________________
>>> MEncoder-users mailing list
>>> MEncoder-users at mplayerhq.hu
>>> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>>>
>>>
>> _______________________________________________
>> MEncoder-users mailing list
>> MEncoder-users at mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>>
>>
>>
>>
>> _______________________________________________
>> MEncoder-users mailing list
>> MEncoder-users at mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>>
>>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
>
>
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
>
More information about the MEncoder-users
mailing list