transcoding from mpegts to h264

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

transcoding from mpegts to h264

vandanachadha
I am trying to encode the dvbsrc into h264, but the output file is 0  bytes.

gst-launch-1.0  --gst-debug-level=3 dvbsrc  modulation="QAM 256"
frequency=147000000 num-buffers=1000 ! tsdemux  name=demux! queue ! x264enc
qp-min=18 ! filesink location=test_x264enc.ts

Setting pipeline to PAUSED ...
0:00:00.177489486 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2129:gst_dvbsrc_is_valid_modulation: No modulation sanity-checks
implemented for delivery system: '2'
0:00:00.177683984 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2097:gst_dvbsrc_is_valid_trans_mode: No transmission-mode sanity
checks implemented for this delivery system
0:00:00.177846120 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2161:gst_dvbsrc_is_valid_bandwidth: No bandwidth sanity checks
implemented for this delivery system
0:00:00.177993221 24055 0x56455f7e6ec0 WARN                  dvbsrc
gstdvbsrc.c:2132:gst_dvbsrc_is_valid_modulation: Invalid modulation '5' for
delivery system '11'
0:00:00.178136422 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2129:gst_dvbsrc_is_valid_modulation: No modulation sanity-checks
implemented for delivery system: '2'
0:00:00.178266183 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2097:gst_dvbsrc_is_valid_trans_mode: No transmission-mode sanity
checks implemented for this delivery system
0:00:00.178394733 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2161:gst_dvbsrc_is_valid_bandwidth: No bandwidth sanity checks
implemented for this delivery system
Pipeline is live and does not need PREROLL ...
0:00:00.747999920 24055 0x56455f7bff20 FIXME                default
gstutils.c:3981:gst_pad_create_stream_id_internal:<dvbsrc0:src> Creating
random stream-id, consider implementing a deterministic way of creating a
stream-id
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.812287303 24055 0x56455f7bff20 WARN                 tsdemux
tsdemux.c:1596:create_pad_for_stream: AC3 stream type found but no
guaranteed way found to differentiate between AC3 and EAC3. Assuming plain
AC3.
0:00:00.814518149 24055 0x56455f7bff20 WARN                 tsdemux
tsdemux.c:1596:create_pad_for_stream: AC3 stream type found but no
guaranteed way found to differentiate between AC3 and EAC3. Assuming plain
AC3.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: transcoding from mpegts to h264

Rand Graham-2
Have you looked at these examples?

https://gstreamer.freedesktop.org/documentation/dvb/dvbsrc.html?gi-language=c

Here is one:

gst-launch-1.0 dvbsrc modulation="QAM 64" trans-mode=8k bandwidth=8 frequency=514000000 code-rate-lp=AUTO code-rate-hp=2/3 guard=4  hierarchy=0 pids=100:256:257 ! mpegtsdemux name=demux ! queue max-size-buffers=0 max-size-time=0 ! mpegvideoparse ! mpeg2dec ! xvimagesink demux. ! queue max-size-buffers=0 max-size-time=0 ! mpegaudioparse ! mpg123audiodec ! audioconvert ! pulsesink


One thing they all do is parse or decode the video some how. I don't see any plugin to parse or decode the video in your example.


-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of vandanachadha
Sent: Tuesday, February 25, 2020 9:31 AM
To: [hidden email]
Subject: transcoding from mpegts to h264

I am trying to encode the dvbsrc into h264, but the output file is 0  bytes.

gst-launch-1.0  --gst-debug-level=3 dvbsrc  modulation="QAM 256"
frequency=147000000 num-buffers=1000 ! tsdemux  name=demux! queue ! x264enc
qp-min=18 ! filesink location=test_x264enc.ts

Setting pipeline to PAUSED ...
0:00:00.177489486 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2129:gst_dvbsrc_is_valid_modulation: No modulation sanity-checks implemented for delivery system: '2'
0:00:00.177683984 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2097:gst_dvbsrc_is_valid_trans_mode: No transmission-mode sanity checks implemented for this delivery system
0:00:00.177846120 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2161:gst_dvbsrc_is_valid_bandwidth: No bandwidth sanity checks implemented for this delivery system
0:00:00.177993221 24055 0x56455f7e6ec0 WARN                  dvbsrc
gstdvbsrc.c:2132:gst_dvbsrc_is_valid_modulation: Invalid modulation '5' for delivery system '11'
0:00:00.178136422 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2129:gst_dvbsrc_is_valid_modulation: No modulation sanity-checks implemented for delivery system: '2'
0:00:00.178266183 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2097:gst_dvbsrc_is_valid_trans_mode: No transmission-mode sanity checks implemented for this delivery system
0:00:00.178394733 24055 0x56455f7e6ec0 FIXME                 dvbsrc
gstdvbsrc.c:2161:gst_dvbsrc_is_valid_bandwidth: No bandwidth sanity checks implemented for this delivery system Pipeline is live and does not need PREROLL ...
0:00:00.747999920 24055 0x56455f7bff20 FIXME                default
gstutils.c:3981:gst_pad_create_stream_id_internal:<dvbsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.812287303 24055 0x56455f7bff20 WARN                 tsdemux
tsdemux.c:1596:create_pad_for_stream: AC3 stream type found but no guaranteed way found to differentiate between AC3 and EAC3. Assuming plain AC3.
0:00:00.814518149 24055 0x56455f7bff20 WARN                 tsdemux
tsdemux.c:1596:create_pad_for_stream: AC3 stream type found but no guaranteed way found to differentiate between AC3 and EAC3. Assuming plain AC3.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: transcoding from mpegts to h264

vandanachadha
I get the following error when I tried the command you gave:
WARNING: erroneous pipeline: no element "mpegtsdemux"


What has worked so far:
gst-launch-1.0  --gst-debug-level=3 dvbsrc  modulation="QAM 256"
frequency=147000000  \
! decodebin name=demux demux. \
! queue \
! audioresample \
! audioconvert \
! voaacenc \
! mux. mpegtsmux name=mux \
! udpsink host=122.160.22.197 port=10912 demux. \
! queue \
! videoconvert \
! videoscale \
! x264enc bitrate=1258 tune=zerolatency \
! video/x-h264,stream-format=byte-stream,profile=high,width=720,height=480 \
! mux.

Do you see anything amiss here? It does give me a stream, though it jumps
sometimes, and I get the following errors in the logs:
WARN                  dvbsrc
gstdvbsrc.c:1897:gst_dvbsrc_read_device:<dvbsrc0> Unable to read from
device: /dev/dvb/adapter0/dvr0 (75)
0:00:07.809897228 13439 0x55eaa28ab720 WARN                 tsdemux
tsdemux.c:2359:gst_ts_demux_queue_data: CONTINUITY: Mismatch packet 13,
stream 4
0:00:07.810198989 13439 0x55eaa28ab720 WARN                 tsdemux
tsdemux.c:2359:gst_ts_demux_queue_data: CONTINUITY: Mismatch packet 14,
stream 12
0:00:08.803343964 13439 0x7f0f54054770 WARN            videodecoder
gstvideodecoder.c:2780:gst_video_decoder_prepare_finish_frame:<avdec_mpeg2video0>
decreasing timestamp (0:00:07.070546339 < 0:00:07.470939627)
0:00:11.758662067 13439 0x55eaa28ab720 WARN                  dvbsrc
gstdvbsrc.c:1897:gst_dvbsrc_read_device:<dvbsrc0> Unable to read from
device: /dev/dvb/adapter0/dvr0 (75)
0:00:12.616993281 13439 0x7f0f540c9100 ERROR                  libav :0::
ac-tex damaged at 23 9
0:00:12.618704636 13439 0x7f0f54054770 ERROR                  libav :0::
Warning MVs not available





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel