After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773206 - mp4 video container format not supported
mp4 video container format not supported
Status: RESOLVED FIXED
Product: shotwell
Classification: Other
Component: video
0.24.x
Other Linux
: Normal normal
: ---
Assigned To: Shotwell Maintainers
Shotwell Maintainers
: 719105 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-10-19 08:37 UTC by bfx81
Modified: 2017-09-21 11:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shotwell.log (81.60 KB, text/x-log)
2016-10-24 09:55 UTC, bfx81
  Details
shotwell build log (46.65 KB, application/gzip)
2016-10-24 10:13 UTC, bfx81
  Details
shotwell-0.26.3.log (73.93 KB, text/x-log)
2017-09-15 20:28 UTC, bfx81
  Details
import log (282 bytes, text/plain)
2017-09-15 20:29 UTC, bfx81
  Details
Do not filter out application/x-extension-mp4 from VideoSupport (1.09 KB, patch)
2017-09-16 07:22 UTC, Jens Georg
committed Details | Review

Description bfx81 2016-10-19 08:37:18 UTC
Trying to import mp4 files does not work. 
- Gstreamer is able to reproduce it (using totem and sushi)
- The same video, just muxed in mkv (no re-encoding) is imported correctly

https://dl.dropboxusercontent.com/u/2832401/928092571.MP4
https://dl.dropboxusercontent.com/u/2832401/928092571.mkv

Tested with shotwell 0.23.1 and 0.24.0 on gentoo
gstreamer-1.8.3
Comment 1 Jens Georg 2016-10-19 15:17:26 UTC
I recently discovered that we have our own mp4 parser. maybe that doesn't like the file, will check later
Comment 2 Jens Georg 2016-10-19 15:45:38 UTC
Bug 719105 is probably related
Comment 3 bfx81 2016-10-19 16:10:18 UTC
Thanks for caring about that. I tried with SHOTWELL_LOG=1 to obtain more details, but nothing. If you need some other testing feel free to submit patches (on gentoo it's quite easy to apply to the build process).

A little bit OT, sorry: there's some way for shotwell to extract metadata from video files to obtain video recording time, etc (I mean a sort of EXIF for videos)?
Comment 4 Jens Georg 2016-10-19 18:44:52 UTC
Shotwell tries to get a bit of information from videos (time, comments, ...) . I haven't yet looked deeply into the video part, though.
Comment 5 Jens Georg 2016-10-19 18:47:52 UTC
mhm. Works fine here. Yes, please provide shotwell.log even if you can't see something in there :)
Comment 6 bfx81 2016-10-24 09:55:16 UTC
Created attachment 338331 [details]
shotwell.log
Comment 7 bfx81 2016-10-24 10:13:24 UTC
Created attachment 338333 [details]
shotwell build log

I've tested on ubuntu and it works (and I can see the video thumbnails too), so the problem seem related to the interaction with the environment in some way (but imho it's a strange behaviour for a specific video container format). I've attached the build log if can help...
Let me know if you need more information
Comment 8 Jens Georg 2016-10-24 10:31:21 UTC
Thats really odd. Btw, did you enable SQL debugging for the log?
Comment 9 bfx81 2016-10-24 10:45:27 UTC
The video thumbnails problem is not related (just a missing gstreamer plugin 
https://mail.gnome.org/archives/commits-list/2014-December/msg06079.html)

For the log I've followed this 
https://wiki.gnome.org/Apps/Shotwell/Architecture/Logging

My environment is this
bluefox@baltasar ~ $ set | grep SHOTWELL
SHOTWELL_LOG_FILE=/home/bluefox/shotwell.log
bluefox@baltasar ~ $ SHOTWELL_LOG=1 shotwell

In the log I see sql queries, if it's what you mean.

I've also filed a bug on gentoo bugzilla
https://bugs.gentoo.org/show_bug.cgi?id=597972
Comment 10 Jens Georg 2016-10-24 13:50:43 UTC
> My environment is this
> bluefox@baltasar ~ $ set | grep SHOTWELL
> SHOTWELL_LOG_FILE=/home/bluefox/shotwell.log
> bluefox@baltasar ~ $ SHOTWELL_LOG=1 shotwell
> 
> In the log I see sql queries, if it's what you mean.

Yep, those I was asking about, they shouldn't be there, apparently there's some issue with the env variable logic.
Comment 11 bfx81 2017-09-15 20:27:18 UTC
Still have the same problem with 
Shotwell Photo Manager 0.26.3 (c2d999c39385c7889b191b2b3b15a6b3d334e579).

I see in the log:
---------------------------------------------------------------------------------
L 2502 2017-09-15 22:19:48 [DBG] VideoSupport.vala:92: Skipping 928092571.MP4, unsupported mime type application/x-extension-mp4
L 2502 2017-09-15 22:19:48 [WRN] BatchImport.vala:1381: Import failure /home/bluefox/Dropbox/Public/928092571.MP4: Not an image file
-------------------------------------------------

Could be the problem related to detect the right mime-type?
https://git.gnome.org/browse/shotwell/tree/src/VideoSupport.vala#n76
Comment 12 bfx81 2017-09-15 20:28:00 UTC
Created attachment 359875 [details]
shotwell-0.26.3.log
Comment 13 bfx81 2017-09-15 20:29:00 UTC
Created attachment 359876 [details]
import log
Comment 14 Jens Georg 2017-09-16 07:22:10 UTC
Created attachment 359883 [details] [review]
Do not filter out application/x-extension-mp4 from VideoSupport
Comment 15 Jens Georg 2017-09-16 12:30:20 UTC
THat is rather curios, I cannot find that extension in any shared-mime info database that I have on my computer.
Comment 16 Jens Georg 2017-09-20 16:20:37 UTC
Attachment 359883 [details] pushed as 3b42439 - Do not filter out application/x-extension-mp4 from VideoSupport
Comment 17 Daniel Boles 2017-09-20 19:44:24 UTC
I wonder if that fixed Bug 719105 too?
Comment 18 Jens Georg 2017-09-21 11:09:17 UTC
*** Bug 719105 has been marked as a duplicate of this bug. ***
Comment 19 Jens Georg 2017-09-21 11:09:37 UTC
Lets just assume that it does