Audio sync problems with HDV footage while performing an inverse telecine
I have about ~5,000 HDV files recorded using an Canon HV30 Camera set to it's HD 24F mode. In order to get a proper 24P video file you need to perform a inverse telecine. I'm using the following method to create huffyuv files which I then transcode again into Apple ProRes for use in Final Cut Pro. The page http://eugenia.gnomefiles.org/2007/07/13/canon-hv20-24p-pulldown/ lists several methods to perform the inverse telecine process but mencoder seems to be the only one to do it correctly for me. JES-Deinterlacer produces some strange video artifacts.. Anyway, I'm having some issues where some of the files have audio sync issues. Sometimes it's just off by a constant rate like and I just shift it in Final Cut and it's fine. Other times the file starts in sync and then gradually looses sync. I'd say about 10-20% of the files have audio sync problems. Here is my current process mencoder INPUT.m2t -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o OUTPUT.avi ALSO, If I perform a mencoder INPUT.m2t -ovc copy -oac copy OUTPUT.mpeg and then transcode to huffy will produce different results and sometimes produce a correct final output. I've tried the most recent builds and a few older ones.. I seem to have the same results. I originally followed the guide at Any suggestions? Thanks Eric Wescott
On 5/3/2010 1:22 AM, Eric Wescott wrote:
Any suggestions? Try adding -demuxer lavf. Using the lavf demuxer has been necessary (at least for me) when the input is in an MPEG-TS container.
Thanks for the suggestion. I ran a few tests and here is the results mencoder Tape015-0008.m2t -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o Tape015-0008.avi Slate clap seems in sync but everything else is off about ~300ms mencoder Tape015-0008.m2t -mc 0 -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o Tape015-0008a.avi Slate clap off but everything else seems okay mencoder Tape015-0008.m2t -mc 0 -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -delay -0.222 -o Tape015-0008b.avi Slate clap is okay, starts off okay but then loses it's sync mencoder Tape015-0008.m2t -mc 0 -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -demuxer lavf -oac pcm -o Tape015-0008c.avi Slate clap is off but everything else seems okay mencoder Tape015-0008.m2t -mc 0 -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -demuxer lavf -oac pcm -delay -0.222 -o Tape015-0008d.avi Slate clap is off but everything else seems okay The slate being off isn't a HUGE deal as it's sync sound from the camera but I'm confused as to why it would start out of sync and then return to normal... Any idea how long it takes to get back into sync? I'm concerned if we have a faster slate and action called sooner in other clips if it will start out of sync... Thanks for the help Eric Wescott On Mon, May 3, 2010 at 10:54 PM, Andrew Berg <bahamutzero8825@gmail.com>wrote:
On 5/3/2010 1:22 AM, Eric Wescott wrote:
Any suggestions? Try adding -demuxer lavf. Using the lavf demuxer has been necessary (at least for me) when the input is in an MPEG-TS container.
MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
Try using -demuxer lavf without -mc 0 or -noskip. -noskip may be useful, but I don't know what circumstance would make -mc 0 do anything other than cause problems. Laine Lee wrote:
Maybe you could use Socke's ffmpeg-sox pipe ffmpeg -v 0 -i input.ac3 -f sox Is this some kind of patch or something? I don't see any documentation for SoX's native format as one of ffmpeg's output formats. I pipe ffmpeg into SoX in my conversion script and it would be nice to pipe into SoX without having to specify endianness, sign, sample rate, etc..
On 5/4/10 7:01 AM, "Andrew Berg" <bahamutzero8825@gmail.com> wrote:
Laine Lee wrote:
Maybe you could use Socke's ffmpeg-sox pipe ffmpeg -v 0 -i input.ac3 -f sox Is this some kind of patch or something? I don't see any documentation for SoX's native format as one of ffmpeg's output formats. I pipe ffmpeg into SoX in my conversion script and it would be nice to pipe into SoX without having to specify endianness, sign, sample rate, etc..
No, I didn't have to patch. I'm just using what Socke posted last summer. It works for me with latest release of both ffmpeg and sox. I think some folks aren't able to use the latest releases of ffmpeg for what they are doing, maybe you are among them. Anyway, I just thought that the tempo option would be more correct than the speed option for adjusting duration only. http://thread.gmane.org/gmane.comp.video.mencoder.user/10568/focus=10572 Laine Lee
It seems to be the -mc 0 causing the problem. Leaving in -noskip/-demuser lavf doesn't seem to have any affect but I'd like to avoid it breaking other files audio sync. What exactly would cause the encoder to skip frames? Thanks again! Eric Andrew Berg wrote:
Try using -demuxer lavf without -mc 0 or -noskip. -noskip may be useful, but I don't know what circumstance would make -mc 0 do anything other than cause problems.
Laine Lee wrote:
Maybe you could use Socke's ffmpeg-sox pipe ffmpeg -v 0 -i input.ac3 -f sox
Is this some kind of patch or something? I don't see any documentation for SoX's native format as one of ffmpeg's output formats. I pipe ffmpeg into SoX in my conversion script and it would be nice to pipe into SoX without having to specify endianness, sign, sample rate, etc.. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
On 5/3/10 1:22 AM, "Eric Wescott" <wescotte@gmail.com> wrote:
I have about ~5,000 HDV files recorded using an Canon HV30 Camera set to it's HD 24F mode. In order to get a proper 24P video file you need to perform a inverse telecine. I'm using the following method to create huffyuv files which I then transcode again into Apple ProRes for use in Final Cut Pro. The page http://eugenia.gnomefiles.org/2007/07/13/canon-hv20-24p-pulldown/ lists several methods to perform the inverse telecine process but mencoder seems to be the only one to do it correctly for me. JES-Deinterlacer produces some strange video artifacts..
Anyway, I'm having some issues where some of the files have audio sync issues. Sometimes it's just off by a constant rate like and I just shift it in Final Cut and it's fine. Other times the file starts in sync and then gradually looses sync. I'd say about 10-20% of the files have audio sync problems. Here is my current process
mencoder INPUT.m2t -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o OUTPUT.avi
ALSO, If I perform a
mencoder INPUT.m2t -ovc copy -oac copy OUTPUT.mpeg
and then transcode to huffy will produce different results and sometimes produce a correct final output.
I've tried the most recent builds and a few older ones.. I seem to have the same results. I originally followed the guide at
Any suggestions?
If you can copy audio with the 2nd example, have you tried it with the first? I've had much better success with filmdint than I've ever had with pullup. It depends entirely on the source, of course, but what happens if you use "filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"? Maybe you could use Socke's ffmpeg-sox pipe that adjusts ac3 audio tempo. To raise the pitch slightly (shorten duration), the tempo adjustment factor is higher than 1. You have to demux and work on the audio, then remux. I put in the brackets because the first occurrence of sox is actual (not a path) ffmpeg -v 0 -i input.ac3 -f sox - | [/usr/local/bin/]sox -S -V -p -p tempo 1.00003 | ffmpeg -v 0 -i - -acodec ac3 -ab 448000 -y adjusted_tempo_out.ac3 Play the video and use plus and minus keys to correct audio sync once near beginning then once near end. For example, if audio has to be moved ahead 500 milliseconds (500 on the mplayer on screen display, 5 presses of the plus key), subtract .5 from the total number of seconds of audio, then divide the original number of seconds of audio by that number to get the tempo adjustment factor. I created an AppleScript droplet to calculate that and perform the operation that can be downloaded with the other AppleScript droplets here: http://lonestar.utsa.edu/llee/HDTV_to_DVD.html Laine Lee
Using "filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"? produces some strange color artifacts on the top 50 or so lines of pixels. You can see the detail but it's like there are sections where a green/purple filter is put over it. It's not constant and flickers and seems random where these filters are placed. What exactly is the different between filmdint and pullup? I had a similar problem when using vcodec=huffyuv instead of vcodec=ffvhuff. Using huffyuv would produce a similar problem on random clips but on the bottom of the frame. It however lost the entire detail and just looked almost like a visualization of the audio but didn't actually correspond to the audio playing. Anyway, I seem to have found the solution by removing the -mc 0 section and sticking with ffvhuff. Maybe one more thing to note.. After I get the 24p huffyuv version I'm transcoding it in Final Cut Studio's Compressor application to ProRes 422 and ProRes 422 Proxy. Some files aren't recognized by Compressor (I suspect it's a bug in Perian) and I can detect this by finder not showing a thumbnail preview for this file. My solution is for these few files that don't work (maybe 50 out of the 5,000) I just encode them as x264 lossless and it does the trick. The only reason I didn't do it for all the files in the first place is it's much slower to transcode from x264->ProRes than Huffy->ProRes.. Thanks Eric Laine Lee wrote:
On 5/3/10 1:22 AM, "Eric Wescott" <wescotte@gmail.com> wrote:
I have about ~5,000 HDV files recorded using an Canon HV30 Camera set to it's HD 24F mode. In order to get a proper 24P video file you need to perform a inverse telecine. I'm using the following method to create huffyuv files which I then transcode again into Apple ProRes for use in Final Cut Pro. The page http://eugenia.gnomefiles.org/2007/07/13/canon-hv20-24p-pulldown/ lists several methods to perform the inverse telecine process but mencoder seems to be the only one to do it correctly for me. JES-Deinterlacer produces some strange video artifacts..
Anyway, I'm having some issues where some of the files have audio sync issues. Sometimes it's just off by a constant rate like and I just shift it in Final Cut and it's fine. Other times the file starts in sync and then gradually looses sync. I'd say about 10-20% of the files have audio sync problems. Here is my current process
mencoder INPUT.m2t -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o OUTPUT.avi
ALSO, If I perform a
mencoder INPUT.m2t -ovc copy -oac copy OUTPUT.mpeg
and then transcode to huffy will produce different results and sometimes produce a correct final output.
I've tried the most recent builds and a few older ones.. I seem to have the same results. I originally followed the guide at
Any suggestions?
If you can copy audio with the 2nd example, have you tried it with the first?
I've had much better success with filmdint than I've ever had with pullup. It depends entirely on the source, of course, but what happens if you use
"filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"?
Maybe you could use Socke's ffmpeg-sox pipe that adjusts ac3 audio tempo. To raise the pitch slightly (shorten duration), the tempo adjustment factor is higher than 1. You have to demux and work on the audio, then remux. I put in the brackets because the first occurrence of sox is actual (not a path)
ffmpeg -v 0 -i input.ac3 -f sox - | [/usr/local/bin/]sox -S -V -p -p tempo 1.00003 | ffmpeg -v 0 -i - -acodec ac3 -ab 448000 -y adjusted_tempo_out.ac3
Play the video and use plus and minus keys to correct audio sync once near beginning then once near end. For example, if audio has to be moved ahead 500 milliseconds (500 on the mplayer on screen display, 5 presses of the plus key), subtract .5 from the total number of seconds of audio, then divide the original number of seconds of audio by that number to get the tempo adjustment factor.
I created an AppleScript droplet to calculate that and perform the operation that can be downloaded with the other AppleScript droplets here:
http://lonestar.utsa.edu/llee/HDTV_to_DVD.html
Laine Lee
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
On May 4, 2010, at 3:44 PM, Eric Wescott wrote:
Using "filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"? produces some strange color artifacts on the top 50 or so lines of pixels. You can see the detail but it's like there are sections where a green/purple filter is put over it. It's not constant and flickers and seems random where these filters are placed.
What exactly is the different between filmdint and pullup? I had a similar problem when using vcodec=huffyuv instead of vcodec=ffvhuff. Using huffyuv would produce a similar problem on random clips but on the bottom of the frame. It however lost the entire detail and just looked almost like a visualization of the audio but didn't actually correspond to the audio playing.
Anyway, I seem to have found the solution by removing the -mc 0 section and sticking with ffvhuff.
Maybe one more thing to note.. After I get the 24p huffyuv version I'm transcoding it in Final Cut Studio's Compressor application to ProRes 422 and ProRes 422 Proxy. Some files aren't recognized by Compressor (I suspect it's a bug in Perian) and I can detect this by finder not showing a thumbnail preview for this file.
Do you have a sample or reliable way to create one for this?
My solution is for these few files that don't work (maybe 50 out of the 5,000) I just encode them as x264 lossless and it does the trick. The only reason I didn't do it for all the files in the first place is it's much slower to transcode from x264->ProRes than Huffy->ProRes..
Thanks Eric
Laine Lee wrote:
On 5/3/10 1:22 AM, "Eric Wescott" <wescotte@gmail.com> wrote:
I have about ~5,000 HDV files recorded using an Canon HV30 Camera set to it's HD 24F mode. In order to get a proper 24P video file you need to perform a inverse telecine. I'm using the following method to create huffyuv files which I then transcode again into Apple ProRes for use in Final Cut Pro. The page http://eugenia.gnomefiles.org/2007/07/13/canon-hv20-24p-pulldown/ lists several methods to perform the inverse telecine process but mencoder seems to be the only one to do it correctly for me. JES-Deinterlacer produces some strange video artifacts..
Anyway, I'm having some issues where some of the files have audio sync issues. Sometimes it's just off by a constant rate like and I just shift it in Final Cut and it's fine. Other times the file starts in sync and then gradually looses sync. I'd say about 10-20% of the files have audio sync problems. Here is my current process
mencoder INPUT.m2t -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o OUTPUT.avi
ALSO, If I perform a
mencoder INPUT.m2t -ovc copy -oac copy OUTPUT.mpeg
and then transcode to huffy will produce different results and sometimes produce a correct final output.
I've tried the most recent builds and a few older ones.. I seem to have the same results. I originally followed the guide at
Any suggestions?
If you can copy audio with the 2nd example, have you tried it with the first?
I've had much better success with filmdint than I've ever had with pullup. It depends entirely on the source, of course, but what happens if you use
"filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"?
Maybe you could use Socke's ffmpeg-sox pipe that adjusts ac3 audio tempo. To raise the pitch slightly (shorten duration), the tempo adjustment factor is higher than 1. You have to demux and work on the audio, then remux. I put in the brackets because the first occurrence of sox is actual (not a path)
ffmpeg -v 0 -i input.ac3 -f sox - | [/usr/local/bin/]sox -S -V -p -p tempo 1.00003 | ffmpeg -v 0 -i - -acodec ac3 -ab 448000 -y adjusted_tempo_out.ac3
Play the video and use plus and minus keys to correct audio sync once near beginning then once near end. For example, if audio has to be moved ahead 500 milliseconds (500 on the mplayer on screen display, 5 presses of the plus key), subtract .5 from the total number of seconds of audio, then divide the original number of seconds of audio by that number to get the tempo adjustment factor.
I created an AppleScript droplet to calculate that and perform the operation that can be downloaded with the other AppleScript droplets here:
http://lonestar.utsa.edu/llee/HDTV_to_DVD.html
Laine Lee
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
On 5/4/10 4:41 PM, Alexander Strange wrote:
On May 4, 2010, at 3:44 PM, Eric Wescott wrote:
Using "filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"? produces some strange color artifacts on the top 50 or so lines of pixels. You can see the detail but it's like there are sections where a green/purple filter is put over it. It's not constant and flickers and seems random where these filters are placed.
What exactly is the different between filmdint and pullup? I had a similar problem when using vcodec=huffyuv instead of vcodec=ffvhuff. Using huffyuv would produce a similar problem on random clips but on the bottom of the frame. It however lost the entire detail and just looked almost like a visualization of the audio but didn't actually correspond to the audio playing.
Anyway, I seem to have found the solution by removing the -mc 0 section and sticking with ffvhuff.
Maybe one more thing to note.. After I get the 24p huffyuv version I'm transcoding it in Final Cut Studio's Compressor application to ProRes 422 and ProRes 422 Proxy. Some files aren't recognized by Compressor (I suspect it's a bug in Perian) and I can detect this by finder not showing a thumbnail preview for this file.
Do you have a sample or reliable way to create one for this?
Yes, you can access the file via this link. It's an 80meg HDV file. https://pantherfile.uwm.edu/wescott/mencoder/Tape004-0045.m2t Here are the three methods I've used to encode the file mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc x264 -x264encopts qp=0 -demuxer lavf -oac pcm -o Tape004-0045.h264.avi mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:aspect=16/9 -demuxer lavf -oac pcm -o Tape004-0045.ffvhuff.avi mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=huffyuv:pred=2:format=422P:vstrict=-1 -demuxer lavf -oac pcm -o Tape004-0045.huffyuv.avi In this case the ffvhuff encoded file will not play in quicktime (via Perian) but will in MPlayer. Sometimes (for other HDV clips recorded on the same camera) it's reversed (or both won't play) and the ffvhuff plays fine but the huffyuv will not. It does seem to be the case that the h264 version always plays.. However, h264 is not an ideal codec for editing performance wise.. and takes quite awhile longer to encode than the huffyuv versions so I'd prefer not to use it. There is another rare case where the huffyuv or ffvhuff encode will play but one, or both produce a strange artifact on the bottom on the video. This image is an example of such a problem. The above video produces this issue with the huffyuv encode. https://pantherfile.uwm.edu/wescott/mencoder/shot0001.png NOTE: The huffyuv generally produces a much larger/noticeable artifact than the ffvhuff version. It looks essentially the same but the ffvhuff version is physically smaller and doesn't always last the entire video. The huffyuv one generally once produced is present for the remainder of the clip. I'm not sure if the playback problem is a Perian bug but there is definately an encoding bug in huffy/ffvhuff to produce these artifacts.. These issues could be related.. Thanks Eric Wescott
My solution is for these few files that don't work (maybe 50 out of the 5,000) I just encode them as x264 lossless and it does the trick. The only reason I didn't do it for all the files in the first place is it's much slower to transcode from x264->ProRes than Huffy->ProRes..
Thanks Eric
Laine Lee wrote:
On 5/3/10 1:22 AM, "Eric Wescott"<wescotte@gmail.com> wrote:
I have about ~5,000 HDV files recorded using an Canon HV30 Camera set to it's HD 24F mode. In order to get a proper 24P video file you need to perform a inverse telecine. I'm using the following method to create huffyuv files which I then transcode again into Apple ProRes for use in Final Cut Pro. The page http://eugenia.gnomefiles.org/2007/07/13/canon-hv20-24p-pulldown/ lists several methods to perform the inverse telecine process but mencoder seems to be the only one to do it correctly for me. JES-Deinterlacer produces some strange video artifacts..
Anyway, I'm having some issues where some of the files have audio sync issues. Sometimes it's just off by a constant rate like and I just shift it in Final Cut and it's fine. Other times the file starts in sync and then gradually looses sync. I'd say about 10-20% of the files have audio sync problems. Here is my current process
mencoder INPUT.m2t -noskip -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:autoaspect -oac pcm -o OUTPUT.avi
ALSO, If I perform a
mencoder INPUT.m2t -ovc copy -oac copy OUTPUT.mpeg
and then transcode to huffy will produce different results and sometimes produce a correct final output.
I've tried the most recent builds and a few older ones.. I seem to have the same results. I originally followed the guide at
Any suggestions?
If you can copy audio with the 2nd example, have you tried it with the first?
I've had much better success with filmdint than I've ever had with pullup. It depends entirely on the source, of course, but what happens if you use
"filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"?
Maybe you could use Socke's ffmpeg-sox pipe that adjusts ac3 audio tempo. To raise the pitch slightly (shorten duration), the tempo adjustment factor is higher than 1. You have to demux and work on the audio, then remux. I put in the brackets because the first occurrence of sox is actual (not a path)
ffmpeg -v 0 -i input.ac3 -f sox - | [/usr/local/bin/]sox -S -V -p -p tempo 1.00003 | ffmpeg -v 0 -i - -acodec ac3 -ab 448000 -y adjusted_tempo_out.ac3
Play the video and use plus and minus keys to correct audio sync once near beginning then once near end. For example, if audio has to be moved ahead 500 milliseconds (500 on the mplayer on screen display, 5 presses of the plus key), subtract .5 from the total number of seconds of audio, then divide the original number of seconds of audio by that number to get the tempo adjustment factor.
I created an AppleScript droplet to calculate that and perform the operation that can be downloaded with the other AppleScript droplets here:
http://lonestar.utsa.edu/llee/HDTV_to_DVD.html
Laine Lee
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
On 5/4/10 4:41 PM, Alexander Strange wrote:
On May 4, 2010, at 3:44 PM, Eric Wescott wrote:
Using "filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"? produces some strange color artifacts on the top 50 or so lines of pixels. You can see the detail but it's like there are sections where a green/purple filter is put over it. It's not constant and flickers and seems random where these filters are placed.
What exactly is the different between filmdint and pullup? I had a similar problem when using vcodec=huffyuv instead of vcodec=ffvhuff. Using huffyuv would produce a similar problem on random clips but on the bottom of the frame. It however lost the entire detail and just looked almost like a visualization of the audio but didn't actually correspond to the audio playing.
Anyway, I seem to have found the solution by removing the -mc 0 section and sticking with ffvhuff.
Maybe one more thing to note.. After I get the 24p huffyuv version I'm transcoding it in Final Cut Studio's Compressor application to ProRes 422 and ProRes 422 Proxy. Some files aren't recognized by Compressor (I suspect it's a bug in Perian) and I can detect this by finder not showing a thumbnail preview for this file.
Do you have a sample or reliable way to create one for this?
Yes, you can access the file via this link. It's an 80meg HDV file. https://pantherfile.uwm.edu/wescott/mencoder/Tape004-0045.m2t
Here are the three methods I've used to encode the file mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc x264 -x264encopts qp=0 -demuxer lavf -oac pcm -o Tape004-0045.h264.avi mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:aspect=16/9 -demuxer lavf -oac pcm -o Tape004-0045.ffvhuff.avi mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=huffyuv:pred=2:format=422P:vstrict=-1 -demuxer lavf -oac pcm -o Tape004-0045.huffyuv.avi This might or might not have anything to do with your problem, but 1080 is not divisible by 16. Make sure you use dimensions that are divisible by 16 either by scaling, cropping, or expanding the video picture. You could crop to 1072, or expand to 1088. That might make the difference to
Eric Wescott wrote: the green and purple artifacts showing up in the huffyuv stream.
On 06/07/2010 06:48 AM, James Hastings-Trew wrote:
On 5/4/10 4:41 PM, Alexander Strange wrote:
On May 4, 2010, at 3:44 PM, Eric Wescott wrote:
Using "filmdint=io=30:24/fast=0,softskip,harddup,scale=1920:1080 -noskip"? produces some strange color artifacts on the top 50 or so lines of pixels. You can see the detail but it's like there are sections where a green/purple filter is put over it. It's not constant and flickers and seems random where these filters are placed.
What exactly is the different between filmdint and pullup? I had a similar problem when using vcodec=huffyuv instead of vcodec=ffvhuff. Using huffyuv would produce a similar problem on random clips but on the bottom of the frame. It however lost the entire detail and just looked almost like a visualization of the audio but didn't actually correspond to the audio playing.
Anyway, I seem to have found the solution by removing the -mc 0 section and sticking with ffvhuff.
Maybe one more thing to note.. After I get the 24p huffyuv version I'm transcoding it in Final Cut Studio's Compressor application to ProRes 422 and ProRes 422 Proxy. Some files aren't recognized by Compressor (I suspect it's a bug in Perian) and I can detect this by finder not showing a thumbnail preview for this file. Do you have a sample or reliable way to create one for this? Yes, you can access the file via this link. It's an 80meg HDV file. https://pantherfile.uwm.edu/wescott/mencoder/Tape004-0045.m2t
Here are the three methods I've used to encode the file mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc x264 -x264encopts qp=0 -demuxer lavf -oac pcm -o Tape004-0045.h264.avi mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=ffvhuff:aspect=16/9 -demuxer lavf -oac pcm -o Tape004-0045.ffvhuff.avi mencoder Tape004-0045.m2t -fps 30000/1001 -vf pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -ovc lavc -lavcopts vcodec=huffyuv:pred=2:format=422P:vstrict=-1 -demuxer lavf -oac pcm -o Tape004-0045.huffyuv.avi This might or might not have anything to do with your problem, but 1080 is not divisible by 16. Make sure you use dimensions that are
Eric Wescott wrote: divisible by 16 either by scaling, cropping, or expanding the video picture. You could crop to 1072, or expand to 1088. That might make the difference to the green and purple artifacts showing up in the huffyuv stream.
No dice. Same artifacts.. It's a pretty intermittent problem as it only effects maybe 100 out of ~5000 clips I encoded. The problem with them reading in Quicktime (via Perian) is even lower.. I'd say maybe 20 out of ~5000 clips don't play in Quicktime.. _______________________________________________
MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
participants (5)
-
Alexander Strange -
Andrew Berg -
Eric Wescott -
James Hastings-Trew -
Laine Lee