Full length movie does not show up in Video lens

Bug #1295062 reported by Timo Leppiniemi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mediascanner2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I just uploaded a movie trailer (49Mb in size) to my Nexus 7 (2013, 4G version) and Nexus 4 it worked ok. After that I copied a full length movie (1.5Gb in size) and it did not show up in the Video lens at all. File itself is ok and playable.

Ubuntu touch version on both Nexus 7 and Nexus 4 is r248.

/home/phablet/.cache/upstart/mediascanner.log has error regarding the added file:

mediascanner-service[1845]: WARNING warning/fs-walker: Unable to discover "/home/phablet/Videos/filename.mp4", error code: 5

/home/phablet/.cache/upstart/mediascanner-2.0.log error as follows:

New file was created: /home/phablet/Videos/filename.mp4.
Error when adding new file: Unable to discover file /home/phablet/Videos/filename.mp4

Revision history for this message
Timo Leppiniemi (timo-leppiniemi-d) wrote :

The only difference with these two video files are that Audio track in the trailer is 44100Hz sample rate and the full length movies has 48000Hz samplerate. Audio and video codecs are the same.

Revision history for this message
Timo Leppiniemi (timo-leppiniemi-d) wrote :

trailer file details:

ID_VIDEO_ID=0
ID_AUDIO_ID=0
ID_AID_0_LANG=eng
ID_CLIP_INFO_NAME0=major_brand
ID_CLIP_INFO_VALUE0=isom
ID_CLIP_INFO_NAME1=minor_version
ID_CLIP_INFO_VALUE1=512
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isomiso2avc1mp41
ID_CLIP_INFO_NAME3=encoder
ID_CLIP_INFO_VALUE3=Lavf54.63.104
ID_CLIP_INFO_N=4
ID_FILENAME=McCanick_Trailer.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=3699840
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=196640
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_START_TIME=-0.05
ID_LENGTH=103.45
ID_SEEKABLE=1
ID_CHAPTERS=0
ID_VIDEO_CODEC=ffh264
ID_AUDIO_BITRATE=196640
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_AUDIO_CODEC=ffaac
ID_EXIT=EOF

----------------------------------------------------------
Feature Film file details:

ID_VIDEO_ID=0
ID_AUDIO_ID=0
ID_AID_0_LANG=eng
ID_CLIP_INFO_NAME0=major_brand
ID_CLIP_INFO_VALUE0=isom
ID_CLIP_INFO_NAME1=minor_version
ID_CLIP_INFO_VALUE1=1
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isomavc1
ID_CLIP_INFO_NAME3=creation_time
ID_CLIP_INFO_VALUE3=2013-10-18\ 12:35:54
ID_CLIP_INFO_N=4
ID_FILENAME=filename.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=2016968
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1040
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=93640
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=5878.83
ID_SEEKABLE=1
ID_CHAPTERS=0
ID_VIDEO_CODEC=ffh264
ID_AUDIO_BITRATE=93640
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_AUDIO_CODEC=ffaac
ID_EXIT=EOF

Revision history for this message
James Henstridge (jamesh) wrote :

This seems to be a failure from GstDiscoverer. In particular, error code 5 is GST_DISCOVERER_MISSING_PLUGINS.

Perhaps try installing gstreamer1.0-plugins-base-apps on the device and run "gst-discoverer-1.0" on the two files to see if that shows any differences.

Changed in mediascanner2:
status: New → Incomplete
Revision history for this message
Sturm Flut (sturmflut) wrote :

Device: bq Aquaris E4.5 (krillin)
Image: 14.10 (r21, OTA-3)

I used a couple of freely available files in different containers and audio/video formats from https://peach.blender.org/download/ , https://durian.blender.org/download/ , https://orange.blender.org/ , https://mango.blender.org/ , http://support.hp.com/gb-en/document/lpg40911 , http://mcpd.pagesperso-orange.fr/Avistep3/index_en.html and http://sourceforge.net/projects/matroska/files/test_files/matroska_test_w1_1.zip/download so everybody can reproduce the issue(s). The matching parts from my ~/.cache/upstart/mediascanner-2.0.log are attached. I don't seem to have a "mediascanner.log". There are no return codes reported in the error messages.

I'll add a failed case here for convenience and reference:

New file was created: /media/phablet/3151-268D/Videos/big_buck_bunny_480p_surround-fix.avi.
Extracting metadata from /media/phablet/3151-268D/Videos/big_buck_bunny_480p_surround-fix.avi.
Error when adding new file: Unable to discover file /media/phablet/3151-268D/Videos/big_buck_bunny_480p_surround-fix.avi

The service seems to corrupt memory and crash a lot if "enough" files have to be scanned.

Revision history for this message
Sturm Flut (sturmflut) wrote :

Any updates on this?

affects: mediascanner2 → mediascanner2 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mediascanner2 (Ubuntu) because there has been no activity for 60 days.]

Changed in mediascanner2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.