VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 60 of 60
  1. oh my dinosaurus
    Name:  OHMYC.JPG
Views: 995
Size:  19.1 KB
    Quote Quote  
  2. and you to see if a mp4 have or not ghost what program use?
    Quote Quote  
  3. my cats kindly ask you to do a proof: in this moment I'm uploading uncompressedC0075Morgan.avi.avi that is your mp4 file opened with the ffmpeg plugin, full processing mode, color depth: autoselect-->yuy2, compressor: uncompressed rgb/yCbCr, save as AVI (attached)

    can you see the ghosts in uncompressedC0075Morgan.avi.avi?
    Image Attached Files
    Quote Quote  
  4. If you want a demonstration, test this in avisynth

    Code:
    FFVideoSource("C0075Morgan3.mp4")
    ConvertToRGB24(interlaced=false)
    AssumeTFF()
    Bob()

    Code:
    FFVideoSource("C0075Morgan3.mp4")
    ConvertToRGB24(interlaced=true)
    AssumeTFF()
    Bob()

    The bob() is just for demonstration purposes to deinterlace to show full frame (instead of field)


    ConvertToRGB24(interlaced=false)
    Click image for larger version

Name:	false.png
Views:	757
Size:	395.9 KB
ID:	26126

    ConvertToRGB24(interlaced=true)
    Click image for larger version

Name:	true.png
Views:	782
Size:	364.5 KB
ID:	26127



    ConvertToRGB24(interlaced=true) means upsample the chroma using interlaced algorithm. (and false means use progressive algorithm). The YV12 4:2:0 material is converted to RGB for display (your monitor , TV, anything you SEE is usually working in RGB)

    This is one of the reasons why all broadcasters use 4:2:2 for mezzanine , intermediate files, submissions

    Trust me, I'm 100% sure about this, just like the other thread
    Quote Quote  
  5. (my selfie photo)
    Click image for larger version

Name:	ghostcc.jpg
Views:	791
Size:	16.4 KB
ID:	26128
    Quote Quote  
  6. so the "definitive" commandline what have to be?
    and in the HD case? ^^
    Quote Quote  
  7. So the take home message is be careful when using interlaced 4:2:0 material. If your NLE, vdub don't upsample to RGB correctly , you will have those artifacts when working in RGB

    Either convert to 4:2:2 intermediate first, or set the program so it inteprets the chroma correctly

    In vdub, another workaround is video=>color depth => 4:2:2 YCbCr . You will notice the artifacts vanish mysteriously in the preview. The reason is the vdub author purposely chose to adhere to the "interlaced 4:2:0" doesn't exist set of interpretation rules, so it uses progressive chroma upsampling . (This is probably same as your NLE) . The problem with 4:2:0 interlaced is chroma information is only present every 2nd line


    so the "definitive" commandline what have to be?
    and in the HD case? ^^
    It would be the same as above, and for the HD case, same as in the other thread.

    The chroma issues are eliminated with interl=1, I've proved that to you above

    You just have to be more clear on what programs you're using and how they upsample chroma
    Quote Quote  
  8. in fact if I open C0075Morgan.avi.mp4 into vdub and add filter deinterlace I see this:

    Click image for larger version

Name:	VD11.JPG
Views:	774
Size:	129.6 KB
ID:	26129

    so I wonder: what is the method to see if are presents ghost?
    Quote Quote  
  9. Originally Posted by marcorocchini View Post

    so I wonder: what is the method to see if are presents ghost?

    If you're going to use vdub to check, force YUY2 color depth as explained above in post 37

    My method of choice is to use avisynth and look at individual fields with separatefields(). I like individual fields, because it can reveal other field issues that might not be easily seen with deinterlacing or on full frames
    Quote Quote  
  10. in vlc I have set deint. mode=yadif and view deinterlace

    seems don't see ghost in you mp4Click image for larger version

Name:	VLC1.JPG
Views:	676
Size:	62.9 KB
ID:	26130
    Quote Quote  
  11. Originally Posted by marcorocchini View Post
    in vlc I have set deint. mode=yadif and view deinterlace

    seems don't see ghost in you mp4[ATTACH]<snip>[/ATTACH]

    and that is expected result , because the deinterlace is applied before conversion to RGB in the sequence of events

    once video is deinterlaced, it is now progressive 4:2:0 , so progressive conversion to RGB looks ok
    Quote Quote  
  12. I have jet set virtualdub to work in yuy2

    Click image for larger version

Name:	VDSET6.JPG
Views:	734
Size:	49.1 KB
ID:	26131

    but seems it work alwais with ghost when I open 4:1:1 files

    Can I set virtualdub to avoid this?
    Quote Quote  
  13. I wonder: in virtualdub I leave the setting as alwais: 4:2:2 YCbCr but this seems not enought to avoid ghost.

    Can I set virtualdub differently to avoiding ghost?
    Quote Quote  
  14. experiment to have mp4 in dinosaurus timeline ok:

    opening in vd with this avisynth:

    FFVideoSource("v:\C0075Morgan3.mp4")
    ConvertToYUY2(interlaced=true)

    the line that change all is the ConvertToYUY2(interlaced=true)

    without ConvertToYUY2(interlaced=true)
    there are ghosts

    but now I'm wondering: is there an equivalent in virtualdub?
    Quote Quote  
  15. Maybe something has changed in newer vdub versions.. you used to be able to use that force yuy2 workaround with color depth. Looks like it's not working

    I'll have a closer look later, but stay away from extinct dinosaurs, at least temporarily
    Quote Quote  
  16. sorry poison, what does mean -bf 0 or -bf ?

    there a re b frames, but affect quality of output?
    Quote Quote  
  17. Yes -bf is number of max consecutive b-frames allowed.

    In general, they improve compression (higher quality at a given bitrate, or smaller filesize for same quality) ; except when you get to very high bitrates , then they might actually reduce quality slightly

    For general usage 2 or 3 is normal for AVC
    Quote Quote  
  18. sorry poison, using this: (in batch)

    Code:
    v:\automazioneclip\core\ffmpeg.exe -y -i "%CD%\%~n1.avi" -i "%Audio%" -c:v libx264 -profile:v main -level:v 3 -g 33 -bf 0 -crf 18 -pix_fmt yuv420p -vf scale=interl=1:in_range=tv:out_range=tv -flags +ilme+ildct -top 1 -x264opts tff=1:vbv-maxrate=10000:vbv-bufsize=10000 -c:a libvo_aacenc -b 256k -aspect 16:9 %WorkFolder%\%~n1perTgrBologna.mp4
    my media player box, after 6-7 second of playbach have 1/2 second that image freeze and then go playback correctly

    I have try using also tmpgenc and playback is fine, do you know why? thanks
    Last edited by marcorocchini; 5th Jul 2014 at 17:52.
    Quote Quote  
  19. What media player box model?

    Try lower audio bitrate -b:a 192k , same as tmpgenc
    Quote Quote  
  20. it's a DVICO TVX Box model Slim S1 Duo


    I have try lower to 192k but the problem remains, it'a little freeze during playback

    only if I try to set -an (the mediainfo confirm the No Audio in the mp4 file) playback is fine, it's strange
    Last edited by marcorocchini; 5th Jul 2014 at 18:10.
    Quote Quote  
  21. Originally Posted by marcorocchini View Post
    it's a DVICO TVX Box model Slim S1 Duo


    I have try lower to 192k but the problem remains, it'a little freeze during playback

    only if I try to set -an (the mediainfo confirm the No Audio in the mp4 file) playback is fine, it's strange
    That suggests -c:a libvo_aacenc is the problem

    You could try a different AAC encoder , or maybe MP3
    Quote Quote  
  22. and how is the commanline for using mp3 encoder?
    Quote Quote  
  23. Originally Posted by marcorocchini View Post
    and how is the commanline for using mp3 encoder?
    -c:a libmp3lame -b:a 192k
    Quote Quote  
  24. tomorrow I do some proof, however poison do you know what is the "best" or the most widely used audio encoder to manage mp4 intended for broadcats tv?
    Quote Quote  
  25. Are you sending this to the station? MP4 is rarely (if ever) used for submissions, and never used for broadcast. Internet distribution, yes MP4 is used but not terrestrial /sat broadcast.

    They usually have submission guidelines, spec sheet . You should follow the instructions for that station, some have preferred formats or workflows (e.g. some stations are Mac based and want you to send quicktime /MOV files)
    Quote Quote  
  26. yes I send to the station, but is a station of cats, all mp4 files that I have send they respond to me: it's all ok.. it's all ok, alwais beauty .. ok but there is not a standard precise. In 95% I take the xdcam disc, not the mp4

    simply I have noticed that with this video codec and this audio codec seems all ok, a part the ghost with 4:1:1
    Quote Quote  
  27. Originally Posted by marcorocchini View Post
    yes I send to the station, but is a station of cats, all mp4 files that I have send they respond to me: it's all ok.. it's all ok, alwais beauty .. ok but there is not a standard precise. In 95% I take the xdcam disc, not the mp4

    simply I have noticed that with this video codec and this audio codec seems all ok, a part the ghost with 4:1:1

    yes xdcam-hd is the preferred format for many stations . Uncompressed audio is standard

    note 4:1:1 is not the same thing as 4:2:0 !
    http://en.wikipedia.org/wiki/Chroma_subsampling

    You're using 4:2:0 for the AVC encodes , not 4:1:1



    libvo_aacenc is a terrible AAC encoder quality wise . It's possible that it might have compatibility issues as well. But it's freely distributable, so it's included in autobuilds such as zeranoe's. The preferred AAC codec with ffmpeg is fdk_aac, but you have to compile it yourself because of it's "non free" status (not GPL) it cannot be distributed
    Last edited by poisondeathray; 5th Jul 2014 at 20:01.
    Quote Quote  
  28. Originally Posted by poisondeathray View Post

    note 4:1:1 is not the same thing as 4:2:0 !

    Oh my ***

    Click image for larger version

Name:	strangecat.jpg
Views:	816
Size:	45.9 KB
ID:	26138

    I thought it was practically the same thing
    Quote Quote  
  29. Originally Posted by poisondeathray View Post
    Originally Posted by marcorocchini View Post
    and how is the commanline for using mp3 encoder?
    -c:a libmp3lame -b:a 192k
    I have try, it works hoewver the problem is anhother:

    I use a batch that have a line:

    Code:
    v:\automazioneclip\core\ffmpeg.exe -y -i "%CD%\%~n1.avi" -i "%Audio%" -c:v libx264 -profile:v main -level:v 3 -g 33 -bf 0 -crf 18 -pix_fmt yuv420p -vf scale=interl=1:in_range=tv:out_range=tv -flags +ilme+ildct -top 1 -x264opts tff=1:ref=1:colorprim=bt470bg:transfer=bt470bg:colormatrix=bt470bg:vbv-maxrate=40000:vbv-bufsize=30000 -c:a libvo_aacenc -b 192k -aspect 16:9 %WorkFolder%\%~n1.mp4
    so the -i audio is

    a correspondent file .wav that is the same dir of the video, and have same lenght

    or

    if there is not a correspondant .wav file, use a blank.wav as audio source because in other line of the batch when I generate the .mxf to go back in camera, if the encoding have not at least 1 audio track, all the .mxf is unplayable

    So when there is not audio, the batch use a blank.wav that have duration of 1 second.

    Playback in my device is fine when I use .wav file that is corresponding at the real audio file in the same duration of the video track , to solve well I should have to modify the bach so that when an audio track is not present in the same dir of the video, the commandline have to use the -an option
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!