Projects
Multimedia
omxplayer
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
omxplayer.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Jan 14 15:04:17 UTC 2016 - guillaume@opensuse.org + +- Update to f544084 (2015-12-05) + +------------------------------------------------------------------- Sun Nov 29 10:04:15 UTC 2015 - guillaume@opensuse.org - Update to d9c74cd (2015-11-21)
View file
omxplayer.spec
Changed
@@ -20,7 +20,7 @@ %bcond_with external_ffmpeg Name: omxplayer -Version: 2015.11.21 +Version: 2015.12.05 Release: 0 Summary: omxplayer for Raspberry Pi License: GPL-2.0+
View file
omxplayer-2015.11.21.tar.gz/OMXControl.cpp -> omxplayer-2015.12.05.tar.gz/OMXControl.cpp
Changed
@@ -342,6 +342,11 @@ dbus_respond_string(m, status); return KeyConfig::ACTION_BLANK; } + else if (dbus_message_is_method_call(m, DBUS_INTERFACE_PROPERTIES, "GetSource")) + { + dbus_respond_string(m, reader->getFilename().c_str()); + return KeyConfig::ACTION_BLANK; + } else if (dbus_message_is_method_call(m, DBUS_INTERFACE_PROPERTIES, "Volume")) { DBusError error;
View file
omxplayer-2015.11.21.tar.gz/OMXReader.cpp -> omxplayer-2015.12.05.tar.gz/OMXReader.cpp
Changed
@@ -846,6 +846,31 @@ return false; } +double OMXReader::SelectAspect(AVStream* st, bool& forced) +{ + // trust matroshka container + if (m_bMatroska && st->sample_aspect_ratio.num != 0) + { + forced = true; + return av_q2d(st->sample_aspect_ratio); + } + + forced = false; + /* if stream aspect is 1:1 or 0:0 use codec aspect */ + if((st->sample_aspect_ratio.den == 1 || st->sample_aspect_ratio.den == 0) && + (st->sample_aspect_ratio.num == 1 || st->sample_aspect_ratio.num == 0) && + st->codec->sample_aspect_ratio.num != 0) + { + return av_q2d(st->codec->sample_aspect_ratio); + } + + forced = true; + if(st->sample_aspect_ratio.num != 0) + return av_q2d(st->sample_aspect_ratio); + + return 0.0; +} + bool OMXReader::GetHints(AVStream *stream, COMXStreamInfo *hints) { if(!hints || !stream) @@ -888,12 +913,8 @@ hints->fpsrate = 0; } - if (stream->sample_aspect_ratio.num != 0) - hints->aspect = av_q2d(stream->sample_aspect_ratio) * stream->codec->width / stream->codec->height; - else if (stream->codec->sample_aspect_ratio.num != 0) - hints->aspect = av_q2d(stream->codec->sample_aspect_ratio) * stream->codec->width / stream->codec->height; - else - hints->aspect = 0.0f; + hints->aspect = SelectAspect(stream, hints->forced_aspect) * stream->codec->width / stream->codec->height; + if (m_bAVI && stream->codec->codec_id == CODEC_ID_H264) hints->ptsinvalid = true; AVDictionaryEntry *rtag = m_dllAvUtil.av_dict_get(stream->metadata, "rotate", NULL, 0);
View file
omxplayer-2015.11.21.tar.gz/OMXReader.h -> omxplayer-2015.12.05.tar.gz/OMXReader.h
Changed
@@ -144,6 +144,7 @@ void AddStream(int id); bool IsActive(int stream_index); bool IsActive(OMXStreamType type, int stream_index); + double SelectAspect(AVStream* st, bool& forced); bool GetHints(AVStream *stream, COMXStreamInfo *hints); bool GetHints(OMXStreamType type, unsigned int index, COMXStreamInfo &hints); bool GetHints(OMXStreamType type, COMXStreamInfo &hints); @@ -168,6 +169,7 @@ int GetAudioIndex() { return (m_audio_index >= 0) ? m_streams[m_audio_index].index : -1; }; int GetSubtitleIndex() { return (m_subtitle_index >= 0) ? m_streams[m_subtitle_index].index : -1; }; int GetVideoIndex() { return (m_video_index >= 0) ? m_streams[m_video_index].index : -1; }; + std::string getFilename() const { return m_filename; } int GetRelativeIndex(size_t index) {
View file
omxplayer-2015.11.21.tar.gz/OMXStreamInfo.h -> omxplayer-2015.12.05.tar.gz/OMXStreamInfo.h
Changed
@@ -53,6 +53,7 @@ int height; // height of the stream reported by the demuxer int width; // width of the stream reported by the demuxer float aspect; // display aspect as reported by demuxer + bool forced_aspect; // true if we trust container aspect more than codec bool vfr; // variable framerate bool stills; // there may be odd still frames in video int level; // encoder level of the stream reported by the decoder. used to qualify hw decoders.
View file
omxplayer-2015.11.21.tar.gz/OMXVideo.cpp -> omxplayer-2015.12.05.tar.gz/OMXVideo.cpp
Changed
@@ -166,7 +166,7 @@ CLog::Log(LOGERROR, "%s::%s - error m_omx_decoder.GetParameter(OMX_IndexParamBrcmPixelAspectRatio) omx_err(0x%08x)", CLASSNAME, __func__, omx_err); } - if (pixel_aspect.nX && pixel_aspect.nY) + if (pixel_aspect.nX && pixel_aspect.nY && !m_config.hints.forced_aspect) { float fAspect = (float)pixel_aspect.nX / (float)pixel_aspect.nY; m_pixel_aspect = fAspect / m_config.display_aspect;
View file
omxplayer-2015.11.21.tar.gz/README.md -> omxplayer-2015.12.05.tar.gz/README.md
Changed
@@ -337,6 +337,14 @@ :-------------: | --------- Return | `string` +#### GetSource + +The current file or stream that is being played. + + Params | Type +:-------------: | --------- + Return | `string` + #### Volume When called with an argument it will set the volume and return the current
View file
omxplayer-2015.11.21.tar.gz/dbuscontrol.sh -> omxplayer-2015.12.05.tar.gz/dbuscontrol.sh
Changed
@@ -96,7 +96,10 @@ showsubtitles) dbus-send --print-reply=literal --session --dest=org.mpris.MediaPlayer2.omxplayer /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Action int32:31 >/dev/null ;; - +getsource) + source=$(dbus-send --print-reply=literal --session --reply-timeout=500 --dest=org.mpris.MediaPlayer2.omxplayer /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.GetSource) + echo "$source" | sed 's/^ *//' + ;; *) echo "usage: $0 status|pause|stop|seek|volumeup|volumedown|setposition [position in microseconds]|hidevideo|unhidevideo|togglesubtitles|hidesubtitles|showsubtitles|setvideopos [x1 y1 x2 y2]|setvideocroppos [x1 y1 x2 y2]|setaspectmode [letterbox,fill,stretch,default]|setalpha [alpha (0..255)]" >&2 exit 1
View file
omxplayer-2015.11.21.tar.gz/omxplayer.1 -> omxplayer-2015.12.05.tar.gz/omxplayer.1
Changed
@@ -1,7 +1,7 @@ .\" Generated with Ronnjs 0.3.8 .\" http://github.com/kapouer/ronnjs/ . -.TH "OMXPLAYER" "1" "November 2015" "" "" +.TH "OMXPLAYER" "1" "January 2016" "" "" . .SH "NAME" \fBomxplayer\fR \-\- Raspberry Pi command line OMX playerOMXPlayer is a commandline OMX player for the Raspberry Pi\. It was developed as
View file
omxplayer-2015.11.21.tar.gz/omxplayer.cpp -> omxplayer-2015.12.05.tar.gz/omxplayer.cpp
Changed
@@ -703,8 +703,8 @@ m_config_audio.device = optarg; if(m_config_audio.device != "local" && m_config_audio.device != "hdmi" && m_config_audio.device != "both") { - print_usage(); - return 0; + printf("Bad argument for -%c: Output device must be `local', `hdmi' or `both'\n", c); + return EXIT_FAILURE; } m_config_audio.device = "omx:" + m_config_audio.device; break; @@ -844,8 +844,9 @@ } if (i == sizeof layouts/sizeof *layouts) { + printf("Wrong layout specified: %s\n", optarg); print_usage(); - return 0; + return EXIT_FAILURE; } break; } @@ -882,21 +883,21 @@ break; case 'h': print_usage(); - return 0; + return EXIT_SUCCESS; break; case 'v': print_version(); - return 0; + return EXIT_SUCCESS; break; case 'k': print_keybindings(); - return 0; + return EXIT_SUCCESS; break; case ':': - return 0; + return EXIT_FAILURE; break; default: - return 0; + return EXIT_FAILURE; break; } } @@ -918,25 +919,25 @@ if(!filename_is_URL && !IsPipe(m_filename) && !Exists(m_filename)) { PrintFileNotFound(m_filename); - return 0; + return EXIT_FAILURE; } if(m_asked_for_font && !Exists(m_font_path)) { PrintFileNotFound(m_font_path); - return 0; + return EXIT_FAILURE; } if(m_asked_for_italic_font && !Exists(m_italic_font_path)) { PrintFileNotFound(m_italic_font_path); - return 0; + return EXIT_FAILURE; } if(m_has_external_subtitles && !Exists(m_external_subtitles_path)) { PrintFileNotFound(m_external_subtitles_path); - return 0; + return EXIT_FAILURE; } if(!m_has_external_subtitles && !filename_is_URL)
View file
omxplayer-2015.11.21.tar.gz/prepare-native-raspbian.sh -> omxplayer-2015.12.05.tar.gz/prepare-native-raspbian.sh
Changed
@@ -10,6 +10,10 @@ echo "Modifying for native build on Debian" +if [ -z `which sudo`] ; then + apt-get install -y sudo +fi + echo "Checking dpkg database for missing packages" REQUIRED_PKGS="ca-certificates git-core subversion binutils libva1 libpcre3-dev libidn11-dev libboost1.50-dev libfreetype6-dev libusb-1.0-0-dev libdbus-1-dev libssl-dev libssh-dev libsmbclient-dev gcc-4.7 g++-4.7 sed pkg-config" MISSING_PKGS=""
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.