Log in

View Full Version : How To Import 3gp Video?


EpheMeroN
21st May 2011, 19:05
I have a Samsung smartphone and I record a lot of videos with it of my kids. I want to be able to edit these videos but hardly any video editor accepts 3gp video.

How can I import these into AviSynth, and export them as AVI files using a lossless codec like Lagarith? I would want the audio decoded to WAV as well so it can be edited alongside the video.

Chikuzen
21st May 2011, 19:23
ffms2
http://forum.doom9.org/showthread.php?t=127037

or just re-encode it to ffvhuff/pcm avi with ffmpeg.

EpheMeroN
21st May 2011, 21:29
Okay that worked. I can import the video now into VirtualDub which will allow me to encode it to lossless. However, the audio is not being decoded? Am I doing something wrong?

Here's my script:

LoadPlugin("C:\Program Files\AviSynth 2.5\Plugins\ffms2.dll")
Import("C:\Program Files\AviSynth 2.5\Plugins\FFMS2.avsi")

FFmpegSource2("C:\Users\User1\Desktop\VID_20110507_105531.3gp")

Gavino
21st May 2011, 21:50
By default, FFmpegSource2 ignores audio.
You need to add atrack=-1.

EpheMeroN
22nd May 2011, 02:37
Excellent! That worked perfectly.

Now... any suggestions for upscaling / deblocking? I didn't realize how poor of quality 3gp video can be. I'm seeing 352x288 at 14.xx fps with heavy blocking when I try to upscale. I want to eventually upload to YouTube for family to see.

Blue_MiSfit
22nd May 2011, 04:58
ffmpegsource2 has built in options for quantizer adaptive deblocking. I'm not sure what the proper syntax is, but here is the documentation:

http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html