JVC Everio .MOD files - converting to AVI

Discussions Regarding Software

Moderator: Moderators

JVC Everio .MOD files - converting to AVI

Postby Richlion » Sun Nov 09, 2008 19:47

Hello All,

I wonder has anyone tried to use the "transcode" or "ffmpeg" programs to convert MPEG-2 files that are produced by a JVC Everio camcorder? Many people have the same problem with these MPEG-2/AC3 video files.
I could watch the .MOD files with VLC, but after I installed the latest version of AMule, VLC not longer works. Long story....
Anyway, I can still watch the .MOD movies with MPlayer, but there is no audio. Also when I stretch the window, It does not adjust the width and hight accordingly. Yet only MPlayer is the only program that understands the aspect ratio 16:9. When I convert the .MOD files to .AVI I can watch them with audio on MPlayer and all other programs, but Kaffeine, SMPlayer do not understand the width and hight aspect ratio, the videos are squeezed into a square. Why?

I tried plenty of hints on the web, to no avail:
http://bashscripts.org/viewtopic.php?t= ... 925d512000
I've searched all day long.
From the camera specification the video is 720x576, I can chose two options for the acpect ratio and I always use the wide screen 16:9.
Here are the commands I tried:

Code: Select all
transcode -i mod/mov0ca.mod -y xvid -Z 720x576 -o mov0ca.avi

ffmpeg -i ${INFILE} \
       -vcodec "xvid" \
       -aspect 16:9 \
       -s 720x576 \
       -r "25" \
       -b "8900k" \
       -acodec "mp3" \
       -ab "384k" \
       -ar "44100k" \
        ${OUTFILE}


THis is a sample output:
Code: Select all
++ INFILE=sample.mod
++ OUTFILE=sample.avi
++ ffmpeg -i sample.mod -vcodec xvid -aspect 16:9 -s 720x576 -r 25 -b 8900k -acodec mp3 -ar 44100k sample.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i586-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-audio-oss --disable-opts --enable-libmp3lame --enable-libvorbis --enable-libogg --enable-libtheora --enable-libogg --enable-liba52 --enable-dc1394 --enable-xvid --enable-x11grab --enable-libogg --enable-libdts --enable-x264 --enable-libfaad --enable-libfaac --enable-gpl --enable-pp --disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.2
  libavformat version: 51.11.0
  built on Apr 30 2007 08:40:46, gcc: 4.1.1 (Gentoo 4.1.1-r3)
Input #0, mpeg, from 'sample.mod':
  Duration: 00:00:17.0, start: 0.197522, bitrate: 9792 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8900 kb/s, 25.00 fps(r)
  Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 384 kb/s
File 'sample.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'sample.avi':
  Stream #0.0: Video: xvid, yuv420p, 720x576, q=2-31, 8900 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
No accelerated IMDCT transform found
Press [q] to stop encoding


Does anyone have a clue, what I am doing wrong?

As for the "transcode", it seems to think my files are in the aspect ratio 4:3 :
import frame | 720x576 1.25:1 encoded @ 4:3


Code: Select all
++ INFILE=sample.mod
++ OUTFILE=sample960x560.avi
++ transcode -i sample.mod -o sample960x560.avi -y xvid -Z 960x560
transcode v1.0.3 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 2 (80 ms) | AV 80 ms | 0 ms
[transcode] auto-probing source sample.mod (ok)
[transcode] V: import format    | MPEG-2  (V=vob|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V:import frame     | 720x576  1.25:1  encoded @ 4:3
[transcode] V: zoom             | 960x560  1.71:1 (Lanczos3)



I've seen a solution on Windows, using something called SDCopy solves the problem. Maybe this has
something to do with copying the file from the camcorder to Linux?


Regards,
Richard
*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Richlion
Technological Hen
 
Posts: 393
Joined: Sun Nov 11, 2007 2:19
Location: Manchester

Re: JVC Everio .MOD files - converting to AVI

Postby Richlion » Mon Nov 10, 2008 21:48

Oh well, just to let you all know, I think I know why this is happening. I searched and searched and found many people have the same issue. The problem is that although this camcorder does record in full 16:9 aspect ratio, I fails to save the files properly. People using MACs have their own solution. On Windows there are two workarounds - use the Windows video editing software supplied on the CDs, use SDCopy which seems to be able to deal with the problem while copying from the camcorder to the system, finally another tool called Everio Utility. However, I couldn't find the latter anywhere on the web that would get unzipped properly.

I guess I have no other way than to use Windows just to get the files. Disgusting :evil:

I did experiment with the -s and -Z options with the programs I mentioned and the closest I can get to the 16:9 aspect back is with these settings:

transcode -i ${INFILE} -o ${OUTFILE} -y xvid -Z 960x560

ffmpeg -i ${INFILE} \
-vcodec "xvid" \
-s 960x560 \
-r "25" \
-b "8900k" \
-acodec "mp3" \
-ar "44100k" \
-ab "128k" \
${OUTFILE}

Utterly rubish camcorder, I am truly dissapointed. I always regarded JVC as a reputable company, but not any more.

Cheers,
Richard
*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Richlion
Technological Hen
 
Posts: 393
Joined: Sun Nov 11, 2007 2:19
Location: Manchester

Re: JVC Everio .MOD files - converting to AVI

Postby Stupot » Mon Nov 10, 2008 23:12

You can try out some Windows solutions on linux via Wine. I have no idea if someone else has already done it of how well it would work, but it doesn't hurt to give it a try. :)
Stupot
Sagely Hen
 
Posts: 1549
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: JVC Everio .MOD files - converting to AVI

Postby hogbender » Fri Jan 02, 2009 8:05

Hi Richlion,

This is the script that I have created to convert my everio MG465B to kino-friendly format:
ffmpeg -i $1 -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 $2

Here is an example of my output:
Code: Select all
$ handycam MOV004.MOD ianreading.dv
FFmpeg version r11872+debian_3:0.svn20080206-12ubuntu3, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libfaad --enable-libfaadbin --enable-liba52 --enable-liba52bin --enable-libdc1394 --enable-shared --disable-static
  libavutil version: 49.6.0
  libavcodec version: 51.50.0
  libavformat version: 52.7.0
  libavdevice version: 52.0.0
  built on Oct  3 2008 22:41:23, gcc: 4.3.2
Input #0, mpeg, from 'MOV004.MOD':
  Duration: 00:01:04.2, start: 0.206089, bitrate: 6999 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 8400 kb/s, 25.00 tb(r)
    Stream #0.1[0x80]: Audio: liba52, 48000 Hz, stereo, 384 kb/s
Output #0, dv, to 'ianreading.dv':
    Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25.00 tb(c)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1608 fps= 48 q=0.0 Lsize=  225984kB time=64.3 bitrate=28796.4kbits/s   
video:225844kB audio:12054kB global headers:0kB muxing overhead -5.007771%


HTH
hogbender
Baby Hen
 
Posts: 1
Joined: Fri Jan 02, 2009 7:58

Re: JVC Everio .MOD files - converting to AVI

Postby kled » Tue Mar 10, 2009 14:43

Hi,
I hope you find this useful!
I encountered the same problem and I find that mod2avi does not work on my Xubuntu 8.4 desktop.

So I tried adding some more parameters to transcode:

transcode -i MOV00D.MOD -y xvid -Z 720x576 --export_asr 3 --export_par 4 -o MOV00D.AVI

From the man page you can read:

Code: Select all
 
--export_asr C
              set export aspect ratio code C [as input] Valid codes for C are:

               1      1:1

               2      4:3

               3      16:9

               4      2.21:1

Code: Select all
 
 --export_par C[,N]
              set export pixel aspect ratio to C[,N]
              To  encode  anamorphic material, transcode can encode the target
              pixel aspect ratio into the file. This is NOT the actual  aspect
              ratio  of  the  image, but only the amount by which every single
              pixel is stretched when played with an aspect ratio aware appli‐
              cation, like mplayer.

              To  encode  at non standard aspect ratios, set both C and N E.g.
              to make every pixel twice as high as it’s wide  (e.g.  to  scale
              back to normal size after deinterlacing by dropping every second
              line).

              If C and N are specified, the value set  for  C  does  give  the
              pixel  aspect ratio of the width and N the one for the height If
              only C is specified, the table below applies.

              Valid codes for C are

              1   1:1  No stretching

              2   12:11     5:4 image to 4:3  (ex: 720x576 ->  768x576)

              3   10:11     3:2 image to 4:3  (ex: 720x480 ->  640x480)

              4   16:11     5:4 image to 16:9 (ex: 720x576 -> 1024x576)

              5   40:33     3:2 image to 16:9 (ex: 720x480 ->  872x480)


The quality of the output video is not so good, but I saved the aspect ratio.

I hope I did the right thing!
kled
Baby Hen
 
Posts: 1
Joined: Tue Mar 10, 2009 14:30


Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest

cron