Transcode from VLC (MPEG2 stream)

Hi, please Help me!

I’m try to transcode Stream from VLC (MPEG2). VLC show that:

stream1

Type: Video

Codec: MPEG-1/2 Video (mpgv)

Resolution: 704x576

Ferq: 50

Stream2

Type: Audio

Codec: MPEG Audio layer 1/2/3 (mpga)

Lang: Russian

Channels: Stereo

Freq: 48000Hz

Bitrate: 192 Kbit/s

i send this stream to WOWZA by UDP (legacy)

:sout=#duplicate{dst=udp{dst=xxx.xxx.xxx.xxx:10000},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

and wowza write in log

WARN server comment 2012-01-19 15:58:25 - - - - - 13.881 - - - - - - - - LiveReceiver.startDataPacket[live/definst/myStream_360p.stream]: Data packet sync issue.

what is i`m doing wrong ?

sorry for my English :slight_smile:

Are you able to play the stream in LiveVideoStreaming example player?

Server: rtmp://[wowza-address]:1935/live

Stream: myStream_360p

Richard

What is myStream? You are using VLC, I would expect a .stream file or StreamNameAlias alias

Are you doing something like this, but with mpeg 2?:

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

If so, then you want to follow this guide to start the stream:

https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder

Try encoding and starting a stream following these guides, then playback.

Server: rtmp://[wowza-address]:1935/live

Stream: mpegts.stream

If the above plays, and the Wowza Transcoder is enabled with default transrate.xml, then this should work:

Server: rtmp://[wowza-address]:1935/live

Stream: mpegts.stream_360p

Richard

Scratch the playback of source in that case. Send mpeg2 from VLC to transcoder and playback:

Server: rtmp://[wowza-address]:1935/live

Stream: mpegts.stream_360p

Richard

It looks like you are trying to play a live stream in an application with StreamType “default”. Change the StreamType to “live”

Richard

If you are using VLC why use MPEG2? You can use VLC to transcode to h.264. This can be done from the VLC GUI.

Yes, that is the audio watermark which is part of the trial license.

Hi,

The better way is to use MPEG-TS out of VLC, if you can. Take a look at this article for more details and a link on that

page regarding MPES-TS streaming to Wowza:

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

Daren

no, and this error in log is permanently

many many strings

no no no i use VLC ONLY to transmit stream from my local net to WOWZA server. i dont use any transcode option in VLC

when i try to publish and play mpegts.stream

Server: rtmp://[wowza-address]:1935/live

Stream: mpegts.stream

Ican`t see video and in the log i have strings about Data packet sync issue.

This error starting always when i try to publish stream in stream Manager…

when i try to send this stream into another wowza server (2/2/0) it work good.

video doesnt work but into log no errors about sync only unformat…

when i turn off transcode

none

and play my stream

Server: rtmp://[wowza-address]:1935/live

Stream: mpegts.stream

server comments

LiveStreamPacketizerSanJose.handlePacket[live/definst/mpegts.stream][mp4a.40.33]: MP3 Audio: Audio is not MPEG1 Layer 3. May not be playable by Flash player.

but if i set

transcoder

In log write many strings about

LiveReceiver.startDataPacket[live/definst/myStream_360p.stream]: Data packet sync issue.

Richard, at all thanks for all your comments!!!

Can i send my stream to some yuor wowza server, that you will see on it ?? please, i have no any ideas…

with VLC i have problem with desync audio and video and it not stable…

I fix problem with transcoding :

Configure logging: file:///C:/Program Files (x86)/Wowza Media Systems/Wowza Medi

a Server 3.0.4/conf/log4j.properties

INFO server server-start Wowza Media Server 3 Trial Edition (Expires: Їхт 17, 20

  1. 3.0.3.03 build915 -

INFO server comment - Server License Key: SVRT3-XXXXX-XXXXX-XXXXX-XXXXX-J96tW

INFO server comment - Maximum Connections: Unlimited

INFO server comment - Transcoder Streams Available: Unlimited

INFO server comment - Transcoder Watermark: Yes

INFO server comment - nDVR Available: Yes

INFO server comment - DRM Available: Yes

INFO server comment - Hardware Available Processors: 16

INFO server comment - Hardware Physical Memory: 2201MB/4087MB

INFO server comment - Hardware Swap Space: 5025MB/8172MB

INFO server comment - Max File Descriptor Count: Unlimited

INFO server comment - OS Name: Windows Server 2008 R2

INFO server comment - OS Version: 6.1

INFO server comment - OS Architecture: amd64

INFO server comment - OS CPU: amd64

INFO server comment - Java Name: Java HotSpot™ 64-Bit Server VM

INFO server comment - Java Vendor: Oracle Corporation

INFO server comment - Java Version: 1.7.0_01

INFO server comment - Java VM Version: 21.1-b02

INFO server comment - Java Spec Version: 1.7

INFO server comment - Java Home: C:\Program Files\Java\jdk1.7.0_01\jre

INFO server comment - Java Max Heap Size: 682MB

INFO server comment - Java Architecture: 64

INFO server comment - Java Encoding[file.encoding]: Cp1251

INFO server comment - Java Args[0]: -Xmx768M

INFO server comment - Java Args[1]: -Dcom.sun.management.jmxremote=true

INFO server comment - Java Args[2]: -Dcom.wowza.wms.runmode=standalone

INFO server comment - Java Args[3]: -Dcom.wowza.wms.native.base=win

INFO server comment - Java Args[4]: -Dcom.wowza.wms.ConfigURL=

INFO server comment - Java GC[0]: PS Scavenge

INFO server comment - Java GC[1]: PS MarkSweep

INFO server comment - Server runmode: standalone

INFO server comment - Server native.platform: win

INFO server comment - Server threads[h/t]: 10/10

INFO server comment - CMDInterface now listening: [any]:8083

INFO vhost vhost-start defaultVHost -

INFO server comment - defaultVHost threads[h/t]:120/80 home:C:/Program Files (

x86)/Wowza Media Systems/Wowza Media Server 3.0.4

INFO vhost comment defaultVHost Bind attempt ([any]:1935:4)

INFO vhost comment defaultVHost Bind successful ([any]:1935)

INFO vhost comment defaultVHost Bind attempt ([any]:8086:1)

INFO vhost comment defaultVHost Bind successful ([any]:8086)

INFO server comment - Wowza Media Server is started!

INFO application app-start definst live/definst

INFO server comment - RTPMediaCaster.create[1016887080]

INFO server comment - RTPMediaCaster.init[1016887080]

INFO server comment - RTPMediaCaster.Reconnector[1016887080:live/definst:mpegt

s.stream]: start: 1

INFO server comment - HTTPStreamManager.onHTTPRequest: Publish stream successful

ly started [live/definst]: flv:mpegts.stream

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/

definst]: URI: udp://0.0.0.0:10000

INFO stream create - -

INFO server comment - RTPDePacketizerMPEGTS.init: Log incomplete video frames

INFO server comment - RTPDePacketizerWrapperPacketSorter.init: rtpDePacketizerPa

cketSorterBufferTime: 500

INFO server comment - RTPDePacketizerWrapperPacketSorter.init: rtpDePacketizerPa

cketSorterFlushTime: 10

INFO server comment - RTPDePacketizerWrapperPacketSorter.init: rtpDePacketizerPa

cketSorterLogPacketLoss: true

INFO server comment - RTPUDPTransport.bind[live/definst]: /0.0.0.0:10000

INFO stream publish mpegts.stream -

WARN server comment - RTPDePacketizerWrapperPacketSorter.handleRTPPacket[:mpegts

]: Stream is MPEG-TS which is not supported by packet sorter. Packets will be forwarded.

INFO server comment - UDPTransport.firstPacket: bind:/0.0.0.0:10000 msg:/84.201.238.122:53042

INFO server comment - RTPMediaCaster.Reconnector[1016887080:live/definst:mpegts.stream]: done: 1

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: IMPORT: programID[prg:0x1,filter:none]

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: IMPORT: audioPID[prg:0x1,pid:0x58,filter:none]: streamType:MP3:3 audioLanguage:eng

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: IMPORT: videoPID[prg:0x1,pid:0x59,filter:none]: streamType:MPEG2:2

INFO server comment - TranscoderSessionNative.loadLibrary: Load transcoder list:

C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.0.4/lib-native/

win64/transcoder.list

INFO server comment - LiveStreamTranscoder.init[live/definst/mpegts.stream]: L

oad transcoder template: file:///C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.0.4/transcoder/templates/fit.xml

INFO server comment - JNI:TranscoderSession.isCUDAAvailable[live/definst/mpegts.stream]: NVidia CUDA hardware acceleration is NOT available

INFO server comment - JNI:TranscoderSession.isQuickSyncAvailable[live/definst/mpegts.stream]: Intel Quick Sync hardware acceleration is NOT available

INFO server comment - LiveStreamPacketizerSanJose.init[live/definst/mpegts.stream]: chunkDurationTarget: 10000

INFO server comment - LiveStreamPacketizerSanJose.init[live/definst/mpegts.stream]: chunkDurationTolerance: 500

INFO server comment - LiveStreamPacketizerSanJose.init[live/definst/mpegts.stream]: playlistChunkCount:4

INFO server comment - MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: sanjosestreamingpacketizer:mpegts.stream

INFO server comment - SanJosePacketHandler.startStream[live/definst/mpegts.stream]

INFO server comment - LiveStreamPacketizerSanJose.handlePacket[live/definst/mpegts.stream]: Video codec: MPEG2

INFO server comment - LiveStreamPacketizerSanJose.handlePacket[live/definst/mpegts.stream]: Audio codec: MP3

WARN server comment - LiveStreamPacketizerSanJose.handlePacket[live/definst/mpegts.stream][mp4a.40.33]: MP3 Audio: Audio is not MPEG1 Layer 3. May not be playable by Flash player.

WARN server comment - RTPDePacketizerMPEGTS.flushVideoBuffer: Video frame incomplete, dropping[17650:18787:true]: 1563417337

INFO stream create - -

INFO stream publish mpegts.stream_360p -

INFO server comment - JNI:TranscoderSession.audioDecoderCreate[live/definst/mpegts.stream]: Create audio decoder: MPEG1 Part 1/2: default

INFO server comment - JNI:TranscoderSession.videoDecoderCreate[live/definst/mpegts.stream]: Create video decoder: MPEG2: default

INFO transcoder decoder-audio-start mpegts.stream {codec:MP3, objectType:MPEG1LAYER2, sampleRate:48000, channels:2}

INFO server comment - JNI:TranscoderSession.audioEncoderAdd[live/definst/mpegts.stream:360p]: Create audio encoder: AAC: default

INFO server comment - JNI:AudioDecoderMP2.decodeFirstFrame[live/definst/mpegts.stream]: sampleRate:48000 channels:2

INFO server comment - JNI:AudioEncoderAAC.initialize[live/definst/mpegts.stream:360p]: channels:2 sampleRate:48000 bitRate:96000

INFO transcoder encoder-audio-start mpegts.stream {name:“360p”, bitrate:96000, codec:AAC, objectType:NULL[0], sampleRate:48000, channels:2}

INFO transcoder decoder-video-start mpegts.stream {codec:MPEG2, profile:4, level:8, frameSize:720x576, displaySize:1024x576, frameRate:25.0}

INFO server comment - JNI:VideoDecoderMP2.updateDecodeInfo[live/definst/mpegts

.stream]: aspect:16x9 frame:720x576 display:1024x576 frameRate:25

INFO server comment - JNI:TranscoderSession.videoEncoderAdd[live/definst/mpegts.stream:360p]: Create video encoder: H.264: default

WARN server comment - RTPDePacketizerMPEGTS.flushVideoBuffer: Video frame incomp

lete, dropping[19831:20935:false]: 1563464137

INFO transcoder encoder-video-start mpegts.stream {name:“360p”, bitrate:850000,codec:H264, profile:Main, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:25.0}

WARN server comment - RTPDePacketizerMPEGTS.flushVideoBuffer: Video frame incomp

lete, dropping[5447:6367:false]: 1563694537

INFO vhost vhost-stop defaultVHost -

INFO application app-stop definst live/definst

INFO server comment - RTPMediaCaster.shutdown[1016887080:live/definst:mpegts.stream]: mpegts.stream

INFO server comment - RTPMediaCaster.disconnect[1016887080:live/definst:mpegts.stream]

INFO server comment - RTPMediaCaster.closeRTPSession[1016887080:live/definst:mpegts.stream]

INFO server comment - RTPUDPTransport.unbind[live/definst]: /0.0.0.0:10000 sen

t:0 recv:2273

But now when i try to play Log is :

INFO session connect-pending 0:0:0:0:0:0:0:1 -

INFO session connect 0:0:0:0:0:0:0:1 -

INFO stream create - -

WARN server comment mpegts.stream_360p.mp4 MediaReaderH264.open[2]: java.lang.Ex

ception: QTUtils.parseQTMediaContainer: Atom size is invalid: 0

WARN server comment mpegts.stream_360p.mp4 MediaReaderH264.open[2]: java.lang.Ex

ception: QTUtils.parseQTMediaContainer: Atom size is invalid: 0

WARN server comment mpegts.stream_360p.mp4 MediaReaderH264.open[2]: java.lang.Ex

ception: QTUtils.parseQTMediaContainer: Atom size is invalid: 0

WARN server comment - RTPDePacketizerMPEGTS.flushVideoBuffer: Video frame incomp

lete, dropping[10688:11608:false]: 1464039337

WARN server comment - RTPDePacketizerMPEGTS.flushVideoBuffer: Video frame incomp

lete, dropping[10960:13352:false]: 1464046537

WARN server comment mpegts.stream_360p.mp4 MediaReaderH264.open[2]: java.lang.Ex

ception: QTUtils.parseQTMediaContainer: Atom size is invalid: 0

WARN server comment mpegts.stream_360p.mp4 MediaReaderH264.open[2]: java.lang.Ex

ception: QTUtils.parseQTMediaContainer: Atom size is invalid: 0

WARN server comment mpegts.stream_360p.mp4 MediaReaderH264.open[2]: java.lang.Ex

ception: QTUtils.parseQTMediaContainer: Atom size is invalid: 0

any ideas ?

Yes! you rights!! its my 25 copy of application.xml and i dont check this parameter in it )

but now whe playng the video from transcoding i listen two beep sound any 30-40 sec

i use trial license… ? this is trial limit ? or my problems ?

Thank you very much! For the help!

Dear Support,

We are using a transcoded output from VLC and would like to feed Wowza with this data in mp2v or h264 codec. Our output format of VLC is RTSP, but somehow Wowza can not handle the stream and it continuously leads to critical errors according to its log files:

:mad:WARN server comment 2013-10-25 13:03:05 - - - - - 3271.371 - - - - -

      • RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.

:mad:ERROR server comment 2013-10-25 13:03:05 - - - - - 3272.126 - - - - -

      • RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: CSeq less than zero

Our stream is produced by the following syntaxes, none of them work:

udp://@<multicast_ip>:<multicast_port> --sout=‘#transcode{vcodec=mp2v,venc=x264{keyint=60,profile=high,level=3.2,nocabac},scale=0,vb=2000,fps=23,width=854,height=480,deinterlace,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{mux=ts,dst=<transcoder_ip>,port=<transcoder_port>,sdp=rtsp://<transcoder_ip>:<transcoder_port>/<channel_name>.sdp}’

udp://@<multicast_ip>:<multicast_port> --sout=‘#transcode{vcodec=h264,venc=x264{keyint=60,profile=high,level=3.2,nocabac},scale=0,vb=2000,fps=23,width=854,height=480,deinterlace,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{mux=ts,dst=<transcoder_ip>,port=<transcoder_port>,sdp=rtsp://<transcoder_ip>:<transcoder_port>/<channel_name>.sdp}’

Question: What could be wrong? Should this feeding format work somehow?

Thank you.