Output with delimiter

I have below query which is taking long time to run cos of huge data.So I want to run this in server to print the output to a temporary variable by seperating the columns using delimiter,so that i can export it later to excel.Can anyone pls help me with the script
select invoice_id,
invoice_num,
vendor_id,
invoice_amount,
source,
voucher_num
from ap_invoices_all

Hi,
You can use SET COLSEP , . You can spool the result in file and then later on use anywhere depend on your requirement.
SQL> SET COLSEP ,
SQL> SELECT employee_id,first_name,salary FROM EMP
  2  /
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        100,Steven              ,     24000
        101,Neena               ,     17000
        102,Lex                 ,     17000
        103,Alexander           ,      9000
        104,Bruce               ,      6000
        105,David               ,      4800
        106,Valli               ,      4800
        107,Diana               ,      4200
        108,Nancy               ,     12000
        109,Daniel              ,      9000
        110,John                ,      8200
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        111,Ismael              ,      7700
        112,Jose Manuel         ,      7800
        113,Luis                ,      6900
        114,Den                 ,     11000
        115,Alexander           ,      3100
        116,Shelli              ,      2900
        117,Sigal               ,      2800
        118,Guy                 ,      2600
        119,Karen               ,      2500
        120,Matthew             ,      8000
        121,Adam                ,      8200
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        122,Payam               ,      7900
        123,Shanta              ,      6500
        124,Kevin               ,      5800
        125,Julia               ,      3200
        126,Irene               ,      2700
        127,James               ,      2400
        128,Steven              ,      2200
        129,Laura               ,      3300
        130,Mozhe               ,      2800
        131,James               ,      2500
        132,TJ                  ,      2100
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        133,Jason               ,      3300
        134,Michael             ,      2900
        135,Ki                  ,      2400
        136,Hazel               ,      2200
        137,Renske              ,      3600
        138,Stephen             ,      3200
        139,John                ,      2700
        140,Joshua              ,      2500
        141,Trenna              ,      3500
        142,Curtis              ,      3100
        143,Randall             ,      2600
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        144,Peter               ,      2500
        145,John                ,     14000
        146,Karen               ,     13500
        147,Alberto             ,     12000
        148,Gerald              ,     11000
        149,Eleni               ,     10500
        150,Peter               ,     10000
        151,David               ,      9500
        152,Peter               ,      9000
        153,Christopher         ,      8000
        154,Nanette             ,      7500
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        155,Oliver              ,      7000
        156,Janette             ,     10000
        157,Patrick             ,      9500
        158,Allan               ,      9000
        159,Lindsey             ,      8000
        160,Louise              ,      7500
        161,Sarath              ,      7000
        162,Clara               ,     10500
        163,Danielle            ,      9500
        164,Mattea              ,      7200
        165,David               ,      6800
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        166,Sundar              ,      6400
        167,Amit                ,      6200
        168,Lisa                ,     11500
        169,Harrison            ,     10000
        170,Tayler              ,      9600
        171,William             ,      7400
        172,Elizabeth           ,      7300
        173,Sundita             ,      6100
        174,Ellen               ,     11000
        175,Alyssa              ,      8800
        176,Jonathon            ,      8600
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        177,Jack                ,      8400
        178,Kimberely           ,      7000
        179,Charles             ,      6200
        180,Winston             ,      3200
        181,Jean                ,      3100
        182,Martha              ,      2500
        183,Girard              ,      2800
        184,Nandita             ,      4200
        185,Alexis              ,      4100
        186,Julia               ,      3400
        187,Anthony             ,      3000
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        188,Kelly               ,      3800
        189,Jennifer            ,      3600
        190,Timothy             ,      2900
        191,Randall             ,      2500
        192,Sarah               ,      4000
        193,Britney             ,      3900
        194,Samuel              ,      3200
        195,Vance               ,      2800
        196,Alana               ,      3100
        197,Kevin               ,      3000
        198,Donald              ,      2600
EMPLOYEE_ID,FIRST_NAME          ,    SALARY
        199,Douglas             ,      2600
        200,Jennifer            ,      4400
        201,Michael             ,     13000
        202,Pat                 ,      6000
        203,Susan               ,      6500
        204,Hermann             ,     10000
        205,Shelley             ,     12000
        206,William             ,      8300
107 rows selected.
SQL>Cheers,

Similar Messages

  • Excel output (with graphics)

    Hello,
    I am using Oracle reports 10g 1.2.0 version.
    We need to generate oracle reports in Excel format ("real" Excel, not delimited text) with tabular data and
    also graphics.
    I used desformat=spreasheet. But is is giving only one worksheet.
    I've found the "Output to Excel with Oracle9i Reports"
    demo but the Excel template in the demo is very simple and doesn't have graphics.
    Then I've found the following:
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/excel_output/result/excel.jpg
    a) The above site has excel output with multiple worksheets.
    which is similar to what we need but I wasn't able to find related source (excel_emp.jsp).
    b) Using jsp if we can ahieve multiple worksheets with grapahics, please provide us examples.
    c) http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/excel/index.html --This site is not working to find the demo.
    Could you please help me in this?
    Thank you for any help.

    carla,
    the example you mentioned uses the JSP web source that is only available in oracle9i reports.
    in theory you can create any excel output. it is just a matter of creating the template and then adding the reports tags to populate it with data.
    you could then use reports' URL engine to produce files from this output.
    there are certainly ways to do it, but they are only available in oracle9i reports (9.0.2 and higher)
    regards,
    philipp

  • How to convert Oracle reports previewer output into delimited file.

    How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages.
    I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file.
    I observed that this option is not working for more than 400 pages.
    I am using Oracle reports 6i version.
    Plz suggest me to generate .TXT file from Report previewer.

    You can specify a delimiter (a character or string of characters) to separate the data (boilerplate or field objects) in your report output in either of the following ways:
    On the command line using the DELIMITER keyword.
    In the Delimited Output dialog box or DelimitedData Output dialog box (displayed with File > Generate to File > Delimited or File > Generate to File > DelimitedData) in Reports Builder.
    for further information goto this link
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_concepts2.htm#sthref760

  • Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format

    Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Digital Output With Timer (Simulation)

    Hello everyone, I just learned how to make LabVIEW program a week ago. I try to make a simulation of Digital Output by LabVIEW (my attachment). In this simulation I have a slider as an input (0-10 V), two numeric control (upper limit and bottom limit), a waveform chart that plot those 3 value, and two boolean LED (P0.0 and P0.1) as an indicator. In this simulation you can fill any number (between 0-10) in the numeric control as a limit for your slider input. If the input from a slider exceed those upper and bottom limit then the boolean LED will turn on, P0.0 if exceed upper limit and P0.1 if exceed bottom limit. The problem is I don't know how to make timer for those boolean LED. As example:
    1) Make an input from slider,
    2) If input (1) exceed the upper limit,P0.0 will turn on for 5 second,then turn of for 10 second,
    3) If in that 10 second you change the input back to normal (between upper and bottom limit) then P0.0 will stay turn of until the input from slider exceed the upper limit again,
    4)If in that 10 second you didn't change the input (stay exceed the upper limit) then P0.0 will repeat the process (2) until you the input from slider back to normal.
    (Same process for input that exceed the bottom limit).
    Can you help me to make this timer? Thank You (I'm sorry I made a double post):newbie
    Regards
    Juventom
    Attachments:
    Digital Output With Timer.vi ‏16 KB

    Hello Juventom,
    As I understand it you want to be continuously checking the value of the sliding bar and comparing that to the upper and lower limit controls whilest also chaning the LED booleans to true for 5 seconds then false for 10 seconds if the sliding bar value is outside of the limits.
    To do this you would probably be best using a parallel loop design, where you have 3 while loops in place of the one you have currently. Each one of these while loops would be responsible for a part of your program (e.g. the top one would display your values on the graph and the second one who check the sliding bar value against the upper limit and then turn on the LED, etc)
    I've found this tutorial about multiple loop programs and I think you should look at the section entitled "Parallel Execution"
    http://zone.ni.com/devzone/cda/tut/p/id/3749
    This way you can use normal delay VIs but when they run they only pause that loop rather than the whole program.
    Please let me know how you get on with this, and ask me if you need further help.
    James W
    Controls Systems Engineer
    STFC

  • How to download alv grid output(with field catalog) into excel file format

    Hi all,
    How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
    Please help.
    Regards,
    Satya.

    Hi,
    On list where alv is displayed, select export icon( green color -> ),select spread sheet.
    This will display records in Excel sheet.

  • PDF Output with javadoc

    Somebody once asked how to create PDF output with javadoc, so here's some work in progress:
    I am currently creating a PDF doclet which creates directly PDF output from javadoc. It's still in alpha stage, because it does not yet create an index or navigation frame (which is mandatory for the PDF to be useful), and most HTML tags are not yet interpreted. But that's gonna improve over the next few weeks.
    http://sourceforge.net/projects/pdfdoclet
    Bye,
    Marcel

    Hai Marcel,
    How to run this pdfdoclet?
    I tried like:
    javadoc -doclet com.tarsec.javadoc.pdfdoclet.PDFDoclet -docletpath d:\For_PDF_Doc\itext-0.92.jar;d:\For_PDF_Doc\pdfdoclet.jar *.java
    And the result is:
    Loading source file Test.java...
    Constructing Javadoc information...
    pdfdoclet: >> OPTION 0: -doclet
    pdfdoclet: >> OPTION 1: -docletpath
    pdfdoclet: Content completed, create index
    pdfdoclet: *** PDF DOCUMENT api.pdf COMPLETED ***
    Nothing is there in api.pdf!
    anu

  • How to replace a "notfound" output with a null value?

    hi,
    I'm just getting a output of "Rows Notfound" for a script..
    instead of this , i just need to show the output with a record as null value or some value..
    do we have any option to use this in oracle..

    Apart from capturing with an exception in PL/SQL code, if you're wanting something in a script as pure SQL, you'd have to generate an additional row and only select that where no data is found e.g...
    SQL> ed
    Wrote file afiedt.buf
      1  select ename from emp where ename = 'FRED'
      2  union all
      3* select 'No Data' from dual where not exists (select * from emp where ename = 'FRED')
    SQL> /
    ENAME
    No Data
    SQL>Of course this does effectively double-up on the queries being executed, so if you're dealing with a heavily complex query, it may be best just just have the regular exception come out, but then this will also depend on your actual requirements and why you want to do this in the first place.

  • Formatted HTML output with Spry regions - is it possible?

    I have recently begun using the XML export extension in
    conjunction with an Access database to output dynamic data into a
    page with a Spry master/detail setup. So far, my simple example is
    going great, but I've run into a snag that I need some help with.
    To explain what I'm doing - it's a simple article page with
    the list of articles on the left with the title and date and the
    article title and full contents on the right hand side. So far it's
    all working very well, updating in real time when I click an
    article title on the left. The problem is the output with this one
    field which stores not only text, but also HTML formatting that is
    generated by a wysiwyg editor used on the article creation side of
    this little app. This HTML formatted content is the article body
    and is stored in a field named the same - "body". With traditional
    ASP, the HTML formatting displays as expected and all is well, but
    with Spry, it doesn't output formatted HTML, but instead shows the
    content and HTML code together as text. How can I get this one
    field ("body") to be output so all the HTML formatting is shown?
    This is my simple page example. Click through and you'll see
    what I mean.
    http://www.shoestodyefor.com/ajax.asp
    Here's the section of code in question regarding the output
    on that right hand panel where the body is displayed for each
    article:
    <div spry:detailregion="ds1">
    {title}<br />
    {entryDate}<br />
    <br />
    {body}
    /div>
    Is it possible to have that {body} section shown so the
    dynamically created HTML code from the wysiwyg editor is displayed
    correctly?

    Steve Skinner wrote:
    > Is it possible to have that {body} section shown so the
    dynamically created
    > HTML code from the wysiwyg editor is displayed
    correctly?
    The version of Spry that ships with Dreamweaver CS3 (Spry
    1.4) doesn't
    support the type of output created by the XML Export
    extension.
    This issue has been corrected in Spry 1.5, but no plans have
    been made
    public for integrating Spry 1.5 into Dreamweaver CS3. You
    would need to
    download Spry 1.5 from
    http://labs.adobe.com/technologies/spry/.
    Details
    of how to hand-code the fix for output from XML Export are
    here:
    http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Regarding ALV outputs ( with layout variants)

    Hi,
    I have a problem where in an ALV report when it is executed with a variant (there is one layout parameter in the screen which is also filled. This layout is set with a filter),
    displays the output. But the displayed output doesn't filter the output as per the required criteria set in the layout filter.
    When I execute the report with the same variant but now if I select the layout by pressing F4 on the layout field and select the same layout as earlier (which is having the filter criteria), now it displays the output as per the required criteria set in the filter.
    I don't understand why if I execute the report with a variant with the layout value also filled, it is not able to give the required output as per the filter criteria set for the layout.
    When the report is executed with the same variant but the layout value selected from F4, it dispalys the correct output with the filter criteria set for the layout.
    In general, I mean why the program is not able to load the layout with filter when it is called from a variant?
    Regards,
    Rajesh

    It depends on your Layout, How you saved it .
    And one more question are you passing the layout parameter and Filter parameter to the Function module

  • Process the output with dispatch time 3

    Dear experts!
    Thank you for your attention!
    I ues output type BA00 to print order confirmation and set the dispatch time 3
    after i save the order, where can i process the output?
    as in delivery output, we can use VL71 to process outbound delivery.
    which t-code could i use to process the order output with dispatch time 3  ???
    Best regard!
    Tangdark

    is there anyone can help???
    please~~~

  • PO output with XML and PDF format

    Hi All,
    I need PO output with XML and PDF format. when I give print it shld go to vendor with xml and pdf format through mail. please kindly guide me on this .
    Thanks in advance
    JK

    hi,
    try this code to get in pdf form
    REPORT zsuresh_test.
    Variable declarations
    DATA:
    w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
    w_fmodule TYPE rs38l_fnam,
    w_cparam TYPE ssfctrlop,
    w_outoptions TYPE ssfcompop,
    W_bin_filesize TYPE i, " Binary File Size
    w_FILE_NAME type string,
    w_File_path type string,
    w_FULL_PATH type string.
    Internal tables declaration
    Internal table to hold the OTF data
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    Internal table to hold OTF data recd from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    This function module call is used to retrieve the name of the Function
    module generated when the SMARTFORM is activated
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Calling the SMARTFORM using the function module retrieved above
    GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    format of the output
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
                                                        " for print preview
    w_cparam-getotf = 'X'.
    Printer name to be used is provided in the export parameter
    OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
    CALL FUNCTION w_fmodule
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = w_cparam
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = w_outoptions
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    t_otf[] = t_otf_from_fm-otfdata[].
    Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
    WINDOW_TITLE =
    DEFAULT_EXTENSION =
    DEFAULT_FILE_NAME =
    FILE_FILTER =
    INITIAL_DIRECTORY =
    WITH_ENCODING =
    PROMPT_ON_OVERWRITE = 'X'
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    USER_ACTION =
    FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    others = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = T_pdf_tab
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    reward points if useful,
    siri

  • Can we Compare PDF Output with CSV format

    Team,
    Can we Compare PDF Output with CSV format.
    In Excel I need to two text boxes asking us to browse the files and compare the files PDF & CSV format.
    Please suggest me if we have solution for this.
    Thanks!
    Kiran

    Hi
    I'm afraid the Excel Application does not support this function currently, I am suggesting you to take advantage of a third party component to achieve this goal.
    Thanks for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Billing output with Header & Item data fields

    Hello Friends,
    I liked to create new access for Billing output with Sales Orgn/Bill to party(Billing Header data) & Material number (Item data).
    I tried but system not recognizing the field Material number from billing item level.
    Please guide me how to add Material number for item level with other fields form Header for creating new Output access.
    kindly do the needful.
    regards,
    Nitin M.Pawar

    Dear Nithin,
    In the output determination for billing documents, click on maintain condition tables,
    select 'Field catalog: Messages for billing documents'
    new entries and enter MATNR.
    However after this you will have to get the help of ABAP i suppose (for making this new field accessible for creating condition table).
    Thanks & Regards,
    Hegal K Charles

  • [SOLVED] Faulty video output with mpv/mplayer, vaapi

    Hi,
    I have a HD6870 with the proprietary catalyst drivers installed, and the packages needed to enable vaapi. The problem I have is that every video application like mpv, mplayer or whatever refuses to give me correct video output with vaapi. mpv for example gives me these errors, depending on filetype:
    avi:
    (+) Video --vid=1 (h264)
    (+) Audio --aid=1 (mp3)
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    Using hardware decoding.
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    AO: [alsa] 48000Hz stereo 2ch s16
    [vaapi] Decoder profile 'VAProfileH264Main' not available.
    [ffmpeg/video] h264: decode_slice_header error
    [ffmpeg/video] h264: no frame!
    Error while decoding frame!
    Error using hardware decoding, falling back to software decoding.
    mp4:
    (+) Video --vid=1 (*) (h264)
    (+) Audio --aid=1 --alang=eng (*) (aac)
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    Using hardware decoding.
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    AO: [alsa] 48000Hz stereo 2ch float
    xvba_video: XVBA_CreateDecode(): status 2
    [vaapi] vaCreateContext(): unknown libva error
    [ffmpeg/video] h264: decode_slice_header error
    [ffmpeg/video] h264: no frame!
    Error while decoding frame!
    Error using hardware decoding, falling back to software decoding.
    wmv:
    (+) Video --vid=1 (wmv3)
    (+) Audio --aid=1 --alang=eng (wmav2)
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    Using hardware decoding.
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    xvba_video: XVBA_CreateDecode(): status 2
    [vaapi] vaCreateContext(): unknown libva error
    xvba_video: XVBA_CreateDecode(): status 2
    [vaapi] vaCreateContext(): unknown libva error
    [ffmpeg/video] wmv3: decoding to AV_PIX_FMT_NONE is not supported.
    Could not open codec.
    Error initializing hardware decoding, falling back to software decoding.
    mpv doesn't crash, it just falls back to software decoding and gives me a grey screen when it's not fullscreen, and when it's fullscreen it tears a lot and flashes random grey stripes everywhere - sound still works fine. Any ideas on what can be at fault here? The only video output that gives me an OK image without tearing or anything else is x11, but it's really slow.
    vainfo gives me this:
    libva info: VA-API version 0.37.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'xvba'
    libva info: Trying to open /usr/lib/dri//xvba_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 0.37 (libva 1.5.1)
    vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
    vainfo: Supported profile and entrypoints
    VAProfileH264High : VAEntrypointVLD
    VAProfileVC1Advanced : VAEntrypointVLD
    Last edited by Median (2015-06-07 10:01:38)

    Gusar wrote:
    Uninstall libva-xvba-driver and do
    export LIBVA_DRIVER_NAME=fglrx
    Now try vainfo again. Instead of "Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0" it should say "AMD MMD 1.0" or something like that.
    Thanks, now VA-API at least gives me an output - but the video just flashes in fullscreen. I think another thing to notice here is that the video only plays correctly (gives me an output), if I play it on monitor 1 (I use three monitors) - but I can't get rid of the screen flashing.
    EDIT: Fullscreen only flashes when I use mpv, with smplayer (+mpv) it works ok - but it lags from time to time. mplayer-vaapi won't give me a smooth playback either with -vo and -va as vaapi, and the screen also flashes when I'm using it.
    Any idea on what's wrong? Is it my use of three monitors? This is really, really annoying.
    Last edited by Median (2015-06-06 18:51:40)

Maybe you are looking for

  • Follow up to HD crash - Install disk can't see new Hard Drive !!!

    I may have a bigger problem on my hands. I rebooted with my original install disk of OS X and when it gets to the "choose location" window, it does not see the new hard drive......???? I'm thinking about re-checking connections and/or possibly pull t

  • When infosource is Mandatory in BI 7.0 ?

    Hi Experts, In Bi 7.0 infosource is optional, at what instances infosource is Mandatory in BI 7.0 ? I will ASSIGN POINTS FOR YOUR VALUABLE ANSWERS.........

  • Photoshop CS5 is a failure / inability to search forum for solutions

    Well, since the search funtion doesn't work for the forums, I'll just have to post my problems and see if anyone from Adobe is listening, haha. Photoshop CS5 creates repeating 1 to 2 pixel thick lines through images in pdfs when I rip them open. You'

  • Video out put

    Ok you final cut pro PRO's I have a 30 min project I have done, burn it to DVD looks great, made a copy to mini DV looks great also. Now I need to make a copy to a broadcast BETA tape. The problem when I make the copy I have a small black outline all

  • I have installed trial but I cannot get it to work

    I have installed trial but I cannot get it to work. Help