Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. [Closed] sorting a .srt file for vlc player

[Closed] sorting a .srt file for vlc player

Scheduled Pinned Locked Moved India
1 Posts 1 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ajayzizou
    wrote on 8 Mar 2012, 06:13 last edited by
    #1

    I've created a .srt file using
    QTextStream out(AjayFileD);
    out<<"\n"<<strc<<",000"<<"-->"<<strc<<",999"<<"\n";
    and const char *strc has the pause time.If i pause at 1 min 42 seconds,the first line is written to a .srt and at 16 min 59 seconds,the second line is written to a .srt file
    00:01:42,000-->00:01:42,999
    00:16:59,000-->00:16:59,999

    now if i go back and pause at 10 minutes,this line is written
    00:10:00,000-->00:10:00,999

    and the entire file looks like this
    00:01:42,000-->00:01:42,999
    00:16:59,000-->00:16:59,999
    00:10:00,000-->00:10:00,999

    but i want it to look like this
    00:01:42,000-->00:01:42,999
    00:10:00,000-->00:10:00,999
    00:16:59,000-->00:16:59,999

    i want all the 'pause time' to be sorted in ascending order in the .srt file.
    however,I'm not able to sort them in ascending order,please suggest some method to sort contents of .srt file in qt.

    EDIT: Please, don't double post your questions. They can be moved, if they are located in the wrong forum. As this one is a more specific forum, then "the other post,":http://qt-project.org/forums/viewthread/15197/ I close this topic. Gerolf

    1 Reply Last reply
    0

    1/1

    8 Mar 2012, 06:13

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved