Konsole don't show typed input after parsing mplayer output

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a very strange behaviour with the script below. It executes properly, but after that anything I type at the prompt is recognized, but not displayed. So I can type another command or use the arrow buttons to select one from the history, but the prompt remains empty. If I execute the new, invisible command, the command output is displayed correctly, but the problem remains. Only with a new terminal instance the problem is gone.



#!/bin/bash

getAspect () [[ $line =~ Aspe[ck]t.is.*1.78:1 ]] && echo 2 && break
[[ $line == "VO: [null]"* ]] && echo 0 && break
done
pkill -n mplayer
)
return $aspectR # returns 1 (4:3), 2 (16:9) or 0 (no aspect ratio)


getAspect "./NameOfAMovieFile"


I could narrow down the problem to the following:



Using the mplayer output (see below) I inserted another test [[ $line =~ such ]] && echo 9 && break in the loop to sequentially check at which line the problem started.



Result: Line 4 (LIRC). If the test matched any line before, the problem didn't occur, else it did.



Saving the mplayer output to file and replacing mplayer with cat "saved_output" in the function didn't raise the problem.



So where does the error lie?



Is it a bug in the function, mplayer producing some weird output, bash or my terminal programs (tested with Konsole and Yakuake)?



How can I fix this?



# mplayer -vo null -nosound "./NameOfAMovieFile" 2>&1
MPlayer 1.2.r38008-Packman-8 (C) 2000-2017 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing ./NameOfAMovieFile.
libavformat version 58.12.100 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (vorbis), -aid 0, -alang eng
VIDEO: [H264] 1280x720 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.18.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
COMPATIBLE_BRANDS: iso6avc1mp41
MAJOR_BRAND: dash
MINOR_VERSION: 0
ENCODER: Lavf57.71.100
Load subtitles in ./
Audio: no sound
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1280x720 => 1280x720 Planar YV12 [zoom]
V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J
V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J


MPlayer interrupted by signal 2 in module: sleep_timer
V: 3.1 0/ 0 19% 0% 0.0% 0 0 [J

Exiting... (Quit)


My system: OpenSuse TumbleWeed, KDE










share|improve this question







New contributor




casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I have a very strange behaviour with the script below. It executes properly, but after that anything I type at the prompt is recognized, but not displayed. So I can type another command or use the arrow buttons to select one from the history, but the prompt remains empty. If I execute the new, invisible command, the command output is displayed correctly, but the problem remains. Only with a new terminal instance the problem is gone.



    #!/bin/bash

    getAspect () [[ $line =~ Aspe[ck]t.is.*1.78:1 ]] && echo 2 && break
    [[ $line == "VO: [null]"* ]] && echo 0 && break
    done
    pkill -n mplayer
    )
    return $aspectR # returns 1 (4:3), 2 (16:9) or 0 (no aspect ratio)


    getAspect "./NameOfAMovieFile"


    I could narrow down the problem to the following:



    Using the mplayer output (see below) I inserted another test [[ $line =~ such ]] && echo 9 && break in the loop to sequentially check at which line the problem started.



    Result: Line 4 (LIRC). If the test matched any line before, the problem didn't occur, else it did.



    Saving the mplayer output to file and replacing mplayer with cat "saved_output" in the function didn't raise the problem.



    So where does the error lie?



    Is it a bug in the function, mplayer producing some weird output, bash or my terminal programs (tested with Konsole and Yakuake)?



    How can I fix this?



    # mplayer -vo null -nosound "./NameOfAMovieFile" 2>&1
    MPlayer 1.2.r38008-Packman-8 (C) 2000-2017 MPlayer Team
    do_connect: could not connect to socket
    connect: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.

    Playing ./NameOfAMovieFile.
    libavformat version 58.12.100 (external)
    libavformat file format detected.
    [lavf] stream 0: video (h264), -vid 0
    [lavf] stream 1: audio (vorbis), -aid 0, -alang eng
    VIDEO: [H264] 1280x720 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 58.18.100 (external)
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    Clip info:
    COMPATIBLE_BRANDS: iso6avc1mp41
    MAJOR_BRAND: dash
    MINOR_VERSION: 0
    ENCODER: Lavf57.71.100
    Load subtitles in ./
    Audio: no sound
    Starting playback...
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [null] 1280x720 => 1280x720 Planar YV12 [zoom]
    V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J
    V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J


    MPlayer interrupted by signal 2 in module: sleep_timer
    V: 3.1 0/ 0 19% 0% 0.0% 0 0 [J

    Exiting... (Quit)


    My system: OpenSuse TumbleWeed, KDE










    share|improve this question







    New contributor




    casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a very strange behaviour with the script below. It executes properly, but after that anything I type at the prompt is recognized, but not displayed. So I can type another command or use the arrow buttons to select one from the history, but the prompt remains empty. If I execute the new, invisible command, the command output is displayed correctly, but the problem remains. Only with a new terminal instance the problem is gone.



      #!/bin/bash

      getAspect () [[ $line =~ Aspe[ck]t.is.*1.78:1 ]] && echo 2 && break
      [[ $line == "VO: [null]"* ]] && echo 0 && break
      done
      pkill -n mplayer
      )
      return $aspectR # returns 1 (4:3), 2 (16:9) or 0 (no aspect ratio)


      getAspect "./NameOfAMovieFile"


      I could narrow down the problem to the following:



      Using the mplayer output (see below) I inserted another test [[ $line =~ such ]] && echo 9 && break in the loop to sequentially check at which line the problem started.



      Result: Line 4 (LIRC). If the test matched any line before, the problem didn't occur, else it did.



      Saving the mplayer output to file and replacing mplayer with cat "saved_output" in the function didn't raise the problem.



      So where does the error lie?



      Is it a bug in the function, mplayer producing some weird output, bash or my terminal programs (tested with Konsole and Yakuake)?



      How can I fix this?



      # mplayer -vo null -nosound "./NameOfAMovieFile" 2>&1
      MPlayer 1.2.r38008-Packman-8 (C) 2000-2017 MPlayer Team
      do_connect: could not connect to socket
      connect: No such file or directory
      Failed to open LIRC support. You will not be able to use your remote control.

      Playing ./NameOfAMovieFile.
      libavformat version 58.12.100 (external)
      libavformat file format detected.
      [lavf] stream 0: video (h264), -vid 0
      [lavf] stream 1: audio (vorbis), -aid 0, -alang eng
      VIDEO: [H264] 1280x720 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
      ==========================================================================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      libavcodec version 58.18.100 (external)
      Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
      ==========================================================================
      Clip info:
      COMPATIBLE_BRANDS: iso6avc1mp41
      MAJOR_BRAND: dash
      MINOR_VERSION: 0
      ENCODER: Lavf57.71.100
      Load subtitles in ./
      Audio: no sound
      Starting playback...
      Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
      VO: [null] 1280x720 => 1280x720 Planar YV12 [zoom]
      V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J
      V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J


      MPlayer interrupted by signal 2 in module: sleep_timer
      V: 3.1 0/ 0 19% 0% 0.0% 0 0 [J

      Exiting... (Quit)


      My system: OpenSuse TumbleWeed, KDE










      share|improve this question







      New contributor




      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have a very strange behaviour with the script below. It executes properly, but after that anything I type at the prompt is recognized, but not displayed. So I can type another command or use the arrow buttons to select one from the history, but the prompt remains empty. If I execute the new, invisible command, the command output is displayed correctly, but the problem remains. Only with a new terminal instance the problem is gone.



      #!/bin/bash

      getAspect () [[ $line =~ Aspe[ck]t.is.*1.78:1 ]] && echo 2 && break
      [[ $line == "VO: [null]"* ]] && echo 0 && break
      done
      pkill -n mplayer
      )
      return $aspectR # returns 1 (4:3), 2 (16:9) or 0 (no aspect ratio)


      getAspect "./NameOfAMovieFile"


      I could narrow down the problem to the following:



      Using the mplayer output (see below) I inserted another test [[ $line =~ such ]] && echo 9 && break in the loop to sequentially check at which line the problem started.



      Result: Line 4 (LIRC). If the test matched any line before, the problem didn't occur, else it did.



      Saving the mplayer output to file and replacing mplayer with cat "saved_output" in the function didn't raise the problem.



      So where does the error lie?



      Is it a bug in the function, mplayer producing some weird output, bash or my terminal programs (tested with Konsole and Yakuake)?



      How can I fix this?



      # mplayer -vo null -nosound "./NameOfAMovieFile" 2>&1
      MPlayer 1.2.r38008-Packman-8 (C) 2000-2017 MPlayer Team
      do_connect: could not connect to socket
      connect: No such file or directory
      Failed to open LIRC support. You will not be able to use your remote control.

      Playing ./NameOfAMovieFile.
      libavformat version 58.12.100 (external)
      libavformat file format detected.
      [lavf] stream 0: video (h264), -vid 0
      [lavf] stream 1: audio (vorbis), -aid 0, -alang eng
      VIDEO: [H264] 1280x720 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
      ==========================================================================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      libavcodec version 58.18.100 (external)
      Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
      ==========================================================================
      Clip info:
      COMPATIBLE_BRANDS: iso6avc1mp41
      MAJOR_BRAND: dash
      MINOR_VERSION: 0
      ENCODER: Lavf57.71.100
      Load subtitles in ./
      Audio: no sound
      Starting playback...
      Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
      VO: [null] 1280x720 => 1280x720 Planar YV12 [zoom]
      V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J
      V: 0.0 0/ 0 ??% ??% ??,?% 0 0 [J


      MPlayer interrupted by signal 2 in module: sleep_timer
      V: 3.1 0/ 0 19% 0% 0.0% 0 0 [J

      Exiting... (Quit)


      My system: OpenSuse TumbleWeed, KDE







      bash shell-script mplayer






      share|improve this question







      New contributor




      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      casiosmu

      1011




      1011




      New contributor




      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      casiosmu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          casiosmu is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473787%2fkonsole-dont-show-typed-input-after-parsing-mplayer-output%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          casiosmu is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          casiosmu is a new contributor. Be nice, and check out our Code of Conduct.












          casiosmu is a new contributor. Be nice, and check out our Code of Conduct.











          casiosmu is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473787%2fkonsole-dont-show-typed-input-after-parsing-mplayer-output%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?