johnymarek / media-translate

Automatically exported from code.google.com/p/media-translate
0 stars 0 forks source link

Several Youtube Videos do not play #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a youtube video (like this http://www.youtube.com/watch?v=aJpLXhwf-Lo)
2. it will not play
3. get error "cannot play media file" 

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

What version of the product are you using? On what operating system?
2.0.10

Please provide any additional information below.
this started to happen some time ago, but it only happens on certain videos, 
others play fine, can't seem to find why

Original issue reported on code.google.com by shan...@gmail.com on 7 May 2012 at 5:36

GoogleCodeExporter commented 9 years ago
I tryied to bypass the problem downloading the indexed file by urlPlay :
nice wget "$FILE_NAME" -O "temmp.mp4"
or:
nice curl "$FILE_NAME" -o "temp.mp4"
the download process starts but after a while the player freezes and you need 
to reboot.
Any idea why?

Original comment by acevol...@gmail.com on 10 Jun 2012 at 6:43

GoogleCodeExporter commented 9 years ago
I reported the same a few posts back, I believe the problem is the player runs 
out of memory I see no other reason other than that :( 

Original comment by shan...@gmail.com on 10 Jun 2012 at 6:54

GoogleCodeExporter commented 9 years ago
I try to explain better.
After trasnplate.cgi retreaves the urlToPlay correct link I try to download 
locally the mp4 file and then start playing this local file.
To do in this way i created a simple script like that:

#!/bin/sh
FILE_NAME=`echo $QUERY_STRING | cut -d" " -f1`
cd /tmp
#nice wget "$FILE_NAME" -O "temp.mp4"
nice curl "$FILE_NAME" -o "temp.mp4" 

but nor the wget neither the curl can be completed.

The same happend when i try this from command line in a telnet session: the 
download starts but after a while player freezes.

Any Ideas?

Original comment by acevol...@gmail.com on 10 Jun 2012 at 7:05

GoogleCodeExporter commented 9 years ago
If it is an out of memory problem, it should be enought to increase swap size.

Original comment by acevol...@gmail.com on 10 Jun 2012 at 7:07

GoogleCodeExporter commented 9 years ago
yes I understood your correctly, that's what I found out too and I reported it, 
I haven't tried to increase the swap, but as I recall a long time ago I had a 
512mb swap file I created for my custom firmware, but to be honest can't 
remember if its still there, I will check it later :) 

Original comment by shan...@gmail.com on 10 Jun 2012 at 7:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You are right and it should be a RAM issue. I tried to add a swap file of 256MB 
and both curl and wget worked well without freezing. Now I tried throught 
telnet commands, in next weekedn i'll try throught the media player GUI and 
with more links.

Original comment by acevol...@gmail.com on 12 Jun 2012 at 9:41

GoogleCodeExporter commented 9 years ago
On my side all works fine with last youtube plugin update by Sergey here on 
Downloads section:
http://code.google.com/p/media-translate/downloads/detail?name=rss_ex_plugins.ta
r.bz2&can=2&q=

BTW, what you expect from your tests of downloading a huge file to /tmp ?
Of course it will be out of memory - /tmp is your RAM.

I think, incrementing the swap size in this case will not be more efficient 
than just downloading directly to your hard drive instead of using 
/tmp/temp.mp4 and expecting the Linux to guess what do you want :)  

Original comment by lorolo...@gmail.com on 13 Jun 2012 at 3:11

GoogleCodeExporter commented 9 years ago
#58 using what version of Rss ? newest? what device do you have? 

Original comment by shan...@gmail.com on 13 Jun 2012 at 9:37

GoogleCodeExporter commented 9 years ago
#59 I(#58) am using the latest SVN checkout + youtube plugin from the Download 
section.
For some reason, Serge did not update the SVN with it.
My machine is "EAGET M880" a Chinese clone of AC.Ryan with some more (x2) rom 
space.
My main Firmware is from http://playon.unixstorm.org/installation.php (Mikka's 
website)
I also have installed the "Full" Opt and Scripts packages from there, as well 
as I do some contributions with RSS/PHP/SQLite scripts (search for oscar-db on 
Google) 

Original comment by lorolo...@gmail.com on 15 Jun 2012 at 1:05

GoogleCodeExporter commented 9 years ago
I tried to install again rss ex 2. 0.10 and then plugin updates but youtube 
sell does not work. 

Original comment by acevol...@gmail.com on 15 Jun 2012 at 4:41

GoogleCodeExporter commented 9 years ago
У меня тоже не заиграло.  Плагины последние 
поставил из Downloads, сам RSSEX из Downloads также. 
lorolo, ты можешь указать, куда копать?

Original comment by sc...@mr-sound.ru on 15 Jun 2012 at 7:49

GoogleCodeExporter commented 9 years ago
Попробуйте RSSEX из SVNа, и только ЮТ плагин из 
Downloads 

Original comment by lorolo...@gmail.com on 16 Jun 2012 at 3:15

GoogleCodeExporter commented 9 years ago
Как я сказал, у меня ОК. 

http://youtu.be/sthFpdMhrds

Наверно у вас надо "вручную" заменять все с 
SVN files, после инсталации icapp. 

Original comment by lorolo...@gmail.com on 16 Jun 2012 at 5:09

GoogleCodeExporter commented 9 years ago
#64, you are lucky, it does not work for me at all, even with the SVN (which 
looks to be an older version for some reason) manually updating the plugins and 
still no luck :) "cannot play this media file" not even the file you posted as 
example works 

Original comment by shan...@gmail.com on 16 Jun 2012 at 5:47

GoogleCodeExporter commented 9 years ago
Latest update (Jun/8) does not work for me either, still don't know how to get 
a bit of debug info :(
I really miss to see Youtube in my livingroom and I don't want to throw the 
player to the garbage bin yet, so any ideas appreciated, really :)

Original comment by pcmar...@gmail.com on 17 Jun 2012 at 12:54

GoogleCodeExporter commented 9 years ago
#60, lorolo, Thank you for your information. I've attempted to follow your 
suggestions but failed to make Youtube play any files. I am using a squashfs 
firmware, whereas yours might be a yaffs firmware. Would it be a major 
difference that determines a working youtube?
(For this I've not yet tried out a yaffs firmware to see the changes.)

Before June, I had been using the media translate Youtube very satisfactorily.
I therefore made use of the same firmware and update only the translate plugins 
(June 8). I observed from the console screen, the download were successful for 
the media translate Youtube, only the playing a failure. Would the files inside 
/opt/bin/  e.g. awk, msdl, wget, etc., that make the playing a failure?

Original comment by uyn...@gmail.com on 17 Jun 2012 at 6:14

GoogleCodeExporter commented 9 years ago
#66 pcmar I have the same feelings as yours and feel quite disappointed being 
unable to watch the youtube videos as before.

Original comment by uyn...@gmail.com on 17 Jun 2012 at 6:14

GoogleCodeExporter commented 9 years ago
I am able to view videos now if I use the "Media Stream Renderer" directly or 
by using a PHP script I made (I can post it if you want) basically it links the 
youtube videos directly to the stream in the CGI bin 
(http://127.0.0.1/cgi-bin/translate?stream,0,http://www.youtube.com/watch?v=Xn8j
kyu88bw) 

try opening it directly from your computer accessing your media player by its 
IP e.g.
http://your.media.player.ip/cgi-bin/translate?stream,0,http://www.youtube.com/wa
tch?v=Xn8jkyu88bw

and see if that plays.

Original comment by shan...@gmail.com on 17 Jun 2012 at 6:20

GoogleCodeExporter commented 9 years ago
I think the problem is how the media player handle the playItemUrl function for 
remote files. 
If so it depends directly from DvdPlayer executable, isn't it? And we must find 
a workaround. 

Original comment by acevol...@gmail.com on 17 Jun 2012 at 6:53

GoogleCodeExporter commented 9 years ago
#69,shan, Thank you so much. I of course would try out your ideas and the
php scripts.
2012-6-17 下午2:20 於 <media-translate@googlecode.com> 寫道:

Original comment by uyn...@gmail.com on 17 Jun 2012 at 6:55

GoogleCodeExporter commented 9 years ago
#69, shan I couldn't manage to execute directly the command line as you 
suggested after a series of attempts. Kindly help.

Original comment by uyn...@gmail.com on 17 Jun 2012 at 10:20

GoogleCodeExporter commented 9 years ago
#72, then my solution won't work for you :( sorry

Original comment by shan...@gmail.com on 17 Jun 2012 at 7:04

GoogleCodeExporter commented 9 years ago
http://playon.unixstorm.org/youtube.php 
Try this one we made here for test

Original comment by lorolo...@gmail.com on 17 Jun 2012 at 7:14

GoogleCodeExporter commented 9 years ago
lorolo thats very cool :) thanks for sharing! still needs a "new subscription 
videos" feed but otherwise its awesome! :D

Original comment by shan...@gmail.com on 17 Jun 2012 at 7:35

GoogleCodeExporter commented 9 years ago
Alright shan... take a look to the other scripts there too :) last I made: 
rtmpGUI based one; The site YT script and most of the others are made by mikka.

Of course the RssEX is still one of the best things made ever on this platform. 

Original comment by lorolo...@gmail.com on 17 Jun 2012 at 9:26

GoogleCodeExporter commented 9 years ago
#74 Thanks lorolo. I've tried out the Mikka's Youtube.

Original comment by uyn...@gmail.com on 18 Jun 2012 at 4:13

GoogleCodeExporter commented 9 years ago
#75 the Mikka's Youtube (version 3) work with lighttpd ( PHP server ) 
I could not implement the php on my S9, I have problems with dynamic libraries

Original comment by SergioLu...@gmail.com on 18 Jun 2012 at 3:47

GoogleCodeExporter commented 9 years ago
#75 SergioLu... I have an s9 and Mikka's Youtube works perfectly, but I use a 
custom firmware (at http://dpi.mx/s9mod) what problem do you have? 

Original comment by shan...@gmail.com on 18 Jun 2012 at 3:50

GoogleCodeExporter commented 9 years ago
The RssEx youtube is still functional on my setup.
Here is one "snapshot" I saved in my repository for a specific purpose
but you can test it, it may work for you too !!!

https://code.google.com/p/oscar-db/downloads/list

Just, you need to replace the plugin with the latest one from original RssEx 
Downloads updates HERE 
http://code.google.com/p/media-translate/downloads/detail?name=rss_ex_plugins.ta
r.bz2&can=2&q=

In addition, make sure your binaries ( /bin) are all working and adjust the 
/etc configuration file

Original comment by lorolo...@gmail.com on 18 Jun 2012 at 6:29

GoogleCodeExporter commented 9 years ago
#79 Hola Shanti, conosco tu foro, inclusive estoy registrado en el.
El tema es que el Youtube (version 3) de Mikkia, veo que tiene extensiones php 
y usa lighttpd que en algunos equipos ya viene instalado, en tu actualizacion 
lo tenes instalado y corriendo al servicio ligthttpd ?

Saludos
Sergio
Argentina

Original comment by SergioLu...@gmail.com on 18 Jun 2012 at 10:31

GoogleCodeExporter commented 9 years ago
Sergio; si, mi FW viene con lighthttpd instalado y configurado, solo tuve que 
descomprimir el script de Mikkia y ligarlo en el menu.rss y funciona a la 
perfección :) 

Original comment by shan...@gmail.com on 19 Jun 2012 at 7:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
IAMM NTR 83 Mos 3 install:

cd /tmp
wget http://bubulubu.vzoltan.com/mos3/install
chmod +x install
sh -x ./install
Mos3 php script run
youtube recently featured ok,run!

Original comment by bubu340...@gmail.com on 20 Jun 2012 at 5:34

GoogleCodeExporter commented 9 years ago
#84 what is the difference between your install and the official mos3 install? 
I see you host the "base.zip" but it would be great to know what changed... 

Original comment by shan...@gmail.com on 20 Jun 2012 at 5:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
yt_search_feed.rss és yt_entry.rss-ben erröl:

        <onClick>
      idx = getFocusItemIndex();
      url   = getStringArrayAt(urlArray, idx);

      urlToPlay = translate_base_url+"stream,HD:"+hd+","+urlEncode(url);

      historyPath = getStoragePath("key")+"translate.history_video.m3u";
      historydat = readStringFromFile(historyPath);
      if(historydat == null)
        historydat = pushBackStringArray(historydat, "#EXTM3U");
      historydat = pushBackStringArray(historydat, "#EXTINF:-1,"+getStringArrayAt(titleArray, idx));
      historydat = pushBackStringArray(historydat, url);
      writeStringToFile(historyPath, historydat);

      showIdle();
      playItemURL(urlToPlay, 0);
      cancelIdle();
      null;
        </onClick>

Erre:

<onClick>
    mode = 1;

      historyPath = getStoragePath("key")+"translate.history_video.m3u";
      historydat = readStringFromFile(historyPath);
      if(historydat == null)
        historydat = pushBackStringArray(historydat, "#EXTM3U");
      historydat = pushBackStringArray(historydat, "#EXTINF:-1,"+pageTitle);
      historydat = pushBackStringArray(historydat, url);
      writeStringToFile(historyPath, historydat);
      showIdle();
      mode = 0;
        type="video/mp4"; 
      url1 = "http://127.0.0.1/cgi-bin/yt.php?file=" + url;
      movie=getUrl(url1);
      cancelIdle();
    storagePath = getStoragePath("tmp");
    storagePath_stream = storagePath + "stream.dat";
    streamArray = null;
    streamArray = pushBackStringArray(streamArray, "");
    streamArray = pushBackStringArray(streamArray, movie);
    streamArray = pushBackStringArray(streamArray, movie);
    streamArray = pushBackStringArray(streamArray, movie);
    streamArray = pushBackStringArray(streamArray, video/mp4);
    streamArray = pushBackStringArray(streamArray, pageTitle);
    streamArray = pushBackStringArray(streamArray, "1");
    writeStringToFile(storagePath_stream, streamArray);
    doModalRss("rss_file:///usr/local/etc/translate/rss/xspf/videoRenderer.rss");
    </onClick>

Kreálj egy yt.php-t ide ---> tmp/www/cgi-bin/
Ez legyen benne:

<?php
$a_itags=array(37,22,18);
//@include('ytqual.inc');

$file=$_GET["file"];
$file=urldecode($file);
if(preg_match('/youtube\.com\/(v\/|watch\?v=)([\w\-]+)/', $file, $match)) {;
  $id = $match[2];
  //$link="http://www.youtube.com/watch?v=".$id;
  $link = 'http://www.youtube.com/get_video_info?&video_id=' . $id . '&el=vevo&ps=default';
  $html=file_get_contents($link);
  $html = urldecode($html);
  $h=explode('fmt_stream_map',$html);
  $html=urldecode($h[1]);
  $videos = explode('url=', $html);
  foreach ($videos as $video) {
  $t1=explode(";", $video);
    $link=$t1[0];
    $t1=explode("itag=",$link);
    $t2=explode("&",$t1[1]);
    $tip=$t2[0];
    if (in_array($tip,$a_itags)) break;
  }
}
# zkusit odstranit z $tip query fexp - pokud se vyskytuje
if (strpos($link, "fexp")) {
    $query = parse_url($link);
    parse_str( $query[query] , $output);
    $path = ($query['scheme']."://".$query['host'].$query['path']."?");
    unset($output[fexp]);
    $link=$path.http_build_query($output);
}
print $link;
die();
?>

Original comment by bubu340...@gmail.com on 22 Jun 2012 at 7:21

GoogleCodeExporter commented 9 years ago
В общем очень странная вещь. Если зайти на 
плеер так:
http://ip-player/cgi-bin/translate?text,,http://www.youtube.com/watch?v=Xn8jkyu8
8bw

то он или должен показать ошибку (если она 
была) либо выдать правильный линк на файл.

Линк на файл выдается без проблем! Проверяю 
- правильный линк, качается файл 
элементарно. Однако если сделать stream 
(http://ip-player/cgi-bin/translate?stream,0,http://www.youtube.com/watch?v=Xn8j
kyu88bw) то видео не играется, то есть плеер не 
может что-то воспроизвести видимо.

Если играть самим плеером, просто 
индикатор загрузки горит некоторое время и 
просто исчезает после, ни ошибок, ни cannot play, 
ни других надписей.

Что это может быть? o_O

Original comment by sc...@mr-sound.ru on 25 Jun 2012 at 4:48

GoogleCodeExporter commented 9 years ago
@lorolo... Thanks for sharing! The YouTube player from there works excellent! 
And it is almost instant i.e. no delay to start playing like RSSEx.
3 things:
1) On the results list, I can not advance the page with pageup / pagedown. I 
tried all the buttons in the remote control, am I missing something?
2) It misses Most Viewed/Top Rated/etc for this_week and this_month (easy to 
add?).
3) Here goes the Spanish translation (save as es.inc in lang folder and change 
config.inc accordingly)
<?php

  define("L_SEARCHVID", 'Buscar video');
  define("L_SEARCH3D", 'Buscar video 3D');
  define("L_CATEGORIES", 'Categorías');
  define("L_USER", 'Usuario');  
  define("L_SEARCH", 'Buscar');  
  define("L_BY", 'por ');
  define("L_VIEWS", ' vistas');
  define("L_GET_INFO", 'Presionar botón 1 para descargar');
  define("L_DOWNLOAD", 'Descargar');
  define("L_TITLE", 'Título: ');
  define("L_DIR", 'Carpeta: ');
  define("L_SIZE", 'Tamaño: ');
  define("L_PROGRESS", 'Progreso de descarga: ');
  define("L_NOTHING", 'Nada encontrado');
  define("L_VERSION", 'Desarrollado por mikka (version: 3.0beta)');

  $standardlang = array('Más vistos', 'Más valorados', 'Más comentados', 'Favoritos Top', 'Más respondidos', 'Más recientes', 'Más compartidos', 'Presentado recientemente', 'Tendencias');
  $userlang = array('Cargados', 'Favoritos', 'Listas de reproducción', 'Suscripciones');
  $countrylang = array('Internacional', 'Argentina', 'Australia', 'Brasil', 'Canada', 'Republica Checa', 'Francia', 'Alemania', 'Inglaterra', 'Hong Kong', 'India', 'Irlanda', 'Israel', 'Italia', 'Japon', 'Mexico', 'Holanda', 'Nueva Zelanda', 'Polonia', 'Rusia', 'Sudafrica', 'Corea del Sur', 'Espana', 'Suecia', 'Taiwan', 'EE.UU.');

?>
@bubu340... I tried your changes to the RSS but neither Youtube or the Media 
Stream Renderer work...

Original comment by pcmar...@gmail.com on 2 Jul 2012 at 2:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@pcmar
Thanks for the Spanish. Answering to the both questions (forwarded from mikka):
-----quote------
1) At the time of making Youtube2, max-results and start-index parameters were 
not working for feeds (only search results), so I couldn't use it. Now I see 
it's working, so maybe I'll add it in next version.
2) Yes, quite easy: https://developers.google.com/youtube/2.0/reference#timesp. 
I just didn't implement it to keep it simple.
----end-quote---

Back to the issue here - on RSSex project.
I still don't know guys why the youtube stuff is NOT working on your setup 
while on mine works fine. 

Try to change on main RSSex config and on youtube settings to GLOBAL not RU or 
other region. Also check the Полноекранное Видео = Да. 
Sometimes it changes back to No with no reason - it should be Yes to work.

Thanks

Original comment by lorolo...@gmail.com on 4 Jul 2012 at 2:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Bonjour de France !

I use the svn r606 and plugins v2.0.11 (without php)
The Youtube RssEx works good to me :)
But...
The renderer don't play youtube links
The "Most recent links" don't play youtube links (they are the same links who 
works in RssEx)

This link 
http://your.media.player.ip/cgi-bin/translate?stream,0,http://www.youtube.com/wa
tch?v=Xn8jkyu88bw
it works in my browser 

But this link http://www.youtube.com/watch?v=Xn8jkyu88bw don't work in the 
renderer...

No error displays, only a cancel button on TV.

I think "renderer" work well, because it play other video links like vimeo url 
and other.

Did I miss something to configure Youtube ?

Thanks for your help
Zozodesbois

Original comment by geekyhmb on 4 Jul 2012 at 5:18

GoogleCodeExporter commented 9 years ago
geekyhmb, all these things are normal, I believe.

Original comment by lorolo...@gmail.com on 5 Jul 2012 at 1:00

GoogleCodeExporter commented 9 years ago
Thanks lorolouis :)
See you soon
Zozodesbois

Original comment by geekyhmb on 5 Jul 2012 at 5:30

GoogleCodeExporter commented 9 years ago
Hey lorolouis! :)
About my question #2 above, great! Added ?time=this_week at $earg in line 301 
of you.php and now I see the news of the week! :)
About YouTube on RSSEx, I deleted my 'translate' folder, downloaded latest 
build from Download section, plus latest plugins (2.0.11). I load a list of 
videos and when trying to enter any, the cursor shows as loading then it starts 
to blink as it animates then an empty "Confirm" message is shown.
No idea on what could be wrong... maybe a temporary file creation fails, or 
something like that?
Thanks

Original comment by pcmar...@gmail.com on 8 Jul 2012 at 5:22

GoogleCodeExporter commented 9 years ago
pcmar... try same exercise but use this set instead. (you may need to put only 
the latest plugin; I forgot if I updated there, but for sure the "base" is good)
https://oscar-db.googlecode.com/files/translate.playonx.2.0.11.svn.603.zip

I think either a binary is missing or configuration path for it ...
Because I am using NTFS to run from, the original ln links could not be used 
(they could but ...), just same binary file renamed many times. I also realized 
UPX-ed files (proposed by me earlier here) are smaller but for sure they take 
more RAM and time to run.

Original comment by lorolo...@gmail.com on 10 Jul 2012 at 8:43

GoogleCodeExporter commented 9 years ago
Yessssss! Now it works, FINALLY! And videos load faster as well! Thanks 
lorolo..., you're an idol!!! :)

Original comment by pcmar...@gmail.com on 11 Jul 2012 at 5:06

GoogleCodeExporter commented 9 years ago
Ok, good. I am happy for you pcmar... :)

Here Mikka updated his Youtube script set as well:
http://playon.unixstorm.org/youtube/Youtube3-1.zip
See the CHANGELOG inside zip file. Special thanks for the Spanish strings.
They've been added too.

Regards

Original comment by lorolo...@gmail.com on 11 Jul 2012 at 11:45

GoogleCodeExporter commented 9 years ago
I wish i could get the RssEx work as pcmar.

I've downloaded the trasnlate.playonx.2.0.11.svn.603.zip. It could not be 
unzipped successfully in my Linux Ubuntu environment, there being a 
compatibility problem.  Then I unzipped the content in WinXp, and copied the 
entire translate folder to the linux system. After making the firmware in 
Ubuntu, I installed the new firmware but the process came to a halt.

The zip file above is hardware depenedent, isn't it?

Mine is a genuine 1073 media player bought in China 2 years ago, brand name 
"Kaiboer M1073"; Please help and give hints for me.

Regards

Original comment by uyn...@gmail.com on 12 Jul 2012 at 3:53