Jump to content

3g2 video files and sound


javaguy
 Share

Recommended Posts

I seem to remember some discussion of this but can't find it anywhere. (My appologies if this is a repeat.)

 

I have some videos I made on my phone that I've uploaded to my PC. When I try to watch them, however, there's no sound. I've tried importing them into avidemux and kdenlive, but they too play no sound. I tried ffmpeg to convert them, but no luck. I figured, okay, no sound in these files.

 

But then I uploaded some of them to YouTube, and what do you know, the YouTube video has sound! So then I downloaded the .FLV version from YouTube and watched it in Kaffeine, and sure enough there's sound. I was able to convert .flv->.mpeg using ffmpeg. So great, I've got a process by which I can convert from .3g2->.mpeg. But that's kind of a cumbersome process. I'm more accustomed to being able to write a shell script let it do everything.

 

Anybody have any idea what I might be doing wrong? I'm far, far, far from being an expert on video/audio encoders and all the little options they have.

Link to comment
Share on other sites

I can play 3gp (I believe is the same as 3g2), with the VLC player from the PLF repo without any problems. The only extra plugins I have installed are: vlc-plugin-a52, vlc-plugin-flac and vlc-plugin-ogg, also from the PLF repos.

 

If that doesn't work for you: If you attach a small 3g2 file here, I'll see if I can find an easier conversion method for you. :)

Link to comment
Share on other sites

I don't hear sound with VLC either. I'm really looking for a way to convert to mpeg; I don't so much mind if I can't watch them as 3g2, as long as I can convert to mpeg. When I convert to mpeg I get mpeg with no sound, but I know the sound is there in the 3g2 b/c if I upload the 3g2 directly to YouTube I get a .FLV with sound.

 

Here's a short clip.

clip.zip

Link to comment
Share on other sites

If you have mencoder installed (from the PLF) on your system, you could try

mencoder -ovc lavc -lavcopts vcodec=mpeg1video -oac mp3lame /path/to/your-video.3g2 -o /path/to/your-new-video.mpg

I just tried this with a 3gp video, and it creates an mpeg1 video with sound. For an mpeg4 video, you would do

mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame /path/to/your-video.3g2 -o /path/to/your-new-video.mp4

This would (or should) give you a smaller size file with slightly better quality.

Link to comment
Share on other sites

Try this:

....

Here's the problem, the audio difference between 3gp and 3g2:

3g2:

Codec: QCELP

 

3gp:

Codec: AAC LC 'AAC Low Complexity'

 

Here's a working solution, tested on my system:

mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac pcm /home/greg/zget/temp-vid/pole_climb1.3g2 -o /home/greg/Videos/temp-vid/pole_climb1.mp4

It has sound. :)

Link to comment
Share on other sites

I don't understand it? I'm playing your file converted to mp4 (with sound) on the VLC and Kaffeine media players.

 

Please post the output of midentify on your converted video file. Here's my conversion (for comparison) with working sound

[greg@halfway temp-vid]$ midentify pole_climb1.mp4 |grep -i audio
ID_AUDIO_ID=1
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=8000
ID_AUDIO_NCH=1
ID_AUDIO_CODEC=pcm

Link to comment
Share on other sites

Here's what I ran to encode it:

 

mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac pcm /home/greg/zget/temp-vid/pole_climb1.3g2 -o /home/greg/Videos/temp-vid/pole_climb1.mp4

 

Then:

 

[javaguy@localhost 20_july_2008_DLs]$ midentify pole_climb1.mp4 | grep -i audio

ID_AUDIO_ID=1

ID_AUDIO_FORMAT=1

ID_AUDIO_BITRATE=128000

ID_AUDIO_RATE=0

ID_AUDIO_NCH=0

ID_AUDIO_BITRATE=128000

ID_AUDIO_RATE=8000

ID_AUDIO_NCH=1

ID_AUDIO_CODEC=pcm

 

I still have no sound. I did not have the win32-codecs but just installed them. I still have no sound...Do I need to log out and log back in again for them to load up properly? I'll try and report back.

Link to comment
Share on other sites

I'm running out of ideas. Please start kaffeine from the cli, then open the mp4. Play the video for a bit, then close. What is in your terminal for the 'kaffeine: KXineWidget: Use audio driver alsa', do you see any errors?

Link to comment
Share on other sites

[javaguy@localhost ~]$ kaffeine

QSettings: failed to open file '/etc/qt_plugins_3.3rc'

0

kaffeine: No DVB device found.

kaffeine: PLAYLIST

kaffeine: PlayList: add 1 items to playlist

kaffeine: PlayList: Check for kaffeine/noatun/m3u/pls/asx playlist

kaffeine: PlayList: Try loading kaffeine playlist

kaffeine: PlaylistImport: kaffeine: /home/javaguy/.kde/share/apps/kaffeine/playlists/NEW.kaffeine

kaffeine: Window manager: KWin found

kaffeine: SystemTray: Create System Tray

kaffeine: Kaffeine:: Try to load service: xine_part

kaffeine: This is a KaffeinePart...

kaffeine: XinePart: Creating new XinePart...

kaffeine: XinePart: Using xine-config file:

kaffeine: KXineWidget: Using default config file ~/.xine/config

[javaguy@localhost ~]$ kaffeine: XinePart::openURL(): file:///home/javaguy/Videos/phone/20_july_2008_DLs/pole_climb1.3g2

kaffeine: XinePart: Got single track

kaffeine: XinePart::slotPlay()

kaffeine: KXineWidget: Xinerama extension present

kaffeine: KXineWidget: 1 screens detected

kaffeine: KXineWidget: Display aspect ratio (v/h): 1

kaffeine: KXineWidget: Using xine version 1.1.8

kaffeine: KXineWidget: Post-init xine engine

kaffeine: KXineWidget: Use audio driver auto

kaffeine: KXineWidget: Use video driver auto

kaffeine: KXineWidget: Init video driver

kaffeine: KXineWidget: Init audio driver

kaffeine: KXineWidget: Init OSD

kaffeine: KXineWidget: Font for OSD: sans

kaffeine: KXineWidget: Unscaled OSD available

kaffeine: KXineWidget: xine init successful

kaffeine: XinePart: load config

kaffeine: Set volume to: 100

kaffeine: KXineWidget: New visualization plugin: goom

kaffeine: PostFilter: Create Postprocessing Filter: tvtime

kaffeine: PostFilter: Parameter: method

kaffeine: PostFilter: Parameter: enabled

kaffeine: PostFilter: Parameter: pulldown

kaffeine: PostFilter: Parameter: framerate_mode

kaffeine: PostFilter: Parameter: judder_correction

kaffeine: PostFilter: Parameter: use_progressive_frame_flag

kaffeine: PostFilter: Parameter: chroma_filter

kaffeine: PostFilter: Parameter: cheap_mode

kaffeine: PostFilter: Get input

kaffeine: PostFilter: Get output

kaffeine: PostFilter: SetConfig tvtime:method=LinearBlend,enabled=1,pulldown=none,framerate_mode=half_top,judder

_correction=0,use_progressive_frame_flag=1,chroma_filter=0,cheap_mode=1

kaffeine: PostFilter: Set parameter 'method' to value 'LinearBlend'

kaffeine: PostFilter: tvtime Apply integer value 2 on offset 0

kaffeine: PostFilter: Set parameter 'enabled' to value '1'

kaffeine: PostFilter: tvtime Apply integer value 1 on offset 4

kaffeine: PostFilter: Set parameter 'pulldown' to value 'none'

kaffeine: PostFilter: tvtime Apply integer value 0 on offset 8

kaffeine: PostFilter: Set parameter 'framerate_mode' to value 'half_top'

kaffeine: PostFilter: tvtime Apply integer value 1 on offset 12

kaffeine: PostFilter: Set parameter 'judder_correction' to value '0'

kaffeine: PostFilter: tvtime Apply integer value 0 on offset 16

kaffeine: PostFilter: tvtime Apply integer value 0 on offset 16

kaffeine: PostFilter: Set parameter 'use_progressive_frame_flag' to value '1'

kaffeine: PostFilter: tvtime Apply integer value 1 on offset 20

kaffeine: PostFilter: Set parameter 'chroma_filter' to value '0'

kaffeine: PostFilter: tvtime Apply integer value 0 on offset 24

kaffeine: PostFilter: Set parameter 'cheap_mode' to value '1'

kaffeine: PostFilter: tvtime Apply integer value 1 on offset 28

kaffeine: PostFilter: tvtime Apply integer value 1 on offset 28

kaffeine: KXineWidget: Deinterlace enabled: 1

kaffeine: PostFilter: Get output

kaffeine: PostFilter: Get input

kaffeine: KXineWidget: Playing: file:///home/javaguy/Videos/phone/20_july_2008_DLs/pole_climb1.3g2

kaffeine: KXineWidget: xine event: channels changed

kaffeine: KXineWidget: New video frame size: 176x144 - aspect ratio: 1

kaffeine: KXineWidget: Switch to audio channel -1

kaffeine: XinePart: xine is playing

kaffeine: XinePart: got new frame size from xine

kaffeine: Kaffeine: new video frame size: 176x144

kaffeine: slotSpeedPause()

 

----------------------------------------------------------

 

The "kaffeine: KXineWidget: Switch to audio channel -1" looks suspicious. What might cause that?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...