Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: Demonic Goldfish on July 12, 2007, 10:40:44 PM

Title: MPEG player crashed everything
Post by: Demonic Goldfish on July 12, 2007, 10:40:44 PM
[EDIT]: I managed to reboot it, but still no dice when it comes to playing this video: hangs indefinitely on a black screen.

Hi all. I have looked for similar problems, but have found none.

A few minutes ago I installed Rock Box on my iPod Nano, booted up, and everything was fine. So I stuck a newly converted 895MB .mpg file on there, and played it. The screen went black, and I realised I had no 'phones plugged in, so I plugged some in. I waited. The screen stayed black. No sound, nothing. So I rebooted the iPod, it booted back into Rock Box, everything was fine. Then I tried to play the video again, and the iPod rebooted. It's still stuck on the boot screen, where it shows the Apple logo, no backlight, and it is completely unresponsive. I can't boot into disk mode, it doesn't mount, nothing.

Does anyone know what could be going wrong here?

Cheers, DG :D
Title: Re: MPEG player crashed everything
Post by: LambdaCalculus on July 12, 2007, 10:48:00 PM
There's some information here you can read up on:

http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer

Also note that Mpegplayer still occasionally chokes on larger files. I've tested MPEGs up to 130MB in size (usually 22 minutes episodes of animated shows), and Mpegplayer runs nicely. But my iPod did choke when I tried a 1-hour movie that weighed in at around 760MB.

Try some smaller file sizes, but also try the Elephants Dream short that's available on the above page. It makes for a great benchmark tester, but it's also pretty entertaining to watch in its own right.
Title: Re: MPEG player crashed everything
Post by: Llorean on July 12, 2007, 10:55:43 PM
I've played movie files over 1.5gb without a problem while testing things.

AFAIK, anything over the initial buffer size should either work, or not work, any size beyond that should be irrelevant (I believe).
Title: Re: MPEG player crashed everything
Post by: LambdaCalculus on July 12, 2007, 10:58:08 PM
I've played movie files over 1.5gb without a problem while testing things.

I guess mine was a case of "Your mileage may vary". Since I don't use Mpegplayer very often, I never bothered trying any larger files lately. Thanks for the insight, Llorean.
Title: Re: MPEG player crashed everything
Post by: Llorean on July 12, 2007, 11:04:10 PM
The large file that's giving problems may simply have something else about it that mpegplayer doesn't like, and it's merely coincidence that it's large.

I personally have almost exclusively used ffmpeg (by way of WinFF) to encode files I've actually used for either personal playback, or various framerate testing, etc. It's become very clear though that other encoders are very clever at finding ways to trip up mpegplayer (and ffmpeg was too, for that matter).
Title: Re: MPEG player crashed everything
Post by: LambdaCalculus on July 12, 2007, 11:26:54 PM
On my end, I usually use VLC, having rewrote the script available from the Mpegplayer wiki page for Linux. One plus is that it's easy to feed files to VLC this way, but one huge minus is that VLC mucks up on any file that wasn't an MPEG to begin with; I've sent AVIs, DivX-encoded AVIs, QuickTime movies, and even a couple of XviD videos, only to end up with just one huge audio track and absolutely no video.

If ffmpeg works as well as everyone says it does, then so be it! I'll take the plunge and give it a shot.
Title: Re: MPEG player crashed everything
Post by: cpchan on July 13, 2007, 12:04:25 AM
On my end, I usually use VLC, having rewrote the script available from the Mpegplayer wiki page for Linux.

I personally use mencoder.

Quote
If ffmpeg works as well as everyone says it does, then so be it! I'll take the plunge and give it a shot.

It shouldn't really matter whether you use mencoder, VLC or ffmpeg. Since they all use avcodec and avformat from ffmpeg (now maintain  on the mplayer servers). FWIW, here is my batch transcoding script using mencoder. Put it on the wiki page if you want.  

Charles



[attachment deleted by admin for age]
Title: Re: MPEG player crashed everything
Post by: Llorean on July 13, 2007, 12:09:48 AM
Well I've found that VLC and... umm, one other program I tried though I can't remember if it was mencoder or not, don't handle framerate well. Specifically, there are several fractions used by different codecs to represent 29.97, and with VLC especially, if your input video isn't the 29.97 it's expecting, your output MPEG-2 will have audio but no video. Using the ffmpeg binary, it will handle this situation properly (in my experience).

This if course isn't a problem if you manually set a framerate, but if you don't on the assumption that the video is already a good framerate you end up with unusable files in many cases, where ffmpeg seems to pick the nearest good framerate (for me at least).

So it may not be so much the encoder itself as both the decoder and what parameters are internally given to the encoder.
Title: Re: MPEG player crashed everything
Post by: cpchan on July 13, 2007, 12:32:14 AM
Well I've found that VLC and... umm, one other program I tried though I can't remember if it was mencoder or not, don't handle framerate well.

Don't know about VLC since I don't use it. However, I frequently encode videos with non-standard Framerate with mencoder with no problems.  YMMV though since my mplayer/mencoder is compiled from SVN every couple of days.

Quote
So it may not be so much the encoder itself as both the decoder and what parameters are internally given to the encoder.

True.

As a side note, can I ask for Wiki editing permission here or should I go on IRC? I am not a big IRC user.

Charles
Title: Re: MPEG player crashed everything
Post by: GodEater on July 13, 2007, 02:54:12 AM
IRC is the easiest and quickest way to get it - although if you don't mind posting your wiki name here I'll be happy to set it up for you.
Title: Re: MPEG player crashed everything
Post by: cpchan on July 13, 2007, 03:01:30 AM
IRC is the easiest and quickest way to get it - although if you don't mind posting your wiki name here I'll be happy to set it up for you.

Thanks GodEater. my Wiki name is CharlesPhilipChan.

Charles
Title: Re: MPEG player crashed everything
Post by: GodEater on July 13, 2007, 03:14:17 AM
Done - you have edit rights.
Title: Re: MPEG player crashed everything
Post by: cpchan on July 13, 2007, 03:30:36 AM
Done - you have edit rights.

Thanks, GodEater.

Charles
Title: Re: MPEG player crashed everything
Post by: GodEater on July 13, 2007, 03:34:45 AM
np ;)
Title: Re: MPEG player crashed everything
Post by: Demonic Goldfish on July 13, 2007, 10:09:35 AM
Thanks for the help guys.

I tried using a different converter, but even a 50MB 5 minute clip doesn't work. I tried to DL elephant's dream, but if I clicked any of the links, I crashed, and it says the torrent is missing. Any ideas?
Title: Re: MPEG player crashed everything
Post by: LambdaCalculus on July 13, 2007, 10:11:34 AM
Try the direct link here:

http://download.rockbox.org/mpeg/elephantsdream-q6-176x128-310kbps.mpg

That's already encoded for the nano. Download it and give it the old whirly.
Title: Re: MPEG player crashed everything
Post by: cpchan on July 13, 2007, 10:21:06 AM
I tried to DL elephant's dream, but if I clicked any of the links, I crashed, and it says the torrent is missing. Any ideas?


You are using the wrong link. You don't have bittorrent installed. Here are the direct links for the Nano:

4:3- http://download.rockbox.org/mpeg/elephantsdream-q6-176x128-310kbps.mpg

16:9- http://download.rockbox.org/mpeg/elephantsdream-q6-176x96-229kbps.mpg

Charles
Title: Re: MPEG player crashed everything
Post by: Demonic Goldfish on July 13, 2007, 11:23:03 AM
I do have Bittorrent installed, but when I select the Torrent, the whole progress bar (in detailed mode) is coloured red, denoting missing files.

And when I try clicking on any of those, the quicktime "Q" comes up, but nothing else happens. Any ideas?

Also, I tried a different converter and converted a few more files, but most of the time, it locks up on a screen (not black this time) which is mainly grey, but at the top there are several horizontal green bars stretching across the length of the screen and the bottom 1/2 cm or so is black. Once I got sound, but no picture, and on the screen was a white message saying "Undefined command at (a number I forgot)". But that was a one off.

Thanks for the help though,
DG :)
Title: Re: MPEG player crashed everything
Post by: Febs on July 13, 2007, 11:25:38 AM
And when I try clicking on any of those, the quicktime "Q" comes up, but nothing else happens. Any ideas?

Right-click on the file and then save the file using the "save link as" or "save file as" option (the exact wording may vary depending on which browser you are using).
Title: Re: MPEG player crashed everything
Post by: Demonic Goldfish on July 13, 2007, 11:39:13 AM
Hehe thanks that sorted it. My stupid mistake ^_^

Well I can watch that no problem. I wonder why I can't watch any of the stuff I encode...

Anyone know a decent, free avi to mpg converter?
Title: Re: MPEG player crashed everything
Post by: bascule on July 13, 2007, 01:14:06 PM
WinFF (http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer#Using_WinFF_Windows_Linux) works fine for me...
Title: Re: MPEG player crashed everything
Post by: Demonic Goldfish on July 13, 2007, 02:53:16 PM
Hmmm... When I click decode, a command prompt comes up and tells me either that it can't find the file or that it can't be decoded...

Well thanks anyway, I'll keep trying to get it working :)
Title: Re: MPEG player crashed everything
Post by: Demonic Goldfish on July 13, 2007, 10:30:12 PM
OK, I've managed to get any avi I want encoded so that it works well with my Nano. But the problem is all my avi's seem to run at a different sample rate to the player: Everything happens about twice as fast as usual (not a problem as it's all animé, meaning that it in fact looks a bit better when it's faster, as everything happens slowly and at a low framerate), but the sound is all really fast and high-pitched.

Is there such thing as a sample rate converter that'll sort this problem?

Thanks for all your help so far,
DG :)
Title: Re: MPEG player crashed everything
Post by: soap on July 13, 2007, 10:32:58 PM
The tracker is working properly.
I'm assuming your problem with BitTorrent is that I am often the only seeder, and I bet the power went out long enough at home for the UPS to trigger a power-down.

EDIT:  and I'll be out of town for another week.
Title: Re: MPEG player crashed everything
Post by: cpchan on July 13, 2007, 10:51:44 PM
Is there such thing as a sample rate converter that'll sort this problem?

There should be a resample option in the program that you are using.

Charles