3g2 video files in Gxine displays good video but no sound.

Using applications, configuring, problems
Message
Author
User avatar
jackieflorida
Posts: 118
Joined: Wed 28 May 2008, 17:16
Location: MIAMI

3g2 video files in Gxine displays good video but no sound.

#1 Post by jackieflorida »

My cellphone and digital camera both record videos in 3g2 format. I would like to play them directly in Puppy 4.x. Gxine displays good video but no sound. In Windows, Quicktime works for this.

Since this is a common video format, I am hoping that someone has figured out how to play them with sound in Puppy. It's a drag to convert say a 40mb 3g2 file online to a wmv or wav file. I would just like to play it directly as in the phone or camera.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#2 Post by tempestuous »

You need the uncommon AMR audio codec. Use this version of MPlayer-1.0rc2
http://www.murga-linux.com/puppy/viewtopic.php?t=26511

User avatar
jackieflorida
Posts: 118
Joined: Wed 28 May 2008, 17:16
Location: MIAMI

#3 Post by jackieflorida »

Thanks tempestuous.

This version of mplayer with library files works very nicely, both video and audio.

I set Run Action in the Shell Command Line as: mplayer "$@"

Now all of my 3g2 and 3gp files open with a mouse click in mplayer.

In Windows, as mentioned above, Quicktime plays these and .mov files that I have from another digicam.

I did find Quicktime4Linux here:
http://linux.softpedia.com/get/Programm ... -257.shtml

I'm wondering if this could be made into a PET and/or an SFS? I would like to try it in Puppy, but I don't know well enough how to make it.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

Do you have a URL of a small 3g2 file that I can download and play with?
[url]https://bkhome.org/news/[/url]

User avatar
jackieflorida
Posts: 118
Joined: Wed 28 May 2008, 17:16
Location: MIAMI

#5 Post by jackieflorida »

Re BarryK request:

I have uploaded three .3g2 and one .mov videos as samples:

3g2 videos taken on an LG DARE cell phone at 640X480 and 8khz

1. motorcycle.3g2: 681K 5sec motorcycle sound
2. PrinceRings.3g2: 5923K 40sec dog voice sound
3. WaltzAcrossTX.3g2: 34M 3min49sec Kentuckers Blue Grass Band sound

MOV video taken on a Panasonic Lumix digicam at 320X240 and 8khz

4. movieSet.MOV: 2522 K 15sec general background noise

Folder here: http://www.myotherdrive.com/dyn/ls/575. ... 3g2Samples

When run in Gxine the properties are shown on the main screen, but at this point for me there is no sound for the 3g2's but good video. I would prefer to add the codec for the sound but at this point I don't know how to do that.

For me, Mplayer locks up when run from the Menu, but works fine via Console. That is why I used the shell command in the Set Run Action above. The sound is only 8khz so the music quality is not good but kind of OK for voice and general sounds.

The 3g2 and 3gp formats are common on cell phones and both play in Mplayer from Console.

The .MOV files are typically run via Quicktime in Windows. Rendering in Gxine is halting video but good sound. In Mplayer both video and sound is good. I would also like to be able to configure Gxine for the proper playing of this type of video too.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#6 Post by mikeb »

the 3gp's have sound and vision in vlc 0.8.6c
mike

User avatar
jackieflorida
Posts: 118
Joined: Wed 28 May 2008, 17:16
Location: MIAMI

#7 Post by jackieflorida »

Using:
VLC media player 0.8.6h Janus (wxWidgets interface)
(c) 1996-2008 - the VideoLAN Team
Compiled by root@localhost.unknown.
Compiler: gcc version 4.2.2.
Based on SVN revision: exported.

I get good video but no sound for .3g2.
I get both good video and sound for .mov.

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#8 Post by rjbrewer »

In my 4.3.1 install on laptop I have Mplayer 1rc2-puppy412
installed.

Plays the 3g2 and mov. files (sound and video) very well.

http://dotpups.de/puppy4/dotpups/Multimedia/

Have a mplayer icon on desktop and just drag file from
root to icon.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#9 Post by mikeb »

vlc 0.8.6f uses the shared avcodec like xine...0.8.6c it is compiled statically ...IIRC mplayer is too....so the common factor seems to be the included libavcodec...perhaps it was compiled without 3gp support to save space?

mike

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#10 Post by BarryK »

Testing in Quirky, which has xine, and ffmpeg compiled recently in T2, I get video and sound for movieSet.MOV, but for the .3g2 files I get video but no sound.
[url]https://bkhome.org/news/[/url]

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#11 Post by tempestuous »

The reason my MPlayer package plays 3gp audio is that I compiled it against a separate library: libamr. This library is proprietary.
There's now an opensource decoder for the AMR codec, available since June 2009 -
http://sourceforge.net/projects/opencore-amr/
I'm not sure if MPlayer/Xine/VLC can be compiled against this new library.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#12 Post by mikeb »

From the media info...and I don't have the external libamr either and -vvv gave me no clues either..

mikr
Attachments
vid.png
(30.92 KiB) Downloaded 1522 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#13 Post by BarryK »

tempestuous wrote:The reason my MPlayer package plays 3gp audio is that I compiled it against a separate library: libamr. This library is proprietary.
There's now an opensource decoder for the AMR codec, available since June 2009 -
http://sourceforge.net/projects/opencore-amr/
I'm not sure if MPlayer/Xine/VLC can be compiled against this new library.
ffmpeg from svn now uses the open-source amr codec. The file is 'opencore-amr-0.1.2.tar.gz'. I am just about to do a recompile of ffmpeg in Quirky, with the latest of everything.
[url]https://bkhome.org/news/[/url]

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#14 Post by tempestuous »

BarryK wrote:I am just about to do a recompile of ffmpeg in Quirky, with the latest of everything.
If you have not done so already, for comprehensive encoder/decoder support I suggest these extra libraries to compile against:

LAME
http://lame.sourceforge.net/

FAAD2 & FAAC
http://www.audiocoding.com/downloads.html

Xvid
http://www.xvid.org/Downloads.43.0.html

x264
http://www.videolan.org/developers/x264.html

And enable the newly available RealVideo 3.0 support.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#15 Post by mikeb »

hmm only thing is many other programs use these shared libraries so bundling them in avcodec may be self defeating.
If real video was included would that be available to any player that already uses avcodec since players simply look for decoding ability from its available codecs using the 4cc reference.?..if so how would that work with a player compiled for a particular version of avcodec...eg could the current one used by puppy have this codec added and still work with the current gxine.

regards

mike

ps my vlc was from slack.eu about 2/3 years ago...perhaps they included a beta of the opensource amr codec.

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#16 Post by gposil »

Just a quick note to let you know, Dpup484beta1 released today(in about 30 minutes) has latest FFmpeg with 3g2 and 3gp, as well as xvid, x264, lame and all the GPL codecs. FFPlay in Dpup, can handle just about anything thrown at it.

Cheers
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#17 Post by BarryK »

gposil,
Have you tested your new ffmpeg with those 3g2 files?

I have also been through the exercise of recompiling, with ffmpeg out of svn on December 29, and opencore-amr, x264 and xvid, but I still get video without sound for the 3g2 files (playing with Gxine).
[url]https://bkhome.org/news/[/url]

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#18 Post by gposil »

Hello Barry,

Yes, I tested with the files pointed to by jackieflorida and they play perfectly in Dpup. The difference maybe that Dpup uses FFplay for most movie formats..Dpup doesn't have Gxine or libxine libs...

BTW...as an aside, ffplay also plays just about all known audio format files, with a nice screen visualization as standard...
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#19 Post by tempestuous »

BarryK wrote:I still get video without sound for the 3g2 files (playing with Gxine).
I understood that Xine used its own internal libraries (xine-lib) based on ffmpeg? I wasn't aware that Xine could access the ffmpeg libraries exterally?

But as a test of ffmpeg's ability to play AMR-encoded audio content, it's somewhat indirect to attempt to playback via Xine.
A more direct test would be with the ffmpeg application, itself.

First I would see if ffmpeg can identify the content of the jackieflorida's .3g2 test file

Code: Select all

ffmpeg -i motorcycle.3g2
If the audio seems to be recognised, I would then try to convert it to an uncompressed wav file -

Code: Select all

ffmpeg -i motorcycle.3g2 -acodec pcm_u16 -f wav my-decompress-test.wav
If this proceeds without error, and the resultant uncompressed wav file can be played, then clearly ffmpeg supports the AMR audio codec.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#20 Post by ttuuxxx »

I have video but no sound on 2.14X, I ran gxine from the terminal and this is the output
#gxine --verbose

engine: > executing 'play ();'...
engine: < result: false
xine: found input plugin : file input plugin
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
xine: found demuxer plugin: Apple Quicktime (MOV) and MPEG-4 demux plugin
ffmpeg_video_dec: direct rendering enabled
ffmpeg_audio_dec: increasing buffer to 98304 to avoid overflow.
ffmpeg_audio_dec: couldn't find ffmpeg decoder for buf type 0x33F0000
audio_decoder: no plugin available to handle 'AMR narrow band'
xine: found input plugin : file input plugin
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
demux_dts: unsupported DTS stream type, or not a DTS stream
xine: found demuxer plugin: Elementary MPEG stream demux plugin

so it looks like ffmpeg needs to be compiled with AMR
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply