First of all, congratulations and thank you for producing such a great
rtmp server.
I have a problem streaming flv files that have no sound when streamed
through crtmpserver. The sound works fine through VLC.
The flv files are created from an h264 / aac in mpegts source and I'm
using ffmpeg to copy the video / audio streams into an flv file. The
ffmpeg command is:
ffmpeg -i <infile> -vcodec copy -acodec copy -absf aac_adtstoasc
out.flv
If I re-encode the audio stream to aac then it works ok. So is this a
problem with ffmpeg removing the adts headers? Or would you know of
any reasons why crtmpserver can not read the audio?
David
ffmpeg -i <infile> -vcodec copy -acodec copy -f flv /tmp/out.flv
or even simpler
ffmpeg -i <infile> -vcodec copy -acodec copy /tmp/out.flv
Because the time is determined from the output extension.
What I can say for sure is that FLV file spec needs ADTS and NOT ASC
Cheers,
Andrei
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en
Don't do that! When testing your files, forget that VLC exists. The very thing that makes VLC a powerful player, is the very thing that ruins your tests.
If a file works in VLC is because:
1. Your file is 100% correct
2. Your file is NOT 100% correct but VLC does his magic in tolerating your mistakes!
Remember, VLC is a powerful, fault tolerating player. This is why is famous (besides tons of supporting codecs). Is NOT a testing tool!
Cheers,
Andrei
On Dec 6, 2011, at 7:45 PM, davidk...@gmail.com wrote:
Thanks for your advice on vlc.
When I run the command
ffmpeg -i <infile> -vcodec copy -acodec copy /tmp/out.flv
ffmpeg fails with the message 'malformated aac bitstream, use -absf
aac_adtstoasc'
If the spec for flv requires adts then this might be a problem with
ffmpeg. I'll jump on their mailing list to see why ffmpeg requires asc
for flv.
Once again thanking for your help.
David
On Dec 6, 6:22 pm, C++ RTMP Server <crtmpser...@gmail.com> wrote:
> And one more thing that I always say to everyone who is using VLC for "testing"
>
> Don't do that! When testing your files, forget that VLC exists. The very thing that makes VLC a powerful player, is the very thing that ruins your tests.
>
> If a file works in VLC is because:
>
> 1. Your file is 100% correct
> 2. Your file is NOT 100% correct but VLC does his magic in tolerating your mistakes!
>
> Remember, VLC is a powerful, fault tolerating player. This is why is famous (besides tons of supporting codecs). Is NOT a testing tool!
>
> Cheers,
> Andrei
>
> On Dec 6, 2011, at 7:45 PM, davidkemp...@gmail.com wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > First of all, congratulations and thank you for producing such a great
> > rtmp server.
>
> > I have a problem streaming flv files that have no sound when streamed
> > through crtmpserver. The sound works fine through VLC.
>
> > The flv files are created from an h264 / aac in mpegts source and I'm
> > using ffmpeg to copy the video / audio streams into an flv file. The
> > ffmpeg command is:
>
> > ffmpeg -i <infile> -vcodec copy -acodec copy -absf aac_adtstoasc
> > out.flv
>
> > If I re-encode the audio stream to aac then it works ok. So is this a
> > problem with ffmpeg removing the adts headers? Or would you know of
> > any reasons why crtmpserver can not read the audio?
>
> > David
>
> > You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> > To post to this group, send email to c-rtmp...@googlegroups.com
> > To unsubscribe from this group, send email to
> > c-rtmp-serve...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/c-rtmp-server?hl=en
>
>
>
> smime.p7s
> 6KViewDownload