Forum archive - Could not find input stream #0.2

http://www.supermediastore.com/



Forum Archive Home -> ffmpegX general discussion -> Could not find input stream #0.2



Could not find input stream #0.2

aquilinefeatures posted 2009 Sep 08 07:23
Hello, newbie here, help appreciated.

(BTW thanks for v useful posts which so far have solved a bunch of problems - esp Case - but I can't find an answer to this)

Going .mov (H264) to .flv
If I don't encode audio all fine.

Error message with audio:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
Tue Sep 8 13:09:58 BST 2009
p4,m4a,3gp,3g2,mj2 @ 0x5597b8]negative ctts, ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/a/Desktop/short-H264faststart.mov':
Duration: 00:00:44.6, start: 0.000000, bitrate: 323 kb/s
Stream #0.0(eng), 25.00 fps(r): Video: h264, yuv420p, 400x225
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
Could not find input stream #0.2

I've tried invert mapping, no joy. Haven't tried doing it the 'manual way' with QT yet since I'm not sure this is the same error message that shows up regularly in this forum. My video stream is first so I don't see why it should be inverted.


I do note however that the Audio Track option only lets me choose a single track (from 0 to 15) and no option for stereo tracks - or I may not understand the interface right?


----------------------------
My audio parameters are:
Codec - AAC (MOV/MP4/3GP)
Encode Audio - yes
Audio bitrate - 448 kb/s
Sampling - 44.1KHz
Channels - Stereo
Mode: VBR
Audio track - 1
Invert mapping - no
Add audio - nil

I've tried changing to mono channels with the same effect:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
Tue Sep 8 13:17:51 BST 2009
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5597b8]negative ctts, ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/audrey/Desktop/cuts backup/spirit level/peres cuts/peres-short-H264faststart.mov':
Duration: 00:00:44.6, start: 0.000000, bitrate: 323 kb/s
Stream #0.0(eng), 25.00 fps(r): Video: h264, yuv420p, 400x225
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
Could not find input stream #0.2
----------------------------

My input movie settings are
MOV
h264, yuv420p, 400x225
aac, 44200, stereo
My output movie settings are
ffmpeg flash, 400x224, 500kbps, 25fps, no crop
aac, 44100Hz, 448kbps

Many thanks in advance



Case posted 2009 Sep 08 17:19
aquilinefeatures :
Audio track - 1
Have you tried Audio track "0"?
For most files, the first audio stream is numbered 'track 0', the second 'track 1', the third 'track 2', etc. If you only have one audio track, then searching for 'track 1' won't find anything.



aquilinefeatures posted 2009 Sep 09 03:34
Hi there, thanks for your reply.

I've tried Audio track 0 and 1, 2, 3 and several others. Same result - can't find the second audio track.

The original QT movie says AAC, Stereo LR@ 44.1KHz (though I don't know whether AAC places the left and right in a single stream or not?)

I do note that even if I change the box on the left to Stereo, Mono or 5.1 there is no change in the drop down channels available to me on the right in the FFMpegX interface - it's always the option to select one of 0 to 15. Is this correct?

I've also tried different codecs including MP3, same error message.

Now: also a new set of error messages (posted below)



aquilinefeatures posted 2009 Sep 09 03:45
Sorry to bump.
I've just restarted the programme from scratch and get a new error message (below), however, if I encode without audio the video works successfully. I don't get why the codec is incompatible?

I'm a bit out of my depth with the Ruby stuff but I've looked in my Library in the Finder and all the Ruby components referred to in the error seem to be in there successfully. Help appreciated.

FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5597b8]negative ctts, ignoring
Wed Sep 9 09:38:33 BST 2009
#0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/a/short-uncomp-H264400224.mov':
Duration: 00:00:44.6, start: 0.000000, bitrate: 299 kb/s
Stream #0.0(eng), 25.00 fps(r): Video: h264, yuv420p, 400x224
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
Output #0, flv, to '/Users/a/short-uncomp-H264400224.mov.ff.flv':
Stream #0.0, 25.00 fps(c): Video: flv, yuv420p, 400x224, q=2-15, 500 kb/s
Stream #0.1: Audio: aac, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
bench: utime=0.014s
[aac @ 0x54340c]codec not compatible with flv
Could not write header for output file #0 (incorrect codec parameters ?)
ERROR: undefined method `timestamp' for nil:NilClass
ERROR: /Library/Ruby/Site/1.8/flv/stream.rb:285:in `lasttimestamp'
ERROR: /Library/Ruby/Site/1.8/flv/stream.rb:274:in `duration'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:181:in `add_meta_data_tag'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:137:in `update'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:47:in `send'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:47:in `execute!'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:46:in `each'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:46:in `execute!'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:239:in `process_files'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:225:in `each'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:225:in `process_files'
ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:44:in `execute!'
ERROR: /Library/Ruby/Site/1.8/flvtool2.rb:168:in `execute!'
ERROR: /Library/Ruby/Site/1.8/flvtool2.rb:228
ERROR: /Applications/Added applications/compression & streaming/ffmpegx/ffmpegX.app//Contents/Resources/flvtool2:2:in `require'
ERROR: /Applications/Added applications/compression & streaming/ffmpegx/ffmpegX.app//Contents/Resources/flvtool2:2
Encoding completed on Wed Sep 9 09:38:33 BST 2009



Case posted 2009 Sep 09 19:18
aquilinefeatures :
I've tried Audio track 0 and 1, 2, 3 and several others. Same result.
Sorry to hear that. ffmpeg detects two streams in your source file: one video stream and one audio stream. The default "Audio track: 0" should work.

aquilinefeatures :
The original QT movie says AAC, Stereo LR@ 44.1KHz (though I don't know whether AAC places the left and right in a single stream or not?)
Audio streams/tracks are independent forms of audio, like two languages to choose from, or regular audio and a commentary track. If this does not apply to your movie, then your source file likely has just one audio stream aka audio track.
Left and Right in stereo are a single stream: they are commonly referred to as 'channels'. One channel is mono, two channels is stereo, '5.1' is 6 channel discreet surround (5 directions and 1 subwoofer channel). Each is one stream.

aquilinefeatures :
I do note that even if I change the box on the left to Stereo, Mono or 5.1 there is no change in the drop down channels available to me on the right in the FFMpegX interface - it's always the option to select one of 0 to 15. Is this correct?
This is normal. The number of items in the Audio track drop-down menu does NOT depend on the source file. It says 0-15 because of the DVD limit on audio tracks.

aquilinefeatures :
I've also tried different codecs including MP3, same error message.
For encoding to FLV with the current version of ffmpegX, ALWAYS leave the audio at MP3. Other audio codecs are not supported for FLV with the current version of ffmpegX. ("[aac @ 0x54340c]codec not compatible with flv")


aquilinefeatures posted 2009 Sep 10 12:57
Case :
The number of items in the Audio track drop-down menu does NOT depend on the source file. It says 0-15 because of the DVD limit on audio tracks.

Thank you. This is helpful to know.

Case :
For encoding to FLV with the current version of ffmpegX, ALWAYS leave the audio at MP3. Other audio codecs are not supported for FLV with the current version of ffmpegX. ("[aac @ 0x54340c]codec not compatible with flv")

Thanks. Do you know if that's a limitation of FLV or is it down to ffmpegX, out of curiosity? There's no perceptible difference for the clips I'm using so it's no issue for me but I'd like to know for the future.

I'll try again from scratch using MP3 because I've forgotten what the error message was. Thanks for clearing up those points. I assume unless you mention otherwise, that there's nothing useful to be learned from those error messages about Ruby then while the codec is wrong (AAC).



Case posted 2009 Sep 10 15:38
aquilinefeatures :
Do you know if that's a limitation of FLV or is it down to ffmpegX, out of curiosity?
That is a limitation of the version of ffmpeg that is used by ffmpegX. The Flash webbrowser plugin (version 9 and up, I think) will happily play FLVs with AAC audio.

aquilinefeatures :
I assume that there's nothing useful to be learned from those error messages about Ruby then while the codec is wrong (AAC).
Yes, I would first like to see flvtool2 (and thus Ruby) do its magic on a good FLV file, before jumping to conclusions.


aquilinefeatures posted 2009 Sep 11 02:43
Thank you. I'll try some stuff and see what happens. Will be a few days before I can get onto it.
Thanks a lot for your help.




Login/Register to our forum to be able to post here.








Slysofts AnyDVD HD removes DVD and Blu-ray encryption and region coding. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics