VideoHelp Forum




+ Reply to Thread
Results 1 to 24 of 24
  1. Hi, I'm a ***


    please I wonder this. I would like use ffdshowso that it use virtualdub to do a mjpeg encoding, or avisynth to do a mjpeg encoding. In practice ffdshow don't have to encode with his intenal mjpeg encoder, but virtualdub as real encoder. In this case ffshow is only a "bridge". Is this possible? thanks
    Quote Quote  
  2. VirtualDub does not include an MJPEG encoder. Only a decoder.
    Quote Quote  
  3. I know but virtualdub can use MJPEG VFW encoders, I wonder if I can use ffdshow as encoder, but it use virtualdub as real encoder
    Quote Quote  
  4. Member godai's Avatar
    Join Date
    Oct 2012
    Location
    United States Florida
    Search PM
    i dont know about mjpeg maybe somebody can clarify to you.

    but in video compressors list on virtualdub, you can get ffdshow, but yea you need download it, first
    Quote Quote  
  5. Originally Posted by marcorocchini View Post
    I know but virtualdub can use MJPEG VFW encoders, I wonder if I can use ffdshow as encoder, but it use virtualdub as real encoder
    I don't understand what you're asking. ffdshow includes a VFW encoder that you can use in VirtualDub.

    Image
    [Attachment 39166 - Click to enlarge]


    The only way to use a DirectShow encoder that I know of is to frameserve from VirtualDub to another program.
    Quote Quote  
  6. thanks but I need the inverse operation: my mle cannot see virtualdub when export. But it see ffdshow because have a vfw codec, so I wonder if I can point ffdshow as encoder, but setting it up so that it use virtualdub to make the real encoding
    Quote Quote  
  7. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    VirtualDub is not an encoder, VirtualDub is an editor.

    I love to complicate things, but you clearly are much worse than I
    Quote Quote  
  8. Sorry but my English is too limited - are you able to explain difference between 'encoder' and 'real encoder'?
    Quote Quote  
  9. I mean that ffdshow is used by an application because it is visibile as codec, but instead of use his internal mjpeg codec it should remand mjpeg encoding to virtualdub or avisynth. So ffdshow is a "dummy", the "real" encorder used by ffdshow is virtualdub or avisynth. Or I wonder if exist a way to have a "fake" VFW/DirecShow codec pointed by an application so that it remand to virtualdub or avisynth for the mjpeg encoding

    If I don't mistake does exist some "dummy codec" that do the inverse operation: from a .avs create a "fake" .avi for reading. But in my case I need to point a VFW codec to encode a "fake" avi that have to be encode from virtualdub, or avisynth
    Last edited by marcorocchini; 30th Oct 2016 at 06:37.
    Quote Quote  
  10. Originally Posted by marcorocchini View Post
    thanks but I need the inverse operation: my mle cannot see virtualdub when export. But it see ffdshow because have a vfw codec, so I wonder if I can point ffdshow as encoder, but setting it up so that it use virtualdub to make the real encoding
    I think what you're looking for is a way to frame serve from VirtualDub to your NLE -- but your NLE doesn't support VirtualDub's frameserver. You might be able to work around this by using AVFS and a simple AviSynth script. AVFS makes the output of AviSynth look like an AVI file. Your NLE will think it's opening an AVI file, not an AviSynth script.

    So you would set up VirtualDub and start its frame server. Use an AviSynth script that opens the frameserver file, AviSource("filename.vdr"). Then use AVSF to make that AviSynth script look like an AVI file. Then open that AVI file with your NLE. The NLE will see the video as uncompressed RGB and PCM audio.
    Quote Quote  
  11. sorry Jagabo I don't need to read from an avisynth script. Actually I jet do this with the avfs system and the catrazor NLE can correctly use a video file (.mxf .mp4 etcc..) because is already frameserved by the avfs system (and work very well, also if the output is alwais recognized ad "progressive" even if interlace content) through the Uncompresse YUY2 internal reader of the razor

    Now I would like export from timeline, possibly using - for example - virtualdub as encoder. I cannot use the internal mjpeg codec of ffdshow because the output of ffdshow is not recognize from the NLE (I don't know exactly why) so I try to use ffdshow as "bridge" between SpeedRazor and the Virtualdub (or avisynth)

    I don't have to what do - for example - the VFAPI reader : it's used to frameserve the NLE. In my case I would like use a "fake code" in VFW (or DS) to encode using - for example - virtualdub
    Quote Quote  
  12. I cannot use ffdshow maybe because it do a mjpeg encoding in 4:2:0

    please can anyone tell me if there is a way to encode in MJPEG 4:2:2 using the internal encoder of ffdshow?
    Quote Quote  
  13. ffdshow, both VFW and DS, supports 4:2:2 chroma. Just set it to YUY2 or UYVY. Or use PicVideo MJPEG -- it supports 4:2:2 in the advanced options.
    Last edited by jagabo; 30th Oct 2016 at 09:09.
    Quote Quote  
  14. I have open a file in virtualdub and encode with ffshow using mjpeg codec but mediainfo say that the output is 4:2:0. Have I to configure ffshow in a particular way?

    I need to use specifically ffdshow - if possible - because I need to set it for deinterlace the image
    Last edited by marcorocchini; 30th Oct 2016 at 09:41.
    Quote Quote  
  15. Set ffdshow to output only YUY2 or UYVY, whichever your NLE supports. It doesn't matter what MediaInfo says.

    Image
    [Attachment 39173 - Click to enlarge]
    Quote Quote  
  16. but this is the output of the ffdshow decoder. I need only encode using ffdshow, and this should be 4:2:2. The NLE open .mjpeg files using his internal decompressor so the FFDSHOW decompressor settings does not affect nothing in my case. I wonder if is the there a way to encoding mjpeg files in 4:2:2 using ffdshow but seems to me this is not possible with ffdshow. I have set the decoder to YUY2 output... but mediainfo show that the file output is alwais 4:2:0. In every case my NLE don't read this mjpeg .avi files.

    At the best of my knowledge ffdshow seems keep don't encode in 4:2:2
    Quote Quote  
  17. I can't believe you can't figure this out for yourself. Feed ffdshow YUY2 and force it to encode YUY2.

    Image
    [Attachment 39174 - Click to enlarge]
    Quote Quote  
  18. I already have try this, but it persist don't encode in 4:2:2. Mediainfo says that the encode .avi mjpeg file is 4:2:0

    The NLE persist don't read 4:2:0 output file even with this flas that force ... input colorspace

    yourself can also check with mediainfo that the encode output is 4:2:0, not 4:2:2

    rather is question to set the output but there is no option about the colorspace

    FFDshow don't encode in 4:2:2
    Quote Quote  
  19. Like I said before, it doesn't matter what MediaInfo says. If you force ffdshow to encode 4:2:2 and force it to output only 4:2:2 that is what you will get. Open one of your 4:2:2 files with AviSource() and view Info(). You'll see it's 4:2:2.

    Image
    [Attachment 39175 - Click to enlarge]


    Internally, ffdshow may continue to use 4:2:0 chroma but it will output only 4:2:2. It's much more likely your NLE simply doesn't like the fourcc.
    Last edited by jagabo; 30th Oct 2016 at 11:27.
    Quote Quote  
  20. @jagabo - if you decode with avisource + ffdshow using those settings, then it will be upsampled to 4:2:2 because of "forced" output for the decoder. Or perhaps your default VFW mjpg decoder is upsampling to 4:2:2

    If you check with a 3rd party decoder, eg. ffmpeg or ffvideosource, or l-smash it will be 4:2:0
    Quote Quote  
  21. Originally Posted by poisondeathray View Post
    @jagabo - if you decode with avisource + ffdshow using those settings, then it will be upsampled to 4:2:2 because of "forced" output for the decoder. Or perhaps your default VFW mjpg decoder is upsampling to 4:2:2

    If you check with a 3rd party decoder, eg. ffmpeg or ffvideosource, or l-smash it will be 4:2:0
    because the real colorspace of the output from ffdshow is 4:2:0

    the mjpeg encoder output is 4:2:0, or at leat this is seems
    Quote Quote  
  22. Dinosaur Supervisor KarMa's Avatar
    Join Date
    Jul 2015
    Location
    US
    Search Comp PM
    Originally Posted by jagabo View Post

    I think what you're looking for is a way to frame serve from VirtualDub to your NLE -- but your NLE doesn't support VirtualDub's frameserver. You might be able to work around this by using AVFS and a simple AviSynth script. AVFS makes the output of AviSynth look like an AVI file. Your NLE will think it's opening an AVI file, not an AviSynth script.
    Thanks for bring up the AVFS, very useful. Never seen it.
    Quote Quote  
  23. OK, I verified that ffmpeg encodes MJPEG 4:2:0 internally -- at least symptomatically, 4:2:2 input comes out with colors of every pair of lines blurred together. But since you can force the decoder to output 4:2:2 that's what the editor will get when it opens the file with ffdshow. If it uses it's own MJPEG decoder then there will be a problem.

    MediaInfo does show a PicVideo 4:2:2 MJPEG encoded video to have 4:2:2 chroma subsampling. It must be looking into the codec's private data to determine that since the AVI headers don't include chroma subsampling information.
    Last edited by jagabo; 30th Oct 2016 at 16:33.
    Quote Quote  
  24. I would not trust blindly in mediainfo accuracy - do some tests 4:2:0 vs 4:2:2 (pattern to expose chroma vertical downsampling http://forum.doom9.org/showthread.php?t=167428 ) to verify real ffdshow capabilities.
    Personally I would install an older ffdshow where MPEG-2 (or x264Vfw IMHO better) Intra is supported and will use this as your main workflow codec instead MJPEG - there is few benefits from this (higher quality and interlace properly supported at syntax level) - MJPEG was never standard codec and from vendor to vendor they may be present some differences.

    Last ffdshow version supporting MPEG-2 encoder check this thread: https://forum.videohelp.com/threads/357004-Free-MPEG-2-Video-Encoder
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!