Audio track not present in playing recorded file in vlc locally using ffmpeg

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Audio track not present in playing recorded file in vlc locally using ffmpeg

mahek delawala
Hi All,

I am having one recorded video file (mp4 file) which is having one audio
track and one video track.

Now I want to play video file locally without pushing the file to Wowza
server.

Following is the content of my configuration file ffserver.conf in /etc
directory.

HTTPPort 1234
RTSPPort 1235

# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000

# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000

<Feed feed1.ffm>
        File /tmp/feed1.ffm
        FileMaxSize 200M
        ACL allow 192.168.201.76
</Feed>

<Stream test1.mp4>
    Feed feed1.ffm
    Format rtp
    Noaudio
    VideoCodec libx264
    VideoFrameRate 25
    VideoBitRate 1000
    VideoSize 480x272
    AVOptionVideo flags +global_header
    AVOptionVideo me_range 16
    AVOptionVideo qdiff 4
    AVOptionVideo qmin 10
    AVOptionVideo qmax 51

    AudioCodec aac
    AudioBitRate 30
    AudioChannels 2
    AudioSampleRate 22050
    AVOptionAudio flags +global_header
    ACL allow 192.168.201.0 192.168.255.255
</Stream>

Now I am running following commands to play recorded file locally without
pushing to Wowza .

*1. ffserver -f ffserver.config &*

*2. ffmpeg -re -i <recorded_file> -crf 18 -c:a copy
http://<ip_address>:1235/feed1.ffm*

*3. rtsp://<server_ip_addr>:1235/test1.mp4 (entering in vlc)*

In VLC I am able to get video track being played, but audio track is not
present.

Please help me in solving how can i get audio track in the file being
played in vlc along with the video track.

Thanks & R*e*gards,
Mahek Delawala
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Fwd: Audio track not present in playing recorded file in vlc locally using ffmpeg

mahek delawala
Hello All,

Please reply to my below attached mail as early as possible.

---------- Forwarded message ----------
From: mahek delawala <[hidden email]>
Date: 12 June 2018 at 16:23
Subject: Audio track not present in playing recorded file in vlc locally
using ffmpeg
To: FFmpeg user questions <[hidden email]>


Hi All,

I am having one recorded video file (mp4 file) which is having one audio
track and one video track.

Now I want to play video file locally without pushing the file to Wowza
server.

Following is the content of my configuration file ffserver.conf in /etc
directory.

HTTPPort 1234
RTSPPort 1235

# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000

# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000

<Feed feed1.ffm>
        File /tmp/feed1.ffm
        FileMaxSize 200M
        ACL allow 192.168.201.76
</Feed>

<Stream test1.mp4>
    Feed feed1.ffm
    Format rtp
    Noaudio
    VideoCodec libx264
    VideoFrameRate 25
    VideoBitRate 1000
    VideoSize 480x272
    AVOptionVideo flags +global_header
    AVOptionVideo me_range 16
    AVOptionVideo qdiff 4
    AVOptionVideo qmin 10
    AVOptionVideo qmax 51

    AudioCodec aac
    AudioBitRate 30
    AudioChannels 2
    AudioSampleRate 22050
    AVOptionAudio flags +global_header
    ACL allow 192.168.201.0 192.168.255.255
</Stream>

Now I am running following commands to play recorded file locally without
pushing to Wowza .

*1. ffserver -f ffserver.config &*

*2. ffmpeg -re -i <recorded_file> -crf 18 -c:a copy
http://<ip_address>:1235/feed1.ffm*

*3. rtsp://<server_ip_addr>:1235/test1.mp4 (entering in vlc)*

In VLC I am able to get video track being played, but audio track is not
present.

Please help me in solving how can i get audio track in the file being
played in vlc along with the video track.

Thanks & R*e*gards,
Mahek Delawala
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Audio track not present in playing recorded file in vlc locally using ffmpeg

Moritz Barsnick
In reply to this post by mahek delawala
On Tue, Jun 12, 2018 at 16:23:39 +0530, mahek delawala wrote:
> *2. ffmpeg -re -i <recorded_file> -crf 18 -c:a copy http://<ip_address>:1235/feed1.ffm*

In at least two previous threads, you were kindly asked to provide the
complete, uncut console output(s) of your respective ffmpeg commands,
but you never did. It's kind of tedious needing to ask back each time.
Please understand that ffmpeg's output provides a lot of useful
information. So please do that for this command's output.

> *3. rtsp://<server_ip_addr>:1235/test1.mp4 (entering in vlc)*

What does
$ ffmpeg -i rtsp://<server_ip_addr>:1235/test1.mp4
show?

> In VLC I am able to get video track being played, but audio track is not
> present.

I believe VLC has an info window (Ctrl+i?). Does it show the stream
having audio?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".