Score:2

วิธีจัดการกับตัวแปลงสัญญาณที่หายไปของ gstreamer

ธง af

ฉันประสบปัญหาไม่มีตัวแปลงสัญญาณสำหรับคอนเทนเนอร์วิดีโอยอดนิยม เช่น mp4 และ avi ทั้งเมื่อใช้ gstreamer ในบรรทัดคำสั่ง เช่นเดียวกับเมื่อพยายามเรียกใช้โค้ด playbin ตัวอย่าง (รายละเอียดตามแต่ละสถานการณ์ด้านล่าง)

อาจไม่มีแพ็คเกจหรือการตั้งค่าบางอย่างที่ต้องทำ ฉันจะแก้ไขสภาพแวดล้อมของฉันเพื่อให้ตัวแปลงสัญญาณ mp4 และ avi ทำงานใน gstreamer ได้อย่างไร

1. ด้วย playbin

การพยายามเรียกใช้แอป gstreamer playbin ครั้งแรกของฉันโดยดึงออกมาจากเอกสารอย่างเป็นทางการของ gstreamer อย่างไรก็ตาม ดูเหมือนว่าไม่ว่าฉันจะเลือกเล่นวิดีโอด้วยการเข้ารหัสแบบใด ตัวถอดรหัสก็หายไป

ฉัน ได้ติดตั้ง อูบุนตูจำกัดพิเศษ ซึ่งได้รับการแนะนำที่อื่นเป็นวิธีแก้ปัญหาที่ครอบคลุมสำหรับเรื่องประเภทนี้ แต่จริงๆ ไม่มีความคิดว่าจะติดตั้งหรือกำหนดค่าตัวถอดรหัสที่ขาดหายไปได้อย่างไร บางทีคุณอาจทำให้ฉันฉลาดขึ้น

นี่คือรหัสและการติดตามข้อผิดพลาดดังต่อไปนี้:

นำเข้า sys, os
นำเข้า GI
gi.require_version('Gst', '1.0')
gi.require_version('Gtk', '3.0')
gi.require_version('GstVideo', '1.0')
จาก gi.repository นำเข้า Gst, GObject, Gtk

# จำเป็นสำหรับ window.get_xid(), xvimagesink.set_window_handle() ตามลำดับ:
จาก gi.repository นำเข้า GdkX11, GstVideo

คลาส GTK_Main (วัตถุ):

    def __init__(ตัวเอง):
        window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
        window.set_title("เครื่องเล่นวิดีโอ")
        window.set_default_size(500, 400)
        window.connect("ทำลาย", Gtk.main_quit, "WM ทำลาย")
        vbox = Gtk.VBox()
        window.add(vbox)
        hbox = Gtk.HBox()
        vbox.pack_start(hbox, เท็จ, เท็จ, 0)
        self.entry = Gtk.Entry()
        hbox.add(เข้าเอง)
        self.button = Gtk.Button("เริ่ม")
        hbox.pack_start(self.button, False, False, 0)
        self.button.connect("คลิก", ​​self.start_stop)
        self.movie_window = Gtk.DrawingArea()
        vbox.add(self.movie_window)
        window.show_all()

        self.player = Gst.ElementFactory.make("playbin", "player")
        รถบัส = self.player.get_bus()
        รถบัส.add_signal_watch()
        บัส.enable_sync_message_emission()
        bus.connect("ข้อความ", self.on_message)
        bus.connect("ซิงค์ข้อความ::องค์ประกอบ", self.on_sync_message)

    def start_stop (ตัวเอง w):
        ถ้า self.button.get_label() == "เริ่ม":
            เส้นทางไฟล์ = self.entry.get_text().แถบ()
            ถ้า os.path.isfile (เส้นทางไฟล์):
                เส้นทางไฟล์ = os.path.realpath (เส้นทางไฟล์)
                self.button.set_label("หยุด")
                self.player.set_property("ยูริ", "ไฟล์://" + เส้นทางไฟล์)
                self.player.set_state(Gst.State.PLAYING)
            อื่น:
                พิมพ์ (f "ไม่มีเส้นทางไฟล์ {filepath}")
                self.player.set_state(Gst.State.NULL)
                self.button.set_label("เริ่ม")

    def on_message(ตัวเอง บัส ข้อความ):
        t = ข้อความประเภท
        ถ้า t == Gst.MessageType.EOS:
            self.player.set_state(Gst.State.NULL)
            self.button.set_label("เริ่ม")
        elif t == Gst.MessageType.ERROR:
            self.player.set_state(Gst.State.NULL)
            ข้อผิดพลาด ดีบัก = message.parse_error()
            พิมพ์ ("ข้อผิดพลาด: %s" % ผิดพลาด ดีบัก)
            self.button.set_label("เริ่ม")

    def on_sync_message (ตัวเอง บัส ข้อความ):
        ถ้า message.get_structure().get_name() == 'prepare-window-handle':
            อิมเมจซิงค์ = message.src
            imagesink.set_property("แรง-อัตราส่วนภาพ", จริง)
            imagesink.set_window_handle(self.movie_window.get_property('หน้าต่าง').get_xid())


GObject.threads_init()
Gst.init (ไม่มี)
GTK_หลัก()
Gtk.main()

การติดตามข้อผิดพลาด:

playbin-example-video.py:72: PyGIDeprecationWarning: ตั้งแต่เวอร์ชัน 3.11 การเรียก threads_init ก็ไม่จำเป็นอีกต่อไป ดู: https://wiki.gnome.org/PyGObject/Threading
      GObject.threads_init()
    playbin-example-video.py:17: PyGTKDeprecationWarning: เลิกใช้อาร์กิวเมนต์ตำแหน่งกับตัวสร้าง GObject แล้วโปรดระบุคำหลักสำหรับ "ประเภท" หรือใช้ตัวสร้างเฉพาะคลาส ดู: https://wiki.gnome.org/PyGObject/InitializerDeprecations
      window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
    playbin-example-video.py:27: PyGTKDeprecationWarning: เลิกใช้อาร์กิวเมนต์ตำแหน่งกับตัวสร้าง GObject แล้ว โปรดระบุคำหลักสำหรับ "label" หรือใช้ตัวสร้างเฉพาะคลาส ดู: https://wiki.gnome.org/PyGObject/InitializerDeprecations
      self.button = Gtk.Button("เริ่ม")
    ข้อผิดพลาด: gst-core-error-quark: การติดตั้ง GStreamer ของคุณไม่มีปลั๊กอิน (12) gsturidecodebin.c(988): no_more_pads_full (): /GstPlayBin:player/GstURIDecodeBin:uridecodebin0:
    ไม่พบปลั๊กอินที่เหมาะสม:
    gstdecodebin2.c(4640): gst_decode_bin_expose (): /GstPlayBin:player/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
    ไม่พบปลั๊กอินที่เหมาะสม:
    ตัวถอดรหัสหายไป: Audio Video Interleave (AVI) (วิดีโอ/x-msvideo)

บางทีรหัสนี้อาจล้าสมัย ฉันต้องแปลงเป็น Python 3 หลังจากคัดลอกจากเอกสารทางการ

ฉันมองไปที่ เอกสารอย่างเป็นทางการสำหรับสถานการณ์ทั่วไปประเภทนี้แต่ไม่เห็นทางสว่างเกิดขึ้นที่นั่น.

2. การใช้ผู้เล่นบรรทัดคำสั่ง

เป็นปัญหาเดียวกันพยายามที่จะเล่น เอวี หรือ mp4 ไฟล์จากคำสั่ง gstreamer:

$ gst-play-1.0 media_file.mp4
$ gst-play-1.0 media_file.avi

บางแห่งกล่าวถึงตัวแปรสภาพแวดล้อมที่จำเป็นต้องตั้งค่า แต่เป็นการยากที่จะระบุตำแหน่งที่ติดตั้งปลั๊กอินเพื่อจัดหาให้กับตัวแปรสภาพแวดล้อมนั้น เช่น. ฉันดูเหมือนจะติดตั้งแพ็คเกจปลั๊กอิน apt ("ฐาน", "ดี" และ "ไม่ดี") แต่ไดเร็กทอรีที่ฉันสามารถค้นหาได้โดยใช้ อยู่ไหน ดูเหมือนจะไม่มีอะไรเลยนอกจากไฟล์เรียกทำงานสองไฟล์

เรียกใช้ไฟล์ปฏิบัติการจากที่นั่น:

$ /usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner

ไม่คืนอะไรเลย

ผลลัพธ์ของ gst-ตรวจสอบ:

$ gst-inspect-1.0 
ขนาดวิดีโอ: ขนาดวิดีโอ: ขนาดวิดีโอ
ximagesink: ximagesink: อ่างล้างวิดีโอ
audiotestsrc: audiotestsrc: แหล่งทดสอบเสียง
เครื่องผสมเสียง: ออดิโออินเตอร์ลีฟ: AudioInterleave
เครื่องผสมเสียง: liveadder: AudioMixer
เครื่องผสมเสียง: เครื่องผสมเสียง: AudioMixer
อัตราเสียง: อัตราเสียง: ตัวปรับอัตราเสียง
ปริมาณ: ปริมาณ: ปริมาณ
videotestsrc: videotestsrc: แหล่งทดสอบวิดีโอ
opengl:glfilterglass:กรองแก้วOpenGL
opengl: gldeinterlace: ตัวกรอง deinterlacing ของ OpenGL
opengl: gltestsrc: แหล่งทดสอบวิดีโอ
opengl: glstereosplit: GLStereoSplit
opengl: glviewconvert: ตัวกรองการแปลง OpenGL Multiview/3D
opengl: glfilterapp: ตัวกรองแอปพลิเคชัน OpenGL
opengl: glshader: ตัวกรองส่วนแยกส่วน OpenGL
opengl: glcolorscale: ระดับสี OpenGL
opengl: gleffects_laplacian: เอฟเฟกต์การสาธิต Laplacian Convolution
opengl: gleffects_blur: เบลอด้วยเอฟเฟกต์การหมุนที่แยกได้ 9x9
opengl: gleffects_sobel: เอฟเฟกต์การตรวจจับขอบ Sobel
opengl: gleffects_glow: เอฟเฟกต์แสงเรืองแสง
opengl: gleffects_sin: เอฟเฟกต์สีเทาทั้งหมดแต่เป็นสีแดง
opengl: gleffects_xray: ผลกระทบด้านลบที่เร่าร้อน
opengl: gleffects_lumexpro: เอฟเฟกต์การประมวลผลข้าม Luma
opengl: gleffects_xpro: ผลการประมวลผลข้าม
opengl: gleffects_sepia: เอฟเฟ็กต์การปรับสีซีเปีย
opengl: gleffects_heat: เอฟเฟกต์ลายเซ็นความร้อน
opengl: gleffects_square: เอฟเฟกต์สแควร์
opengl: gleffects_bulge: เอฟเฟกต์นูน
opengl: gleffects_twirl: เอฟเฟ็กต์หมุนวน
opengl: gleffects_fisheye: เอฟเฟ็กต์ FishEye
opengl: gleffects_tunnel: เอฟเฟกต์อุโมงค์แสง
opengl: gleffects_stretch: เอฟเฟกต์การยืด
opengl: gleffects_squeeze: เอฟเฟ็กต์การบีบ
opengl: gleffects_mirror: เอฟเฟกต์กระจกเงา
opengl: gleffects_identity: ไม่ต้องทำอะไรเลย
opengl: gleffects: Gstreamer เอฟเฟกต์ OpenGL
opengl: glfiltercube: ตัวกรองลูกบาศก์ OpenGL
opengl: glsrcbin: GL Src Bin
opengl: glsinkbin: GL Sink Bin
opengl: glfilterbin: ถังกรอง GL
opengl: glcolorbalance: สมดุลวิดีโอ
opengl: glcolorconvert: ตัวแปลงสี OpenGL
opengl: gldownload: ตัวดาวน์โหลด OpenGL
opengl: glupload: ตัวอัปโหลด OpenGL
opengl: glimagesinkelement: อ่างวิดีโอ OpenGL
opengl: glimagesink: GL Sink Bin
ประเภท pb: GstVideoMultiviewFlagsSet (GstDynamicTypeFactory)
ฟังก์ชัน typefind: เสียง/เสียง: aa, aax
ฟังก์ชั่น typefind: เสียง / x-xi: xi
ฟังก์ชั่น typefind: วิดีโอ / x-pva: pva
ฟังก์ชัน typefind: แอปพลิเคชัน/x-ssa: ssa, ass
typefindfunctions: แอปพลิเคชัน / octet-stream: ไม่มีส่วนขยาย
ฟังก์ชัน typefind: image/x-degas: ไม่มีนามสกุล
ฟังก์ชัน typefind: รูปภาพ/x-icon: ไม่มีส่วนขยาย
typefindfunctions: แอปพลิเคชัน / x-yuv4mpeg: ไม่มีส่วนขยาย
typefindfunctions: image/vnd.wap.wbmp: ไม่มีนามสกุล
ฟังก์ชั่น typefind: image/vnd.adobe.photoshop: psd
ฟังก์ชัน typefind: แอปพลิเคชัน/msword: doc
ฟังก์ชัน typefind: แอปพลิเคชัน/pdf: pdf
ฟังก์ชั่น typefind: เสียง / x-kss: kss
ฟังก์ชั่น typefind: วิดีโอ / x-ivf: ivf
typefindfunctions: เสียง/x-sap: sap
ฟังก์ชั่น typefind: เสียง / x-vgm: vgm
typefindfunctions: เสียง/x-gbs: gbs
ฟังก์ชั่น typefind: เสียง / x-ay: ay
ฟังก์ชั่น typefind: เสียง / x-gym: ยิม
ฟังก์ชั่น typefind: เสียง / x-nsf: nsf
ฟังก์ชั่น typefind: video/vivo: viv
typefindfunctions: application/x-mmsh: ไม่มีนามสกุล
typefindfunctions: multipart/x-mixed-replace: ไม่มีส่วนขยาย
ฟังก์ชัน typefind: video/x-dirac: ไม่มีนามสกุล
ฟังก์ชัน typefind: แอปพลิเคชัน/x-ms-dos-executable: dll, exe, ocx, sys, scr, msstyles, cpl
ฟังก์ชัน typefind: แอปพลิเคชัน/x-ar: ก
typefindfunctions: แอปพลิเคชัน / x-tar: tar
ฟังก์ชัน typefind: แอปพลิเคชัน/x-rar: rar
ฟังก์ชั่น typefind: image/svg+xml: svg
typefindfunctions: application/postscript: ps
ฟังก์ชั่น typefind: audio / x-caf: caf
typefindfunctions: เสียง/x-wavpack-แก้ไข: wvc
ฟังก์ชั่น typefind: audio/x-wavpack: wv, wvp
ฟังก์ชั่น typefind: เสียง / x-spc: spc
ฟังก์ชัน typefind: เสียง/aac: aac, adts, adif, loas
typefindfunctions: แอปพลิเคชัน / x-executable: ไม่มีส่วนขยาย
typefindfunctions: text/x-cmml: ไม่มีนามสกุล
typefindfunctions: แอปพลิเคชัน / x-ogg-skeleton: ไม่มีส่วนขยาย
typefindfunctions: audio/x-celt: ไม่มีนามสกุล
typefindfunctions: audio/x-speex: ไม่มีนามสกุล
typefindfunctions: แอปพลิเคชัน / x-ogm-text: ไม่มีส่วนขยาย
typefindfunctions: แอปพลิเคชัน / x-ogm-audio: ไม่มีส่วนขยาย
typefindfunctions: แอปพลิเคชัน / x-ogm-วิดีโอ: ไม่มีส่วนขยาย
ฟังก์ชัน typefind: video/x-theora: ไม่มีนามสกุล
ฟังก์ชัน typefind: audio/x-vorbis: ไม่มีนามสกุล
ฟังก์ชั่น typefind: audio/x-flac: flac
ฟังก์ชัน typefind: แอปพลิเคชัน/x-subtitle-vtt: vtt
ฟังก์ชัน typefind: คำบรรยาย/x-kate: ไม่มีนามสกุล
ฟังก์ชัน typefind: แอปพลิเคชัน/x-compress: Z
typefindfunctions: แอปพลิเคชัน / zip: zip
ฟังก์ชัน typefind: แอปพลิเคชัน/x-gzip: gz
ฟังก์ชัน typefind: แอปพลิเคชัน/x-bzip: bz2
ฟังก์ชั่น typefind: image/x-sun-raster: ras
ฟังก์ชั่น typefind: image/x-xpixmap: xpm
ฟังก์ชั่น typefind: image/x-jng: jng
ฟังก์ชั่น typefind: วิดีโอ / x-mng: mng
ฟังก์ชั่น typefind: image/x-xcf: xcf
ฟังก์ชั่น typefind: เสียง / x-sid: sid
ฟังก์ชั่น typefind: เสียง / x-sbc: sbc
typefindfunctions: เสียง/iLBC-sh: ilbc
ฟังก์ชัน typefind: เสียง/x-amr-wb-sh: amr
ฟังก์ชัน typefind: เสียง/x-amr-nb-sh: amr
ฟังก์ชั่น typefind: video/x-dv: dv, dif
ฟังก์ชั่น typefind: วิดีโอ / x-mve: mve
ฟังก์ชัน typefind: แอปพลิเคชัน/mxf: mxf
ฟังก์ชั่น typefind: วิดีโอ / x-matroska: mkv, mka, mk3d, webm
ฟังก์ชันค้นหาประเภท: รูปภาพ/x-portable-pixmap: pnm, ppm, pgm, pbm
ฟังก์ชั่น typefind: image/x-exr: exr
typefindfunctions: รูปภาพ/webp: webp
ฟังก์ชัน typefind: รูปภาพ/tiff: tif, tiff
ฟังก์ชั่น typefind: image/bmp: bmp
ฟังก์ชั่น typefind: image/png: png
ฟังก์ชัน typefind: รูปภาพ/gif: gif
ฟังก์ชั่น typefind: image/jpeg: jpg, jpe, jpeg
typefindfunctions: แอปพลิเคชัน / x-ape: ape
ฟังก์ชั่น typefind: เสียง / x- ย่อ: shn
ฟังก์ชั่น typefind: เสียง / x-rf64: rf64
ฟังก์ชันค้นหาประเภท: เสียง/x-w64: w64
ฟังก์ชั่น typefind: audio/x-ircam: sf
ฟังก์ชั่น typefind: เสียง / x-sds: sds
typefindfunctions: เสียง/x-voc: voc
ฟังก์ชั่น typefind: เสียง / x-nist: nist
ฟังก์ชั่น typefind: audio/x-paris: paf
ฟังก์ชั่น typefind: audio/x-svx: iff, svx
ฟังก์ชัน typefind: เสียง/x-aiff: aiff, aif, aifc
ฟังก์ชั่น typefind: เสียง / x-wav: wav
ฟังก์ชัน typefind: แอปพลิเคชัน/xml: xml
ฟังก์ชัน typefind: แอปพลิเคชัน/ttml+xml: ttml+xml
typefindfunctions: application/smil: smil
ฟังก์ชัน typefind: แอปพลิเคชัน/sdp: sdp
ฟังก์ชัน typefind: แอปพลิเคชัน/x-hls: m3u8
typefindfunctions: แอปพลิเคชัน/itc: itc
typefindfunctions: ข้อความ/รายการ uri: ram
ฟังก์ชั่น typefind: text/utf-32: txt
ฟังก์ชัน typefind: text/utf-16: txt
ฟังก์ชัน typefind: ข้อความ/ธรรมดา: txt
ฟังก์ชั่น typefind: video/x-flv: flv
typefindfunctions: application/vnd.ms-sstr+xml: ไม่มีนามสกุล
ฟังก์ชัน typefind: application/dash+xml: mpd, MPD
ฟังก์ชัน typefind: แอปพลิเคชัน/x-shockwave-flash: swf, swfl
ฟังก์ชัน typefind: แอปพลิเคชัน/x-pn-realaudio: ra, ram, rm, rmvb
ฟังก์ชัน typefind: แอปพลิเคชัน/vnd.rn-realmedia: ra, ram, rm, rmvb
ฟังก์ชั่น typefind: text/html: htm, html
ฟังก์ชั่น typefind: วิดีโอ / mj2: mj2
ฟังก์ชั่น typefind: image/x-jpc: jpc, j2k
ฟังก์ชั่น typefind: image/jp2: jp2
ฟังก์ชั่น typefind: image/x-quicktime: qif, qtif, qti
ฟังก์ชัน typefind: วิดีโอ/ควิกไทม์: mov, mp4
ฟังก์ชันค้นหาประเภท: แอปพลิเคชัน/x-3gp: 3gp
ฟังก์ชั่น typefind: เสียง/x-m4a: m4a
ฟังก์ชั่น typefind: วิดีโอ / x-nuv: nuv
ฟังก์ชันตัวพิมพ์: วิดีโอ/x-h265: h265, x265, 265
ฟังก์ชันค้นหาประเภท: วิดีโอ/x-h264: h264, x264, 264
ฟังก์ชัน typefind: วิดีโอ/x-h263: h263, 263
ฟังก์ชั่น typefind: video/mpeg4: m4v
ฟังก์ชั่น typefind: วิดีโอ / mpeg- ประถม: mpv, mpeg, mpg
ฟังก์ชั่น typefind: แอปพลิเคชัน / ogg: ogg, oga, ogv, ogm, ogx, spx, anx, axa, axv
ฟังก์ชั่น typefind: video/mpegts: ts, mts
ฟังก์ชัน typefind: วิดีโอ/mpeg-sys: mpe, mpeg, mpg
ฟังก์ชั่น typefind: เสียง / x-gsm: gsm
ฟังก์ชั่น typefind: เสียง / x-dts: dts
ฟังก์ชั่น typefind: เสียง/x-ac3: ac3, eac3
ฟังก์ชั่น typefind: เสียง/mpeg: mp3, mp2, mp1, mpga
ฟังก์ชั่น typefind: audio/x-mod: 669, amf, ams, dbm, digi, dmf, dsm, gdm, far, imf, it, j2b, mdl, med, mod, mt2, mtm, okt, psm, ptm, sam, s3m, stm, stx, ult, umx, xm
ฟังก์ชัน typefind: audio/x-ttafile: tta
typefindfunctions: application/x-apetag: mp3, ape, mpc, wv
ฟังก์ชัน typefind: แอปพลิเคชัน/x-id3v1: mp3, mp2, mp1, mpga, ogg, flac, tta
ฟังก์ชัน typefind: แอปพลิเคชัน/x-id3v2: mp3, mp2, mp1, mpga, ogg, flac, tta
ฟังก์ชั่น typefind: video/x-fli: flc, fli
typefindfunctions: เสียง/มือถือ-xmf: mxmf
ฟังก์ชั่น typefind: เสียง / riff-midi: กลาง, มิดิ
ฟังก์ชั่น typefind: เสียง/มิดี้: กลาง, มิดิ
ฟังก์ชั่น typefind: audio/x-imelody: imy, ime, imelody
ฟังก์ชั่น typefind: video/x-vcd: dat
ฟังก์ชั่น typefind: video/x-cdxa: dat
ฟังก์ชั่น typefind: เสียง / qcelp: qcp
ฟังก์ชั่น typefind: video/x-msvideo: avi
typefindfunctions: เสียง/x-au: au, snd
ฟังก์ชั่น typefind: audio/x-musepack: mpc, mpp, mp+
ฟังก์ชั่น typefind: video/x-ms-asf: asf, wm, wma, wmv
gio: giostreamsrc: แหล่งที่มาของสตรีม GIO
gio: giostreamsink: อ่างสตรีม GIO
gio: giosrc: แหล่ง GIO
gio: giosink: อ่าง GIO
การเข้ารหัส: encodebin: Encoder Bin
rawparse: rawvideoparse: rawvideoparse
rawaudioparse: rawaudioparse
rawparse: unalignedvideoparse: unalignedvideoparse
rawparse: unalignedaudioparse: unalignedaudioparse
การเล่น: parsebin: Parse Bin
การเล่น: urisourcebin: ตัวอ่าน URI
การเล่น: uridecodebin3: ตัวถอดรหัส URI
การเล่น: uridecodebin: ตัวถอดรหัส URI
การเล่น: decodebin3: Decoder Bin 3
การเล่น: decodebin: Decoder Bin
การเล่น: streamsynchronizer: Stream Synchronizer
การเล่น: คำบรรยายซ้อนทับ: การซ้อนทับคำบรรยาย
การเล่น: playsink: Player Sink
การเล่น: playbin3: Player Bin 3
การเล่น: playbin: Player Bin 2
แอป: แอปซิงค์: แอปซิงค์
แอป: แอปอาร์ซี: แอปเอสอาร์ซี
videoconvert: videoconvert: ตัวแปลง Colorspace
audioresample: audioresample: ตัวปรับแต่งเสียง
tcp: multisocketsink: อ่างล้างหลายซ็อกเก็ต
tcp: multifdsink: ตัวอธิบายไฟล์หลายไฟล์
tcp: tcpserversrc: ต้นทางเซิร์ฟเวอร์ TCP
tcp: tcpserversink: ซิงก์เซิร์ฟเวอร์ TCP
tcp: tcpclientsrc: แหล่งไคลเอนต์ TCP
tcp: tcpclientsink: อ่างไคลเอ็นต์ TCP
tcp: socketsrc: แหล่งที่มาของซ็อกเก็ต
coretracers: การรั่วไหล (GstTracerFactory)
coretracers: สถิติ (GstTracerFactory)
คอร์เทรเซอร์: rusage (GstTracerFactory)
coretracers: บันทึก (GstTracerFactory)
coretracers: เวลาแฝง (GstTracerFactory)
แอดเดอร์: แอดเดอร์: แอดเดอร์
ตัวแปลงเสียง: ตัวแปลงเสียง: ตัวแปลงเสียง
แยกย่อย: ssaparse: แยกวิเคราะห์คำบรรยาย SSA
แยกย่อย: แยกย่อย: แยกวิเคราะห์คำบรรยาย
แยกย่อย: subparse_typefind: srt, ย่อย, mpsub, mdvd, smi, txt, dks, vtt
องค์ประกอบหลัก: streamiddemux: Streamid Demux
องค์ประกอบหลัก: วาล์ว: องค์ประกอบวาล์ว
องค์ประกอบหลัก: หลายคิว: หลายคิว
องค์ประกอบหลัก: typefind: TypeFind
องค์ประกอบหลัก: ที: ข้อต่อท่อที
องค์ประกอบหลัก: filesink: File Sink
องค์ประกอบหลัก: คิว 2: คิว 2
องค์ประกอบหลัก: คิว: คิว
องค์ประกอบหลัก: ตัวเลือกเอาต์พุต: ตัวเลือกเอาต์พุต
องค์ประกอบหลัก: ตัวเลือกอินพุต: ตัวเลือกอินพุต
องค์ประกอบหลัก: เอกลักษณ์: เอกลักษณ์
องค์ประกอบหลัก: ช่องทาง: ข้อต่อท่อช่องทาง
องค์ประกอบหลัก: filesrc: แหล่งที่มาของไฟล์
องค์ประกอบหลัก: fdsink: Filedescriptor Sink
องค์ประกอบหลัก: fdsrc: Filedescriptor Source
องค์ประกอบหลัก: fakesink: Fake Sink
องค์ประกอบหลัก: fakesrc: แหล่งปลอม
องค์ประกอบหลัก: downloadbuffer: DownloadBuffer
องค์ประกอบหลัก: dataurisrc: ข้อมูล: องค์ประกอบแหล่งที่มา URI
องค์ประกอบหลัก: concat: Concat
องค์ประกอบหลัก: capsfilter: CapsFilter
videorate: videorate: ตัวปรับอัตราวิดีโอ
องค์ประกอบคงที่: bin: bin ทั่วไป
staticelements: ไปป์ไลน์: วัตถุไปป์ไลน์

จำนวนทั้งหมด: 25 ปลั๊กอิน 253 ฟีเจอร์

ฉันจะแก้ไขสภาพแวดล้อมของฉันเพื่อให้ตัวแปลงสัญญาณ mp4 และ avi ทำงานใน gstreamer ได้อย่างไร

เอาต์พุตสำหรับ รายการ apt gstreamer*:

gstreamer-qapt/focal 3.0.5-1ubuntu1 amd64
gstreamer1.0-adapter-pulseeffects/focal 4.7.1-2 amd64
gstreamer1.0-alsa/focal-updates,focal-security ตอนนี้ 1.16.2-4ubuntu0.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-alsa/focal-updates,focal-security 1.16.2-4ubuntu0.1 i386
gstreamer1.0-autogain-pulseeffects/โฟกัส 4.7.1-2 amd64
gstreamer1.0-clutter-3.0/focal ตอนนี้ 3.0.27-1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-convolver-pulseeffects/โฟกัส 4.7.1-2 amd64
gstreamer1.0-crystalhd/โฟกัส 1:0.0~git20110715.fdd2f19-13build1 amd64
gstreamer1.0-crystalhd/โฟกัส 1:0.0~git20110715.fdd2f19-13build1 i386
gstreamer1.0-crystalizer-pulseeffects/โฟกัส 4.7.1-2 amd64
gstreamer1.0-doc/focal,focal 1.16.2-2 ทั้งหมด
gstreamer1.0-espeak/focal 0.5.0-1 amd64
gstreamer1.0-fluendo-mp3/now 0.10.32.debian-1 amd64 [ติดตั้งในเครื่อง]
gstreamer1.0-gl/focal-updates,focal-security ตอนนี้ 1.16.2-4ubuntu0.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-gl/focal-updates, focal-security 1.16.2-4ubuntu0.1 i386
gstreamer1.0-gtk3/focal-updates,focal-security ตอนนี้ 1.16.2-1ubuntu2.1 amd64 [ติดตั้งอัตโนมัติ]
gstreamer1.0-gtk3/focal-updates,focal-security 1.16.2-1ubuntu2.1 i386
gstreamer1.0-libav-dbg/focal 1.16.2-2 amd64
gstreamer1.0-libav-dbg/focal 1.16.2-2 i386
gstreamer1.0-libav/focal ตอนนี้ 1.16.2-2 amd64 [ติดตั้งอัตโนมัติ]
gstreamer1.0-libav/focal 1.16.2-2 i386
gstreamer1.0-nice/focal ตอนนี้ 0.1.16-1 amd64 [ติดตั้งอัตโนมัติ]
gstreamer1.0-ดี/โฟกัส 0.1.16-1 i386
gstreamer1.0-omx-bellagio-config/focal 1.16.2-1 amd64
gstreamer1.0-omx-generic-config/focal 1.16.2-1 amd64
gstreamer1.0-omx-generic/focal 1.16.2-1 amd64
gstreamer1.0-opencv/โฟกัส 1.16.2-2.1ubuntu1 amd64
gstreamer1.0-packagekit/focal-updates,focal-security ตอนนี้ 1.1.13-2ubuntu1.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-pipewire/focal 0.2.7-1 amd64
gstreamer1.0-plugins-bad-dbg/focal 1.16.2-2.1ubuntu1 amd64
gstreamer1.0-plugins-bad-dbg/focal 1.16.2-2.1ubuntu1 i386
gstreamer1.0-plugins-bad-doc/focal,focal 1.16.2-2.1ubuntu1 ทั้งหมด
gstreamer1.0-plugins-bad/focal ตอนนี้ 1.16.2-2.1ubuntu1 amd64 [ติดตั้งอัตโนมัติ]
gstreamer1.0-plugins-bad/focal 1.16.2-2.1ubuntu1 i386
gstreamer1.0-plugins-base-apps/focal-updates,focal-security ตอนนี้ 1.16.2-4ubuntu0.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-plugins-base-apps/focal-updates,focal-security 1.16.2-4ubuntu0.1 i386
gstreamer1.0-plugins-base-dbg/focal-updates,focal-security 1.16.2-4ubuntu0.1 amd64
gstreamer1.0-plugins-base-dbg/focal-updates,focal-security 1.16.2-4ubuntu0.1 i386
gstreamer1.0-plugins-base-doc/focal-updates,focal-updates,focal-security,focal-security 1.16.2-4ubuntu0.1 ทั้งหมด
gstreamer1.0-plugins-base/focal-updates,focal-security ตอนนี้ 1.16.2-4ubuntu0.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-plugins-base/focal-updates,focal-security 1.16.2-4ubuntu0.1 i386
gstreamer1.0-plugins-good-dbg/focal-updates,focal-security 1.16.2-1ubuntu2.1 amd64
gstreamer1.0-plugins-good-dbg/focal-updates,focal-security 1.16.2-1ubuntu2.1 i386
gstreamer1.0-plugins-good-doc/focal-updates,focal-updates,focal-security,focal-security 1.16.2-1ubuntu2.1 ทั้งหมด
gstreamer1.0-plugins-good/focal-updates,focal-security ตอนนี้ 1.16.2-1ubuntu2.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-plugins-good/focal-updates,focal-security 1.16.2-1ubuntu2.1 i386
gstreamer1.0-plugins-rtp/focal 1.14.4.1 amd64
gstreamer1.0-plugins-ugly-dbg/focal 1.16.2-2build1 amd64
gstreamer1.0-plugins-ugly-dbg/focal 1.16.2-2build1 i386
gstreamer1.0-plugins-ugly-doc/focal,focal 1.16.2-2build1 ทั้งหมด
gstreamer1.0-plugins-ugly/focal ตอนนี้ 1.16.2-2build1 amd64 [ติดตั้งอัตโนมัติ]
gstreamer1.0-plugins-ugly/focal 1.16.2-2build1 i386
gstreamer1.0-pocketsphinx/focal 0.8.0+real5prealpha+1-6ubuntu4 amd64
gstreamer1.0-pulseaudio/focal-updates,focal-security ตอนนี้ 1.16.2-1ubuntu2.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-pulseaudio/focal-updates,focal-security 1.16.2-1ubuntu2.1 i386
gstreamer1.0-python3-dbg-plugin-loader/focal 1.16.2-2 amd64
gstreamer1.0-python3-plugin-loader/focal 1.16.2-2 amd64
gstreamer1.0-qt5/focal-updates,focal-security 1.16.2-1ubuntu2.1 amd64
gstreamer1.0-qt5/focal-updates,focal-security 1.16.2-1ubuntu2.1 i386
gstreamer1.0-rtsp-dbg/โฟกัส 1.16.2-3 amd64
gstreamer1.0-rtsp/focal 1.16.2-3 amd64
gstreamer1.0-tools/focal ตอนนี้ 1.16.2-2 amd64 [ติดตั้งแล้ว]
gstreamer1.0-tools/focal 1.16.2-2 i386
gstreamer1.0-vaapi-doc/focal,focal 1.16.2-2 ทั้งหมด
gstreamer1.0-vaapi/focal ตอนนี้ 1.16.2-2 amd64 [ติดตั้งอัตโนมัติ]
gstreamer1.0-x/focal-updates,focal-security ตอนนี้ 1.16.2-4ubuntu0.1 amd64 [ติดตั้งแล้ว]
gstreamer1.0-x/focal-updates,focal-security 1.16.2-4ubuntu0.1 i386
nobody avatar
gh flag
คุณสามารถเพิ่ม `dpkg -l | egrep 'libav|ffmpeg'` สำหรับคำถามของคุณ? ฉันไม่มีปัญหากับการเล่น mp4 หรือไฟล์อื่นๆ ด้วย gstreamer
Score:0

บางทีคุณอาจมี "การรบกวน" กับการติดตั้งงูหลามตัวอื่น เช่น จากอนาคอนดา โปรดตรวจสอบ ซึ่ง -a หลาม และ ซึ่ง -a python3. หากคุณพบสิ่งที่น่าสงสัย ให้ลองแก้ไขและเล่นไฟล์ mp4 อีกครั้ง

ฉันต้องทำอย่างนั้น เมื่อถึงจุดหนึ่งฉันแก้ไขของฉัน ~/.bashrc สำหรับอนาคอนด้ารวมถึง

ส่งออก PATH="${ANACONDA_DIR}/bin${PATH:+:${PATH}}"

งูหลามเริ่มต้นของฉันจึงมาจากอนาคอนดา เหนือสิ่งอื่นใด มันไม่มีโมดูล กิและฉันสงสัยว่านั่นคือ (หนึ่งใน) เหตุผลสูงสุดสำหรับ จีสตรีมเมอร์ ไม่ให้เล่นวิดีโอ

เปลี่ยนเป็น

ส่งออก PATH="${PATH:+${PATH}:}${ANACONDA_DIR}/bin"

ฉันกู้คืนการใช้ /usr/bin/python3ซึ่งมีโมดูล กิ ใช้ได้และอื่น ๆ ตอนนี้ จีสตรีมเมอร์ เล่นวิดีโอ

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา