I have a working setup for streaming a video to youtube with my raspberry pi 3.
It was work until yesterday. Nothing changed but I have an error when I try to start the stream.
Running the following command:
raspivid -o - -t 0 -w 1280 -h 720 -p -hf -fps 25 -b 2560000 | avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/my_key
And get this error:
ffmpeg version 3.2.10-1~deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg
developers built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
configuration: --prefix=/usr --extra-version='1~deb9u1+rpt1'
--toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --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-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 /
57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libavresample 3. 1. 0 / 3. 1. 0 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 /
54. 1.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, s16le, from '/dev/zero': Duration: N/A, bitrate: 1411 kb/s
Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Input #1, h264, from 'pipe:': Duration: N/A, bitrate: N/A
Stream #1:0: Video: h264 (High), yuv420p(progressive), 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc
rtmp://a.rtmp.youtube.com/live2/my_key: Input/output error
It worked more over a month, but now (I don't know why) stopped working.
Can anyone help me?
Cheers,
Greg
I figured it out!
If you have the same problem just go to youtube stream now / encoder setup / stream name/key, push the reveal button and then the reset button to get a new stream name/key string.
Use the new key!
I have been trying to get sidechaining to work with FFMPEG, but my complex filter skills are lacking.
I'm running two aif files into ffmpeg, hoping the voice would "duck" the background music when the voice-over is speaking. But I get an error with this command-line (on Windows, with latest FFMPEG binary):
ffmpeg.exe -i temp_music.aif -i temp_voice.aif \
-filter_complex "[1:a]asplit=2[sc][mix];[0:a] \
[sc]sidechaincompress=threshold=0.1:ratio=5[bg]; \
[bg][mix]amerge[final]" -map [final] final.mp3
Everything decodes fine:
ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 76.100 / 55. 76.100
libavcodec 57.106.101 / 57.106.101
libavformat 57. 82.101 / 57. 82.101
libavdevice 57. 8.101 / 57. 8.101
libavfilter 6.105.100 / 6.105.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, aiff, from 'temp_music.aif':
Duration: 00:01:26.68, start: 0.000000, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, aiff, from 'temp_voice.aif':
Duration: 00:01:26.68, start: 0.000000, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
Output with label 'final' does not exist in any defined filter graph, or was already used elsewhere.
But then I receive an error:
Output with label 'final' does not exist in any defined filter graph,
or was already used elsewhere.
Anybody knows why?
This looks to be some type of character encoding issue.
When I execute your command as copy-pasted, I get the same error. But if I remove the final label and retype it, it works. For now, since you have only one stream to export, you can just leave it unlabelled and ffmpeg will automatically map it.
ffmpeg.exe -i temp_music.aif -i temp_voice.aif \
-filter_complex "[1:a]asplit=2[sc][mix];[0:a] \
[sc]sidechaincompress=threshold=0.1:ratio=5[bg]; \
[bg][mix]amerge" final.mp3
The command I used was :
C:\cmd\ffmpeg\bin\ffmpeg.exe -i "C:\Users\user\Dropbox\Workspace - C#\SnowflakeGenerator\out\out%d.png" -c:v libvpx -b:v 1M "C:\Users\user\Dropbox\Workspace - C#\SnowflakeGenerator\video.webm" -y
The output was:
ffmpeg version N-82889-g54931fd Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 43.100 / 55. 43.100
libavcodec 57. 68.100 / 57. 68.100
libavformat 57. 61.100 / 57. 61.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 68.100 / 6. 68.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, image2, from 'C:\Users\yb5243yv\Dropbox\Workspace - C#\SnowflakeGenerator\out\out%d.png':
Duration: 00:00:21.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000 [SAR 3779:3779 DAR 1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc
[libvpx # 0000000000be89c0] v1.6.0
[libvpx # 0000000000be89c0] Transparency encoding with auto_alt_ref does not work
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> vp8 (libvpx))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
The error is:
[libvpx # 0000000000be89c0] Transparency encoding with auto_alt_ref does not work
and
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
I'm not sure exactly what is causing the issue, I followed this tutorial, however they did not mention the error. I should mention that I am not using audio, so I left the audio encoder out (I did try it with the audio encoder to make sure, and that was not the problem)
Like the error msg says, Transparency encoding with auto_alt_ref does not work, so
ffmpeg.exe -i "out%d.png" -c:v libvpx -b:v 1M -auto-alt-ref 0 "video.webm" -y
I have just downloaded the latest version of ffmpeg and I am trying to trim the first 14 and the last 6 seconds from a 40 seconds .mp3 file.
The problem I have is that doesn't matter what -t X I use, the output is always only 2 seconds in length. It's my first using ffmpeg but it seems like something is forcing it to limit the output to 2 seconds.
I tried a lot of commands including
ffmpeg -ss 00:00:14.358 -i input.mp3 -ab 32k -t 00:00:20.04 -c:a copy output.mp3 -y
ffmpeg -ss 14 -i input.mp3 -ab 32k -t 20 -c:a copy output.mp3 -y
ffmpeg -ss 14 -i input.mp3 -t 20 -acodec copy output.mp3 -y
ffmpeg -ss 14 -i input.mp3 -acodec copy output.mp3 -y
ffmpeg -ss 14 -t 20 -i input.mp3 output.mp3
ffmpeg -ss 14 -i input.mp3 -t 20 output.mp3
but the result is almost always a 2 sec mp3 file.
Now I'm out of ideas.
As requested this is the output from the console:
> Input #0, mp3, from 'C:\Track7.mp3': Duration: 00:00:40.49, start:
> 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 1kB time=00:00:00.00 bitrate= 752.3kbits/s video:0kB
> audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 110.287079%
>
> C:\Je>ffmpeg -ss 00:00:14.358 -i "C:\Track7.mp3" -t 5 -c:a copy
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 0000000002fb02c0] Skipping 0 bytes of junk at 0. [mp3 #
> 0000000002fb02c0] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
>
> C:\Je>ffmpeg -ss 00:00:14.358 -i "C:\Track7.mp3" -c:a copy
> "C:\Track7.mp3" -t 5 -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 Trailing options were found on the commandline. [mp3 # 0000000003020300] Skipping 0
> bytes of junk at 0. [mp3 # 0000000003020300] Estimating duration from
> bitrate, this may be inaccurate Input #0, mp3, from 'C:\Track7.mp3':
> Duration: 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
>
> C:\Je>ffmpeg -ss 00:00:14.358 -i "C:\Track7.mp3" -c:a copy -t 5
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 00000000003102c0] Skipping 0 bytes of junk at 0. [mp3 #
> 00000000003102c0] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
>
> C:\Je>ffmpeg -ss 00:00:14.358 -t 5 -i "C:\Track7.mp3" -c:a copy
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 0000000002fb02c0] Skipping 0 bytes of junk at 0. [mp3 #
> 0000000002fb02c0] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
>
> C:\Je>ffmpeg -i "C:\Track7.mp3"-ss 00:00:14.358 -acodec copy
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 C:\Track7.mp3-ss: No such file or directory
>
> C:\Je>ffmpeg -i "C:\Track7.mp3" -ss 00:00:14.358 -acodec copy
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 0000000002fb0240] Skipping 0 bytes of junk at 0. [mp3 #
> 0000000002fb0240] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 0kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB
> subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
> unknown Output file is empty, nothing was encoded (check -ss / -t /
> -frames parameters if used)
>
> C:\Je>ffmpeg -ss 00:00:14.358 -i "C:\Track7.mp3" -c:a copy
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 0000000002fb0220] Skipping 0 bytes of junk at 0. [mp3 #
> 0000000002fb0220] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
>
> C:\Je>ffmpeg -ss 00:00:14.358 -i "C:\Track7.mp3" -ab 32k -c:a copy
> "C:\Track7.mp3" -y ffmpeg version N-75463-g53e8bef Copyright (c)
> 2000-2015 the FFmpeg developers built with gcc 4.9.3 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 0000000002fb02c0] Skipping 0 bytes of junk at 0. [mp3 #
> 0000000002fb02c0] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
>
> C:\Je>ffmpeg -ss 00:00:14.358 -i "C:\Track7.mp3" -ab 32k -t
> 00:00:20.04 -c:a copy "C:\Track7.mp3" -y ffmpeg version
> N-75463-g53e8bef Copyright (c) 2000-2015 the FFmpeg developers built
> with gcc 4.9.3 (GCC) configuration: --enable-gpl --enable-version3
> --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable
> -libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --e nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 /
> 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 6.100 / 6. 6.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 /
> 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 # 00000000031903c0] Skipping 0 bytes of junk at 0. [mp3 #
> 00000000031903c0] Estimating duration from bitrate, this may be
> inaccurate Input #0, mp3, from 'C:\Track7.mp3': Duration:
> 00:00:40.49, start: 0.000000, bitrate: 128 kb/s
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'C:\Track7.mp3': Metadata:
> TSSE : Lavf57.2.100
> Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help
> size= 32kB time=00:00:02.04 bitrate= 129.5kbits/s video:0kB
> audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing
> overhead: 1.410433%
What am I doing wrong ?
The following work for me. Here is first 14 seconds:
ffmpeg -i input.mp3 -ab 32k -c:a copy -t 00:00:14 output.mp3 -y
Last 4 seconds (start from 6 seconds before end -> 40-6=34):
ffmpeg -ss 00:00:34 -i input.mp3 -ab 32k -c:a copy -t 00:00:06 output.mp3 -y
I'm trying to convert a .tak file to .flac, but ffmpeg stops converting before the end (with no error message).
>ffmpeg -i CDImage.tak CDImage.flac
ffmpeg version N-69659-gc0367f7 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
le-zlib
libavutil 54. 18.100 / 54. 18.100
libavcodec 56. 21.102 / 56. 21.102
libavformat 56. 19.100 / 56. 19.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 9.104 / 5. 9.104
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, tak, from 'CDImage.tak':
Duration: 00:17:35.95, start: 0.000000, bitrate: 1013 kb/s
Stream #0:0: Audio: tak, 44100 Hz, 2 channels, s16p
Output #0, flac, to 'CDImage.flac':
Metadata:
encoder : Lavf56.19.100
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.21.102 flac
Stream mapping:
Stream #0:0 -> #0:0 (tak (native) -> flac (native))
Press [q] to stop, [?] for help
size= 83540kB time=00:10:54.19 bitrate=1046.1kbits/s
video:0kB audio:83532kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 0.009689%
As you can see, the input file is 17:35.95, but ffmpeg is only converting 10:54.19 of it. Does anyone know what's going on here?
edit: I tried it with a different tak file and got the same result. Only 27 minutes of a 50 minute tak was converted to flac. I get the exact same output file times when converting to wav, so I'm guessing it must either be something with the tak files I have, or with ffmpeg's tak decoder.