Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg error with [s16le @ 0x863400] Could not find codec parameters (Audio: pcm_s16le, 1 channels, s16) #16

Closed
ceefour opened this issue Jun 5, 2014 · 4 comments

Comments

@ceefour
Copy link
Contributor

ceefour commented Jun 5, 2014

Files are from http://gnome-look.org/content/show.php/Cleanus?content=61245

(these are MP3 files named as ogg, don't know why, but renaming the files to mp3 has no effect)

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > audiosprite -e ogg,mp3 -f howler -o cleanus-ogg -g 0.3 ../*.ogg
debug: Parsed arguments _=[../Battery_Charging.ogg, ../K3B_Error.ogg, ../K3B_Success.ogg, ../KDE_Desktop10.ogg, ../KDE_Desktop1.ogg, ../KDE_Desktop2.ogg, ../KDE_Desktop3.ogg, ../KDE_Desktop4.ogg, ../KDE_Desktop5.ogg, ../KDE_Desktop6.ogg, ../KDE_Desktop7.ogg, ../KDE_Desktop8.ogg, ../KDE_Desktop9.ogg, ../KDE_Device_Connected.ogg, ../KDE_Device_Disconnected.ogg, ../KDE_Error.ogg, ../KDE_Event2.ogg, ../KDE_Event.ogg, ../KDE_Logout.ogg, ../KDE_pop.ogg, ../KDE_Startup.ogg, ../KDE_Window_Close.ogg, ../KDE_Window_Open.ogg, ../KDE_Window_Shade_Down.ogg, ../KDE_Window_Shade_Up.ogg, ../Kopete_Event.ogg, ../Kopete_Received.ogg, ../Kopete_Sent.ogg, ../Kopete_User_is_Online.ogg, ../LowBatteryAlarm.ogg, ../Window_Iconify.ogg], e=ogg,mp3, export=ogg,mp3, f=howler, format=howler, o=cleanus-ogg, output=cleanus-ogg, g=0.3, gap=0.3, path=, u=, log=info, l=info, autoplay=null, a=null, silence=0, s=0, minlength=0, m=0, samplerate=44100, r=44100, channels=1, c=1, rawparts=, p=, $0=audiosprite
debug: Created temporary file file=/tmp/audiosprite.014362295158207417
debug: Spawn cmd=ffmpeg -version
debug: Start processing file=../Battery_Charging.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/Battery_Charging.ogg -ar 44100 -ac 1 -f s16le pipe:
util.pump() is deprecated. Use readableStream.pipe() instead.
info: File added OK file=/tmp/audiosprite.22132545709609985, duration=1.044671201814059
info: Silence gap added duration=1.2553287981859411
debug: Start processing file=../K3B_Error.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/K3B_Error.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.13487249799072742, duration=2.141814058956916
info: Silence gap added duration=1.1581859410430841
debug: Start processing file=../K3B_Success.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/K3B_Success.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.3766818977892399, duration=1.7499773242630385
info: Silence gap added duration=0.5500226757369615
debug: Start processing file=../KDE_Desktop10.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop10.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.7876935570966452, duration=0.5744671201814059
info: Silence gap added duration=0.725532879818594
debug: Start processing file=../KDE_Desktop1.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop1.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.7543931272812188, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop2.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop2.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.26619959552772343, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop3.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop3.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.5545179196633399, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop4.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop4.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.7542353158351034, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop5.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop5.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.622084665345028, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop6.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop6.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.173782936995849, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop7.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop7.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.0012624321971088648, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop8.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop8.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.6332280528731644, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Desktop9.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Desktop9.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.5749752067495137, duration=0.6267120181405895
info: Silence gap added duration=0.6732879818594104
debug: Start processing file=../KDE_Device_Connected.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Device_Connected.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.20169578585773706, duration=1.044671201814059
info: Silence gap added duration=1.2553287981859411
debug: Start processing file=../KDE_Device_Disconnected.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Device_Disconnected.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.956946864258498, duration=1.0185487528344672
info: Silence gap added duration=1.2814512471655328
debug: Start processing file=../KDE_Error.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Error.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.18649493507109582, duration=0.7312018140589569
info: Silence gap added duration=0.5687981859410431
debug: Start processing file=../KDE_Event2.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Event2.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.7731257516425103, duration=0.8095691609977325
info: Silence gap added duration=0.4904308390022675
debug: Start processing file=../KDE_Event.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Event.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.400481037562713, duration=0.8095691609977325
info: Silence gap added duration=0.4904308390022675
debug: Start processing file=../KDE_Logout.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Logout.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.7914322479628026, duration=2.820997732426304
info: Silence gap added duration=0.4790022675736962
debug: Start processing file=../KDE_pop.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_pop.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.42137549072504044, duration=0.4960997732426304
info: Silence gap added duration=0.8039002267573696
debug: Start processing file=../KDE_Startup.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Startup.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.06403044448234141, duration=5.589977324263039
info: Silence gap added duration=0.7100226757369612
debug: Start processing file=../KDE_Window_Close.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Window_Close.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.36530930432491004, duration=0.5483446712018141
info: Silence gap added duration=0.751655328798186
debug: Start processing file=../KDE_Window_Open.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Window_Open.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.019994460744783282, duration=0.1565079365079365
info: Silence gap added duration=1.1434920634920636
debug: Start processing file=../KDE_Window_Shade_Down.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Window_Shade_Down.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.29141633468680084, duration=0.3654875283446712
info: Silence gap added duration=0.9345124716553288
debug: Start processing file=../KDE_Window_Shade_Up.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Window_Shade_Up.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.4547124393284321, duration=0.31324263038548755
info: Silence gap added duration=0.9867573696145124
debug: Start processing file=../Kopete_Event.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/Kopete_Event.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.2244569652248174, duration=1.2797732426303854
info: Silence gap added duration=1.0202267573696147
debug: Start processing file=../Kopete_Received.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/Kopete_Received.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.5800625709816813, duration=0.9401814058956917
info: Silence gap added duration=0.35981859410430833
debug: Start processing file=../Kopete_Sent.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/Kopete_Sent.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.9119340069591999, duration=0.7573242630385487
info: Silence gap added duration=0.5426757369614512
debug: Start processing file=../Kopete_User_is_Online.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/Kopete_User_is_Online.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.622257454553619, duration=0.8618140589569161
info: Silence gap added duration=0.4381859410430839
debug: Start processing file=../LowBatteryAlarm.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/LowBatteryAlarm.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.35453224810771644, duration=1.2275283446712018
info: Silence gap added duration=1.0724716553287983
debug: Start processing file=../Window_Iconify.ogg
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/Window_Iconify.ogg -ar 44100 -ac 1 -f s16le pipe:
info: File added OK file=/tmp/audiosprite.48956903093494475, duration=0.4438548752834467
info: Silence gap added duration=0.8561451247165532
debug: Start export format=ogg
debug: Spawn cmd=ffmpeg -y -ac 1 -f s16le -i /tmp/audiosprite.014362295158207417 -acodec libvorbis -f ogg cleanus-ogg.ogg
[1]

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -y -ac 1 -f s16le -i /tmp/audiosprite.014362295158207417 -acodec libvorbis -f ogg cleanus-ogg.ogg
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Ignoring attempt to set invalid timebase for st:0
[s16le @ 0x863400] Could not find codec parameters (Audio: pcm_s16le, 1 channels, s16)
[s16le @ 0x863400] Estimating duration from bitrate, this may be inaccurate
/tmp/audiosprite.014362295158207417: could not find codec parameters
[1]

For audiosprite -c 2 -f howler -o cleanus-mp3 -g 0.3 ../*.mp3 :

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -y -ac 2 -f s16le -i /tmp/audiosprite.45090715354308486 -acodec libvorbis -f ogg cleanus-mp3.ogg
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.                                        
Ignoring attempt to set invalid timebase for st:0
[s16le @ 0x2193400] Estimating duration from bitrate, this may be inaccurate
Input #0, s16le, from '/tmp/audiosprite.45090715354308486':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 2 channels, s16
[ogg @ 0x219f120] sample rate not set
Output #0, ogg, to 'cleanus-mp3.ogg':
    Stream #0.0: Audio: libvorbis, 2 channels, s16
Stream mapping:
  Stream #0.0 -> #0.0
Could not write header for output file #0 (incorrect codec parameters ?)

Additionally #14 should be fixed to make it less confusing.

@ceefour
Copy link
Contributor Author

ceefour commented Jun 5, 2014

There seems to be nothing wrong with ffmpeg, I can correct encode the input file to s16le and then to ogg :

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Startup.mp3 -ar 44100 -ac 1 -f s16le /tmp/ayo
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[mp3 @ 0xe4d400] max_analyze_duration reached
Input #0, mp3, from '/home/ceefour/tmp/Cleanus-OGG/KDE_Startup.mp3':
  Duration: 00:00:05.59, start: 0.000000, bitrate: 128 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
File '/tmp/ayo' already exists. Overwrite ? [y/N] y
Output #0, s16le, to '/tmp/ayo':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size=     481kB time=5.59 bitrate= 705.6kbits/s    
video:0kB audio:481kB global headers:0kB muxing overhead 0.000000%
ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -f s16le -ar 44100 -ac 1 -i /tmp/ayo halo.ogg
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[s16le @ 0xf33400] Estimating duration from bitrate, this may be inaccurate
Input #0, s16le, from '/tmp/ayo':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
File 'halo.ogg' already exists. Overwrite ? [y/N] y
Output #0, ogg, to 'halo.ogg':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Audio: flac, 44100 Hz, 1 channels, s16, 200 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size=     155kB time=5.64 bitrate= 224.3kbits/s    
video:0kB audio:154kB global headers:0kB muxing overhead 0.536965%
ceefour@hendy:~/tmp/Cleanus-OGG/sprite > smplayer halo.ogg 
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
This is SMPlayer v. 0.8.3 running on Linux
ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ll halo.ogg
-rw-r--r-- 1 ceefour ceefour 158211 Jun  4 23:54 halo.ogg

The file is playable with smplayer.

@ceefour
Copy link
Contributor Author

ceefour commented Jun 5, 2014

I can also merge 2 files manually using pure ffmpeg (without gap) :

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Startup.mp3 -ar 44100 -ac 1 -f s16le /tmp/ayo
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.                                                
[mp3 @ 0x1cd7400] max_analyze_duration reached                                                                                                                     
Input #0, mp3, from '/home/ceefour/tmp/Cleanus-OGG/KDE_Startup.mp3':
  Duration: 00:00:05.59, start: 0.000000, bitrate: 128 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
File '/tmp/ayo' already exists. Overwrite ? [y/N] y
Output #0, s16le, to '/tmp/ayo':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size=     481kB time=5.59 bitrate= 705.6kbits/s    
video:0kB audio:481kB global headers:0kB muxing overhead 0.000000%

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Logout.mp3 -ar 44100 -ac 1 -f s16le pipe: >> /tmp/ayo
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mp3, from '/home/ceefour/tmp/Cleanus-OGG/KDE_Logout.mp3':
  Duration: 00:00:02.82, start: 0.000000, bitrate: 129 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 129 kb/s
Output #0, s16le, to 'pipe:':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size=     243kB time=2.82 bitrate= 705.6kbits/s    
video:0kB audio:243kB global headers:0kB muxing overhead 0.000000%

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -f s16le -ar 44100 -ac 1 -i /tmp/ayo halo.ogg
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[s16le @ 0x1c05400] Estimating duration from bitrate, this may be inaccurate
Input #0, s16le, from '/tmp/ayo':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
File 'halo.ogg' already exists. Overwrite ? [y/N] y
Output #0, ogg, to 'halo.ogg':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Audio: flac, 44100 Hz, 1 channels, s16, 200 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size=     258kB time=8.46 bitrate= 250.2kbits/s    
video:0kB audio:257kB global headers:0kB muxing overhead 0.504663%

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ll halo.ogg
-rw-r--r-- 1 ceefour ceefour 264673 Jun  4 23:56 halo.ogg

Output file is playable and correct.

@ceefour
Copy link
Contributor Author

ceefour commented Jun 5, 2014

It can't even process a single input:

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > audiosprite ../KDE_Startup.mp3 
debug: Parsed arguments _=[../KDE_Startup.mp3], output=output, o=output, path=, u=, export=ogg,m4a,mp3,ac3, e=ogg,m4a,mp3,ac3, format=default, f=default, log=info, l=info, autoplay=null, a=null, silence=0, s=0, gap=1, g=1, minlength=0, m=0, samplerate=44100, r=44100, channels=1, c=1, rawparts=, p=, $0=audiosprite
debug: Created temporary file file=/tmp/audiosprite.0016367805656045675
debug: Spawn cmd=ffmpeg -version
debug: Start processing file=../KDE_Startup.mp3
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Startup.mp3 -ar 44100 -ac 1 -f s16le pipe:
util.pump() is deprecated. Use readableStream.pipe() instead.
info: File added OK file=/tmp/audiosprite.8947255541570485, duration=5.589977324263039
info: Silence gap added duration=1.4100226757369612
debug: Start export format=ogg
debug: Spawn cmd=ffmpeg -y -ac 1 -f s16le -i /tmp/audiosprite.0016367805656045675 -acodec libvorbis -f ogg output.ogg
[1]

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -y -ac 1 -f s16le -i /tmp/audiosprite.0016367805656045675 -acodec libvorbis -f ogg output.ogg
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Ignoring attempt to set invalid timebase for st:0
[s16le @ 0x1cea400] Could not find codec parameters (Audio: pcm_s16le, 1 channels, s16)
[s16le @ 0x1cea400] Estimating duration from bitrate, this may be inaccurate
/tmp/audiosprite.0016367805656045675: could not find codec parameters

@ceefour
Copy link
Contributor Author

ceefour commented Jun 5, 2014

It seems the issue is missing -ar sample_rate parameter on last ffmpeg invocation:

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > audiosprite ../KDE_Startup.mp3 
debug: Parsed arguments _=[../KDE_Startup.mp3], output=output, o=output, path=, u=, export=ogg,m4a,mp3,ac3, e=ogg,m4a,mp3,ac3, format=default, f=default, log=info, l=info, autoplay=null, a=null, silence=0, s=0, gap=1, g=1, minlength=0, m=0, samplerate=44100, r=44100, channels=1, c=1, rawparts=, p=, $0=audiosprite
debug: Created temporary file file=/tmp/audiosprite.8391886248718947
debug: Spawn cmd=ffmpeg -version
debug: Start processing file=../KDE_Startup.mp3
debug: Spawn cmd=ffmpeg -i /home/ceefour/tmp/Cleanus-OGG/KDE_Startup.mp3 -ar 44100 -ac 1 -f s16le pipe:
util.pump() is deprecated. Use readableStream.pipe() instead.
info: File added OK file=/tmp/audiosprite.02091297064907849, duration=5.589977324263039
info: Silence gap added duration=1.4100226757369612
debug: Start export format=ogg
debug: Spawn cmd=ffmpeg -y -ac 1 -f s16le -i /tmp/audiosprite.8391886248718947 -acodec libvorbis -f ogg output.ogg
[1]

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ffmpeg -y -ar 44100 -ac 1 -f s16le -i /tmp/audiosprite.8391886248718947 -acodec libvorbis -f ogg output.ogg
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[s16le @ 0x10c7400] Estimating duration from bitrate, this may be inaccurate
Input #0, s16le, from '/tmp/audiosprite.8391886248718947':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Output #0, ogg, to 'output.ogg':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Audio: libvorbis, 44100 Hz, 1 channels, s16
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size=      44kB time=6.98 bitrate=  51.9kbits/s    
video:0kB audio:41kB global headers:3kB muxing overhead 0.881764%

ceefour@hendy:~/tmp/Cleanus-OGG/sprite > ll output.ogg
-rw-r--r-- 1 ceefour ceefour 45306 Jun  5 00:20 output.ogg

tonistiigi added a commit that referenced this issue Jun 5, 2014
Fixed #16 ffmpeg error with [s16le @ 0x863400] Could not find codec para...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant