Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 31/12/2008, à 16:00

gtkshroom

Conversion m2ts en avi: problème

Bonjour,

Pour convertir les vidéos de mon caméscope Sony HDR-TG3E, j'utilise le très pratique script m2tstoavi. Après l'installation, on a le choix entre 2 scripts: m2tstoavi et m2tstoavi.fifo.
Respectivement, le premier marche sans problème et la conversion aboutit à un résultat très correct sans le son.
Le deuxième plante à une étape de la conversion audio, voici le message en sortie:

user@pc-user:~/Bureau$ sudo m2tstoavi.fifo TEST.MTS 
using:
/usr/local/bin/xporthdmv
/usr/local/bin/ldecod
/usr/bin/ffmpeg
/usr/local/bin/m2tstoavi.fifo Starting.
 
xporthdmv -hn TEST.MTS 1 1 1
Unsupported Option: n
xport Transport Stream Demuxer 1.01
program = 1, video channel = 1, audio channel = 1
Program Number = 0 (0x0000), Program Map PID = 31 (0x001f)
Program Number = 1 (0x0001), Program Map PID = 256 (0x0100)
program descriptor = 0x05, 0x04, 0x48, 0x44, 0x4d, 0x56
program descriptor = 0x88, 0x04, 0x0f, 0xff, 0xfc, 0xfc
Video PID = 4113 <0x1011>, type = 0x1b
ES descriptor for stream type 0x1b = 0x05, 0x08, 0x48, 0x44, 0x4d, 0x56, 0xff, 0x1b, 0x43, 0x3f
Audio PID = 4352 <0x1100>, type = 0x81
ES descriptor for stream type 0x81 = 0x05, 0x04, 0x41, 0x43, 0x2d, 0x33
ES descriptor for stream type 0x81 = 0x81, 0x04, 0x04, 0x3c, 0x0e, 0x00
0 frames before first I-frame
High Profile
Level = 4.0
First Video PTS = 0x000189c0
Audio Bitrate = 448000, Audio Sampling Rate = 48000
Audio Mode = 3/2, bsid = 4, bsmod = 0
First Audio PTS = 0x00018420, -1440
ts rate = unspecified
packets for pid    0 <0x0000> = 1115, first = 1, last = 485126
packets for pid   31 <0x001f> = 112, first = 3, last = 484787
packets for pid  256 <0x0100> = 1115, first = 2, last = 485127
packets for pid 4097 <0x1001> = 1115, first = 4, last = 485128
packets for pid 4113 <0x1011> = 444225, first = 5, last = 484750
packets for pid 4352 <0x1100> = 31200, first = 5103, last = 485023
packets for pid 4608 <0x1200> = 4300, first = 1074, last = 482684
packets for pid 8191 <0x1fff> = 2194, first = 1097, last = 485376
coded pictures = 4992, video fields = 0
Ending audio to video PTS difference = 0 ticks, 0.000000 milliseconds
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 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --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:40:31, gcc: 4.3.2
Input #0, ac3, from '/tmp/TEST.ac3':
  Duration: 00:01:39.7, bitrate: 448 kb/s
    Stream #0.0: Audio: liba52, 48000 Hz, 5:1, 448 kb/s
Unknown encoder 'mp3'
ldecod -i bits0001.mpv -o /tmp/TEST.yuv
[1] 6816
ffmpeg -r 25 -s 1440x1080 -aspect 16:10 -vcodec mpeg4 -sameq -i /tmp/TEST.yuv -acodec copy -i /tmp/TEST.mp3 -b 15000k TEST.avi
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 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --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:40:31, gcc: 4.3.2
----------------------------- JM 12.2 (FRExt) -----------------------------
 Decoder config file                    : (null) 
--------------------------------------------------------------------------
 Input H.264 bitstream                  : bits0001.mpv 
 Output decoded YUV                     : /tmp/TEST.yuv 
 Output status file                     : log.dec 
 Input reference file                   : test_rec.yuv does not exist 
                                          SNR values are not available
--------------------------------------------------------------------------
POC must = frame# or field# for SNRs to be correct
--------------------------------------------------------------------------
  Frame       POC   Pic#   QP   SnrY    SnrU    SnrV   Y:U:V  Time(ms)
--------------------------------------------------------------------------
read_new_slice: Found NALU_TYPE_SEI, len 17
read_new_slice: Found NALU_TYPE_SEI, len 105
read_new_slice: Found NALU_TYPE_SEI, len 26
read_new_slice: Found NALU_TYPE_SEI, len 13
read_new_slice: Found NALU_TYPE_SEI, len 5
read_new_slice: Found NALU_TYPE_SEI, len 13
0000(P)         1     0    29  0.0000  0.0000  0.0000  4:2:0   542
read_new_slice: Found NALU_TYPE_SEI, len 13
read_new_slice: Found NALU_TYPE_SEI, len 13
read_new_slice: Found NALU_TYPE_SEI, len 13
0000(B)        -3     1    35  0.0000  0.0000  0.0000  4:2:0   570
read_new_slice: Found NALU_TYPE_SEI, len 13
read_new_slice: Found NALU_TYPE_SEI, len 13
0000(B)        -1     1    36  0.0000  0.0000  0.0000  4:2:0   218
read_new_slice: Found NALU_TYPE_SEI, len 13
read_new_slice: Found NALU_TYPE_SEI, len 13
0000(P)         5     1    33  0.0000  0.0000  0.0000  4:2:0   202
read_new_slice: Found NALU_TYPE_SEI, len 13
Input #0, rawvideo, from '/tmp/TEST.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 1440x1080 [PAR 0:1 DAR 0:1], 25.00 tb(r)
/tmp/TEST.mp3: no such file or directory
user@pc-user:~/Bureau$ read_new_slice: Found NALU_TYPE_SEI, len 13
0000(B)         3     2    33  0.0000  0.0000  0.0000  4:2:0   274

L'installation s'étant bien passée, je ne vois pas où le problème peut bien se trouver.
Je vous remercie d'avance pour votre aide.

Très bonne fin d'année! big_smile

Hors ligne

#2 Le 02/01/2009, à 15:04

gtkshroom

Re : Conversion m2ts en avi: problème

Up Svp :d

Dernière modification par MiCrOsCo-PuCe (Le 05/01/2009, à 19:02)

Hors ligne

#3 Le 11/01/2009, à 23:03

casimir

Re : Conversion m2ts en avi: problème

Unknown encoder 'mp3'

C'est bizarre, Tu devrait essayer de refaire l'install avec le tuto que j'ai fait fait ici,
http://www.lprod.org/wiki/doku.php/vide … ope_m2ts?s
Tu n'utilisera pas un format de sortie AVI mais m2t.

Hors ligne

#4 Le 12/01/2009, à 21:33

gtkshroom

Re : Conversion m2ts en avi: problème

J'ai réinstallé proprement le paquet proposé sur lprod dans ton tutoriel.
J'utilise le script m2tstom2t1280 mais j'obtiens encore une erreur en sortie...

louis@pc-tux:~/Bureau$ m2tstom2t1280 /media/disk/AVCHD/BDMV/STREAM/00006.MTS 
mkdir: ne peut créer le répertoire `/home/louis/m2t1280': Le fichier existe
rm: No match.
rm: No match.
using:
/usr/local/bin/xporthdmv
/usr/local/bin/ldecod
/usr/bin/ffmpeg
/usr/local/bin/m2tstom2t1280 Starting.
 
xporthdmv -hn /media/disk/AVCHD/BDMV/STREAM/00006.MTS 1 1 1
Unsupported Option: n
xport Transport Stream Demuxer 1.01
program = 1, video channel = 1, audio channel = 1
Program Number = 0 (0x0000), Program Map PID = 31 (0x001f)
Program Number = 1 (0x0001), Program Map PID = 256 (0x0100)
program descriptor = 0x05, 0x04, 0x48, 0x44, 0x4d, 0x56
program descriptor = 0x88, 0x04, 0x0f, 0xff, 0xfc, 0xfc
Video PID = 4113 <0x1011>, type = 0x1b
ES descriptor for stream type 0x1b = 0x05, 0x08, 0x48, 0x44, 0x4d, 0x56, 0xff, 0x1b, 0x43, 0x3f
Audio PID = 4352 <0x1100>, type = 0x81
ES descriptor for stream type 0x81 = 0x05, 0x04, 0x41, 0x43, 0x2d, 0x33
ES descriptor for stream type 0x81 = 0x81, 0x04, 0x04, 0x3c, 0x0e, 0x00
0 frames before first I-frame
High Profile
Level = 4.0
Audio Bitrate = 448000, Audio Sampling Rate = 48000
Audio Mode = 3/2, bsid = 4, bsmod = 0
First Video PTS = 0x000189c0
First Audio PTS = 0x00018420, -1440
ts rate = unspecified
packets for pid    0 <0x0000> = 122, first = 1, last = 38750
packets for pid   31 <0x001f> = 13, first = 3, last = 38510
packets for pid  256 <0x0100> = 122, first = 2, last = 38751
packets for pid 4097 <0x1001> = 122, first = 4, last = 38752
packets for pid 4113 <0x1011> = 34075, first = 5, last = 38258
packets for pid 4352 <0x1100> = 3420, first = 38, last = 38543
packets for pid 4608 <0x1200> = 462, first = 652, last = 36882
packets for pid 8191 <0x1fff> = 576, first = 674, last = 38912
coded pictures = 546, video fields = 0
Ending audio to video PTS difference = 2160 ticks, 24.000000 milliseconds
ldecod -i bits0001.mpv -o /home/louis/00006.yuv
----------------------------- JM 14.0 (FRExt) -----------------------------
 Decoder config file                    : (null) 
--------------------------------------------------------------------------
 Input H.264 bitstream                  : bits0001.mpv 
 Output decoded YUV                     : /home/louis/00006.yuv 
 Output status file                     : log.dec 
 Input reference file                   : test_rec.yuv does not exist 
                                          SNR values are not available
--------------------------------------------------------------------------
POC must = frame# or field# for SNRs to be correct
--------------------------------------------------------------------------
  Frame          POC  Pic#   QP    SnrY     SnrU     SnrV   Y:U:V Time(ms)
--------------------------------------------------------------------------
*** buffer overflow detected ***: ldecod terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7e78558]
/lib/tls/i686/cmov/libc.so.6[0xb7e76680]
/lib/tls/i686/cmov/libc.so.6[0xb7e75af5]
ldecod[0x8066343]
ldecod[0x8097cbe]
ldecod[0x806740b]
ldecod[0x8067e6d]
ldecod[0x806a3df]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7d94685]
ldecod[0x8048d31]
======= Memory map: ========
08048000-080ba000 r-xp 00000000 08:03 465836     /usr/local/bin/ldecod
080ba000-080bb000 r--p 00071000 08:03 465836     /usr/local/bin/ldecod
080bb000-080bc000 rw-p 00072000 08:03 465836     /usr/local/bin/ldecod
080bc000-0816e000 rw-p 080bc000 00:00 0 
081a8000-083be000 rw-p 081a8000 00:00 0          [heap]
b1b10000-b1b1d000 r-xp 00000000 08:03 105934     /lib/libgcc_s.so.1
b1b1d000-b1b1e000 r--p 0000c000 08:03 105934     /lib/libgcc_s.so.1
b1b1e000-b1b1f000 rw-p 0000d000 08:03 105934     /lib/libgcc_s.so.1
b1b30000-b7d7e000 rw-p b1b30000 00:00 0 
b7d7e000-b7ed6000 r-xp 00000000 08:03 123171     /lib/tls/i686/cmov/libc-2.8.90.so
b7ed6000-b7ed8000 r--p 00158000 08:03 123171     /lib/tls/i686/cmov/libc-2.8.90.so
b7ed8000-b7ed9000 rw-p 0015a000 08:03 123171     /lib/tls/i686/cmov/libc-2.8.90.so
b7ed9000-b7edc000 rw-p b7ed9000 00:00 0 
b7edc000-b7f00000 r-xp 00000000 08:03 123179     /lib/tls/i686/cmov/libm-2.8.90.so
b7f00000-b7f01000 r--p 00023000 08:03 123179     /lib/tls/i686/cmov/libm-2.8.90.so
b7f01000-b7f02000 rw-p 00024000 08:03 123179     /lib/tls/i686/cmov/libm-2.8.90.so
b7f11000-b7f15000 rw-p b7f11000 00:00 0 
b7f15000-b7f2f000 r-xp 00000000 08:03 105891     /lib/ld-2.8.90.so
b7f2f000-b7f30000 r-xp b7f2f000 00:00 0          [vdso]
b7f30000-b7f31000 r--p 0001a000 08:03 105891     /lib/ld-2.8.90.so
b7f31000-b7f32000 rw-p 0001b000 08:03 105891     /lib/ld-2.8.90.so
bfc1c000-bfc31000 rw-p bffeb000 00:00 0          [stack]
Aborted
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 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --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:40:31, gcc: 4.3.2
Input #0, rawvideo, from '/home/louis/00006.yuv':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: rawvideo, yuv420p, 1440x1080 [PAR 0:1 DAR 0:1], 25.00 tb(r)
Input #1, ac3, from '/home/louis/00006.ac3':
  Duration: 00:00:10.8, bitrate: 448 kb/s
    Stream #1.0: Audio: liba52, 48000 Hz, 5:1, 448 kb/s
Unable to find a suitable output format for '/home/louis/m2t1280/00006.m2t'
/usr/local/bin/m2tstom2t1280 complete.

Je n'ai guère que le script m2tstoavi qui marche mais qui ne me donne pas le son.

Hors ligne

#5 Le 12/01/2009, à 22:06

casimir

Re : Conversion m2ts en avi: problème

Donc tu n'a pas de fichier ici
/home/louis/m2t1280/00006.m2t
lisible avec mplayer


Je ne sais a quoi c'est du.
*** buffer overflow detected ***: ldecod terminated
As tu assez d'espace disque pour le décodage.

J'ai eu fait plein d'install sous ubuntu, jamais eu de probléme !
Je ne suis pas sous ubuntu, donc intrepid pose peu etre un probleme, si c'était le cas j'installerai une ubuntu pour des tests.


En tout cas je ne sais pas s'il y a le meme rapport !!!
https://launchpad.net/+search?field.tex … ed&start=0

Dernière modification par casimir (Le 12/01/2009, à 22:26)

Hors ligne

#6 Le 13/01/2009, à 20:00

gtkshroom

Re : Conversion m2ts en avi: problème

casimir a écrit :

As tu assez d'espace disque pour le décodage.

Je ne pense pas que c'est un problème de place, j'ai plus de 100Go de libre sur ma home et j'ai tenté avec une vidéo de 10 secondes... hmm

casimir a écrit :

Je ne suis pas sous ubuntu, donc intrepid pose peu etre un probleme, si c'était le cas j'installerai une ubuntu pour des tests.

Je peux peut-être essayer sur un hardy en virtualisation, je n'utilisais pas le m2tstoavi.fifo ou m2tstom2t1280 jusqu'à intrepid.

Dernière modification par MiCrOsCo-PuCe (Le 13/01/2009, à 20:02)

Hors ligne

#7 Le 15/01/2009, à 00:20

casimir

Re : Conversion m2ts en avi: problème

J'ai tester a une époque dapper, gusty, hardy au moin ces trois fonctionnait, j'avais meme l'impression qu'il y avait un quatrième. J'ai eu des messages de gens ayant utiliser le script m2ts.tar.gz sur d'autre distrib, dedora et mandriva, et ca marchait aussi, donc c'est dommage. test en virtualisation. je ne suis meme pas doué pour faire ca (virtualiser une distrib), j'entend parler de ca assez souvent, mais ne teste ou utilise ce qui m'est neccessaire. on a bien assez d'occupation comme ca. J'épsére que tu vas y arrivé, tu devrait y arrivé.
http://fr.youtube.com/watch?v=-OgrZ_f_4a0 simpas l'appareil.
Sinon tu peut essayer kdenlive 0.7 nouvelle version. il prend en charge le MTS directement. sous debian c'est pas terrible trop lent et memoire RAM vite saturée,
http://doc.ubuntu-fr.org/kdenlive de gros progrés kdenlive 0.7, dommage pour moi. mais ca viendra ou si tu me dis que ton avchd fonctionne sous ubuntu intrepid, je me ferrai une petite install sur une partition.

Hors ligne