[FFmpeg-trac] #6532(ffmpeg:new): Extract a part of a song
FFmpeg
trac at avcodec.org
Tue Jul 18 09:51:44 EEST 2017
#6532: Extract a part of a song
--------------------------------------+----------------------------------
Reporter: alditis | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version:
Keywords: extract part | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
I'm trying to extract a part of a song but I have a problem with a
specific song: test.mp3.
{{{
% ffmpeg -i test.mp3 -ss 7 -t 15 output.mp3
ffmpeg version 3.3.2-1~16.04.york1 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version='1~16.04.york1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig --enable-
libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus
--enable-libpulse --enable-librubberband --enable-libshine --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-
libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-
libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-
libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl
--enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint
--enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
[mp3 @ 0x55e94c9bc7c0] Skipping 191 bytes of junk at 124672.
[mjpeg @ 0x55e94c9bfc80] No JPEG data found in image
[mp3 @ 0x55e94c9bc7c0] decoding for stream 1 failed
[mp3 @ 0x55e94c9bc7c0] Estimating duration from bitrate, this may be
inaccurate
[mp3 @ 0x55e94c9bc7c0] Could not find codec parameters for stream 1
(Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mp3, from 'test.mp3':
Metadata:
asncomp : 0
asnalbum : ¨äÂæ@Â@¨ÞäÚÊÜèÂ
asnimg : ÒÚÂÎÊæ^rr^b`dbbdfbr`d``\ÎÒÌ
title : Como Un Huracan
artist : Colon, Willie & Ruben Blades
publisher : Sony International
genre : Salsa
album : Tras La Tormenta
album_artist : Willie Colón
track : 2
composer : Rubén Blades
date : 1995
Duration: 00:04:57.14, start: 0.000000, bitrate: 233 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 229 kb/s
Stream #0:1: Video: mjpeg, none(bt470bg/unknown/unknown), 90k tbr, 90k
tbn, 90k tbc
Metadata:
comment : Other
Stream mapping:
Stream #0:1 -> #0:0 (mjpeg (native) -> png (native))
Stream #0:0 -> #0:1 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[mjpeg @ 0x55e94c9c4900] No JPEG data found in image
Error while decoding stream #0:1: Invalid data found when processing input
Too many packets buffered for output stream 0:1.
[libmp3lame @ 0x55e94c9ec8a0] 4 frames left in the queue on closing
Conversion failed!
}}}
I noticed that when modifying any metadata in Rhythmbox and then run the
command again the problem does not occur.
In this case I changed the artist metadata: Change "&"" by "y"
Before: Colon, Willie & Ruben Blades
After: Colon, Willie y Ruben Blades
To differentiate from "test.mp3" I created a copy of this called "ok.mp3"
with the changed artist metadata.
{{{
% ffmpeg -i ok.mp3 -ss 7 -t 15 output.mp3
ffmpeg version 3.3.2-1~16.04.york1 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version='1~16.04.york1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig --enable-
libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus
--enable-libpulse --enable-librubberband --enable-libshine --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-
libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-
libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-
libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl
--enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint
--enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mp3, from 'ok.mp3':
Metadata:
artist : Colon, Willie y Ruben Blades
title : Como Un Huracan
album : Tras La Tormenta
composer : Rubén Blades
track : 2
genre : Salsa
publisher : Sony International
album_artist : Willie Colón
date : 1995
Duration: 00:05:08.14, start: 0.000000, bitrate: 224 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 221 kb/s
Stream #0:1: Video: bmp, bgr24, 200x200, 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Other
Stream mapping:
Stream #0:1 -> #0:0 (bmp (native) -> png (native))
Stream #0:0 -> #0:1 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[mp3 @ 0x556668499260] Frame rate very high for a muxer not efficiently
supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync
2
Output #0, mp3, to 'output.mp3':
Metadata:
TPE1 : Colon, Willie y Ruben Blades
TIT2 : Como Un Huracan
TALB : Tras La Tormenta
TCOM : Rubén Blades
TRCK : 2
TCON : Salsa
TPUB : Sony International
TPE2 : Willie Colón
TDRC : 1995
TSSE : Lavf57.71.100
Stream #0:0: Video: png, rgb24, 200x200, q=2-31, 200 kb/s, 90k fps,
90k tbn, 90k tbc
Metadata:
comment : Other
encoder : Lavc57.89.100 png
Stream #0:1: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
Metadata:
encoder : Lavc57.89.100 libmp3lame
[mp3 @ 0x556668499260] No packets were sent for some of the attached
pictures./s speed=14.9x
frame= 0 fps=0.0 q=0.0 Lsize= 236kB time=00:00:15.02 bitrate=
128.5kbits/s speed=12.9x
video:0kB audio:235kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.196890%
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6532>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list