VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    Hi everyone,

    I'm working on wheezy x64 and since few revision of mencoder SVN I can't no longer decode mkv or mp4 files with avc codec.
    Here is my error:


    Code:
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    
    
    Exiting...
    Few month ago I had no problem. Now I have to install mencoder using apt-get and use it (version 1.1).


    I'd like to know what is the issue. I say again, few month ago SVN worked normaly.


    Thx in advance for your patience and explanations!


    ps: I tried to append spp, in front of my vf parameter (before scale) and this appears:


    Code:
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    [PP] Using external postprocessing filter, max q = 6.
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    [PP] Using external postprocessing filter, max q = 6.
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    
    
    Exiting...
    Last edited by HelpVid; 27th Sep 2013 at 10:46. Reason: add fixed to title
    Quote Quote  
  2. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    The command-line you used is missing

    BTW, I am no Mencoder habitué, and this is the first time I read the expression "XVMC-accelerated MPEG-2"
    Quote Quote  
  3. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    Of course, here it is:

    Code:
    mencoder -nosound -noodml -ass -sub gf.ass -vf scale=720:384 -sws 9 -ovc xvid -xvidencopts bitrate=1737:min_iquant=1:min_pquant=1:min_bquant=1:chroma_me:chroma_opt:pass=1 Input.mkv -o /dev/null && mencoder -nosound -noodml -ass -sub gf.ass -vf scale=720:384 -sws 9 -ovc xvid -xvidencopts bitrate=1737:min_iquant=1:min_pquant=1:min_bquant=1:chroma_me:chroma_opt:pass=2 Input.mkv -o Output_nosound.avi

    And like I said I tried to add spp filter:


    Code:
    mencoder -nosound -noodml -ass -sub gf.ass -vf spp,scale=720:384 -sws 9 -ovc xvid -xvidencopts bitrate=1737:min_iquant=1:min_pquant=1:min_bquant=1:chroma_me:chroma_opt:pass=1 Input.mkv -o /dev/null && mencoder -nosound -noodml -ass -sub gf.ass -vf spp,scale=720:384 -sws 9 -ovc xvid -xvidencopts bitrate=1737:min_iquant=1:min_pquant=1:min_bquant=1:chroma_me:chroma_opt:pass=2 Input.mkv -o Output_nosound.avi



    Originally Posted by El Heggunte said:
    BTW, I am no Mencoder habitué, and this is the first time I read the expression "XVMC-accelerated MPEG-2"

    Yeah it was the first time for me too.


    The command-line is good otherwise it would not work with Mencoder 1.1 from apt-get...
    Quote Quote  
  4. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Hmmm, I've Googled around for a while, and from what I could understand,
    it seems there is a bug in Mplayer/Mencoder, regarding VAAPI/VDPAU

    So, perhaps (and this is a huge perhaps), compiling Mencoder with the option "--disable-vdpau" or/and "--disable-xvmc" will fix the issue.
    Also, I've just found that, different from Mplayer, Mencoder doesn't let the user choose the decoders

    P.S.: as a workaround, you might decode the video with Mplayer, and pipe its output to Mencoder...
    Last edited by El Heggunte; 27th Sep 2013 at 10:01. Reason: add P.S.
    Quote Quote  
  5. as a workaround, you might decode the video with Mplayer, and pipe its output to Mencoder...
    and how do you connect "-vo vdpau" (which is required for VDPAU) to mencoder as input?
    (afaik neither ffmpeg nor mencoder support gpu accelerated decoding)
    Quote Quote  
  6. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Selur is right, I need to drink more
    Quote Quote  
  7. @HelpVid:
    replace:
    Code:
    -vf scale=720:384
    with:
    Code:
    -vf scale,format=i420,ass,scale=720:384,scale,format=i420
    or
    Code:
    -vf scale,format=i420,scale=720:384,ass,scale,format=i420
    depending on if your input should be first resized and then subtitles should be embedded or the other way around.

    If that doesn't help post a sample of the clip you want to convert.
    Quote Quote  
  8. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    I also Googled during days! without finding anything.

    Because of you I fixed my issue. Thx to you!


    The good option to use is "--disable-vdpau". Now the encoding works as usualy.


    You were a great help!




    ps: Nothing to do with that but, usualy by default the ass fontconfig in mencoder is "DejaVuSans" and now it's "NimbusSansL".
    Code:
    [ass] fontconfig: Selected font is not the requested one: 'Nimbus Sans L' != 'Arial'
    I know I can change that by adding the "-ass-force-style FontName=DejaVuSans" option but the thing is I also use ffmpeg and I don't know (I also Googled after that during days) how to "select" or "change" this font to "DejaVuSans".
    If by any chance you also know... Thx



    ps2: sorry Selur, I didn't see your post. I fixed my problem but do you tell me what is the "format=i420" option?
    Quote Quote  
  9. i420 is the the default color sampling format MPEG-4 ASP video is normally coded in
    btw. afaik. ffmpeg doesn't have anything similar to 'ass-force-style' since the ffmpeg folks think that the styling should be done inside the ass file and not forced from the outside.
    Last edited by Selur; 27th Sep 2013 at 11:09.
    Quote Quote  
  10. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    Thx. So we have better result using format=i420?
    Quote Quote  
  11. Setting i420 manually just makes sure that mencoder does the conversion (and where), normally mencoder should enforce i420 anyways. (depending on the filter combinations and the input it's just a more secure way to make sure no color sampling mishaps happen)
    Quote Quote  
  12. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    OK I get it.

    When you said "ffmpeg folks think that the styling should be done inside the ass file" I agree with that but when I get this (during ffmpeg encoding):
    Code:
    [Parsed_ass_0 @ 0x33611e0] fontconfig: Selected font is not the requested one: 'Nimbus Sans L' != 'Arial'
    [Parsed_ass_0 @ 0x33611e0] fontconfig: Selected font is not the requested one: 'Nimbus Sans L' != 'Arial'
    the rendering is different of the "DejaVuSans" one. Maybe there is a way to "link" the correct font (DejaVuSans) to ffmpeg or say to ffmpeg to use this font.


    Here is the comparison:

    Smaller:


    Bigger:



    Any ideas? Thx.
    Quote Quote  
  13. "Selected font is not the requested one" is normally unrelated to libass itself and happens if fontconfig does not find the font requested. (it then looks for 'compatible' fonts and in worst case uses some default font)
    -> make sure you have your fonts in a font folder which is monitored by fontconfig.
    Quote Quote  
  14. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    I put my font in /usr/share/fonts (I'm using debian by the way) and I'm afraid I don't know how to monitore the folder by fontconfig. You mean this path "/usr/share/fonts" must appears on fonts.conf?
    Quote Quote  
  15. normally one would use a local.conf, but a fonts.conf might also do the trick:
    http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
    -> modify your local/fonts.conf and in the next mencoder call fontconfigs scan routine should be triggered, then it should find the additional fonts and be able to use them.
    Quote Quote  
  16. Member
    Join Date
    Sep 2013
    Location
    Europe
    Search PM
    I came here to say to you I found your link here: https://forum.videohelp.com/threads/357493-FFmpeg-Font-Config-Error So thx, I'll take a look.
    Quote Quote  



Similar Threads

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