Sound problem with a local record

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Sound problem with a local record

Thierry Gayet

Hi guys,

I am using a gstreamer modules used to grab the audio and picture from an URL based an embedded CEF (chromium) : https://github.com/centricular/gstcefsrc

With that module, i have start to make a local record using the cefsrc and cefdemux modules. What I observe is a problem out of the sound and I would like to have your opinion on what can happen.

The pipeline I use for a local recording is:

$ export GST_DEBUG = 4
$ export GST_PLUGIN_PATH = $ PWD
$ export GST_DEBUG_DUMP_DOT_DIR = $ PWD
$ gst-launch-1.0 cefsrc url = "https://soundcloud.com/platform/sama"! cefdemux name = d d.video! video / x-raw, format = BGRA, framerate = 30/1! tail! videoconvert! videorate max-rate = 3000! videoscale! x264enc tune = speed-preset zerolatency = superfast key-int-max = 60 ref = 2! mux. d.audio_0! audio / x-raw, rate = 48000! tail! audioconvert! audiorate! voaacenc bitrate = 96000! mux. matroskamux name = mux! filesink location = out-sample01.mkv

As you can see, I get an empty file:

$ ls -al sample01.mkv
-rw-rw-r-- 1 tgayet tgayet 0 Oct 25 14:03 sample01.mkv

$ file sample01.mkv
sample01.mkv: empty

$ gst-discoverer-1.0 out-cef.mkv
Analyzing sample01.mkv
Done discovering sample01.mkv
An error was encountered while discovering the file
 Stream contains no data.

What I can see is that I do not get a dot file for the PLAYING state; i just get READY then PAUSE.

However, when I use another source for the sound, namely the gstreamer module audiotestsrc, what I get seems ok with sound this time:

$ export GST_DEBUG = 4
$ export GST_PLUGIN_PATH = $ PWD
$ export GST_DEBUG_DUMP_DOT_DIR = $ PWD
$ gst-launch-1.0 cefsrc url = "https://soundcloud.com/platform/sama"! cefdemux name = d d.video! video / x-raw, format = BGRA, framerate = 30/1! tail! videoconvert! videorate max-rate = 3000! videoscale! x264enc tune = speed-preset zerolatency = superfast key-int-max = 60 ref = 2! mux. audiotestsrc! audio / x-raw, rate = 48000! tail! audioconvert! audiorate! voaacenc bitrate = 96000! mux. matroskamux name = mux! filesink location = sample02.mkv

$ ls -al sample02.mkv
-rw-rw-r-- 1 tgayet tgayet 1194840 Oct 25 14:08 sample02.mkv

$ file sample02.mkv
sample02.mkv: Matroska data

$ gst-discoverer-1.0 sample02.mkv
Analyzing sample02.mkv
Done discovering sample02.mkv

Topology:
  container: Matroska
    audio: MPEG-4 AAC
    video: H.264 (High 4: 4: 4 Profile)

Properties:
  Duration: 0: 00: 04.566000001
  Seekable: yes
  Live: no
  tags:
      container format: Matroska
      audio codec: MPEG-4 AAC audio
      language code: in
      video codec: H264

Do you have an idea what could happen? Any idea? Maybe something is wrong in my pipeline ?

Thank you in advance for your return.

Thierry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel