Skip to content

H264 streaming broken in 0.9/1.0 on win32 when H264 compiled with pthread

h264 streaming crashes. Sample code to reproduce:

--reset-config --no-qt-privacy-ask --high-priority "G.mpg"
--extraintf logger -vvv --no-stats --sout-transcode-threads 1 
:sout=#transcode{scale=1,vcodec=h264,venc=x264,vb=300,acodec=mp3,
ab=64,channels=2}:standard{access=http,mux=ts,dst=:8080}

Ruled out scale and thread issues by both setting to 1. Also happens with:

  • input mmsh wmv and udp/ts mpeg2.
  • acodec mp4a and --no-audio
  • output mmsh/asfh with same settings

Change codec to DIV3 and the commandline works, otherwise it crashes. Last thing I see in normal log:

avcodec debug: found encoder MPEG Audio layer 1/2/3
main debug: using encoder module "avcodec"
main debug: looking for audio filter2 module: 5 candidates
mpgatofixed32 debug: mpga->fl32, bits per sample: 0
main debug: using audio filter2 module "mpgatofixed32"
main debug: Filter 'mpgatofixed32' (01C4739C) appended to chain
main debug: looking for audio filter2 module: 5 candidates
audio_format debug: fl32->s16l, bits per sample: 32
main debug: using audio filter2 module "audio_format"
main debug: Filter 'audio_format' (01C45FBC) appended to chain
main debug: adding a new input
mux_ts debug: adding input codec=mpga pid=68
mux_ts debug: new PCR PID is 68
main debug: switching to sync mode
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:224
main debug: adding a new sout input (sout_input:01D36D40)
stream_out_transcode debug: creating video transcoding from fcc=`mpgv' to fcc=`h264'
main debug: looking for decoder module: 34 candidates
main debug: using decoder module "libmpeg2"
main debug: looking for encoder module: 1 candidate
x264 debug: version x264 0.60.X

Last thing I see in extraintf logger is the detection of CPU capabilities by x264.

Rumoured to work ok on non-win32. Backtrace in progress.. Feel free to add comments if it does work for you :)

Edited by Jean-Baptiste Kempf
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information