Ok then, I'll give it a shot!henle wrote: Would be great if you could make it work!

Ok then, I'll give it a shot!henle wrote: Would be great if you could make it work!
Code: Select all
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/home/pi/omxplayer'
make: *** [ffmpeg] Error 2
Are you not able to install the deb package?strawberry wrote: Isn't it possible to share the compiled version?
Sounds good! Git/github is great, I can definitely recommend learning it. But if you can't find the time right now, sending me the source is fine too.gilgames wrote:Ok, kind-of auto-conversion code is pretty much ready! It's a little rough, since it relies on current system's locale to guess the subtitle's language, if it is in another encoding than unicode. I did a little "research" for other (more clever) methods, but frankly, I don't think that it would worth it. It involves some serious heuristics to find out the real encoding of a file and even then, it's only more of an educated guess, rather than true finding! It is quite interesting that there is no really good way to find out a file's encoding!
Well, now that I have defended my choice (), would you like to take a look at the source? Frankly I'm not familiar with the way github works, but if you find it preferable I can give it a go! Please keep in mind that the code is for an actual launcher that calls omxplayer with the equivalent attributes, but as you will find out it's pretty simple to reform it in order to integrate into it
Let me know about the course of action!
Yes, I'm just testing...jose1711_ wrote:any chance of integration to official omxplayer?
Omxplayer does not currently check locale settings, all text-based subtitles are interpreted as UTF-8-encoded. Converting your SRT files should fix the problem.Montekuri wrote:I have Raspbian “wheezy” and omxplayer installed.
I watch videos with portuguese subtitles (with "ç", "é", "ã"... letters).
If I watch a mkv file with soft-coded subtitles they appear correctly.
But if I watch a mp4 or avi with external srt subtitles the special letters do not appear.
The Raspbian was at english locale. But even configuring to brazilian UTF-8 the special letters do not appear.
(Note: the special letters appears in any Windows media player and in the OpenElec).
Ok, I got it.henle wrote:Omxplayer does not currently check locale settings, all text-based subtitles are interpreted as UTF-8-encoded. Converting your SRT files should fix the problem.
Code: Select all
root@raspberrypi:~# file -i movie.srt
movie.srt: text/plain; charset=iso-8859-1
iconv -f iso-8859-1 -t utf-8 movie.srt -o movie_utf8.srt
file -i movie_utf8.srt
movie_utf8.srt: text/plain; charset=utf-8
Code: Select all
omxplayer.bin: SubtitleRenderer.cpp:154: SubtitleRenderer::load_glyph(SubtitleRenderer::InternalChar)::<lambda(FT_Face, VGFont, bool)>: Assertion `!vgGetError()' failed.
/usr/bin/omxplayer: line 67: 6497 Aborted LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"
What gpu_mem do you have? 1080p video with subs may require more than 64M - try with 128M.billybangleballs wrote:Any idea why omxplayer aborts playback with the message :-
The .srt file looks ok, I made sure it was utf-8 but the only way to play the video past the point of first subtitle is to disable subtitles or remove the .srt file from the directory.Code: Select all
omxplayer.bin: SubtitleRenderer.cpp:154: SubtitleRenderer::load_glyph(SubtitleRenderer::InternalChar)::<lambda(FT_Face, VGFont, bool)>: Assertion `!vgGetError()' failed. /usr/bin/omxplayer: line 67: 6497 Aborted LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"
Any insight would be appreciated.
I ran raspi-config and it said that the split was 128 and so I upped it to 256 and the file now plays with subtitles.dom wrote:What gpu_mem do you have? 1080p video with subs may require more than 64M - try with 128M.billybangleballs wrote:Any idea why omxplayer aborts playback with the message :-
The .srt file looks ok, I made sure it was utf-8 but the only way to play the video past the point of first subtitle is to disable subtitles or remove the .srt file from the directory.Code: Select all
omxplayer.bin: SubtitleRenderer.cpp:154: SubtitleRenderer::load_glyph(SubtitleRenderer::InternalChar)::<lambda(FT_Face, VGFont, bool)>: Assertion `!vgGetError()' failed. /usr/bin/omxplayer: line 67: 6497 Aborted LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"
Any insight would be appreciated.