Annonces Google
Serveur IRC
Serveur : irc.portlane.se
Canal : #AmigaNG
Activité du Site

Pages vues depuis 25/07/2007 : 24 892 441

  • Nb. de membres 186
  • Nb. d'articles 1 269
  • Nb. de forums 19
  • Nb. de sujets 20
  • Nb. de critiques 24

Top 10  Statistiques

Index du forum »»  Logiciels »» SMtube problème

SMtube problème#2344

6Contributeur(s)
sinisruszzd10hPseudaxosCreolsK-LCrashMidnick
3 Modérateur(s)
K-LElwoodcorto
zzd10h zzd10hicon_post
par mail, je t'avais demandé de me dire :
-ce que te renvoyait la commande "APPDIR:Mplayer" dans un shell
-d'essayer les SObjs: que je t'avais envoyé.


K-L K-Licon_post
Là, c'est clairement un pointage vers un mauvais executable de MPlayer.

Mes options idéales avec une Radeon HD sur le X1000 :

<MPLAYER>APPDIR:MPlayer-Altivec
<MPLAYER_OPTIONS>-vo comp_yuv2 -ao ahi -autosync 30 -cache 8192 -cache-min 20 
<CONSOLE>0/400/640/400
<FFPLAY>APPDIR:ffplay
<FFPLAY_OPTIONS>-infbuf
<FFMPEG>APPDIR:ffmpeg
<FFMPEG_OPTIONS>-b:a 128k
<FFMPEG_OUTPUT_TYPE>MP3
<DOWNLOADER>Amiga/Download/Download
<DOWNLOADER_OPTIONS>DEST
<DOWNLOADER_DEFAULT_EXTENSION>MP4
<DOWNLOADER_DEFAULT_PATH>Amiga/Videos
<DEBUG>ON
<WAIT>OFF
<SECONDS>3

Il existe une version non Altivec de LiveForIt-Mplayer. Si APPDIR: ne la trouve pas, tu remplaces APPDIR: par le chemin complet vers ton exécutable.

Pour utiliser comp_yuv2 , il faut le pilote Radeon HD 2.xx
--
AmigaONE X1000/1,8 Ghz (A-Eon), Radeon RX560, 2 Go de Ram et OS4.1 FE
Pseudaxos Pseudaxosicon_post
Au lieu d'APPDIR:, j'ai mis le chemin complet mais c'est la même chose... Enfin je veux dire que rien ne change.. J'ai le son, mais la fenêtre de la vidéo est vide et dans la console, c'est noté comp_yuv2.
Je ne vois pas où il pourrait chercher un autre fichier config d'Mplayer. Je n'ai pourtant rien changé du tout et ça ne fonctionne plus depuis que j'ai mis à jour le système.
De toute manière Smtube est tellement lent à se charger avec ces histoires de libpng que je vais attendre une correction..

zzd10h zzd10hicon_post
Regarde dans PROGDIR:Mplayer/conf, peut-être qu'il y a une option par défaut.

Tu as mis une nouvelle version de MPlayer dernièrement ?
Pseudaxos Pseudaxosicon_post
Non, je n'ai pas changé de version d'Mplayer. C'est la liveforit d'Août 2015 d'os4depot.

Ce qui est complexe c'est qu'il y a un fichier Smtube.ini dans sys:prefs/envarc ; un fichier conf dans sys:c/Mplayer/conf/config et peut-être un autre ailleurs ??.. Je ne sais pas comment faire.. 

Si je veux lancer une vidéo depuis mon disque dur, je n'ai pourtant aucun souci. C'est la lecture depuis Smtube qui ne veut rien savoir comme si le fichier config était ailleurs... (le vrai qu'on cherche à éditer). 

Si je veux être méthodologique, jecommence par quoi, pas à pas messieurs les connaisseurs.. ?

zzd10h zzd10hicon_post
1) quelle est la commande que tu lances pour lire une vidéo depuis le WB ? avec quelles options ?

2) dans smtube.ini, mets wait à 10, comme ça tu auras le temps de voir la commande envoyée à Mplayer par smtube

on comparera ensuite.
on va y arriver ;)
Pseudaxos Pseudaxosicon_post
Depuis un cli :

AOS4:C/MplayerLFI/mplayer -vo comp -cache 8192 -cache-min 20 -autoq 100 -autosync 30 "Work:Amiga_Youtube/Clips/Dr. Alban - It's my life.mp4"
LiveForIt-MPlayer-6.5.7 SVN-r37230-snapshot-1.1.1 (C) 2000-2014 MPlayer Team

Playing Work:Amiga_Youtube/Clips/Dr. Alban - It's my life.mp4.
Cache fill:  0.00% (0 bytes)   

libavformat version 56.36.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  492x360  24bpp  29.970 fps  549.6 kbps (67.1 kbyte/s)
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
 creation_time: 2013-12-03 05:33:17
Load subtitles in Work:Amiga_Youtube/Clips/
VO: [comp] Welcome man !.
VO: [comp] screen use driver: RadeonHD.chip
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.41.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatbe, 96.0 kbit/3.40% (ratio: 12002->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Not supported audio format 0000001c
  Endian: BE
  Signed: Yes
  Float: Yes
  Bits: 32
  Special Type: 0
Using Format AF_FORMAT_S16_BE
AHI: Sound format 28 not supported by this driver.
AO: [ahi_dev2] 44100Hz 2ch s16be (2 bytes per sample)
Starting playback...
libmpcodecs/vd.c:mpcodecs_config_vo:d
Movie-Aspect is undefined - no prescaling applied.
VO: [comp] 492x360 => 492x360 Planar YV12 
vo_directrendering 0
screen 1.777778
monitor ratio: 16, 16
VO: Disabling blanker
[swscaler @ 0x51a32c30]bicubic scaler, from yuv420p to argb using C
[swscaler @ 0x51a32c30]No accelerated colorspace conversion found from yuv420p to argb.
[swscaler @ 0x51a32c30]using unscaled yuv420p -> argb special converter
Select error: No such file or directory
AmigaOS4.1 Bug select() don't reset or set errno value
Internal COMP FPS 27
VO: Enabling blanker
gfx_ReleaseArg:443

Exiting... (Quit)

Ici, on voit bien comp et ça lit bien la vidéo, aucun souci.





Pseudaxos Pseudaxosicon_post
Et depuis SMTube.ini qui est comme suit : 

<MPLAYER>APPDIR:Mplayer
<MPLAYER_OPTIONS>
<CONSOLE>0/400/640/400
<FFPLAY>APPDIR:ffplay
<FFPLAY_OPTIONS>-infbuf
<FFMPEG>APPDIR:ffmpeg
<FFMPEG_OPTIONS>-b:a 128k
<FFMPEG_OUTPUT_TYPE>MP3
<DOWNLOADER>Amiga/Download/Download
<DOWNLOADER_OPTIONS>DEST
<DOWNLOADER_DEFAULT_EXTENSION>MP4
<DOWNLOADER_DEFAULT_PATH>Amiga/Videos
<DEBUG>ON
WAIT ON
SECONDS 10
  
 
**** Examples ****  
 
Optimisations from K-L (compatible with MUI-MPlayer Overlay and SDL-MPlayer)
("MPLAYER_OPTIONS = -cache 8192 -cache-min 20 -autoq 100 -autosync 30")
 
Optimisations from K-L (compatible with MUI-MPlayer NON-Overlay)
MPLAYER = APPDIR:MPlayer
MPLAYER_OPTIONS = -vo comp -cache 8192 -cache-min 20 -autoq 100 -autosync 30
 
For LiveForIt Altivec Mplayer with Radeon HD
MPLAYER = APPDIR:MPlayer
("MPLAYER_OPTIONS = -vo comp -ao sdl  -cache 8192 -cache-min 20"))


J'ai ceci en fenêtre console de sortie :

URL =  http://r1---sn-hpa7znel.googlevideo.com/videoplayback?quality=medium&key=yt6&ratebypass=yes&lmt=1399786719966937&mm=31&ipbits=0&sparams=dur,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,nh,pl,ratebypass,source,upn,expire&upn=eRHXwquXX_k&id=o-AKgoUekfIV7SPJ11VBs7sKtVVhcu_AxZWX_Uqceb3rSa&mv=m&dur=600.142&source=youtube&ms=au&mime=video/mp4&initcwndbps=610000&mn=sn-hpa7znel&ip=86.253.196.68&nh=IgpwcjA0Lm1pbDAxKgkxMjcuMC4wLjE&signature=2DB10FC8EA7D1746765DC61B7DBCB55F09B53CDD.E1EA19E923527049ECD76BE040AE5E9E017E49D8&pl=16&mt=1484475944&itag=18&expire=1484497755
YouTube video
LiveForIt-MPlayer-6.5.7 SVN-r37230-snapshot-1.1.1 (C) 2000-2014 MPlayer Team

Resolving r1---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r1---sn-hpa7znel.googlevideo.com[173.194.165.6]: 80...
Resolving r17---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r17---sn-hpa7znel.googlevideo.com[173.194.165.22]: 80...

Cache size set to 320 KBytes
Cache fill: 18.01% (59021 bytes)   

libavformat version 56.36.100 (internal)
libavformat file format detected.
Resolving r17---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r17---sn-hpa7znel.googlevideo.com[173.194.165.22]: 80...
AmigaOS4.1 Bug select() don't reset or set errno value
Resolving r17---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r17---sn-hpa7znel.googlevideo.com[173.194.165.22]: 80...
AmigaOS4.1 Bug select() don't reset or set errno value
Resolving r17---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r17---sn-hpa7znel.googlevideo.com[173.194.165.22]: 80...
AmigaOS4.1 Bug select() don't reset or set errno value
AmigaOS4.1 Bug select() don't reset or set errno value
AmigaOS4.1 Bug select() don't reset or set errno value
Resolving r17---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r17---sn-hpa7znel.googlevideo.com[173.194.165.22]: 80...
AmigaOS4.1 Bug select() don't reset or set errno value
Resolving r17---sn-hpa7znel.googlevideo.com for AF_INET...
Connecting to server r17---sn-hpa7znel.googlevideo.com[173.194.165.22]: 80...
AmigaOS4.1 Bug select() don't reset or set errno value
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  450x360  24bpp  25.000 fps  409.8 kbps (50.0 kbyte/s)
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
 creation_time: 2014-05-10 05:38:36
VO: [comp_yuv2] Welcome man !.
gfx_nodri = 0
gfx_novsync = 0
benchmark = 0
vsync is enabled = 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.41.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatbe, 96.0 kbit/3.40% (ratio: 11999->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Not supported audio format 0000001c
  Endian: BE
  Signed: Yes
  Float: Yes
  Bits: 32
  Special Type: 0
Using Format AF_FORMAT_S16_BE
AO: [ahi_dev2] 44100Hz 2ch s16be (2 bytes per sample)
Starting playback...
libmpcodecs/vd.c:mpcodecs_config_vo:d
Movie-Aspect is 1.25:1 - prescaling to correct movie aspect.
VO: [comp_yuv2] 450x360 => 450x360 Planar YV12 
screen w 1920 h 1080 aspect 1.78:1
VO: Disabling blanker


Ah oui, y'a aussi le Play.rexx qui est :

/* REXX */
parse arg type url

CONFIG_FILE = "ENVARC:SMTube.ini"

/* DON'T MODIFY BELOW THESE LINES */
/* ALL SETTINGS ARE NOW IN THE CONFIG_FILE */

/* DON'T MODIFY BELOW THESE LINES */
/* ALL SETTINGS ARE NOW IN THE CONFIG_FILE */

/* DON'T MODIFY BELOW THESE LINES */
/* ALL SETTINGS ARE NOW IN THE CONFIG_FILE */

/* DON'T MODIFY BELOW THESE LINES */
/* ALL SETTINGS ARE NOW IN THE CONFIG_FILE */


/* Create the Config file is inexistant */
PRAGMA('W','NULL') /* supprime les fenetres Requester en cas d'inexistence du repertoire ci-dessous */
if EXISTS(CONFIG_FILE) = 0,
then do
call Create_Config()
end
PRAGMA('W','WORKBENCH') /* reactive les requester Workbench */

/* read Config parameters */
call Read_Config() 

/* for SDL-MPlayer 4.2.4 complaining about a HTTP: assign at startup */
ADDRESS COMMAND "ASSIGN http: RAM:"

if type = "file", /* pour lire les vidéos déjà téléchargées */
then do
url = strip(url)
url = right(url,length(url)-1)
A = pos("/",url)
if A > 0,
then do
  url = OVERLAY(':',url,A)
end

url = INSERT('"',url)
url = INSERT('"',url,length(url))

end

type = substr(url,lastpos(".",url)+1,3)
type = TRANSLATE(type)

if DEBUG = ON, 
then do
/* console open for debug log */
call close STDOUT
open(STDOUT, 'con:'CONSOLE'/smTube AmigaOS4 console/CLOSE',W) 

say "URL = "url

if (type ~= "M3U"),
then do
say "YouTube video"
ADDRESS COMMAND MPLAYER MPLAYER_OPTIONS url
end
else do
say "YouTube live stream"
say "Waiting for ffplay..."
ADDRESS COMMAND FFPLAY FFPLAY_OPTIONS url
end

SAY " "
SAY "-------------------------  smTube AmigaOS4  -------------------------"
SAY " "
SAY "If you encounter playback problems, check MPlayer option (MPLAYER_OPTIONS = " ") in Amiga\PlayVideo.rexx."
SAY " "
SAY "Streaming seems to work only with MUI-Mplayer (MPlayer UNKNOWN-4.4.3 (C) 2000-2010 MPlayer Team)"
SAY "or SDL MPlayer SVN-r32561-snapshot-4.2.4"
SAY " "
SAY "This DEBUG console can be turned OFF in Amiga\PlayVideo.rexx (DEBUG = OFF)."
SAY " "

   
if wait = ON, 
then do
SAY "Waiting "SECONDS" seconds before to close this debug window..."
SAY " "
SAY "Wait seconds can be modified in Amiga\PlayVideo.rexx (SECONDS = x)"
SAY " "
SAY "Wait time can be turned OFF in Amiga\PlayVideo.rexx (WAIT = OFF)"
SAY " "
SAY "----------------------------------------------------------------------"
ADDRESS COMMAND "WAIT "SECONDS
end
else do
SAY "----------------------------------------------------------------------"
end

call close STDOUT
end
else do
/* no debug output */
if (type ~= "M3U"),
then do
ADDRESS COMMAND MPLAYER MPLAYER_OPTIONS url ">NIL: *>NIL:"
end
else do
ADDRESS COMMAND FFPLAY FFPLAY_OPTIONS url
end
end




EXIT

Create_Config:
OPEN('SMTUBEPARMS',CONFIG_FILE,'W')
call writeln(SMTUBEPARMS, "<MPLAYER>APPDIR:MPlayer")
call writeln(SMTUBEPARMS, "<MPLAYER_OPTIONS>")
call writeln(SMTUBEPARMS, "<CONSOLE>0/400/640/400")
call writeln(SMTUBEPARMS, "<FFPLAY>APPDIR:ffplay")
call writeln(SMTUBEPARMS, "<FFPLAY_OPTIONS>-infbuf")
call writeln(SMTUBEPARMS, "<FFMPEG>APPDIR:ffmpeg")
call writeln(SMTUBEPARMS, "<FFMPEG_OPTIONS>-b:a 128k")
call writeln(SMTUBEPARMS, "<FFMPEG_OUTPUT_TYPE>MP3")
call writeln(SMTUBEPARMS, "<DOWNLOADER>Amiga/Download/Download")
call writeln(SMTUBEPARMS, "<DOWNLOADER_OPTIONS>DEST")
call writeln(SMTUBEPARMS, "<DOWNLOADER_DEFAULT_EXTENSION>MP4")
call writeln(SMTUBEPARMS, "<DOWNLOADER_DEFAULT_PATH>Amiga/Videos")
call writeln(SMTUBEPARMS, "<DEBUG>ON")
call writeln(SMTUBEPARMS, "<WAIT>OFF")
call writeln(SMTUBEPARMS, "<SECONDS>3")
call writeln(SMTUBEPARMS, "  ")
call writeln(SMTUBEPARMS, " ")
call writeln(SMTUBEPARMS, "**** Examples ****  ")
call writeln(SMTUBEPARMS, " ")
call writeln(SMTUBEPARMS, "Optimisations from K-L (compatible with MUI-MPlayer Overlay and SDL-MPlayer)")
call writeln(SMTUBEPARMS, "MPLAYER_OPTIONS = -cache 8192 -cache-min 20 -autoq 100 -autosync 30")
call writeln(SMTUBEPARMS, " ")
call writeln(SMTUBEPARMS, "Optimisations from K-L (compatible with MUI-MPlayer NON-Overlay)")
call writeln(SMTUBEPARMS, "MPLAYER_OPTIONS = -vo cgx_wpa -cache-min 20 -autoq 100 -autosync 30") 
call writeln(SMTUBEPARMS, " ")
call writeln(SMTUBEPARMS, "For LiveForIt Altivec Mplayer with Radeon HD")
call writeln(SMTUBEPARMS, "MPLAYER = APPDIR:MPlayer-altivec")
call writeln(SMTUBEPARMS, "MPLAYER_OPTIONS = -vo comp -ao sdl  -cache 8192 -cache-min 20 ")
CLOSE('SMTUBEPARMS')

corps = '"A default settings file has been created in *n*n'CONFIG_FILE'*n*nPlease update it accordingly to your system"'
commande = "RequestChoice SMTube "corps" OK type=warning >NIL:"
ADDRESS COMMAND commande

ADDRESS COMMAND "APPDIR:NotePad "CONFIG_FILE

return

Read_Config:
if  (OPEN('SMTUBEPARMS',CONFIG_FILE,'R')) = 1, 
then do

i = 0
do while ~eof(SMTUBEPARMS)
i = i + 1 

ligne.i = readln(SMTUBEPARMS)

Mot1 = substr(ligne.i,1,pos(">",ligne.i))

if Mot1 = "<MPLAYER>", 
then do
debut_parm = pos(">",ligne.i,1)
MPLAYER = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<MPLAYER_OPTIONS>", 
then do
debut_parm = pos(">",ligne.i,1)
MPLAYER_OPTIONS = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<CONSOLE>", 
then do
debut_parm = pos(">",ligne.i,1)
CONSOLE = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<FFPLAY>", 
then do
debut_parm = pos(">",ligne.i,1)
FFPLAY = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<FFPLAY_OPTIONS>", 
then do
debut_parm = pos(">",ligne.i,1)
FFPLAY_OPTIONS = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<FFMPEG>", 
then do
debut_parm = pos(">",ligne.i,1)
FFMPEG = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<FFMPEG_OPTIONS>", 
then do
debut_parm = pos(">",ligne.i,1)
FFMPEG_OPTIONS = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<FFMPEG_OUTPUT_TYPE>", 
then do
debut_parm = pos(">",ligne.i,1)
FFMPEG_OUTPUT_TYPE = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<DOWNLOADER>", 
then do
debut_parm = pos(">",ligne.i,1)
DOWNLOADER = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<DOWNLOADER_OPTIONS>", 
then do
debut_parm = pos(">",ligne.i,1)
DOWNLOADER_OPTIONS = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<DOWNLOADER_DEFAULT_EXTENSION>", 
then do
debut_parm = pos(">",ligne.i,1)
DOWNLOADER_DEFAULT_EXTENSION = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<DOWNLOADER_DEFAULT_PATH>", 
then do
debut_parm = pos(">",ligne.i,1)
DOWNLOADER_DEFAULT_PATH = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<DOWNLOADER_CONSOLE>", 
then do
debut_parm = pos(">",ligne.i,1)
DOWNLOADER_CONSOLE = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<DEBUG>", 
then do
debut_parm = pos(">",ligne.i,1)
DEBUG = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<WAIT>", 
then do
debut_parm = pos(">",ligne.i,1)
WAIT = substr(ligne.i,debut_parm + 1) 
end
if Mot1 = "<SECONDS>", 
then do
debut_parm = pos(">",ligne.i,1)
SECONDS = substr(ligne.i,debut_parm + 1) 
end
end
CLOSE('SMTUBEPARMS')
end
return 

EXIT


Voili voilou.... Moi, j'en perds mon latin avec tous ces fichiers de configs... 

zzd10h zzd10hicon_post

1) est-ce que 

APPDIR:Mplayer -vo comp -cache 8192 -cache-min 20 -autoq 100 -autosync 30 "Work:Amiga_Youtube/Clips/Dr. Alban - It's my life.mp4"

fonctionne dans un Shell ?


2) Si oui, mets 

<MPLAYER_OPTIONS>-vo comp -cache 8192 -cache-min 20 -autoq 100 -autosync 30

dans SMTube.ini

Ca devrait fonctionner.
Pseudaxos Pseudaxosicon_post
APPDIR:Mplayer -vo comp -cache 8192 -cache-min 20 -autoq 100 -autosync 30 "Work:Amiga_Youtube/Clips/Dr. Alban - It's my life.mp4" 

La réponse à la commande est :

APPDIR:MPlayer -vo: Commande inconnue 

???!!!

Petites Annonces

0 annonce(s) publiée(s)

Consulter

AmigaOS 4.1

Laissez-vous tenter par
AmigaOS 4.1
AmiTheme

AmiTheme