Re: cortar mp3 en varios pedasos
El vie, 05-12-2008 a las 09:22 -0500, Odair Augusto Trujillo escribió:
>
>
> El 5 de diciembre de 2008 8:48, Luis A. R. Paz <luis@azunet.minaz.cu>
> escribió:
> hola amigos como sde la consola de comandos o si existe un
> software en debian que me permita cortar un mp3 en varios
> pedasos ?
>
> o sea una cancion en varios pedacitos mp3
>
> saludos
>
>
> Desde la consola puedes hacer apt-cache search audio edit, ahí aparece
> el audacity por ejemplo.
>
>
> --
> "Al principio, el Hombre creó a Dios; y lo creó a su imagen y
> semejanza.
> Y el Hombre dio a Dios multitud de nombres, y el poder de que fuera el
> Señor de toda la tierra cuando al Hombre le conviniere."
Hola:
Yo tengo hecho un programa muy básico en kommander, que te importa el
archivo, lo pasa a .wav y después, lo puedes trozear a .ogg(de momento)
dándole el nombre y atributos que quieras.
La idea es que al pasarlo a .wav, através de mplayer puedes ir apuntando
el momento exacto en el que quieres cortar de una forma muy sencilla y
desde consola, con las flechas izqda. y drcha retrocesdes y avanzas y
puedes ajustarlo al segundo, ala vez que lo escuchas. Yo lo uso para
pasar a cds conciertos y programas de Radio3, dividiéndolos en
canciones.
Para hacerlo funcionar, necesitas:
Para pasar a .wav --> ffmpeg
Para pasar a .ogg --> oggenc --> si quieres pasarlo a mp3 deberás
modificar el script que te genera.
Si te parece interesante, ampliamos la info. Te lo adjunto.
S2.
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Form1</class>
<widget class="Dialog">
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1103</width>
<height>800</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
<widget class="ScriptObject">
<property name="name">
<cstring>qt_dead_widget_ScriptObject1</cstring>
</property>
<property name="geometry">
<rect>
<x>160</x>
<y>70</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@Konsole1.setAssociatedText("mplayer -dumpstream -dumpfile @FileSelector1.selection")
@Konsole1.execute</string>
</stringlist>
</property>
</widget>
<widget class="TabWidget">
<property name="name">
<cstring>TabWidget1</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>1080</width>
<height>780</height>
</rect>
</property>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>&To Wav...</string>
</attribute>
<widget class="ExecButton">
<property name="name">
<cstring>ExecButton1</cstring>
</property>
<property name="geometry">
<rect>
<x>11</x>
<y>43</y>
<width>149</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>To &Wav</string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label3</cstring>
</property>
<property name="geometry">
<rect>
<x>11</x>
<y>104</y>
<width>187</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Tamaño del archivo: </string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label4</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>780</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Archivo a codificar: </string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label5</cstring>
</property>
<property name="geometry">
<rect>
<x>11</x>
<y>157</y>
<width>270</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Tamaño del archivo en .wav: </string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label9</cstring>
</property>
<property name="geometry">
<rect>
<x>18</x>
<y>131</y>
<width>220</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="FileSelector">
<property name="name">
<cstring>FileSelector1</cstring>
</property>
<property name="geometry">
<rect>
<x>11</x>
<y>11</y>
<width>770</width>
<height>26</height>
</rect>
</property>
<property name="selectionFilter">
<string>*.ogg *.mp3 *.wav *.ts</string>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>ScriptObject4</cstring>
</property>
<property name="geometry">
<rect>
<x>166</x>
<y>43</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@Label3.setText(Tamaño del archivo: @exec( ls -lh @FileSelector1.text |awk -F" " '{print $5}'))
@Label4.setText(Archivo a codificar: @FileSelector1.text)
@Label9.setText(Codificando a WAV)
@exec( ffmpeg -i @FileSelector1.text @FileSelector1.text.wav)
@Label5.setText(Tamaño del archivo en .wav: @exec( ls -lha @FileSelector1.text.wav | awk -F" " '{print $5}'))
@Label9.setText(TERMINADO!!!)
@FileSelector1.setText(@FileSelector1.text.wav)</string>
</stringlist>
</property>
</widget>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>&Crear CD...</string>
</attribute>
<widget class="Label">
<property name="name">
<cstring>Label10</cstring>
</property>
<property name="geometry">
<rect>
<x>28</x>
<y>11</y>
<width>110</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Título del Album</string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label11</cstring>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>70</y>
<width>52</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Artista</string>
</property>
</widget>
<widget class="LineEdit">
<property name="name">
<cstring>Artista</cstring>
</property>
<property name="geometry">
<rect>
<x>58</x>
<y>91</y>
<width>340</width>
<height>24</height>
</rect>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label12</cstring>
</property>
<property name="geometry">
<rect>
<x>430</x>
<y>70</y>
<width>90</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Instrumento</string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label13</cstring>
</property>
<property name="geometry">
<rect>
<x>578</x>
<y>11</y>
<width>52</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Año</string>
</property>
</widget>
<widget class="LineEdit">
<property name="name">
<cstring>Anno</cstring>
</property>
<property name="geometry">
<rect>
<x>588</x>
<y>31</y>
<width>60</width>
<height>24</height>
</rect>
</property>
</widget>
<widget class="LineEdit">
<property name="name">
<cstring>Instrumento</cstring>
</property>
<property name="geometry">
<rect>
<x>440</x>
<y>90</y>
<width>210</width>
<height>24</height>
</rect>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label14</cstring>
</property>
<property name="geometry">
<rect>
<x>18</x>
<y>131</y>
<width>120</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Número de cortes</string>
</property>
</widget>
<widget class="ExecButton">
<property name="name">
<cstring>ExecButton4</cstring>
</property>
<property name="geometry">
<rect>
<x>218</x>
<y>131</y>
<width>130</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Crear Ta&bla...</string>
</property>
</widget>
<widget class="LineEdit">
<property name="name">
<cstring>Cortes</cstring>
</property>
<property name="geometry">
<rect>
<x>148</x>
<y>131</y>
<width>50</width>
<height>24</height>
</rect>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>ScriptObject8</cstring>
</property>
<property name="geometry">
<rect>
<x>360</x>
<y>120</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@Table2.insertRow(1, @Cortes.text)
</string>
</stringlist>
</property>
</widget>
<widget class="ExecButton">
<property name="name">
<cstring>ExecButton6</cstring>
</property>
<property name="geometry">
<rect>
<x>400</x>
<y>130</y>
<width>100</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Eliminar &Fila</string>
</property>
</widget>
<widget class="ExecButton">
<property name="name">
<cstring>ExecButton5</cstring>
</property>
<property name="geometry">
<rect>
<x>38</x>
<y>501</y>
<width>210</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>&Generar Script....</string>
</property>
</widget>
<widget class="LineEdit">
<property name="name">
<cstring>Album</cstring>
</property>
<property name="geometry">
<rect>
<x>50</x>
<y>30</y>
<width>510</width>
<height>24</height>
</rect>
</property>
</widget>
<widget class="Table">
<column>
<property name="text">
<string>Num. Canción</string>
</property>
</column>
<column>
<property name="text">
<string>Título Canción</string>
</property>
</column>
<column>
<property name="text">
<string>Ini_Hora</string>
</property>
</column>
<column>
<property name="text">
<string>Ini_Min</string>
</property>
</column>
<column>
<property name="text">
<string>Ini_Seg</string>
</property>
</column>
<column>
<property name="text">
<string>Fin_Hora</string>
</property>
</column>
<column>
<property name="text">
<string>Fin_Min</string>
</property>
</column>
<column>
<property name="text">
<string>Fin_Seg</string>
</property>
</column>
<property name="name">
<cstring>Table2</cstring>
</property>
<property name="geometry">
<rect>
<x>8</x>
<y>161</y>
<width>1060</width>
<height>330</height>
</rect>
</property>
<property name="numRows">
<number>1</number>
</property>
<property name="numCols">
<number>8</number>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>ScriptObject9</cstring>
</property>
<property name="geometry">
<rect>
<x>518</x>
<y>121</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@Table2.removeRow(@Table2.currentRow, 1)</string>
</stringlist>
</property>
</widget>
<widget class="TextEdit">
<property name="name">
<cstring>TextEdit1</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>540</y>
<width>1050</width>
<height>200</height>
</rect>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>qt_dead_widget_ScriptObject6</cstring>
</property>
<property name="geometry">
<rect>
<x>338</x>
<y>501</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@TextEdit1.setText(Estas situado en la Fila @Table2.currentRow y la Columna @Table2.currentColumn )</string>
</stringlist>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label10_2</cstring>
</property>
<property name="geometry">
<rect>
<x>668</x>
<y>11</y>
<width>52</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Genero</string>
</property>
</widget>
<widget class="LineEdit">
<property name="name">
<cstring>Genero</cstring>
</property>
<property name="geometry">
<rect>
<x>688</x>
<y>31</y>
<width>240</width>
<height>24</height>
</rect>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>ScriptObject10</cstring>
</property>
<property name="geometry">
<rect>
<x>258</x>
<y>501</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@TextEdit1.setText( mplayer -ss @exec( wcalc @Table2.cellText(@Table2.currentRow, 2)*3600+@Table2.cellText(@Table2.currentRow,3)*60+@Table2.cellText(@Table2.currentRow,4) | awk -F"=" '{print $2}') -endpos @exec( wcalc @Table2.cellText(@Table2.currentRow,5)*3600+@Table2.cellText(@Table2.currentRow,6)*60+@Table2.cellText(@Table2.currentRow,7)-@Table2.cellText(@Table2.currentRow,2)*3600-@Table2.cellText(@Table2.currentRow,3)*60-@Table2.cellText(@Table2.currentRow,4) | awk -F"=" '{print $2}') @FileSelector1.text -ao pcm:file=@Table2.cellText(@Table2.currentRow,0)-@Table2.cellText(@Table2.currentRow,1)-@Album.text-@Anno.text.wav
)
@exec( echo @TextEdit1.text >> @FileSelector1.text.text)
@TextEdit1.setText( oggenc -q 10 -a @Artista.text -t @Table2.cellText(@Table2.currentRow,1) -G @Genero.text -l @Album.text -d @Anno.text -o @exec( echo @Table2.cellText(@Table2.currentRow,0)-@Table2.cellText(@Table2.currentRow,1)-@Album.text-@Anno.text.wav |awk -F"." '{print $1}').ogg @Table2.cellText(@Table2.currentRow,0)-@Table2.cellText(@Table2.currentRow,1)-@Album.text-@Anno.text.wav)
@exec( echo @TextEdit1.text >> @FileSelector1.text.text)
@TextEdit1.setText(@File.read(@FileSelector1.text.text))</string>
</stringlist>
</property>
</widget>
</widget>
</widget>
</widget>
<connections>
<connection>
<sender>ExecButton1</sender>
<signal>clicked()</signal>
<receiver>ScriptObject4</receiver>
<slot>execute()</slot>
</connection>
<connection>
<sender>ExecButton5</sender>
<signal>clicked()</signal>
<receiver>ScriptObject10</receiver>
<slot>execute()</slot>
</connection>
<connection>
<sender>ExecButton6</sender>
<signal>clicked()</signal>
<receiver>ScriptObject9</receiver>
<slot>execute()</slot>
</connection>
<connection>
<sender>ExecButton4</sender>
<signal>clicked()</signal>
<receiver>ScriptObject8</receiver>
<slot>execute()</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
</UI>
Reply to: