User Tools

Site Tools


tech:mp3_moving

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech:mp3_moving [2022/11/02 15:31] – Add next section link katsimbristech:mp3_moving [2025/11/22 16:52] (current) – duplicate text removal katsimbris
Line 21: Line 21:
 That code will put the mp3 files back in the same folder, and that's really it. That code will put the mp3 files back in the same folder, and that's really it.
  
 +==== Splitting files (MP3s here) ====
 +Split code - The command "-t hh:mm:ss is only for the amount of time you need! NOT an end time.
 +<code> ffmpeg -i input.mp3 -vcodec copy -acodec copy -ss 00:01:37 -t 00:15:27 output1.mp3 </code>
 +
 +==== Splitting files to TimeStamp (MP3s here) ====
 +<code>ffmpeg -ss 00:01:00 -to 00:03:30 -i input.mp4 -c copy output.mp4</code>
 +
 +==== Merging files (MP3s here) ====
 +<code> ffmpeg -i "concat:audio1.mp3|audio2.mp3|audio3.mp3" -c copy merged_audio.mp3 </code>
 +OR\\
 +1) Create a list file in the same directory as audio files.\\
 +
 +<code>file 'audio1.mp3'
 +file 'audio2.mp3'
 +file 'audio3.mp3'</code>
 +
 +2) Save the file as file_list.txt\\
 +3) Run the following command <code> ffmpeg -f concat -safe 0 -i file_list.txt -c copy merged_audio.mp3 </code>
 +
 +==== Extracting Audio from Video ====
 +<code>ffmpeg -i input_video.mp4 -q:a 0 -map a output_audio.mp3</code>
tech/mp3_moving.1667403119.txt.gz · Last modified: by katsimbris