Bug 21485

Summary: VLC: screenshot fails
Product: Mageia Reporter: Bunk Bunk <soccerhub>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: johnltw, lists.jjorge, marja11
Version: 6   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: vlc CVE:
Status comment:

Description Bunk Bunk 2017-08-10 12:27:43 CEST
After the upgrade, vlc does not save screenshots anymore. mplayer does not save screenshots and gives a mplayer crash

See log:

/bin/mplayer -noquiet -slave -identify -nofs -sub-fuzziness 1 -vo xv, -ao pulse, -nodr -double -nomouseinput -input nodefault-bindings:conf=/dev/null -nokeepaspect -wid 106954770 -monitorpixelaspect 1 -subfont-osd-scale 3 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -noflip-hebrew -ass-styles /home/user/.config/smplayer/styles.ass -subcp ISO-8859-1 -subpos 100 -volume 12 -osdlevel 0 -vf-add screenshot=/home/user/pics/smplayer_screenshots/shot -noslices -channels 2 -af-add scaletempo -af-add equalizer=2:4.7:5.8:4.4:3.4:5:5:5.3:6.1:4.7 -softvol -softvol-max 110 /home/user/Downloads/Von_Ruegen_bis_Usedom_Rechtsruck_im_Ferienparadies_17.08.09_22-10_wdr_45.mpg.mkv

MPlayer 1.3.0-11.mga6.tainted-5.4.0 (C) 2000-2016 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.
Terminal type `unknown' is not defined.

Playing /home/user/Downloads/Von_Ruegen_bis_Usedom_Rechtsruck_im_Ferienparadies_17.08.09_22-10_wdr_45.mpg.mkv.
libavformat version 57.71.100 (external)
Mismatching header version 57.56.101
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (mpeg4), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=unknown
[lavf] stream 1: audio (mp3), -aid 0, -alang unknown
VIDEO:  [MP4V]  640x360  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [ass auto=1]
[ass] auto-open
Opening video filter: [screenshot=/home/user/pics/smplayer_screenshots/shot]
[ass] Shaper: FriBidi 0.19.7 (SIMPLE)
[ass] Using font provider fontconfig
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.89.100 (external)
Mismatching header version 57.64.101
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
Clip info:
 ENCODER: Lavf57.25.100
ID_CLIP_INFO_NAME0=ENCODER
ID_CLIP_INFO_VALUE0=Lavf57.25.100
ID_CLIP_INFO_N=1
Load subtitles in /home/user/Downloads/
ID_FILENAME=/home/user/Downloads/myvideo.mkv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=MP4V
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=360
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=2603.09
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=mad
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x7f4ea53eb100]bicubic scaler, from yuv420p to rgb24 using MMXEXT
[swscaler @ 0x7f4ea53eb100]using unscaled yuv420p -> rgb24 special converter
[png @ 0x7f4ea4298820]The encoder timebase is not set.
Could not open libavcodec PNG encoder
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
VO: [xv] 640x360 => 640x360 Planar YV12  [zoom]

[VD_FFMPEG] DRI failure.

ID_AUDIO_TRACK=0

sending VFCTRL_SCREENSHOT!
Frédéric "LpSolit" Buclin 2017-08-10 12:38:19 CEST

Assignee: soccerhub => bugsquad

Comment 1 Marja Van Waes 2017-08-11 12:23:35 CEST
Assigning to the registered maintainer of mplayer and vlc

Assignee: bugsquad => shlomif
Source RPM: (none) => mplayer, vlc
CC: (none) => marja11

Comment 2 Shlomi Fish 2017-08-11 14:51:12 CEST
A vlc snapshot works fine on Mageia 7 x64 with a .webm file. Please:

1. Provide input media that reproduces the problem.

2. Check if it happens with mpv as well.

3. Try to reduce the command line.
Comment 3 Bunk Bunk 2017-08-11 17:01:08 CEST
MPV: works

VLC: AVI and MKV, WEBM work, MP4 , VOB do not work

MPlayer: Does not work

3. Try to reduce the command line. ///

How to do this ?
Comment 4 Shlomi Fish 2017-08-11 21:42:42 CEST
(In reply to Bunk Bunk from comment #3)
> MPV: works
> 

ok.

> VLC: AVI and MKV, WEBM work, MP4 , VOB do not work
> 

interesting.

> MPlayer: Does not work
> 
> 3. Try to reduce the command line. ///
> 
> How to do this ?

See bisection on https://github.com/shlomif/how-to-share-code-online .
Comment 5 Bunk Bunk 2017-08-12 23:37:00 CEST
OK, but which code is needed here and how to get it ?
Comment 6 Shlomi Fish 2017-08-13 11:35:53 CEST
(In reply to Bunk Bunk from comment #5)
> OK, but which code is needed here and how to get it ?

just gradually remove options from the command until you have very few left that still exhibit the problem.
Comment 7 Bunk Bunk 2017-08-13 13:58:56 CEST
MPlayer matches this command : cap_%F_%p_%02n

Shown here also: https://latestsolution.com/wp-content/uploads/2016/09/SMPlayer2BPreferences-1.png
Comment 8 Shlomi Fish 2017-08-13 15:52:01 CEST
(In reply to Bunk Bunk from comment #7)
> MPlayer matches this command : cap_%F_%p_%02n
> 
> Shown here also:
> https://latestsolution.com/wp-content/uploads/2016/09/SMPlayer2BPreferences-
> 1.png

Wow! I meant - please reduce the mplayer invocation command - namely this long gobblygock:

<<<<<<<

/bin/mplayer -noquiet -slave -identify -nofs -sub-fuzziness 1 -vo xv, -ao pulse, -nodr -double -nomouseinput -input nodefault-bindings:conf=/dev/null -nokeepaspect -wid 106954770 -monitorpixelaspect 1 -subfont-osd-scale 3 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -noflip-hebrew -ass-styles /home/user/.config/smplayer/styles.ass -subcp ISO-8859-1 -subpos 100 -volume 12 -osdlevel 0 -vf-add screenshot=/home/user/pics/smplayer_screenshots/shot -noslices -channels 2 -af-add scaletempo -af-add equalizer=2:4.7:5.8:4.4:3.4:5:5:5.3:6.1:4.7 -softvol -softvol-max 110 /home/user/Downloads
>>>>>>>

Please comply
Comment 9 Bunk Bunk 2017-08-13 16:51:26 CEST
I have no clue where to find this. In my /bin mplayer is not connected to a program. It is shown as library.
Comment 10 David Walser 2017-08-13 23:06:45 CEST
Continue this bug for only VLC.  mplayer has already been reported as Bug 21463.

Source RPM: mplayer, vlc => vlc
Summary: screenshot vlc - mplayer fails => VLC: screenshot fails

Comment 11 Shlomi Fish 2017-08-22 17:10:28 CEST
(In reply to Bunk Bunk from comment #3)
> MPV: works
> 
> VLC: AVI and MKV, WEBM work, MP4 , VOB do not work
> 
> MPlayer: Does not work
> 
> 3. Try to reduce the command line. ///
> 
> How to do this ?

I tried VLC with an .mp4 file on mga7 and the snapshot works fine there. let me try on mga6
Comment 12 Shlomi Fish 2017-08-22 17:35:27 CEST
(In reply to Shlomi Fish from comment #11)
> (In reply to Bunk Bunk from comment #3)
> > MPV: works
> > 
> > VLC: AVI and MKV, WEBM work, MP4 , VOB do not work
> > 
> > MPlayer: Does not work
> > 
> > 3. Try to reduce the command line. ///
> > 
> > How to do this ?
> 
> I tried VLC with an .mp4 file on mga7 and the snapshot works fine there. let
> me try on mga6

on an MGA6 vbox machine with vlc from tainted, I can snapshot this file fine - http://www.shlomifish.org/Files/files/video/We%20Found%20Love%20-%20Rihanna%20(Cover%20by%20Tiffany%20Alvord%20Feat%20Andy%20Lange)-I2YzhhCXX2Y.mp4 (short URL - https://is.gd/fWCcV6 ). The snapshots appear under ~/Pictures/*.png . Does it work for you as well?
Comment 13 Shlomi Fish 2017-08-22 17:46:02 CEST
Bunk: if that file works for you - can you please share a file that doesn't work inside mga6's VLC?
Comment 14 Bunk Bunk 2017-08-22 18:10:56 CEST
(In reply to Shlomi Fish from comment #12)
> (In reply to Shlomi Fish from comment #11)
> > (In reply to Bunk Bunk from comment #3)
> > > MPV:  [ .... ] 0Love%20-
> %20Rihanna%20(Cover%20by%20Tiffany%20Alvord%20Feat%20Andy%20Lange)-
> I2YzhhCXX2Y.mp4 (short URL - https://is.gd/fWCcV6 ). The snapshots appear
> under ~/Pictures/*.png . Does it work for you as well?

__________-

ope. Did not go. My vlc is a mix from 3.0.0-0.git.19.mga6 and 3.0.0-0.git.19.mga6.tainted . Maybe i made a fault here, but MCC did not complain on pkg collision. 

I tried several mp4, of which neither worked. 
I got:
https://www.youtube.com/watch?v=gnriIuQuUA0

What's New.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp42)
File size                                : 11.7 MiB
Duration                                 : 3mn 20s
Overall bit rate mode                    : Variable
Overall bit rate                         : 491 Kbps
Encoded date                             : UTC 2017-08-05 02:02:11
Tagged date                              : UTC 2017-08-05 02:02:11
gsst                                     : 0
gstd                                     : 200620

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 3 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3mn 20s
Bit rate                                 : 362 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.013
Stream size                              : 8.66 MiB (74%)
Title                                    : ISO Media file produced by Google Inc.
Encoded date                             : UTC 2017-08-05 02:02:11
Tagged date                              : UTC 2017-08-05 02:02:11
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 3mn 20s
Bit rate mode                            : Variable
Bit rate                                 : 126 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Frame rate                               : 43.066 fps (1024 spf)
Compression mode                         : Lossy
Stream size                              : 3.00 MiB (26%)
Title                                    : ISO Media file produced by Google Inc.
Encoded date                             : UTC 2017-08-05 02:02:11
Tagged date                              : UTC 2017-08-05 02:02:11
Comment 15 Shlomi Fish 2017-08-22 18:25:05 CEST
(In reply to Bunk Bunk from comment #14)
> (In reply to Shlomi Fish from comment #12)
> > (In reply to Shlomi Fish from comment #11)
> > > (In reply to Bunk Bunk from comment #3)
> > > > MPV:  [ .... ] 0Love%20-
> > %20Rihanna%20(Cover%20by%20Tiffany%20Alvord%20Feat%20Andy%20Lange)-
> > I2YzhhCXX2Y.mp4 (short URL - https://is.gd/fWCcV6 ). The snapshots appear
> > under ~/Pictures/*.png . Does it work for you as well?
> 
> __________-
> 
> ope. Did not go. My vlc is a mix from 3.0.0-0.git.19.mga6 and
> 3.0.0-0.git.19.mga6.tainted . Maybe i made a fault here, but MCC did not
> complain on pkg collision. 
> 
> I tried several mp4, of which neither worked. 
> I got:
> https://www.youtube.com/watch?v=gnriIuQuUA0
> 

Thanks!

Can you please try enabling the Tainted and Tainted Updates repositories in the mageia control centre and then doing "sudo urpmi --auto --auto-select" to update all packages and then try again?
Comment 16 Bunk Bunk 2017-08-22 18:42:06 CEST
Several packages have been replaced, but no screenshot in sight.
The tainted updates were ticked such as the update option, which comes ticked by default when the repo is acitvated


%n@%m:%~%# urpmi --auto --auto-select


    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-gme-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-aa-3.0.0-0.git.19.mga6.tainted.x86_64.rpm                 
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-schroedinger-3.0.0-0.git.19.mga6.tainted.x86_64.rpm       
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-opengl-3.0.0-0.git.19.mga6.tainted.x86_64.rpm             
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-mpc-3.0.0-0.git.19.mga6.tainted.x86_64.rpm                
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-mod-3.0.0-0.git.19.mga6.tainted.x86_64.rpm                
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-twolame-3.0.0-0.git.19.mga6.tainted.x86_64.rpm            
    http://mirrors.mageia.org/api/mageia.6.x86_64.list: media/tainted/release/vlc-plugin-sid-3.0.0-0.git.19.mga6.tainted.x86_64.rpm                
vlc-plugin-opengl-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-gme-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-schroedinger-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-aa-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-sid-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-twolame-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-mod-3.0.0-0.git.19.mga6.tainted.x86_64.rpm vlc-plugin-mpc-3.0.0-0.git.19.mga6.tainted.x86_64.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten …                    ###
      1/8: vlc-plugin-mpc        ###
      2/8: vlc-plugin-mod        ###
      3/8: vlc-plugin-twolame    ###
      4/8: vlc-plugin-sid        ###
      5/8: vlc-plugin-aa         ###
      6/8: vlc-plugin-schroedinger
                                 ###
      7/8: vlc-plugin-gme        ###
      8/8: vlc-plugin-opengl     ###
Comment 17 Shlomi Fish 2017-08-22 18:47:31 CEST
(In reply to Bunk Bunk from comment #16)
> Several packages have been replaced, but no screenshot in sight.
> The tainted updates were ticked such as the update option, which comes
> ticked by default when the repo is acitvated
> 
> 
> %n@%m:%~%# urpmi --auto --auto-select
> 
> 
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-gme-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-aa-3.0.0-0.git.19.mga6.tainted.x86_64.rpm  
> 
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-schroedinger-3.0.0-0.git.19.mga6.tainted.
> x86_64.rpm       
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-opengl-3.0.0-0.git.19.mga6.tainted.x86_64.
> rpm             
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-mpc-3.0.0-0.git.19.mga6.tainted.x86_64.rpm 
> 
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-mod-3.0.0-0.git.19.mga6.tainted.x86_64.rpm 
> 
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-twolame-3.0.0-0.git.19.mga6.tainted.x86_64.
> rpm            
>     http://mirrors.mageia.org/api/mageia.6.x86_64.list:
> media/tainted/release/vlc-plugin-sid-3.0.0-0.git.19.mga6.tainted.x86_64.rpm 
> 
> vlc-plugin-opengl-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-gme-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-schroedinger-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-aa-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-sid-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-twolame-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-mod-3.0.0-0.git.19.mga6.tainted.x86_64.rpm
> vlc-plugin-mpc-3.0.0-0.git.19.mga6.tainted.x86_64.rpm von
> /var/cache/urpmi/rpms wird installiert
> Vorbereiten …                    ###
>       1/8: vlc-plugin-mpc        ###
>       2/8: vlc-plugin-mod        ###
>       3/8: vlc-plugin-twolame    ###
>       4/8: vlc-plugin-sid        ###
>       5/8: vlc-plugin-aa         ###
>       6/8: vlc-plugin-schroedinger
>                                  ###
>       7/8: vlc-plugin-gme        ###
>       8/8: vlc-plugin-opengl     ###

thanks! Can you try:

1. Restarting VLC.

2. Playing the file I gave.

3. taking the snapshot using the last entry in the "Video" menu.

4. Also try in a new Unix user account.
Comment 18 Bunk Bunk 2017-08-22 18:54:51 CEST
OK, did. No success. Need to do step 4 though
Comment 19 Shlomi Fish 2017-08-22 19:15:25 CEST
(In reply to Bunk Bunk from comment #18)
> OK, did. No success. Need to do step 4 though

thanks!
Comment 20 Bunk Bunk 2017-08-27 22:06:33 CEST
Hello ! Did step 4. I was able to take screenshots on avi, but not for mp4 or mkv
Comment 21 Shlomi Fish 2017-08-27 23:27:04 CEST
(In reply to Bunk Bunk from comment #20)
> Hello ! Did step 4. I was able to take screenshots on avi, but not for mp4
> or mkv

that is strange. I don't know what the problem is. Perhaps it is due to the VLC video backend and/or your hardware.
John L. ten Wolde 2017-08-30 07:49:42 CEST

CC: (none) => johnltw

Comment 22 Bunk Bunk 2017-10-10 21:35:24 CEST
Now working. MAgeia has fixed itself
Comment 23 José Jorge 2018-02-16 11:48:21 CET
(In reply to Bunk Bunk from comment #22)
> Now working. MAgeia has fixed itself

Closing

Status: NEW => RESOLVED
CC: (none) => lists.jjorge
Resolution: (none) => FIXED