BlackBerry Forums Support Community
              

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

Please Login to Remove!

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. :(
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 06-11-2008, 07:26 PM   #42
Ashex
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 25
Default

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..
Offline   Reply With Quote
Old 06-12-2008, 01:15 PM   #43
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

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 )
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 06-13-2008, 08:33 PM   #44
Ashex
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 25
Default

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 :/
Offline   Reply With Quote
Old 06-14-2008, 02:00 PM   #45
Ashex
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 25
Default

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.
Offline   Reply With Quote
Old 06-16-2008, 03:29 PM   #46
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

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
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 06-17-2008, 09:26 PM   #47
Ashex
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 25
Default

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?
Offline   Reply With Quote
Old 06-17-2008, 09:58 PM   #48
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

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.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/

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

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.
Offline   Reply With Quote
Old 06-21-2008, 11:38 PM   #50
Ashex
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 25
Default

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?
Offline   Reply With Quote
Old 06-22-2008, 05:08 PM   #51
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

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).
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 06-23-2008, 03:51 PM   #52
Ashex
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 25
Default

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.
Offline   Reply With Quote
Old 09-07-2008, 03:58 PM   #53
cus4fun
New Member
 
Join Date: Sep 2008
Model: 8330
PIN: N/A
Carrier: US Cellular
Posts: 1
Default Any video on a Curve

All I know for certain is that this works on my 8330.

media-convert.com

Choose either the "Local File Conversion" tab for a file on your computer, or the "Conversion From URL" for something online.

Choose the proper "input format"

Choose "No video preset" in the first output field and "MPEG-4 (.mp4)" for the second

Set FPS to 30
Set resolution to 320 x 240 for 4:3 or 320 x 180 for 16:9
Leave the rest alone.

Click OK

In a few minutes... or many minutes... you'll see a message for success and a button to download your new video which plays perfectly in your curve.

A side note: an online youtube video download tool: techcrunch.com/get-youtube-movie

And neither of these asks for any registration. Just use it and lose it.

Investigate 9/11
Offline   Reply With Quote
Old 09-08-2008, 12:47 PM   #54
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

Quote:
Originally Posted by cus4fun View Post
All I know for certain is that this works on my 8330.
Sometimes the pleasure is in the scripting and figuring things out, not just getting things done by using someone else's work. Hence, this thread.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 11-17-2008, 11:10 PM   #55
harryzuluberries
Talking BlackBerry Encyclopedia
 
harryzuluberries's Avatar
 
Join Date: May 2005
Location: Surf 'n Sun dude.
Model: 9630
OS: 4.iforgot
PIN: DUPONT FIFTH AVENUE LARGE ORPHEO ROLLERBALL
Carrier: the Titanic
Posts: 372
Default

Quote:
Originally Posted by rivviepop View Post
Sometimes the pleasure is in the scripting and figuring things out, not just getting things done by using someone else's work. Hence, this thread.
Speaking of adding things and figuring it out (Ubuntu newb here):


Finally made the file executable. Here's the output:

Code:
shaka@MECHWARRIOR3:~$ ./vids8330.sh /home/shaka/Desktop/SamuraiChamploo3/[a4e]Samurai_Champloo_01[h.264].mkv
./vids8330.sh: line 1: #!/bin/bash: No such file or directory
MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2050  @ 1.60GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xe50e6d8
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "[a4e]Samurai Champloo 01", -vid 0
[mkv] Track ID 2: audio (A_AAC/MPEG4/LC/SBR) "Japanese Audio", -aid 0, -alang jpn
[mkv] Track ID 3: audio (A_AAC/MPEG4/LC/SBR) "English Audio", -aid 1, -alangeng
[mkv] Track ID 4: subtitles (S_TEXT/ASS) "ASSA Subtitles", -sid 0, -slang eng
[mkv] Track ID 5: subtitles (S_TEXT/UTF8) "SRT Subtitles", -sid 1, -slang eng
[mkv] Track ID 6: subtitles (S_VOBSUB) "DVD Subtitles", -sid 2, -slang eng
[mkv] Track ID 7: subtitles (S_VOBSUB) "DVD Signs and Lyrics", -sid 3, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  704x384  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:704x384  fps:23.98  ftime:=0.0417
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=240 h=180]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio LAVC, couldn't find encoder for codec mp3.
Ok......got it to work using the info here:
Mencoder: Audio LAVC, couldnxxx8217;t find encoder for codec mp3. :: mcinroy.org

One problem left......won't play on my 8330. Lol. Well, I'm half way there!
__________________
TAIN
www.myspace.com/tshaka_zulu
Do, or do not. There is no try. -Yoda

7510>7520>7100i>8830>8330>9630

Last edited by harryzuluberries; 11-18-2008 at 03:30 AM..
Offline   Reply With Quote
Old 12-31-2008, 11:41 AM   #56
tuxi
New Member
 
Join Date: Mar 2007
Location: Katy, TX
Model: 8800
Carrier: AT&T
Posts: 7
Default vid2bb.sh using mencoder -- Ubuntu 8.10

Quote:
Originally Posted by harryzuluberries View Post
Speaking of adding things and figuring it out (Ubuntu newb here):

<<snip>>

Ok......got it to work using the info here:
(link removed) Mencoder: Audio LAVC, couldn’t find encoder for codec mp3. :: mcinroy.org

One problem left......won't play on my 8330. Lol. Well, I'm half way there!
Thanks for the link. I used
Code:
mencoder "$FILE" \
-o "${FILE%.*}_bb.avi" \
-of avi \
-ovc lavc \
-oac lavc \
-lavcopts vcodec=mpeg4:vbitrate=$VBR:acodec=libmp3lame:abitrate=$ABR \
-vf scale=$RES
(note the change from the original is the "acodec=libmp3lame" bit).

I had tried "ffmpeg -i foo.mpeg -s qvga foo.mp4" but the resulting video dropped too many frames on my 8800. The video from using vid2bb.sh with the correction above dropped much fewer (or no) frames.
__________________
Tuxi
BlackBerry 8800
AT&T
BES (version unknown)
Windows XP, Ubuntu 8.10
Offline   Reply With Quote
Old 01-01-2009, 06:43 PM   #57
berry_blue
Knows Where the Search Button Is
 
berry_blue's Avatar
 
Join Date: Dec 2008
Model: 9530
OS: Fedora 11
PIN: 304B4EE2
Carrier: Verizon
Posts: 35
Talking Video encoding for BB Storm!! WORKS PERFECT!!!

Hey,

I'm on Elive Gem and use a Blackberry Storm. I've been using a script I found online to reformat clips and whole movies for the IPod. It works perfect for my Storm!! I didn't write it but here it is.

Its written in ruby so be sure you've got ruby installed. I've got 1.8.2-1.

Called mp4ize. Just knock off the ".txt", make it executable and run it.
Attached Files
File Type: txt mp4ize.txt (4.9 KB, 895 views)
__________________
I can see you...
Offline   Reply With Quote
Old 03-04-2009, 08:29 PM   #58
tuxi
New Member
 
Join Date: Mar 2007
Location: Katy, TX
Model: 8800
Carrier: AT&T
Posts: 7
Default

Quote:
Originally Posted by berry_blue View Post
Hey,

I'm on Elive Gem and use a Blackberry Storm. I've been using a script I found online to reformat clips and whole movies for the IPod. It works perfect for my Storm!! I didn't write it but here it is.

Its written in ruby so be sure you've got ruby installed. I've got 1.8.2-1.

Called mp4ize. Just knock off the ".txt", make it executable and run it.
I just tried this on my 8800 and got dropped frames, etc. Glad to hear it works on the Storm.
__________________
Tuxi
BlackBerry 8800
AT&T
BES (version unknown)
Windows XP, Ubuntu 8.10
Offline   Reply With Quote
Old 03-26-2009, 07:54 AM   #59
twalter
New Member
 
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 5
Default Quick'n'dirty transcode script for the Bold

Usage is "script.sh inputfile aspectratio"

Code:
#!/bin/sh

# Remember to use --keep_asr option to auto-calculate any "black bars" needed to pad video (modifies -Z) (may not be required as the Blackberry media player seems to auto-center its videos)

# The BB bold likes its bitrate to be <=1400 but testing shows 800 to 1000 works better at avoiding framedrops.  Also, framerate should be 24fps (per RIM KB)

# Use -M 2 or -M 4 to attempt to correct F@$%&*! NTSC DVD DIVX A/V sync problems on the fly.

# --export_asr C
#              set export aspect ratio code C [as input] Valid codes for C are:
#
#               1      1:1
#
#               2      4:3
#
#               3      16:9
#
#               4      2.21:1

# Speaking of NTSC, remember to de-interlace so you can at least hope to get A/V sync when forcing 24fps.
# Add -J fps=29.97:24 to the command below to do this.  

transcode -i "${1}" --export_fps 24,2 --encode_fields p --export_asr "${2}" -Z x320 -y ffmpeg,ffmpeg -F mpeg4,aac -w 1000 -o "${1}".mp4
Offline   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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Branson 902J Ultrasonic Welder  Transducer Amplifier & Horn 101149098,416026021 picture

Branson 902J Ultrasonic Welder Transducer Amplifier & Horn 101149098,416026021

$599.00



Trek Model 677 High Voltage Supply / Amplifier picture

Trek Model 677 High Voltage Supply / Amplifier

$1299.99



Trek 677A High Voltage Supply / Amplifier picture

Trek 677A High Voltage Supply / Amplifier

$1500.00



NEW Mitsubishi Servo Amplifier MR-J2S-500B4 Servo Drive picture

NEW Mitsubishi Servo Amplifier MR-J2S-500B4 Servo Drive

$3685.50



GAMEWELL-FCI *AA-100* SERIES AUDIO AMPLIFIER picture

GAMEWELL-FCI *AA-100* SERIES AUDIO AMPLIFIER

$850.00



Honeywell Ultraviolet Flame Amplifier RM7890 A 1015 picture

Honeywell Ultraviolet Flame Amplifier RM7890 A 1015

$199.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.