Discussion:
[MPlayer-users] A strange problem with mplayer
jd1008
2015-07-18 00:25:54 UTC
Permalink
I have about 7 files I downloaded from youtube using
youtube-dl.

my versions of youtube-dl and mplayer are:

MPlayer SVN-r37150-4.8.3 (C) 2000-2014 MPlayer Team
$ youtube-dl --version
2015.05.10

OS is F20 x86_64

Below is the script that plays the list of these youtube videos:

$ /bin/ls -1 *.mp4 | while read f; do^Jmplayer "$f"^Jdone
bls -1 | while read f; do
mplayer "$f"
done
MPlayer SVN-r37150-4.8.3 (C) 2000-2014 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.

Playing Cathedral of the Madeleine Choir performing Ave verum corpus in
Italy.-61AU1QzBNWM.mp4.
libavformat version 55.19.104 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x720 24bpp 29.970 fps 1449.0 kbps (176.9 kbyte/s)
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
encoder: Lavf55.1.100
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.39.101 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 253.6 kbit/8.98% (ratio: 31698->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A: 0.0 V: 0.0 A-V: 0.039 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
No bind found for key 'C'.
A: 250.6 V: 250.6 A-V: 0.000 ct: 0.004 0/ 0 18% 1% 0.7% 0 0

======= OK, so where is this 'C' coming from?? It is causing mplayer to
exit with error
and the whole little script exist.


Here is the list of the YT videos I downloaded using youtube-dl:

Cathedral of the Madeleine Choir performing Ave verum corpus in
Italy.-61AU1QzBNWM.mp4
Cathedral of the Madeleine Choir performing Nativitie in Assisi,
Italy.-WzIc2rTfUdI.mp4
Choir of the Cathedral of the Madeleine performing Versa est in
luctum.-37-pRMQJ9DQ.mp4
Tantum Ergo - Cathedral of the Madeleine - Salt Lake City-u1GdRdKAEXg.mp4
The Madeleine Choir School - A Ceremony of Carols - 2012-XCoOOGWOReA.mp4
The Madeleine Choir School Ave Verum Corpus.mp4-ebqdqoUPD3Q.mp4
Peter White
2015-07-18 03:03:43 UTC
Permalink
Post by jd1008
I have about 7 files I downloaded from youtube using
youtube-dl.
MPlayer SVN-r37150-4.8.3 (C) 2000-2014 MPlayer Team
That version is over a year old. Current trunk is at r37432.
Post by jd1008
$ /bin/ls -1 *.mp4 | while read f; do^Jmplayer "$f"^Jdone
bls -1 | while read f; do
mplayer "$f"
done
That's a fancy way of trying to do

$ mplayer *.mp4

;)

Or what is the purpose of that script? Plus, it doesn't work.
Observe this for an illustration of what is going on:

$ touch 1.mp4 2.mp4 3.mp4
$ /bin/ls -1 *.mp4 | while read f; do cat; echo The End; done
2.mp4
3.mp4
The End

See how there is actual output of file names even though $f is never
read inside the while loop? Also note that the first .mp4 file is
missing from the output and 'The End' indeed only appears once.
It's the redirection of stdin through the pipe that's causing this.
Input is no longer coming from the keyboard but from ls.
Post by jd1008
No bind found for key 'C'.
A: 250.6 V: 250.6 A-V: 0.000 ct: 0.004 0/ 0 18% 1% 0.7% 0 0
======= OK, so where is this 'C' coming from?? It is causing mplayer to
exit with error
and the whole little script exist.
In your case the first file name gets assigned to $f, mplayer starts to
play it and gets the characters of the following names as commands on
stdin. So that's where the 'C' is coming from, being that the next file
starts with that character.

The exit with error I can only explain by suggesting it being a bug in
that old mplayer version you are running which must have been fixed by
now, because I cannot reproduce it.
I have to say though, that I did not actually download your samples. I
simply created links to an existing .mp4 using your file list.
Another possibility would be a malformed file triggering a bug on
playback. But it is definitely not the 'C' causing the exit.

Anyway long story short, why not simply use

$ mplayer *.mp4
?

Or if you absolutely must use a fancy shell construct:
$ for f in *.mp4; do mplayer "$f"; done

But I truly cannot imagine why one would need to overcomplicate it. ;)

Cheers
Peter
Post by jd1008
Cathedral of the Madeleine Choir performing Ave verum corpus in
Italy.-61AU1QzBNWM.mp4
Cathedral of the Madeleine Choir performing Nativitie in Assisi,
Italy.-WzIc2rTfUdI.mp4
Choir of the Cathedral of the Madeleine performing Versa est in
luctum.-37-pRMQJ9DQ.mp4
Tantum Ergo - Cathedral of the Madeleine - Salt Lake City-u1GdRdKAEXg.mp4
The Madeleine Choir School - A Ceremony of Carols - 2012-XCoOOGWOReA.mp4
The Madeleine Choir School Ave Verum Corpus.mp4-ebqdqoUPD3Q.mp4
_______________________________________________
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Reimar Döffinger
2015-07-18 10:06:49 UTC
Permalink
Post by jd1008
No bind found for key 'C'.
A: 250.6 V: 250.6 A-V: 0.000 ct: 0.004 0/ 0 18% 1% 0.7% 0 0
======= OK, so where is this 'C' coming from?? It is causing mplayer to exit
with error
and the whole little script exist.
In addition to the other good response:
That message does not make MPlayer quit.
It is (probably) the newline character coming after.
You could potentially use -noconsolecontrols to disable MPlayer
reading from stdin, but it will not really fix the issue.

Loading...