[Q] ffmpeg/ffplay 2.1 subtitle support - Windows RT General

I'm sorry if i'm opening a new thread, but i seem unable to write on the mentionated topic
I've installed ffmpeg 2.1 that'ive found at http://forum.xda-developers.com/showthread.php?t=2368706
Play of mkv files are really fine, even in full screen, but i'm unable to display subtitles.
I'm pretty sure ffplay recognize the track (i can see it the streams list) but neither the "-sst #" switch
nor pressing the "t" key allow me to display the subtitles. Of course i'm sure that the mkv has the
subtitles inside, cause VLC on a x86/x64 machine i can read them perfectly.
Am i missing something or the ported ffplay lacks the ability to read/display subtitles.
Thanks in advance

A little bit off topic: can you use ffmpeg to do screen capture?

Related

Improving Movie Playback - Done !

Using the information provided in this thread:
http://forum.xda-developers.com/showthread.php?t=500574
I've made some benchmarks using Coreplayer, and what a surprise when I saw that this wasn't just a placebo effect:
On my Blackstone, used some divx encoded movie (container is avi, not mp4, so not playable with wmp), and a movie acquired with the camera, so .mp4.
I did a benchmark and the result is the following:
Methods
HTC Touch HD, latest Dutty's V3 rom, freshly flashed.
No Additional program installed.
Coreplayer 1.3.0 build 6213
1st movie is a DVDrip, avi, xvid.
2nd movie has been acquired with the HD's camera, so it's MP4.
Results are presented as following:AVI movie / MP4 Movie / MP4 Video paused in WMP in background​Driver QTV117 % / 135% / without wmp running a mp4 vid.
115 % / 197% / with wmp runninga mp4 vid.​Driver DirectDraw92 % / 142% / without wmp running a mp4 vid.
86 % / 186% / with wmp runninga mp4 vid.
​Analysis:
The avi movie suffers from the additional memory used by WMP in the background, and there is no improvement.
The MP4 movie benchmark improves dramatically when a MP4 vid is paused in the background with WMP.
QTv still provides better results than DirectDraw.
Conclusion
There is some kind of acceleration with WMP in the background, but only with MP4 movies !
You may notice that it doesn't seem to be directdraw dependant. Neet, I love more confusion.
I want to thank zerocool159 for this nice finding.
Edit: doesn't seem to work with all the MP4 !Will try to find the right settings.
Impressive, I want to try it first
It's not working for me, but I think I must have missed something because my benchmarking gives 43%, it's the first time I try to play a movie on my HD.
Well, you need several things, and I don't know if it's related to the Rom version I use.
Take a quick movie of whatever with your camera. Use Windows media player to play it. Put it in pause.
Without closing WMP, launch Coreplayer (the latest version I assume), and play a .MP4 movie. You can convert almost anything with the movie encoder GUI found on here.
Bump. No one interested ? Really ?
I am very interested, this is in fact very funny. Since there is special dll - qtv-mp4-"something" . Actually this is very strange. I first thought that WMP is somehow modified to use acceleration, than i have been told I am wrong. Later, there were some qtv dll´s found, as mentioned before one especially for mp4, so this acceleration is abviously not coused JUST by directdraw support of WMP. Anyway, I hope that CP will release CP 2.0 sooon. Also, if it it true, than Topaz drivers can boost video playback.
Dredd67 said:
Well, you need several things, and I don't know if it's related to the Rom version I use.
Take a quick movie of whatever with your camera. Use Windows media player to play it. Put it in pause.
Without closing WMP, launch Coreplayer (the latest version I assume), and play a .MP4 movie. You can convert almost anything with the movie encoder GUI found on here.
Click to expand...
Click to collapse
That's exactly what I did, nothing special happened, with or without wmp running, i got between 40 and 43%... the divx was encoded using an encoder found on this forum ^^
Ok, try with a video you've recorded with your HD's camera. I think there's something really weird going on. I've tried with a video compressed with badaboom and it doesn't work either.
I think the file format is very specific. Will ty to see if I can find the settings used by the camera to generate those files.
When I benchmark a camera video, I get 196%, and wmp still doesn't change anything...
There is definitely something weird going on, here's what I've posted in Manilla 2d speed boost thread:
This might be interesting to some people with more knowledge.
Tried this just now and it did make things run faster and smoother however, I noticed that on my homescreen the background I'm using had several white spots dotted about all over the screen (several hundred in fact) - as though the image had suffered from it's compression.
So, thinking I'd have to restart the device I just closed everything to first make sure I didn't have too many things running and noticed when closing HTC's Album the spots disappeared in front of my eyes!!
Tried it again with JUST Album running and the same thing happened.
Don't know if it will give anyone any clue as to what's going on but I'll try and grab some pictures if you think it would help
BTW: using the stock rom from Orange v1.19
Click to expand...
Click to collapse
Just saw that also, really weird.
Using MyMobiler can't get a proper picture of the white dots, but they are still there.
Will try with pocket screen.
Edit : WEIRD: I can see them but impossible to capture them !
Click to expand...
Click to collapse
i can confirm the graphical artefact displaying photos in the touchflo3d thumbview (white, blue, green smears and spots) while wmp is paused on a mp4 thingie...
having the picture thumbs scrolling is quite revealing : the dots on the pictures are part of the paused video !
theory : wmp loads some qualcomm dll for mp4 playback. said dll then does some stuff of its own that turns 2d overlay/framebuffering hw acceleration on.
meanwhile manila is doing the same thing througth some htc dll.
both apps access the framebuffer through 2d hardware, hilarity ensues !
draxredd said:
i can confirm the graphical artefact displaying photos in the touchflo3d thumbview (white, blue, green smears and spots) while wmp is paused on a mp4 thingie...
having the picture thumbs scrolling is quite revealing : the dots on the pictures are part of the paused video !
theory : wmp loads some qualcomm dll for mp4 playback. said dll then does some stuff of its own that turns 2d overlay/framebuffering hw acceleration on.
meanwhile manila is doing the same thing througth some htc dll.
both apps access the framebuffer through 2d hardware, hilarity ensues !
Click to expand...
Click to collapse
Jup, I have encountered the same effect on my Laptop/PC with certain programs with video on pause, a application video overlay boxing match, so to speak...
It really isn't working for me, when I start playing the camera movie on wmp, and then i pause it and i start playing another camera video on coreplayer, wmp won't be showing the video anymore, i mean that when i get back to wmp and press play, i have sound but not picture... So maybe am I doing something wrong?
I found this branch in registry... maybe help?! I don`t know what is this...
[HKEY_LOCAL_MACHINE\Software\Microsoft\DirectX\DirectShow\Video Renderer]
"KeyIndex"=hex:fd,00,00,00
"KeyColor"=hex:09,09,09,00
"MaxBackBuffers"=dword:00000001
"UseOverlayStretch"=dword:00000001
"UseScanLine"=dword:00000000
"SurfaceTypes"=dword:000000ff
no updates?
That's what I'm wondering...
Guys, the update is the app developed by Chainfire called GfxBoost a while ago, what's stated in this thread was preliminary observations that finaly lead to GfxBoost...
Mods you can lock this thread I think.
hello everybody,
I'd try this solution on my TP2 and it's work perfectly.
Without WMP i have 70% of speed
with it grow to 115 %.
Thank you for this solution.
Ps: I'd just start wmp with a mp3
I modify my post because this solution had work only one time.
I'd try to test with/without wmp but the speed stay at 70%, mystery, mystery !!

Video Converter with Subtitles support

Hey guys i am trying to find the best solution converting my movies and watching them on htc desire. i have the subtitles into srt files (greek language) but i can't convert a movie into mp4 with subtitles playable. i tried the touch hd encoder but they appear with strange letters. with xilisoft there is no good quality.
if there is anyone that can help me with settings on one of the following programs and how to attach subtitles to desire please help me. i have:
xilisoft video converter ultimate
videora for android
total video converter
Handbrake should do the job. http://handbrake.fr/downloads.php
Is it possible to 'hard burn' the srt subtitles in a movie in handbrake? Always thought this is not possible with handbrake..
edit: Check this: http://trac.handbrake.fr/wiki/Subtitles
SRT subtitle import – You can import SRT files into HandBrake through the “Subtitles tab”.
o SRT files are pass-through only. They cannot be burnt into the video.
Click to expand...
Click to collapse
So what you could do is to find a converter from srt to Bitmap (VOBSUB), and then use that instead. Because handbrake is able to 'burn' those into the video.
OR! Use a player that supports subtitles... Is there one for Android that works properly?
total converter can add subtitles but i can't find a good setting for size and quality. i think the resolution being 800x480 but with low bitrate gives bad result. anyone with good settings ?
some just cant read properly
HandBrake has two methods of subtitle OUTPUT:
• Hard Burn: This means the subtitles are written on top of the image permanently. They cannot be turned on or off like on the DVD.
• Soft Subtitles: This means the subtitles will appear as separate selectable tracks in your output file. With the correct playback software, you’ll be able to enable / disable these subtitles as required.
Please read my quote from the handbrake wiki and stand corrected. The OP wants .srt subtitles in this movie.
So instead of telling people they cannot read please tell us which app can play soft subtitles.
I already thought of the other solution for handbrake, convert the srt's to bitmaps and then hard burn them.
edit: fast google showed you can convert srt to vobsub using SubtitleCreator. Open srt and then save as vobsub. Then use handbrake to convert and add the subtitles to your movie.
As for total converter, I have no idea. Cranking up the bitrate doesn't work? If space is not an issue that is usually the easiest way of getting better image quality.
I have qouted from the link you provided.
JaykaySLO said:
I have qouted from the link you provided.
Click to expand...
Click to collapse
Yes, and that continues stating that you cannot hard burn srt files. I have tried and it's indeed not possible. When you import a .srt file the 'burned in' option is greyed out.
Come on man, telling others to read while not doing that yourself is kinda awkward
My 'solution' doesn't work either. Guess handbrake cannot load external subtitles perhaps? I'm sure it works from a dvd, but so far external subs have not been burned into my movies.
Something else you might try is to download 'mVideoPlayer' from the market. Apparantly that one should be able to use .srt files.
Gave it a quick test and it seems to be working! So perhaps this is a better option than to hard burn those subs into your movies.
lambrospower said:
Hey guys i am trying to find the best solution converting my movies and watching them on htc desire. i have the subtitles into srt files (greek language) but i can't convert a movie into mp4 with subtitles playable. i tried the touch hd encoder but they appear with strange letters. with xilisoft there is no good quality.
if there is anyone that can help me with settings on one of the following programs and how to attach subtitles to desire please help me. i have:
xilisoft video converter ultimate
videora for android
total video converter
Click to expand...
Click to collapse
Use Mp4ForHD.
I use FormatFactory http://www.formatoz.com/
It can embed subtitles, has presets for most devices, unfortunately it doesn't support the native (800*480) resolution of the Desire but being an actively developed (and frequently updated) software I expect it to do so soon.
moshbeard said:
Handbrake should do the job.
Click to expand...
Click to collapse
Most opensource softare is just benefit from free like handbrake. On the other hand, it is difficult to use for beginner, lack support and weak stability. handbrake attend technology and ignore user experience. I consider many other charge program are better than it.
lambrospower said:
Hey guys i am trying to find the best solution converting my movies and watching them on htc desire. i have the subtitles into srt files (greek language) but i can't convert a movie into mp4 with subtitles playable. i tried the touch hd encoder but they appear with strange letters. with xilisoft there is no good quality.
if there is anyone that can help me with settings on one of the following programs and how to attach subtitles to desire please help me. i have:
xilisoft video converter ultimate
videora for android
total video converter
Click to expand...
Click to collapse
so far the most effective combination that has proved in practice: Rock Player + Video Converter. Unfortunately, both programs must be purchased but the fact that real intelligence work perfectly on dezire HD. I recommend everyone to at least try, as both trials.
Try this
Kigo Video Converter Ultimate is a newly released video converter designed specifically for Mac users to convert nearly all sorts of videos into whatever format they want. As a Mac user, this is really a good news for you.
Google this
Total video converter. this program rock's everithing you can do everithing subs, any format, any res. audio, video, customize video , customize subs just everithing
RockPlayer does support subtitles (.srt, don't know about .sub) and it works flawlessly. You can choose color and size of the subtitle in the settings.
Try mVideoPlayer from the market which is currently free...
Convert your video using whichever method you prefer to MP4 / M4V and copy it to your device (I prefer Handbrake).
Either copy your .srt subtitles to the same folder or else mVideoPlayer can search for subtitles for the video and download them - you just choose whether or not to display them.
It works well on my Advent Vega tablet, but I haven't tried the app on my Desire yet as I am waiting for it to come back from repair after a "bouncing down a flight of stairs" incident!
What are good picture settings and average bitrates for movies in handbrake?
320X240? but what about the average bitrate?
Should i use the hardware or software decoding on rockplayer?
I find MX Player Pro is the best option when I dont have time to convert movies with .srt files. It plays all formats and support subtitle files!
You may try this one that helped me before: Asoftech Video Converter

Video codec issues? playback.

Hi everyone,
Just to a couple of questions.
When I record a wide screen 800x480 video with the phone it plays back fine on the phone. When I copy it to my PC it won't play the audio. I have tried using VLC player, and Windows Media player. No sound.
The file is a .3gp type file (I chose mp4 encoding). I think a missing codec called samr is required to get sound on the clips on the PC. Anyone know a way around this?
Secondly, I have lots of clips I would like to look at on the phone. I tried uploading a H.264 file (mp4 file) and it won't playback. plays fine on my PC obviously. Tried using a conversion program to resize it to the exact 800x480 in H.264. Still won't play on the phone. what conversion tool do you use and what codec must the file be to play on the desire. H.264 doesn't seem to work?
the tool that works for me is "Convert Any to DVD Professional 4.0.5). It has an option for Nexus one H.264 and you can also crop the conversion etc. Oter conversion programs did not work for me even though I chose H.264. strange.
I use Any Video Converter Pro.
Also used it for my Magic without problems.
Winmenc works nicely with h264 encodes, someone posted a profile on these boards. However there is a lipsync issue.
I cant seem to get handbrake working with h264 which is a pain because that is what I normally use.

Some basic questions

Hi - I am new to Android and am struggling with some fairly basic concepts:
1. Unloading images, and video: I have Win7 and using the built in Windows image importer - it tries to unload all other images - not just camera. So I get lots of bookmark thumbnails etc; etc; I have also tried doubleTwist but that seemed overly complicated?
2. Sharing recorded video with others: The Desire seems to record to a format that no one can play. Well the video does but the sound does not. I have read that there is no way round this and you can only play it on your phone!!?? Surely thats not right? I just want to email friends some videos - surely thats not tricky!?
3. Multiple calendar reminders: When I get a reminder I get the option to Snooze All or Dismiss All - but I cant seem to dismiss just one reminder. Any ideas?
Thanks in advance for any help
vilbs said:
Hi - I am new to Android and am struggling with some fairly basic concepts:
1. Unloading images, and video: I have Win7 and using the built in Windows image importer - it tries to unload all other images - not just camera. So I get lots of bookmark thumbnails etc; etc; I have also tried doubleTwist but that seemed overly complicated?
2. Sharing recorded video with others: The Desire seems to record to a format that no one can play. Well the video does but the sound does not. I have read that there is no way round this and you can only play it on your phone!!?? Surely thats not right? I just want to email friends some videos - surely thats not tricky!?
3. Multiple calendar reminders: When I get a reminder I get the option to Snooze All or Dismiss All - but I cant seem to dismiss just one reminder. Any ideas?
Thanks in advance for any help
Click to expand...
Click to collapse
1. The beauty of using a non-Apple smartphone is that you don't have to use a special application to manage your files. Just connect your device to your PC as a disk drive. Browse to it with your file explorer and just drag&drop.
2. Not sure what you mean here. Windows Media Player on Windows can play the videos recorded with the Desire. And Quicktime on OSX can as well.
3. Yeah, there's no way around this one. Bummer...
In terms of photos, why don't you just drag and drop...you don't really need to use an importing tool. That seems overly complicated for what you want.
On the video side of things, you have two formats to choose from. 3gp and Mp4. When you're shooting video there's a tab on the left. Pull it out and at the bottom is the settings. You can then choose "Encoding type" and switch. I believe you'll get the best compatibility with Mp4.
The reminders thing? I have no clue.
1. Issue with sync - OK I will drag and drop. The importer utility is normally quite handy as it only unloads images that havent already been unloaded etc; etc;
2.
Aitese said:
On the video side of things, you have two formats to choose from. 3gp and Mp4. When you're shooting video there's a tab on the left. Pull it out and at the bottom is the settings. You can then choose "Encoding type" and switch. I believe you'll get the best compatibility with Mp4.
Click to expand...
Click to collapse
I have the choice out of H.263 and MPEG4. Both options output a .3gp file (I presumed that MPEG4 should output a .MP4). Both .3gp give the following message in VLC player "No suitable decoder module: VLC does not support the audio or video format "samr". Unfortunately there is no way for you to fix this." Media player doesnt give me a message it just doesnt give audio. Google this tells me that there is no easy way to solve this. So how come it works for you?
3. "...Yeah, there's no way around this one. Bummer..." Bummer indeed
Oh well - thanks for your answers guys but I would really love to try and sort this video issue. Incidentally its the same with sound recordings - they use the same samr codec which basically cant be used
Ah, well it seems both RealPlayer and Quicktime can play back the videos encoded with the mp4 or H.263 format.
EDIT - And also Windows Media player. I have read that VLC can't play them due to licensing issues for the AMR sound format.
download and install the k-lite codec pack it will include the classic player which is more than capable of playing these videos. I did have an issue with my vids i was recording when i was making a recording that lasted longer than 10 minutes, it was almost as if the card was too full record properly however the recorder still carried on going, this can be recognised when you press stop on the video recording and it goes straight back to the desktop instead of the camera. when this occurs nothing will play the file as it is corrupt. it must have been a third party program i had installed as when i defaulted the device the problem stopped and it would record as normal.

[Q] HD Video Playback and Framerate

Before I start, let me clarify that this is about playback of stored videos files (avi, mp4, wmv, mov, etc), not recording frame rate or the playback of recorded videos from the phone. Searching yielded hundreds of results, but none of them fit the scope of my question as far as I could tell. If there is something out there, please link and excuse this question.
So, my question and issue is pretty straight forward: whenever I try to play video files I have (IE: downloaded mp4 files), I get really really poor frame rates. Poor meaning 7-13 frames per second.
So the video sucks, and plays in a fairly smooth slow motion. The sound is fine, causing the video to go out of sync, and once the audio timeline ends the video file closes. The built-in player won't even load them, but RockPlayer does. I think I tried xyplayer as well. I figure this is just a codec / software issue, but all lower resolution video files (same format) play fine, so it seems to be unrelated to the applications I'm using. 800x640 video files, no problem; 1280x720 video files, not gonna happen. The videos play fine on a computer, obviously, and my buddy's Windows Phone 7 plays them fine as well (Zune software).
Any ideas?
what bitrate are the videos that skip?
I don't have many on my phone right now, but one of them is 741Kbps, about one third larger than another video that plays perfectly fine, albeit at a lower resolution. Admittedly I know very little about video encoding and all of that.
What rom are you using?
Currently Burnt Droid (1.4), but I've had the same problem on other roms (sense). I recall having this issue on an AOSP rom once, but I can't say that with complete confidence.
Bump; is this really not an issue for people? I can try and grab a sample video if that helps? I figured this would be a more global thing, not just me. The main reason I need (or want) this to work is because all of my online class lectures are recorded in this format and being able to watch the lectures on the go would be extremely beneficial.
I can play a 4gb hd rip of avatar on my phone in rockplayer (hardware mode) with no skipping
please post a link to a vid your having problems with
NewZJ said:
I can play a 4gb hd rip of avatar on my phone in rockplayer (hardware mode) with no skipping.
Click to expand...
Click to collapse
Hmm, ok, so it took that sentence for me to realize I'm an idiot. I've tried hardware mode with every video file I have put on my phone (avi, mp4, wmv), but wasn't surprised when they didn't play-- if they did, couldn't I just use the stock video player?-- but my school files for example are .mp4, which should play, but I guess the system player doesn't support whatever encoding/bitrate these videos are made with? Does this mean I won't get this to work unless I re-encode / convert the files I have into a new mp4 the phone will support natively?
Excuse my ignorance on the issue; I guess my understanding of the application and android system is more limited than I initially thought.

Categories

Resources