BlackBerryForums.com : Your Number One BlackBerry Community  
   

»Sponsored Links



Reply
 
LinkBack Thread Tools
  (#41 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,101
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 06-11-2008, 04:20 PM

Quote:
Originally Posted by Ashex View Post
I converted an AVI video using the modified verison you posted for ubuntu. For some reason I keep getting the error "An error has occured attempting to play media".

My phone has v4.3.0.127
I also have problems with some AVI and WMV files (mainly WMV) when trying to onvert them, and I've never been able to figure out what's wrong. I can't even tell if it's the video or audio parts causing the problem, I've tried all sorts of things.

These same videos worked fine on my old 8100 (OS 4.2.0.xx), but not the 8320 (OS 4.2.2.xxx). Other types of files work fine, though - I've been able to transcode MOV, FLV, MPG, etc. without any problems at all; it's just those darm AVI/WMV encapsulated files. :(
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#42 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-11-2008, 07:26 PM

Quote:
Originally Posted by rivviepop View Post
I also have problems with some AVI and WMV files (mainly WMV) when trying to onvert them, and I've never been able to figure out what's wrong. I can't even tell if it's the video or audio parts causing the problem, I've tried all sorts of things.

These same videos worked fine on my old 8100 (OS 4.2.0.xx), but not the 8320 (OS 4.2.2.xxx). Other types of files work fine, though - I've been able to transcode MOV, FLV, MPG, etc. without any problems at all; it's just those darm AVI/WMV encapsulated files. :(
Blast. I'll try some transcoding foo with it. It could also be the firmware, as I upgraded it last week (from 4.2.2.365). I'm going to try downgrading it and give it a shot. For some reason I can't get media manager to detect it anymore since the upgrade.

Last edited by Ashex : 06-11-2008 at 07:31 PM.
   
Reply With Quote
  (#43 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,101
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 06-12-2008, 01:15 PM

Quote:
Originally Posted by Ashex View Post
Blast. I'll try some transcoding foo with it. It could also be the firmware, as I upgraded it last week (from 4.2.2.365). I'm going to try downgrading it and give it a shot. For some reason I can't get media manager to detect it anymore since the upgrade.
On thing I've been meaning to try but haven't gotten around to - try taking one of the offending AVI/WMV videos and transcoding it with a Windows tool that will make it play right on the BlackBerry. Then, take that transcoded file and compare it's internals (using ffmpeg, perhaps?) against the internals of a file created by mencoder that *doesn't* work, and see what it is that's the difference.

Once we figure out what it is exactly the newer BB's don't like, I'm sure it'll be trivial to find some switch or option in mencoder to fix it. (well, at least I hope it would be )
   
Reply With Quote
  (#44 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-13-2008, 08:33 PM

Quote:
Originally Posted by rivviepop View Post
On thing I've been meaning to try but haven't gotten around to - try taking one of the offending AVI/WMV videos and transcoding it with a Windows tool that will make it play right on the BlackBerry. Then, take that transcoded file and compare it's internals (using ffmpeg, perhaps?) against the internals of a file created by mencoder that *doesn't* work, and see what it is that's the difference.

Once we figure out what it is exactly the newer BB's don't like, I'm sure it'll be trivial to find some switch or option in mencoder to fix it. (well, at least I hope it would be )
I downgraded my phone to sprint firmware, and media manager detected it! I converted the video I've been trying to get working with it. As soon as I finish upgrading the phones firmware (with sprint this time), I'll hop back into linux and check the difference in codecs.

For some reason doing a usb passthrough to virtualbox doesn't work for the desktop manager :/
   
Reply With Quote
  (#45 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-14-2008, 02:00 PM

Sorry it took so long, I was trying to install barry (didn't work out).

This is the info I got from mplayer -identify

Quote:
Originally Posted by MediaManager Encoded
Playing bsg.s03e08.mp4.
Quicktime/MOV file format detected.
Warning! pts=61694000 length=61699230
ID_VIDEO_ID=0
[mov] Video stream found, -vid 0
VIDEO: [mp4v] 240x135 24bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=battlestar.galactica.s03e08.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=mp4v
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=240
ID_VIDEO_HEIGHT=135
ID_VIDEO_FPS=24.000
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=2570.80
xscreensaver_disable: Could not find XScreenSaver window.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
================================================== ========================
ID_VIDEO_CODEC=ffodivx
Audio: no sound
Starting playback...
VDec: vo config request - 240 x 135 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
VO: [xv] 240x135 => 240x135 Planar YV12

Quote:
Originally Posted by vid2bb.sh
Playing bsg.s03e08_bb.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO: [FMP4] 240x180 24bpp 23.976 fps 229.7 kbps (28.0 kbyte/s)
Clip info:
Software: MEncoder 2:1.0~rc2-0ubuntu13
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=MEncoder 2:1.0~rc2-0ubuntu13
ID_CLIP_INFO_N=1
ID_FILENAME=battlestar.galactica.s03e08_bb.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=FMP4
ID_VIDEO_BITRATE=229712
ID_VIDEO_WIDTH=240
ID_VIDEO_HEIGHT=180
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=68528
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=2570.61
xscreensaver_disable: Could not find XScreenSaver window.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
================================================== ========================
ID_VIDEO_CODEC=ffodivx
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
ID_AUDIO_BITRATE=32000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
================================================== ========================
AO: [pulse] Failed to connect to server: Connection refused
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mad


You know of another method of getting the info? For some reason mplayer won't give me the audio info.
   
Reply With Quote
  (#46 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,101
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 06-16-2008, 03:29 PM

Quote:
Originally Posted by Ashex View Post
Sorry it took so long, I was trying to install barry (didn't work out).

This is the info I got from mplayer -identify
...
You know of another method of getting the info? For some reason mplayer won't give me the audio info.
Hey don't be sorry, sometimes it's days before I can get around to the website. Try using ffmpeg to identify the audio content. Something like 'ffmpeg -i <file> foo.mov' works:

Code:
$ ffmpeg -i "DJ Shadow - Six Days.avi" foo.mov
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on May  3 2007 12:47:56, gcc: 4.1.2 20070424 (Red Hat 4.1.2-11)
Input #0, avi, from 'DJ Shadow - Six Days.avi':
  Duration: 00:03:41.4, start: 0.000000, bitrate: 1287 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 720x576, 25.00 fps(r)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 96 kb/s
Output #0, mov, to 'foo.mov':
  Stream #0.0: Video: mpeg4, yuv420p, 720x576, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: aac, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
   
Reply With Quote
  (#47 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-17-2008, 09:26 PM

looks like that did the trick, this is what I got:


Code:
ahmed@Phorin:~/temp$ ffmpeg -i bsg.s03e08.mp4
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Mar 12 2008 15:36:03, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu4)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bsg.s03e08.mp4':
  Duration: 00:42:50.5, start: 0.000000, bitrate: 580 kb/s
  Stream #0.0(ehs): Video: mpeg4, yuv420p, 240x135, 24.00 fps(r)
  Stream #0.1(ehs): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
Must supply at least one output file
looks like mpeg4aac?
   
Reply With Quote
  (#48 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,101
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 06-17-2008, 09:58 PM

Quote:
Originally Posted by Ashex View Post
looks like mpeg4aac?
OK to clarify, this is the video that the Windows based converter created that plays OK on your BB device?

EDIT: great news, I was able to simply use ffmpeg and it's defaults to create a MP4 container out of 4 test videos that were giving me a problem, and they all play 100% fine on my BB. A sample bit of output looks like:

Code:
Input #0, asf, from 'zpsy.wmv':
  Duration: 00:07:14.4, start: 4.000000, bitrate: 308 kb/s
    Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 128 kb/s
    Stream #0.1: Video: wmv2, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 172 kb/s,  7.50 tb(r)
Output #0, mp4, to 'zpsy.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 0:1 DAR 0:1], q=2-31, 200 kb/s,  7.50 tb(c)
    Stream #0.1: Audio: libfaac, 44100 Hz, stereo, 64 kb/s
Things need to be tuned up to decrease the artifacts (increase the quality) in the video stream, but it's at least a starting point to make it work. I haven't tried mencoder yet, I may not even bother if ffmpeg can do the job for me.

Last edited by rivviepop : 06-17-2008 at 10:28 PM.
   
Reply With Quote
  (#49 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-17-2008, 10:27 PM

Quote:
Originally Posted by rivviepop View Post
OK to clarify, this is the video that the Windows based converter created that plays OK on your BB device?
Yep, that's correct. Used the Roxio Media Manager that comes with the desktop manager.
   
Reply With Quote
  (#50 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-21-2008, 11:38 PM

Quote:
Originally Posted by rivviepop View Post
EDIT: great news, I was able to simply use ffmpeg and it's defaults to create a MP4 container out of 4 test videos that were giving me a problem, and they all play 100% fine on my BB. A sample bit of output looks like:

Code:
Input #0, asf, from 'zpsy.wmv':
  Duration: 00:07:14.4, start: 4.000000, bitrate: 308 kb/s
    Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 128 kb/s
    Stream #0.1: Video: wmv2, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 172 kb/s,  7.50 tb(r)
Output #0, mp4, to 'zpsy.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 0:1 DAR 0:1], q=2-31, 200 kb/s,  7.50 tb(c)
    Stream #0.1: Audio: libfaac, 44100 Hz, stereo, 64 kb/s
Things need to be tuned up to decrease the artifacts (increase the quality) in the video stream, but it's at least a starting point to make it work. I haven't tried mencoder yet, I may not even bother if ffmpeg can do the job for me.
What parameters did you use to convert? ffmpeg -i file.avi -s 240x180 -aspect 4:3 -vcodec mpeg4 -f mp4 file.mp4?
   
Reply With Quote
  (#51 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,101
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 06-22-2008, 05:08 PM

Quote:
Originally Posted by Ashex View Post
What parameters did you use to convert? ffmpeg -i file.avi -s 240x180 -aspect 4:3 -vcodec mpeg4 -f mp4 file.mp4?
Nothing so complicated, I just used all the defaults - 'ffmpeg -i <foo>.wmv foo.mp4' and that was it, it just worked. (Fedora 9 with the Livna/RPMForge ffpmeg used) I haven't gotten time yet to go playing with it further, but I guess the BB device is handling the 320x240 files on it's own and downscaling at runtime (which would explain why they look pixel-blocky).
   
Reply With Quote
  (#52 (permalink)) Old
Ashex Offline
Knows Where the Search Button Is
 
Posts: 15
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Default 06-23-2008, 03:51 PM

Quote:
Originally Posted by rivviepop View Post
Nothing so complicated, I just used all the defaults - 'ffmpeg -i <foo>.wmv foo.mp4' and that was it, it just worked. (Fedora 9 with the Livna/RPMForge ffpmeg used) I haven't gotten time yet to go playing with it further, but I guess the BB device is handling the 320x240 files on it's own and downscaling at runtime (which would explain why they look pixel-blocky).
Gotcha. I'll play with it when I get home too.
   
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1