Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7193261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:08:01+00:00 2026-05-28T20:08:01+00:00

i just did a little work for ffmpeg and it works fine … it

  • 0

i just did a little work for ffmpeg and it works fine …

it reads a file where are stored profiles in this way:

name_myprofile mp4 ffmpeg options

now i would like use winff functions that is an xml file

http://winff.googlecode.com/files/presets-libavcodec53-v3.xml.gz

but i really i have no idea how to convert

<H105FS>
<label>RB iRiver H10 5/6GB Fullscreen</label>
<params>-acodec libmp3lame -ab 128k -ar 44100 -vcodec mpeg2video -vf scale=128:96 -b 224k -strict -1</params>
<extension>mpg</extension>
<category>Rockbox</category>

in this

RB_iRiver_H10_5/6GB_Fullscreen mpg -acodec libmp3lame -ab 128k -ar 44100 -vcodec mpeg2video -vf scale=128:96 -b 224k -strict -1

thanks!!

maybe with awk … mah .. i am working on it but :S

edit i was be able to print some stuff using

awk '/params/{gsub(/<params>/,"");gsub(/<\/params>/,"");gsub(/    /,"") ;print }' presets-libavcodec51-v5.xml >>params


awk '/label/{gsub(/<label>/,"");gsub(/<\/label>/,"");gsub(/    /,"");gsub(/ /,"_") ;print }' presets-libavcodec51-v5.xml >>presetlabel



awk '/extension/{gsub(/<extension>/,"");gsub(/<\/extension>/,"");gsub(/    /,"") ;print }' presets-libavcodec51-v5.xml

😀 but i need to print it better :S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:08:02+00:00Added an answer on May 28, 2026 at 8:08 pm
     awk 'BEGIN{j=1;i=1;h=1} /params/{gsub(/<params>/,"");gsub(/<\/params>/,"");gsub(/    /,"") ;ar[j] = $0 ; j++} 
    /label/{gsub(/<label>/,"");gsub(/<\/label>/,"");gsub(/    /,"");gsub(/ /,"_") ; br[i] = $1; i++ } 
    /extension/{gsub(/<extension>/,"");gsub(/<\/extension>/,"");gsub(/    /,"") ;cr[h] = $1  ; h++ }END { for (j in ar) {print br[j]" "cr[j]" "ar[j]  } }' presets-libavcodec51-v5.xml  
    

    here it is 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is just one of those little things I did all the time in
I just did File -> New Project last night on a new project. Ah,
I just did a fresh install of Apache server 2.2. Everything works. When I
For a little practise fun project I did this: I added a grid of
I'm just starting with web frameworks and web development (I work only a little
I just did something dumb with my SVN repository, I accidentally imported a load
I just did an svn merge from a branch to a trunk in my
I just did a fresh installation of Visual Studio 2010 Ultimate and ReSharper 5.
I just did one of those auto updates of the Android SDK (API 15
I just did an update of my SDK and now eclipse is giving me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.