Posts by fairbird

    Test it

    Code
    amixer -c 0 sset 'Audio hdmi-out mute' on
    amixer -c 0 sset 'Audio spdif mute' on
    amixer -c 0 sset 'Master' 255


    And you own the device... so try to find the right command.

    Ask the AI for help:

    https://chatgpt.com/

    Or

    ‎Google Gemini
    Meet Gemini, Google’s AI assistant. Get help with writing, planning, brainstorming, and more. Experience the power of generative AI.
    gemini.google.com


    The question is, how do I play a /tmp/a.mp4 file directly through Telnet using gst-launch-1.0 on a Dreamtwo with amalog cpu?


    Once you find the correct command to play the audio, send it to me.

    The most important thing is that the audio works, even if it plays along with the channel's audio at the same time.

    Don't worry, the plugin does everything. The important thing is to find the correct command to play the audio.

    Bein Media quickly acquires the copyrights for Twitter and YouTube in Türkiye. The Turkish Super League is one of the most difficult leagues in the world to decrypt.


    We shouldn't have to find alternative links for these broadcasts. They can usually be watched via the 16E satellite.

    This is not plugin issue .. This is normal .. Even if you try to play video through browser you will get same message.

    Because Some videos are uploaded and protected by their owner and are intended for local or private networks.

    Okay ..
    Now


    1. Run these in Telnet first (To fix "Device Busy"):

    Code
    fuser -k /dev/snd/*
    amixer -c 0 sset 'Audio hdmi-out mute' off
    amixer -c 0 sset 'Audio spdif mute' off
    amixer -c 0 sset Master 100% unmute

    2. Test these in Telnet (One by one) to find sound: after each line wait 5 second tomake sure if work or not then test second line

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! decodebin ! audioconvert ! audioresample ! alsasink device=hw:0,0
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! decodebin ! audioconvert ! audioresample ! aml_asink
    /usr/bin/aplay -D plughw:0,0 /tmp/a.mp4

    3. If a command works, put it in test.txt like this:

    Code
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! alsasink device=hw:0,0

    You need by self to find way to play /tmp/a.mp4
    It is so diffecaly from my side because I do not have device ...

    Now test these command direct in telnet no need from plugin .. each line use it after 5 seconds if not work the last line .. and send the output als

    and make sure you are installed alsa-utils.deb

    why you get this error ? and aplay already installed by alsa-utils.deb .. Stranger

    Code
    bash: aplay: command not found

    Now put these lines one by one into /tmp/test.txt to find which one works.

    If none of the above work, run this specific command in Telnet and send the result. It will list exactly what the box sees

    Code
    aplay -L

    an

    Code
    amixer scontrols

    Another code test ... each code separate


    Code
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! aml_asink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! dvbaudiosink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! autoaudiosink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! alsasink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! osssink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audio/x-raw,format=S16LE,channels=2,rate=48000 ! dvbaudiosink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audio/x-raw,format=S16LE,channels=2,rate=44100 ! aml_asink
    gst-launch-1.0 filesrc location=%s ! qtdemux ! avdec_aac ! audioconvert ! audioresample ! aml_asink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! pulsesink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! jackaudiosink

    See ... different test now ..

    1- Send interface.py to plugin
    2- send test.txt to /tmp folder
    3- do restart

    4- Test the video

    if audio work fine ..

    if not then only open the test.txt and change the inside code with one of these codes ...
    Gradually replace the existing line in the file with just one line of these codes.
    No need to restart e2 .. just replace and test replace and test.. If audio work tell me which line work if does not send the debug file.

    Code
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! dvbaudiosink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! osssink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! tinyalsasink
    gst-launch-1.0 filesrc location=%s ! decodebin ! audioconvert ! audioresample ! alsasink device=hw:0,0

    Also do this ...
    1- Stop enigma2

    Code
    init 4

    2- give this command

    Code
    enigma2 > /tmp/enigma_log.txt 1>&2

    3- Then run the file from a.mp4 by movie player from pvr than send the log from /tmp/enigma_log.txt

    4- Then back again to normal e2 work and give this command and sen the output

    Code
    aplay -L

    Test 1: The "Fake Video" Sink

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux name=demux demux.audio_0 ! queue ! aacparse ! avdec_aac ! audioconvert ! audioresample ! alsasink demux.video_0 ! queue ! fakesink

    Test 2: Direct ALSA without GStreamer Wrapper

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! "audio/x-raw,format=S16LE,channels=2,rate=48000" ! alsasink provide-clock=false sync=false

    Test 3: The "OSS" Emulation

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! osssink device=/dev/dsp

    One more important check:

    Code
    gst-inspect-1.0 | grep dvb

    if sees dvbaudiosink, than to try:

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! dvbaudiosink

    How can you explain that if the “Use DASH MP4 format (YouTube)” function is disabled, the sound works (despite the poor image quality - worse resolution)???

    I explained before about (Use DASH MP4) !

    I told you Youtube using different way to extract video format quality of resolution ..
    Under 1920 FHD the video + sound come together no using DASH but with height quality from FHD and higher using DASH video separate than audio
    Default player of E2 can not run it ... Only Exteplyer3 + plugin of serviceAPP (Do not ask me bout support it)

    So I use in this plugin different way if the image does not have Exteplyer3 + of serviceAPP (My codes) is downlaod audio then play with video together


    CLEAR ?! This is last explain about this point.

    1- OpenATV 7.6 still not work good audio on DreamOne/Two ... because they didn't use original patch from multimedia as you know closed soure

    So do not waste time to test OpenATV just focus with DreamOS. I will only right now support DreamOS images for DreamOne/Two .. no support for openatv.


    2- now test only on DreamOS .. Do not waste time with openatv

    test this combined command in Telnet. It tells Enigma2 to "pause" the current stream so the background audio can take over the hardware:

    The "Service Pause" Test

    Code
    wget -qO- "http://127.0.0.1/web/remotecontrol?command=119" && gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! alsasink && wget -qO- "http://127.0.0.1/web/remotecontrol?command=119"


    If that doesn't work, try the "Mute" method:

    This mutes the box, runs the audio, then unmutes.

    Code
    wget -qO- "http://127.0.0.1/web/vol?set=mute" && gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! alsasink && wget -qO- "http://127.0.0.1/web/vol?set=unmute"

    You did not answer me .. notification sound work ?!!

    Now test this

    Test 1:

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! volume volume=1.0 ! audioresample ! "audio/x-raw,rate=48000" ! alsasink device=hw:0,2

    Test 2:

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! "audio/x-raw,rate=48000" ! alsasink device=hw:0,2

    Check the Internal Mixer

    look for "PCM" or "Multi" entries in the output and see if they are at 0% or [off]

    Code
    amixer -c 0 scontents

    Test 3:

    Code
    gst-launch-1.0 filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! volume volume=2.0 ! audioresample ! alsasink device=hw:0,2


    run this command and send the output. This will show if the "DreamOne/Two" has a specific volume slider for the secondary device that is muted:

    Code
    amixer -c 0 contents | grep -E "name='|: values="

    As I said many times ...

    I can not solve any issues If I never get it on my Dm920 .. with me no problem at all with DreamOS or open source images ...

    Also All images of DreamOS OE2.5 is old python 2.7 not as open source image alwasy new version of python 3.x

    And Really soon I will stop to support old python 2 So no more support for all DreamOS image (It is just waste my time)

    if the notification sound work on your dreamtwo ?!!

    Than test this also and send feedback ... Don't forget to add /tmp/a.mp4


    Test 1: The "Notification Style" Command

    This uses the same logic that worked for your wav files, but adds the necessary parts to handle the YouTube mp4.

    Code
    gst-launch-1.0 -q filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! alsasink


    Test 2: Forced Hardware Parameters

    If Test 1 gives the "Invalid Argument" error, we force it to the standard format used by most notification sounds:

    Code
    gst-launch-1.0 -q filesrc location=/tmp/a.mp4 ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! "audio/x-raw,format=S16LE,channels=2,rate=44100" ! alsasink


    Test 3: The "Decodebin" style (Same as notification but for MP4)

    Code
    gst-launch-1.0 -q filesrc location=/tmp/a.mp4 ! decodebin ! audioconvert ! audioresample ! alsasink


    read my last replay again and do it test again I have updated ...

    notification sound work or not on your dreamtwo ?!!