xwmario / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

Screenshot plugin does not work #786

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Debain 6 3 bit
2. Install ffmpeg and other from this guide: 
https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide 
3. do add these two options when compiling ffmpeg: --enable-libfreetype 
--enable-filter=drawtext

otherwise you will get no drawtext error

4. Next try to create a screenshot and you will get:

Video screenshots creation started. Please wait this could take some time
ffmpeg version git-2012-11-27-8aa6d89 Copyright (c) 2000-2012 the FFmpeg 
developers
built on Nov 27 2012 17:42:48 with gcc 4.4.5 (Debian 4.4.5-8)
configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx 
--enable-libx264 --enable-nonfree --enable-version3 --enable-libfreetype 
--enable-filter=drawtext
libavutil      52.  9.102 / 52.  9.102
libavcodec     54. 77.100 / 54. 77.100
libavformat    54. 37.100 / 54. 37.100
libavdevice    54.  3.100 / 54.  3.100
libavfilter     3. 23.102 /  3. 23.102
libswscale      2.  1.102 /  2.  1.102
libswresample   0. 17.101 /  0. 17.101
libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 
'/home/downloads/psbox/Deadfall.2012.1080p.WEB-DL.DD5.1.H264-BS/Deadfall.2012.10
80p.WEB-DL.DD5.1.H264-BS.mkv':
Metadata:
creation_time   : 2012-11-24 11:27:26
Duration: 01:34:39.68, start: 0.000000, bitrate: 4336 kb/s
Chapter #0.0: start 0.000000, end 499.000000
Metadata:
title           : Chapter 1
Chapter #0.1: start 499.000000, end 984.000000
Metadata:
title           : Chapter 2
Chapter #0.2: start 984.000000, end 1503.000000
Metadata:
title           : Chapter 3
Chapter #0.3: start 1503.000000, end 2078.000000
Metadata:
title           : Chapter 4
Chapter #0.4: start 2078.000000, end 2667.000000
Metadata:
title           : Chapter 5
Chapter #0.5: start 2667.000000, end 3187.000000
Metadata:
title           : Chapter 6
Chapter #0.6: start 3187.000000, end 3730.000000
Metadata:
title           : Chapter 7
Chapter #0.7: start 3730.000000, end 4173.000000
Metadata:
title           : Chapter 8
Chapter #0.8: start 4173.000000, end 4638.000000
Metadata:
title           : Chapter 9
Chapter #0.9: start 4638.000000, end 5315.000000
Metadata:
title           : Chapter 10
Chapter #0.10: start 5315.000000, end 5679.680000
Metadata:
title           : Chapter 11
Stream #0:0(eng): Video: h264 (High), yuv420p, 1908x804 [SAR 1:1 DAR 159:67], 
23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s (default)
Metadata:
title           : AC3 5.1
Stream #0:2(eng): Subtitle: subrip (default)
[Parsed_drawtext_0 @ 0x9b378a0] No font filename provided
[AVFilterGraph @ 0x9c080c0] Error initializing filter 'drawtext' with args 
'timecode=00\:00\:00\:00 :rate=24 :fontcolor=white :fontsize=21 
:shadowcolor=black :x=5 :y=5'
Error opening filters!
Done

What is the expected output? What do you see instead?

I want a png of screenshot in the folder but i get the error

What environment are you using?
1. My ruTorrent version is...0.9.2
2. My rTorrent version is...0.13.2
3. I use VPS... Debain 6... CLI...

Are some errors present in the web-server log?
No

Are some errors present in the browser error console?
No

Please provide any additional information below.
Thanks

Original issue reported on code.google.com by safwan...@gmail.com on 27 Nov 2012 at 5:37

GoogleCodeExporter commented 8 years ago
>1. My ruTorrent version is...0.9.2

Really? Very strange...

Anyway, open file plugins/screenshots/action.php, find line

' -y -vframes 1 -an '.

replace it to 

' -sn -y -vframes 1 -an '.

and try again.

Original comment by novik65 on 27 Nov 2012 at 8:47

GoogleCodeExporter commented 8 years ago
I did what you asked but same error

Video screenshots creation started. Please wait this could take some time
ffmpeg version git-2012-11-27-8aa6d89 Copyright (c) 2000-2012 the
FFmpeg developers
built on Nov 27 2012 17:42:48 with gcc 4.4.5 (Debian 4.4.5-8)
configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac
--enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-librtmp --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
--enable-version3 --enable-libfreetype --enable-filter=drawtext
libavutil      52.  9.102 / 52.  9.102
libavcodec     54. 77.100 / 54. 77.100
libavformat    54. 37.100 / 54. 37.100
libavdevice    54.  3.100 / 54.  3.100
libavfilter     3. 23.102 /  3. 23.102
libswscale      2.  1.102 /  2.  1.102
libswresample   0. 17.101 /  0. 17.101
libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/downloads/psbox/INE
Data Center Storage/ccie-datacenter-storage-006-high.mov':
Metadata:
major_brand     : qt
minor_version   : 537199360
compatible_brands: qt
creation_time   : 2012-10-14 12:50:48
Duration: 00:12:27.08, start: 0.000000, bitrate: 722 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 654 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn,
59.94 tbc
Metadata:
creation_time   : 2012-10-14 12:50:48
handler_name    : Apple Alias Data Handler
timecode        : 01:00:00:00
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, stereo,
fltp, 62 kb/s
Metadata:
creation_time   : 2012-10-14 12:50:48
handler_name    : Apple Alias Data Handler
Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time   : 2012-10-14 12:50:48
handler_name    : Apple Alias Data Handler
timecode        : 01:00:00:00
[Parsed_drawtext_0 @ 0xad0f6e0] No font filename provided
[AVFilterGraph @ 0xad0fcc0] Error initializing filter 'drawtext' with
args 'timecode=00\:00\:00\:00 :rate=24 :fontcolor=white :fontsize=21
:shadowcolor=black :x=5 :y=5'
Error opening filters!
Done

Original comment by safwan...@gmail.com on 27 Nov 2012 at 8:58

GoogleCodeExporter commented 8 years ago
1) Plugin 'screenshot' doesn't use any type of overlayed text-on-video. As 
result, you don't need the filter 'drawtext' or something like this. For 
example, my ffmpeg configuration:

ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  4 2012 14:06:08 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
  configuration: --disable-yasm
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100

2) Plugin 'screenshot' isn't generate any type of diagnostic. How you obtain 
it? Do you use a modified plugin?
3) Yet once - what about ruTorrent version? It can't be 0.9.2, 0.9.2 - is a 
*rtorrent* version.

Original comment by novik65 on 28 Nov 2012 at 7:19

GoogleCodeExporter commented 8 years ago
This should have appeared:
[Parsed_drawtext_0 @ 0x16ef9060] Using 
"/usr/share/fonts/bitstream-vera/Vera.ttf"

Check this forum thread on how to fix this:
http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&start=10#p2302

Original comment by lowraid...@gmail.com on 28 Nov 2012 at 10:05

GoogleCodeExporter commented 8 years ago
Thanks for the replies.

Regarding your first comment: I already had ffmpeg from debain 6 repository, 
obviously old. But the plugin did not worked. Once i compiled the latest my 
self the errors started. Without drawtext i got error that drawtext not found 
and after installing the ffmpeg with drawtext i got this:

[Parsed_drawtext_0 @ 0xad0f6e0] No font filename provided
[AVFilterGraph @ 0xad0fcc0] Error initializing filter 'drawtext' with args 
'timecode=00\:00\:00\:00 :rate=24 :fontcolor=white :fontsize=21 
:shadowcolor=black :x=5 :y=5'
Error opening filters!

2nd comment: I have uploaded a screenshot for the console i get. i did not 
installed this plugin myself, it was alrady bundled in /plugins

3rd Comment, sorry its 0.13.2: should i update?

Original comment by safwan...@gmail.com on 28 Nov 2012 at 12:20

Attachments:

GoogleCodeExporter commented 8 years ago
1) This is a third-party plugin, ask his author. His name on ruTorrent fiorum 
is 'hwk'. Standard plugin 'screenshot' work with torrent's data, not with 
regular files on your disk.
2) 0.13.2 - is a *libtorrent* version. ruTorrent version you can see at the 
browser's title.

Original comment by novik65 on 28 Nov 2012 at 2:42