em.rexhepi
Posts: 5
Joined: Wed Jun 06, 2018 12:16 pm

gst-launch-1.0 problem saving sound and transcoding

Tue Jul 03, 2018 11:19 am

Hi,
I'm a newbie on gstreamer and its documentations are a headache for me, I'm trying for 3 days now to make smth. work. Just succeeded to save the stream in h264 file with no audio also with bugs which I don't have any idea how to fix.
I need to trans-code with: bit-rate 350kb/s, frame-rate to 25/1, frame dimensions 640 × 480 or 480p.
I have the mpeg2 license setup and working.

Every help from you guys is really appreciated.

Raspberry pi 3B
os details:
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian

Input stream details:

Code: Select all

gst-discoverer-1.0 http://192.168.0.184:8090/
Topology:
  container: MPEG-2 Transport Stream
    video: MPEG-2 Video
    audio: MPEG-2 AAC
      audio: MPEG-4 AAC
Properties:
  Duration: 99:99:99.999999999
  Seekable: yes
  Tags:
      audio codec: MPEG-4 AAC
      video codec: MPEG-2 Video
Have a range of failing pipes which i tried to do I'm going to post only this working one.

My half wokring pipe:

Code: Select all

gst-launch-1.0 --gst-debug=*:3 souphttpsrc location="http://192.168.0.184:8090/" \
! decodebin name=demux demux. \
! mux. matroskamux name=mux streamable=true demux. \
! queue \
! videoconvert \
! videoscale \
! omxh264enc\
! h264parse \
! filesink location=test.h264

Code: Select all

The debug result:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.784478878  6389  0x1e8f090 WARN        mpegtspacketizer mpegtspacketizer.c:2268:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:00.784587263  6389  0x1e8f090 WARN        mpegtspacketizer mpegtspacketizer.c:2268:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:00.784876117  6389  0x1e8f090 WARN        mpegtspacketizer mpegtspacketizer.c:2268:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:00.784924972  6389  0x1e8f090 WARN        mpegtspacketizer mpegtspacketizer.c:2268:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
0:00:00.784958669  6389  0x1e8f090 WARN        mpegtspacketizer mpegtspacketizer.c:2268:mpegts_packetizer_pts_to_ts: Not enough information to calculate proper timestamp
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:01.103954076  6389  0x1b072c0 FIXME           videoencoder gstvideoencoder.c:630:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0> GstVideoEncoder::reset() is deprecated
0:00:01.139033618  6389  0x1d260c0 ERROR            omxvideoenc gstomxvideoenc.c:656:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> No corresponding frame found
0:00:01.208101451  6389  0x1d260c0 WARN                   qtmux gstqtmux.c:1698:gst_qt_mux_start_file:<mp4mux0> downstream did not handle seeking query
Even though it has these errors it saves the video, but the video only.

Return to “Media centres”

Who is online

Users browsing this forum: No registered users and 4 guests