View previous topic :: View next topic |
Author |
Message |
Zubziro Apprentice
Joined: 21 Sep 2005 Posts: 248 Location: Sweden
|
Posted: Tue Nov 25, 2008 9:39 pm Post subject: [SOLVED] DV to mpeg2 without deinterlance possible ? |
|
|
HI
I have a number of DV files with 50i rate, is there any way to convert those to intelaced "as is" mpeg ?
tried with ffmpeg:
Code: |
ffmpeg -threads 2 -i $input_file -sameq -target pal-dvd $mpeg_name
|
but result looks strange on TV it's like movie become 25fsp
ffmpeg says:
Code: |
Input #0, dv, from '/serve/videoarchive/original/othem/othem49.dv':
Duration: 01:30:26.56, start: 0.000000, bitrate: 28800 kb/s
Stream #0.0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, 25.00 tb(r)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
File '/serve/videoarchive/processed/videowork/othem/othem49.mpeg' already exists. Overwrite ? [y/N] y
Output #0, dvd, to '/serve/videoarchive/processed/videowork/othem/othem49.mpeg':
Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 59:54 DAR 295:216], q=2-31, 6000 kb/s, 25.00 tb(c)
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
|
Any ideas ??
Thanks
Last edited by Zubziro on Fri Nov 28, 2008 6:54 am; edited 1 time in total |
|
Back to top |
|
|
flybynite l33t
Joined: 06 Dec 2002 Posts: 620
|
Posted: Wed Nov 26, 2008 12:04 am Post subject: Re: DV to mpeg2 without deinterlance possible ? |
|
|
Zubziro wrote: |
but result looks strange on TV it's like movie become 25fsp
|
I've been caught by this before
both ffmpeg and mencoder have a default output framerate so by not specifying one, it used the default of 25fps.
Quote: | `-r fps'
Set frame rate (Hz value, fraction or abbreviation), (default = 25).
|
|
|
Back to top |
|
|
Zubziro Apprentice
Joined: 21 Sep 2005 Posts: 248 Location: Sweden
|
Posted: Wed Nov 26, 2008 8:29 am Post subject: Re: DV to mpeg2 without deinterlance possible ? |
|
|
flybynite wrote: | Zubziro wrote: |
but result looks strange on TV it's like movie become 25fsp
|
I've been caught by this before
both ffmpeg and mencoder have a default output framerate so by not specifying one, it used the default of 25fps.
Quote: | `-r fps'
Set frame rate (Hz value, fraction or abbreviation), (default = 25).
|
|
Thanks for answer !!
I rtied to run:
Quote: | ffmpeg -threads 2 -r 50 -i $input_file -sameq -target pal-dvd -r 50 $mpeg_name |
But output is still strange, it's looks like input DV defaults to 25fps anyway but output is 50fps
Code: |
Input #0, dv, from '/serve/videoarchive/original/othem/othem5.dv':
Duration: 00:31:17.20, start: 0.000000, bitrate: 28800 kb/s
Stream #0.0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, 25.00 tb(r)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
File '/serve/videoarchive/processed/videowork/othem/othem5.mpeg' already exists. Overwrite ? [y/N] y
Output #0, dvd, to '/serve/videoarchive/processed/videowork/othem/othem5.mpeg':
Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 59:54 DAR 295:216], q=2-31, 6000 kb/s, 50.00 tb(c)
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
|
Any sugesstion would be appreciated. |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Wed Nov 26, 2008 11:57 am Post subject: |
|
|
Are you using dv streams directly or are you using avi container?
AVI only supports full frame AFAIK.
Use dvgrab to store RAW DV stream to harddisk for a test.
Also MPEG2 is _capable_ of handling interlaced material. But I don't know if there are special parameters that have to be set for a specific encoder. Try different encoders with different settings (lavc or mpeg2enc IIRC).
Edit:
On second thought I think I remember reading something that DV is specified with full frames with either 25 fps for PAL or 30 fps for NTSC. As it uses a JPEG algorithm to compress the single frames this also makes sense. So there would be only full frames in the source material.
My DV camera has a deinterlacer built in, but that does not always produce good picture. As I mostly used it to record analog video I have quite some experience with interlacing artifacts. So I started always deinterlacing the material accepting the slight blur it adds to the picture. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
Zubziro Apprentice
Joined: 21 Sep 2005 Posts: 248 Location: Sweden
|
Posted: Wed Nov 26, 2008 2:26 pm Post subject: |
|
|
Thanks for you answers.
I tried many apps with different settings without success
I just put it this way:
Is there anybody who knows how to convert 50i DV (thi is actualy quicktime DV file) to 50i mpeg2 with best possible quality ?
I'm not so familliar with transcoding and already spend about 2 weeks of trying
Thanks |
|
Back to top |
|
|
Zubziro Apprentice
Joined: 21 Sep 2005 Posts: 248 Location: Sweden
|
Posted: Fri Nov 28, 2008 6:54 am Post subject: |
|
|
Zubziro wrote: | Thanks for you answers.
I tried many apps with different settings without success
I just put it this way:
Is there anybody who knows how to convert 50i DV (thi is actualy quicktime DV file) to 50i mpeg2 with best possible quality ?
I'm not so familliar with transcoding and already spend about 2 weeks of trying
Thanks |
It looks like I finaly did it:
Code: |
ffmpeg -threads 2 -top -1 -i $inputfile -sameq -target pal-dvd -flags ilme $outputfile
|
`-top n'
top=1/bottom=0/auto=-1 field first
`-ilme'
Force interlacing support in encoder (MPEG-2 and MPEG-4 only). Use this option if your input file is interlaced and you want to keep the interlaced format for minimum losses. The alternative is to deinterlace the input stream with `-deinterlace', but deinterlacing introduces losses.
This produces highesh quality of mpeg2 video compatible with DVD whit "amazing" process speed of 1fps on my 3,2 Ghz SMP server. So be patient |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|