[FFmpeg-user] converting a video without sound : Error while opening encoder for output stream #0.1

dE . de.techno at gmail.com
Sat Feb 18 13:38:53 CET 2012


On 02/18/12 16:14, access-dev ml wrote:
>> This sounds like a bug. Maybe you should file for a ticker, but before
>> that I recommend you upload the problematic video as a sample.
>> Also we need the full uncut console output.
>
>> -an, but this should not happen. What's the output of ffprobe on the
>> file, and can you play it using ffplay.
>
> I dont have ffplay (the setup is on hosted server with no desktop 
> environnement)
>
> sample video : http://accessdev.s3.amazonaws.com/temp/178.flv.flv
>
> I can read it on VLC Mac
>
> ffprobe 178.flv.flv
>
> FFprobe version SVN-r26402, Copyright (c) 2007-2011 the FFmpeg developers
>   built on Feb 17 2012 10:05:18 with gcc 4.4.5
>   configuration: --enable-gpl --enable-version3 --enable-nonfree 
> --enable-postproc --enable-libfaac --enable-libmp3lame 
> --enable-libopencore-amrnb --enable-libopencore-amrwb 
> --enable-libtheora --enable-libvorbis --enable-libx264 
> --enable-libxvid --enable-x11grab --enable-shared
>   libavutil     50.36. 0 / 50.36. 0
>   libavcore      0.16. 1 /  0.16. 1
>   libavcodec    52.108. 0 / 52.108. 0
>   libavformat   52.93. 0 / 52.93. 0
>   libavdevice   52. 2. 3 / 52. 2. 3
>   libavfilter    1.74. 0 /  1.74. 0
>   libswscale     0.12. 0 /  0.12. 0
>   libpostproc   51. 2. 0 / 51. 2. 0
> [flv @ 0x60b0e0] Could not find codec parameters (Audio: [0][0][0][0] 
> / 0x0000, 0 channels)
> [flv @ 0x60b0e0] Estimating duration from bitrate, this may be inaccurate
> Input #0, flv, from '178.flv.flv':
>   Metadata:
>     duration        : 23
>     creationdate    : mer. févr. 15 15:55:56
>   Duration: 00:00:23.22, start: 0.000000, bitrate: N/A
>     Stream #0.0: Video: flv, yuv420p, 320x200, 1k tbr, 1k tbn, 1k tbc
>     Stream #0.1: Audio: [0][0][0][0] / 0x0000, 0 channels
> Unsupported codec (id=0) for input stream 1
>
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

What seems to be the problem here is that, in the container there does 
appear to be an audio stream but ffmpeg does not recognize it. I'm not 
sure about the container, but after encoding as such -

ffmpeg -i 178.flv.flv -vcodec libx264 -acodec libvo_aacenc test.mkv

the audio stream is gone -

Input #0, matroska,webm, from 'test.mkv':
   Metadata:
     CREATIONDATE    : mer. févr. 15 15:55:56
     ENCODER         : Lavf54.1.100
   Duration: 00:00:23.22, start: 0.000000, bitrate: 184 kb/s
     Stream #0:0: Video: h264 (High), yuv420p, 320x200, SAR 1:1 DAR 8:5, 
1k fps, 1k tbr, 1k tbn, 2k tbc (default)

In fact, your command line -

ffmpeg -i 178.flv.flv -ar 44100 -b 700k -sameq -f avi -r 24 -ab 160k 167.avi

Works prefectly in my setup and there's no audio stream in the output, 
only video.

Why don't you upgrade your version of ffmpeg?


More information about the ffmpeg-user mailing list