Page 1 of 1

ffmpeg's wma encoder errors

Posted: 15 Jun 2007 14:30
by tipok
New svn version of ffmpeg can encode wma v2.
I'm using this command to encode live stream to wmv+wma:

Code: Select all

usr/local/bin/vlc -vvvv --color \ http://source.ip:port \ --sout '#transcode{vcodec=WMV2,vb=196,acodec=wma2,ab=64,samplerate=44100,channels=2}:\ std{access=http,mux=asf,dst=dest.ip:port}'
But when i'm trying to view this stream from wmp - it says "wrong format"
vlc-player plays video and looping audio.
Vlc's log:

Code: Select all

asf debug: found object guid: 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:733 asf debug: read "header object" subobj:5, reserved1:1, reserved2:2 asf debug: found object guid: 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104 asf debug: read "file properties object" file_id:0xbabac001-0xe5c3-0x2e6e-0xdaca4ac897e42a03 file_size:783 creation_date:0 data_packets_count:4294967295 play_duration:0 send_duration:0 preroll:2000 flags:1 min_data_packet_size:4096 max_data_packet_size:4096 max_bitrate:324000 asf debug: found object guid: 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:156 asf debug: read "header extension object" reserved1:0xabd3d211-0xa9ba-0x11cf-0x8ee600c00c205365 reserved2:6 header_extension_size:110 asf debug: found object guid: 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:110 asf debug: read "metadata object" 2 entries asf debug: - AspectRatioX=1 asf debug: - AspectRatioY=1 asf debug: found object guid: 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114 asf debug: read "stream Properties object" stream_type:0xf8699e40-0x5b4d-0x11cf-0xa8fd00805f5c442b error_correction_type:0xbfc3cd50-0x618f-0x11cf-0x8bb200aa00b4e220 time_offset:0 type_specific_data_length:28 error_correction_data_length:8 flags:0x1 stream_number:1 asf debug: found object guid: 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133 asf debug: read "stream Properties object" stream_type:0xbc19efc0-0x5b4d-0x11cf-0xa8fd00805f5c442b error_correction_type:0x20fb5700-0x5b55-0x11cf-0xa8fd00805f5c442b time_offset:0 type_specific_data_length:55 error_correction_data_length:0 flags:0x2 stream_number:2 asf debug: found object guid: 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:196 asf debug: read "codec list object" reserved_guid:0x86d15241-0x311d-0x11d0-0xa3a400a0c90348f6 codec_entries_count:2 asf debug: - codec[0] audio name:"Windows Media Audio (v2) 7, 8 and 9 Series" description:"" information_length:2 asf debug: - codec[1] video name:"Windows Media Video 8" description:"" information_length:4 asf debug: found object guid: 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:50 asf debug: read "data object" file_id:0xbabac001-0xe5c3-0x2e6e-0xdaca4ac897e42a03 total data packet:0 reserved:257 asf debug: + 'Unknown' GUID 0x0-0x0-0x0-0x0000000000000000 size:0pos:0 asf debug: + 'Header' GUID 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:733pos:0 asf debug: | + 'File Properties' GUID 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104pos:30 asf debug: | + 'Header Extension' GUID 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:156pos:134 asf debug: | | + 'Metadata' GUID 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:110pos:180 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:290 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133pos:404 asf debug: | + 'Codec List' GUID 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:196pos:537 asf debug: + 'Data' GUID 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:50pos:733 asf debug: found 2 streams access_file warning: unimplemented query in control main debug: selecting program id=0 asf debug: added new audio stream(codec:0x161,ID:1) access_file warning: unimplemented query in control asf debug: added new video stream(ID:2) main debug: using demux2 module "asf" main debug: looking for a subtitle file in C:\Documents and Settings\Admin\Рабочий стол\ main debug: looking for decoder module: 28 candidates ffmpeg debug: libavcodec initialized (interface 3349504 ) ffmpeg debug: ffmpeg codec (Windows Media Audio 2) started main debug: using decoder module "ffmpeg" main debug: thread 4064 (decoder) created at priority 2 (input/decoder.c:159) main debug: looking for decoder module: 28 candidates ffmpeg debug: libavcodec already initialized ffmpeg debug: postprocessing disabled ffmpeg debug: using direct rendering ffmpeg debug: ffmpeg codec (Windows Media Video 2) started main debug: using decoder module "ffmpeg" main debug: thread 4140 (decoder) created at priority 0 (input/decoder.c:159)

After this i'll try ffmpeg's muxer with this command

Code: Select all

usr/local/bin/vlc -vvvv --color \ http://source.ip:port \ --sout '#transcode{vcodec=WMV2,vb=196,acodec=wma2,ab=64,samplerate=44100,channels=2}:\ std{access=http{mime=video/x-ms-asf},mux=ffmpeg{mux=asf},dst=dest.ip:port}'
But no result because header is corrupted (i think thah it's ffmpeg's problem).