mp4 generation with both video and audio fails
Tim Müller
tim at centricular.com
Wed Mar 12 16:40:26 PDT 2014
On Wed, 2014-03-12 at 15:20 -0700, manickam palaniappan wrote:
Hi,
> gst-launch-1.0 rtspsrc
> location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov !
> decodebin name=dm mp4mux name=mux ! filesink location=f.mp4 dm. !
> x264enc ! mux. dm. ! faac ! mux.
> File resides at 0 bytes all the time. If I remove the audio
> component, it starts working.
> And if somebody could provide the rtpdepay based cmdline instead of
> decodebin, it would be helpful.
Try something like:
gst-launch-1.0 \
mp4mux name=mux ! filesink location=f.mp4 \
\
rtspsrc location=rtsp://... name=src \
\
src. ! queue ! rtph264depay ! mux.video_0 \
src. ! queue ! rtpmp4adepay ! mux.audio_0
This assumes the rtsp stream contains H264 and AAC. If that fails, try
adding an aacparse element after rtpmp4depay and an h264parse element
after rtph264depay as well (to add some extra fields on the output caps
that mp4mux might want).
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list