Page 1 of 1

How do you play 3gp video files?

PostPosted: Sun Feb 13, 2011 6:40 pm
by WPWoodJr
I copied some .3gp videos from my phone to the Subsonic server and added a 3gp > flv transcoding and enabled that transcoding for my Android player. It didn't help. My player still can't see the .3gp files.

Help!

PostPosted: Sun Feb 13, 2011 9:05 pm
by WPWoodJr
Hmmm... this is not intuitive but I renamed my .3gp videos to .mp4 and now Subsonic can play them.

PostPosted: Tue Feb 15, 2011 2:46 am
by WPWoodJr
OK, so I found under Settings...General where you set the video and the audio file extensions. So, I can add .3gp as a video file type and then add a transcoding command for it.

PostPosted: Tue Feb 15, 2011 2:51 am
by bornonline
Also make sure you enable the new type in the players too.

PostPosted: Tue Feb 15, 2011 3:12 am
by WPWoodJr
bornonline wrote:Also make sure you enable the new type in the players too.

Yes, I realized I need to do that. However, it isn't working. It works fine when I rename the .3gp files to .mp4, but not when I try to do it "right".

Maybe ffmpeg doesn't recognize the file properly when its extension is .3gp?

PostPosted: Tue Feb 15, 2011 3:21 am
by WPWoodJr
Here's what it says in the log:
Code: Select all
[2/14/11 10:19:24 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Invalid duration specification for ss: %o

The duration isn't being interpreted properly for some reason.

PostPosted: Tue Feb 15, 2011 3:28 am
by WPWoodJr
So I took off the -ss %o command from the ffmpeg transcoding command line and still got an error "Incorrect frame size":
Code: Select all
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Seems stream 1 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 15.00 (15/1)
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Public\Videos\Committed\2011-02-10_20-46-40_421.3gp':
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) major_brand : 3gp4
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) minor_version : 768
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) compatible_brands: 3gp4mp413gp6
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) copyright :
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) copyright-eng :
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Duration: 00:00:22.47, start: 0.000000, bitrate: 9499 kb/s
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 96 kb/s
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.1(eng): Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 9435 kb/s, 14.24 fps, 15 tbr, 1k tbn, 30k tbc
[2/14/11 10:25:46 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Incorrect frame size

PostPosted: Tue Feb 15, 2011 4:19 am
by WPWoodJr
Subsonic seems to be able to read .mp4 files to find out the values of parameters to pass to ffmpeg such as the frame size. It is not able to do this for .3gp files even though they are a form of mp4 format. That's why I'm getting the frame size and other errors.