Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to write a program to rename mp4 files to match the name of srt files?
    primarykey
    data
    text
    <p>So I have downloaded the mp4 and srt files for "Introduction to computer networks" course from Coursera. But there is slight discrepancy between the names of mp4 and srt files.</p> <p>The file name samples are following:</p> <pre class="lang-none prettyprint-override"><code>1 - 1 - 1-1 Goals and Motivation (1253).mp4 1 - 1 - 1-1 Goals and Motivation (12_53).srt 1 - 2 - 1-2 Uses of Networks (1316).mp4 1 - 2 - 1-2 Uses of Networks (13_16).srt 1 - 3 - 1-3 Network Components (1330).mp4 1 - 3 - 1-3 Network Components (13_30).srt 1 - 4 - 1-4 Sockets (1407).mp4 1 - 4 - 1-4 Sockets (14_07).srt 1 - 5 - 1-5 Traceroute (0736).mp4 1 - 5 - 1-5 Traceroute (07_36).srt 1 - 6 - 1-6 Protocol Layers (2225).mp4 1 - 6 - 1-6 Protocol Layers (22_25).srt 1 - 7 - 1-7 Reference Models (1409).mp4 1 - 7 - 1-7 Reference Models (14_09).srt 1 - 8 - 1-8 Internet History (1239).mp4 1 - 8 - 1-8 Internet History (12_39).srt 1 - 9 - 1-9 Lecture Outline (0407).mp4 1 - 9 - 1-9 Lecture Outline (04_07).srt 2 - 1 - 2-1 Physical Layer Overview (09_27).mp4 2 - 1 - 2-1 Physical Layer Overview (09_27).srt 2 - 2 - 2-2 Media (856).mp4 2 - 2 - 2-2 Media (8_56).srt 2 - 3 - 2-3 Signals (1758).mp4 2 - 3 - 2-3 Signals (17_58).srt 2 - 4 - 2-4 Modulation (1100).mp4 2 - 4 - 2-4 Modulation (11_00).srt 2 - 5 - 2-5 Limits (1243).mp4 2 - 5 - 2-5 Limits (12_43).srt 2 - 6 - 2-6 Link Layer Overview (0414).mp4 2 - 6 - 2-6 Link Layer Overview (04_14).srt 2 - 7 - 2-7 Framing (1126).mp4 2 - 7 - 2-7 Framing (11_26).srt 2 - 8 - 2-8 Error Overview (1745).mp4 2 - 8 - 2-8 Error Overview (17_45).srt 2 - 9 - 2-9 Error Detection (2317).mp4 2 - 9 - 2-9 Error Detection (23_17).srt 2 - 10 - 2-10 Error Correction (1928).mp4 2 - 10 - 2-10 Error Correction (19_28).srt </code></pre> <p>I want to <strong>rename the mp4 files</strong> to match srt files so that vlc can automatically load the subtitles when I play the videos. What someone discuss be algorithms to do this? You can also provide solution code in any language as I am familiar with many programming languages. But python and c++ are preferable.</p> <p><strong>Edit</strong>: Thanks to everyone who replied. I know it is easier to rename the srt files than the other way around. But I think it will be more interesting to rename the mp4 files. Any suggestions?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload