demuxing audio and video

Rand Graham rand.graham at zenith.com
Tue Jun 11 21:37:24 UTC 2019


Hello,

I have captured about 35 seconds of the stream to an .mp4 file.

When using it as a filesrc, I see similar results as to the souphttpsrc. That is gstreamer can transcode the video but cannot transcode the audio. Although, gstreamer does not through any errors when using the filesrc.

Can someone offer a suggestion as to why VLC can playback the file but gstreamer can't seem to parse the AAC audio from the file?

Here is what ffprobe has to say about the file:

ffprobe service2-3.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'service2-3.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 1
    compatible_brands: isomavc1dash
  Duration: 1724:34:52.07, start: 6208446.033333, bitrate: 0 kb/s
    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 3840x2160 [SAR 1:1 DAR 16:9], 0 kb/s, 60 fps, 60 tbr, 10000k tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : HEVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, max. 161 kb/s (default)
    Metadata:
      handler_name    : SoundHandle

Thanks,
Rand

From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Rand Graham
Sent: Friday, June 07, 2019 4:48 PM
To: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Subject: demuxing audio and video

Hello,

I am trying to demux a stream that contains both audio and video.
The demuxing fails when I try to demux both audio and video.
If I demux video only, I can see the video.
If I demux audio only, the pipeline fails.
This stream consists of ISOBMFF segments.

The video is h.265 and the audio is AAC. When I try to playback the url in VLC, the video and audio play.

Can someone offer some tips to debug this issue?

Here is the failure case.

gst-launch-1.0 -v -e mpegtsmux name=m ! hlssink  target-duration=5 souphttpsrc location=http://127.0.0.1:8000/routeservice/17,18    decodebin ! audioconvert ! voaacenc bitrate=128000 ! m.Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.037766906 22104      0x2245630 WARN               structure gststructure.c:1832:priv_gst_structure_append_to_gstring: No value transform to serialize field 'session' of type 'SoupSession'
Got context from element 'souphttpsrc0': gst.soup.session=context, session=(SoupSession)NULL, force=(boolean)false;
0:00:02.462560850 22104      0x2202370 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<souphttpsrc0> error: Internal data stream error.
0:00:02.462604681 22104      0x2202370 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<souphttpsrc0> error: streaming stopped, reason not-linked (-1)
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Internal data stream error

Regards,
Rand

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190611/502ba0ef/attachment-0001.html>


More information about the gstreamer-devel mailing list