[FFmpeg-user] help

undefined 670292548 at qq.com
Thu Jul 25 04:17:32 CEST 2013


here's the uncut log:


C:\Users\CODE-02\ffmpeg>ffmpeg -re -y -i "rtmp://localhost/testFFMpeg/W3FHRHHT live=1" -acodec libvo_aacenc -vcodec libx
264 -s 640*360 -f mp4 "rtmp://localhost/testFFMpeg/W3FHRHHT_360"
ffmpeg version N-54857-gf9f7f4c Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 21 2013 20:04:40 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopenco
re-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-lib
vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 40.100 / 52. 40.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 81.102 /  3. 81.102
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
rtmp server sent error
Metadata:
  duration              0.00
  fileSize              0.00
  width                 640.00
  height                360.00
  videocodecid          avc1
  videodatarate         500.00
  framerate             25.00
  audiocodecid          mp4a
  audiodatarate         64.00
  audiosamplerate       44100.00
  audiosamplesize       16.00
  audiochannels         2.00
  stereo                TRUE
  encoder               Open Broadcaster Software v0.522b
Input #0, flv, from 'rtmp://localhost/testFFMpeg/W3FHRHHT live=1':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    encoder         : Open Broadcaster Software v0.522b
  Duration: 00:00:00.00, start: 0.017000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 640x360, 512 kb/s, 25 tbr, 1k tbn, 2k tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 65 kb/s
[libx264 @ 0000000004c00020] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0000000004c00020] profile High, level 3.0
[libx264 @ 0000000004c00020] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.vid
eolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookah
ead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_
adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahe
ad=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0000000004af00a0] muxer does not support non seekable output
Output #0, mp4, to 'rtmp://localhost/testFFMpeg/W3FHRHHT_360':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    encoder         : Lavf55.12.102
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x360, q=-1--1, 90k tbn, 25 tbc
    Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred




------------------ Original ------------------
From: "undefined"<670292548 at qq.com>; 
Date: 2013年7月24日(星期三) 晚上6:20
To: "ffmpeg-user"; 
Subject: [FFmpeg-user] help



Hi,
We would like to build a web site of live streaming. We push high-quality stream in the format of h264 & aac to AMS5, and intend to output 4 streams with different size but the same format to AMS5 using FFMpeg. But get an error: muxer does not support non seekable output. And then "Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred".


I use windows 7. cmd:
ffmpeg -re -y -i "rtmp://localhost/testFFMpeg/W3FHRHHT live=1" -acodec libvo_aacenc -vcodec libx264 -s 640*360 -f mp4 "rtmp://localhost/testFFMpeg/W3FHRHHT_360"


This cmd goes well:
ffmpeg -re -y -i "rtmp://localhost/testFFMpeg/W3FHRHHT live=1" -acodec libvo_aacenc -vcodec libx264 -f mp4 null.mp4
Here's the metadata:
{
data.duration : 50.60907029478458
data.avcprofile : 100
data.moovposition : 1310780
data.tags : 
data.audiosamplerate : 44100
data.width : 640
data.seekpoints : [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
data.audiocodecid : mp4a
data.trackinfo : [object Object],[object Object]
data.videoframerate : 25
data.audiochannels : 2
data.videocodecid : avc1
data.aacaot : 2
data.height : 360
data.avclevel : 30

}


And this file can be output in the format of flv:
ffmpeg -re -y -i null.mp4 -f flv "rtmp://localhost/testFFMpeg/W3FHRHHT_360"


How can I output it in the format of mp4 or f4v?


Please help!




Best Regards,
Lane
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
.


More information about the ffmpeg-user mailing list