[FFmpeg-devel] [PATCH] h264/aac in flv

Craig Whitmore lennon
Wed May 7 01:47:14 CEST 2008


> That's for the Adobe Flash Player, right? What about the FLV spec?
> Other flash players might not do the same. :)
> 
> Rob

I changed the flvenc a while back to stream mp3 at 48000 and it works
100% on all the flash players I've tried (abobe's, flowplayer ,jwplayer)

This was mostly due to my source being 48K (broadcast feed which I then
transcode to flash)

I did the below which is a huge hack in flvenc.c but works 100% for me

switch (enc->sample_rate) {
        case    48000:
            flags |= FLV_SAMPLERATE_44100HZ;
            break;


I am using

vlc -v udp://@239.0.0.10:5004 --sout
"#transcode{audio-sync,deinterlace{deinterlace=linear},samplerate=48000,vcodec=FLV1,acodec=mp3,ve
nc=ffmpeg{hurry-up,keyint=80,vt=800000}}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=x.x.x.x:8081/stream.flv}"


but when I  try h264/aac with the patches posted lately with:

vlc -v udp://@239.0.0.10:5004 --sout
"#transcode{audio-sync,deinterlace{deinterlace=linear},samplerate=48000,vcodec=h264,venc=x264,acodec=mp3,ve
nc=ffmpeg{hurry-up,keyint=80,vt=800000}}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=x.x.x.x:8081/stream.flv}"


vlc crashes with a problem in the ffmpeg so I'll have to try straight
ffmpeg and see if I can get it working and find out why it crashes.

also getting:
Thanks

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel





More information about the ffmpeg-devel mailing list