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 09/01/2010, à 18:07

CasseTaTele

[Résolu] Convertir des vidéos AVCHD (.mts)

La solution est finalement d'utiliser mencoder, cf plus bas ou sinon j'ai mis à jour la doc:
http://doc.ubuntu-fr.org/tutoriel/comme … _avi#liens

mencoder file.mts -o ./file.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000 -fps 50 -vf scale=1280:720

Adaptez cette ligne à vos besoins:
    *      Remplacer -fps 50 par le débit réel (en images par secondes de votre film)
    *      Remplacer scale=1280:720 par la résolution de sortie souhaitée

Message inital:
_____________________________________________________________________________________________________________
Bonjour,

Je suis tombé sur le programme AVCHD Video Converter présenté sur cette page:
http://lprod.org/wiki/doku.php/video:en … _converter

Il semble avoir des fonctionnalités que je rechercher depuis longtemps, à savoir convertir des vidéos full hd propriétaires provenant d'un caméscope numérique vers un format plus libre et éventuellement en réduisant la résolution et la qualité.

Il suffit d'installer les 3 paquets suivants:
http://pourlecole.net/download/jm_15.1-1_i386.deb
http://pourlecole.net/download/xport_1.0.1-2.1_i386.deb
http://pourlecole.net/download/avchdvc_1.7-1_all.deb

Sous Karmic, chez moi, le programme semble fonctionner sauf que je ne trouve pas les vidéos converties à la fin!! c'est ballot!

Voici le log de la conversion:

------------------------------------------------------------
Vidéo entrée (1)
------------------------------------------------------------
Chemin/fichier chargé: /media/data/camera/videos_partage/Brest sous la neige/00102.MTS
Durée de la vidéo en secondes: 30.69
Nombre d'images/seconde: 50.0
Nombre d'images totales dans la vidéo: 1534.5
Résolution de la vidéo: [PAR

* Commande xporthdmv:
xporthdmv -nh "/media/data/camera/videos_partage/Brest sous la neige/00102.MTS" 1 1 1

* Commande ldecod:
ldecod -i bits0001.mpv -o /tmp/avchd_video_converter/tampon/FILE_00001.yuv

* Renommage de: bits0001.mpa en FILE_00001.ac3

* Elimination de bits0001.mpv

------------------------------------------------------------
Temps de rendu total (toutes les vidéos):
------------------------------------------------------------
--> 0 h 3 min 40 sec

Dans ce cas j'ai essayé de convertir un .mts full hd vers du mpeg2 720x576...


Par rapport à ce qui est dit dans l'onglet aide:

3) Cliquez sur le bouton Appliquer et sauver, deux barres de progression se mettent en action (l'une après l'autre) ... attendez la fin du traitement ... un message (juste au dessus du bouton Quitter vous indique dès que c'est terminé).

j'ai une petite différence c'est que lorsque je click sur " Appliquer et sauver" ça me demande d'entrer un nom de fichier, ce que je fais, mais ensuite pas moyen de le retrouver... bizarre...

Dernière modification par CasseTaTele (Le 22/01/2010, à 20:18)

Hors ligne

#2 Le 11/01/2010, à 11:14

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

up? personne n'a essayé ce soft qui semble pourtant prometteur..

Sinon, j'ai convertis quelques vidéos en mpg4 sous windows avec le logiciel propriétaire de la caméra afin de les exploiter sous ubuntu. J'aimerai par exemple mettre quelques vidéos sous youtube, quel format et quelle résolution sélectionner sous avidemux?

Hors ligne

#3 Le 21/01/2010, à 17:30

Grandpeck

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Je serais bien tenté, mais ça me dit que Ldecode est corrompu

Hors ligne

#4 Le 21/01/2010, à 23:43

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Grandpeck a écrit :

Je serais bien tenté, mais ça me dit que Ldecode est corrompu

quoi? qui t'as dit ça? quand? comment?

Hors ligne

#5 Le 22/01/2010, à 12:43

Grandpeck

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

quand je tente de l'installer avec l'installateur de paquet, il me marque "impossible d'ouvrir le paquet jm_15.1-1_i386.deb il est peut être corrompu,..."

Hors ligne

#6 Le 22/01/2010, à 13:00

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

tu veux uniquement convertir ou tu veux faire du montage video en HD ?

Pour le montage en HD, je n'ai trouvé que kdenlive pour faire cela sans me prendre la tête sinon, en se prenant la tête, y a blender mais là, il faut s'entrainer un bon mois pour y arriver !

sinon, ce converteur, je vais l'essayer pour voir ...


CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#7 Le 22/01/2010, à 13:44

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Bon, j'ai essayé mais c'est pas concluant ... j'arrive pas à convertir, il me dit : "

* Détection du système:
-----------------------
Système:  Linux
Noyau:  2.6.31-17-generic
Architecture:  x86_64 ( 64bit )

* Python:
---------
Version de Python:  2.6.4
Compilateur Python:  GCC 4.4.1

* Dépendances:
--------------
/usr/local/bin/xporthdmv
/usr/local/bin/ldecod
/usr/bin/ffmpeg

* Version de PyQt:
------------------
Version de PyQt:  4.6

* Version Ubuntu:
-----------------
9.10

Les librairies pour FFmpeg ...
*  libavdevice-unstripped-52
*  libavfilter-unstripped-0
*  libavformat-unstripped-52
... sont bien installées.
Fichier chargé:  /home/VIDEO/TURQUIE_2009/00283.MTS <type 'unicode'>
Encodage sortie vidéo:  MPEG2 (.mpg)
Résolution sortie:  Résolution d'origine de chaque vidéo

ffmpeg -i "/home/VIDEO/TURQUIE_2009/00283.MTS"

['FFmpeg', 'version', 'SVN-r19352-4:0.5+svn20090706-2ubuntu2,', 'Copyright', '(c)', '2000-2009', 'Fabrice', 'Bellard,', 'et', 'al.\n', '', 'configuration:', '--extra-version=4:0.5+svn20090706-2ubuntu2', '--prefix=/usr', '--enable-avfilter', '--enable-avfilter-lavf', '--enable-vdpau', '--enable-bzlib', '--enable-libgsm', '--enable-libschroedinger', '--enable-libspeex', '--enable-libtheora', '--enable-libvorbis', '--enable-pthreads', '--enable-zlib', '--disable-stripping', '--disable-vhook', '--enable-gpl', '--enable-postproc', '--enable-swscale', '--enable-x11grab', '--enable-libdc1394', '--extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include', '--enable-shared', '--disable-static\n', '', 'libavutil', '', '', '', '', '49.15.', '0', '/', '49.15.', '0\n', '', 'libavcodec', '', '', '', '52.20.', '0', '/', '52.42.', '0\n', '', 'libavformat', '', '', '52.31.', '0', '/', '52.39.', '2\n', '', 'libavdevice', '', '', '52.', '1.', '0', '/', '52.', '2.', '0\n', '', 'libavfilter', '', '', '', '0.', '4.', '0', '/', '', '0.', '4.', '0\n', '', 'libswscale', '', '', '', '', '0.', '7.', '1', '/', '', '0.', '7.', '2\n', '', 'libpostproc', '', '', '51.', '2.', '0', '/', '51.', '2.', '0\n', '', 'built', 'on', 'Oct', '13', '2009', '22:35:00,', 'gcc:', '4.4.1\nAt', 'least', 'one', 'output', 'file', 'must', 'be', 'specified\n']
Traceback (most recent call last):
  File "avchdvc.py", line 618, in appliquer
    lCalc_D = "".join(self.dureeVideo).split(':')
AttributeError: 'Widget' object has no attribute 'dureeVideo'

CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#8 Le 22/01/2010, à 14:14

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

fredthefrenchy a écrit :

tu veux uniquement convertir ou tu veux faire du montage video en HD ?

Faire du montage directement en HD c'est lourd même avce les logiciels spécialisés, et pis ça sert à rien sauf si tu veux graver un blue-ray derrière.
Si c'est pour graver un DVD, autant monter en format DVD, c'est plus léger et plus simple à gérer.

Je veux donc convertir vers un format libre avec une plus faible résolution pour graver un DVD après (avec éventuellement un peu de montage avant).


Bon, j'ai essayé mais c'est pas concluant ... j'arrive pas à convertir, il me dit : "

Comment t'as obtenu ce log?
quand j'ai essayé mon log ne ressemblait pas au tiens, t'as essayé avec AVCHD video converter?


@Grandpeck

quand je tente de l'installer avec l'installateur de paquet, il me marque "impossible d'ouvrir le paquet jm_15.1-1_i386.deb il est peut être corrompu,..."

Peut être une erreur de téléchargement, essaye de le retélécharger et installe le paquet en console avec la commande

dpkg -i jm_15.1-1_i386.deb

(cf la doc: http://doc.ubuntu-fr.org/dpkg)
si ça plante toujours, renvoie l'erreur

Hors ligne

#9 Le 22/01/2010, à 14:17

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Je viens de tomber sur cette page:
http://slacy.com/blog/2008/02/transcodi … -on-linux/

je vais essayer avec mencoder ce week-end pour voir, je vous tiens au courant.

Hors ligne

#10 Le 22/01/2010, à 14:23

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

pour faire les montages même sans être en HD, kdenlive va très bien aussi ...

Les messages, je lkes ai dans le terminal quand je lance AVCHD.

Et tu peux graver des DVD en AVCHD pour les lire en HD sur ta télé avec un lecteur BR (ou une PS3!)


CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#11 Le 22/01/2010, à 17:16

Grandpeck

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

C'est pour faire de l'analyse de donné (filmée donc) mon logiciel d'analyse ne lit pas les MTS. et le format est un peu lourd pour mon PC. De fait, j'aimerai conserver une certaine qualité vidéo, tout en ayant un format plus léger.

Installé, mais je ne trouve pas où ils ont installé le logiciel

Dernière modification par Grandpeck (Le 22/01/2010, à 17:28)

Hors ligne

#12 Le 22/01/2010, à 17:26

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Grandpeck a écrit :

C'est pour faire de l'analyse de donné (filmée donc) mon logiciel d'analyse ne lit pas les MTS. et le format est un peu lourd pour mon PC. De fait, j'aimerai conserver une certaine qualité vidéo, tout en ayant un format plus léger.

Ca ressemble à quelqu'un qui veut la crémière, le beurre et l'argent de la crémière ...

Sinon, tu peux transformer le mpeg4 en mpeg2, une fois transformé, le mpeg2 est moins gourmand en CPU. Juste un, petit coup de ffmpeg suffit là. Exemple pour un format DVD :

ffmpeg -i tonfichier.MTS -target pal-dvd -aspect 16:9 tonfichier.mpeg

(j'ai pas testé la commande)

Dernière modification par fredthefrenchy (Le 22/01/2010, à 17:27)


CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#13 Le 22/01/2010, à 17:29

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

CasseTaTele a écrit :

Je viens de tomber sur cette page:
http://slacy.com/blog/2008/02/transcodi … -on-linux/

je vais essayer avec mencoder ce week-end pour voir, je vous tiens au courant.

ffmpeg est plus performant que mencoder ...


CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#14 Le 22/01/2010, à 17:30

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

fredthefrenchy a écrit :
CasseTaTele a écrit :

Je viens de tomber sur cette page:
http://slacy.com/blog/2008/02/transcodi … -on-linux/

je vais essayer avec mencoder ce week-end pour voir, je vous tiens au courant.

ffmpeg est plus performant que mencoder ...

peut-être mais quelle est la ligne de commande à taper pour transcoder de l'avchd vers mpeg4 ?
apparemment ça ne marche pas...

Hors ligne

#15 Le 22/01/2010, à 17:36

Grandpeck

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Oui, mais bon, pour une thèse, je me permet d'être quelque peu exigeant wink


Bon, j'ai des soucis avec ffmpeg. Mais j'aurais bien testé le logiciel, en partie pour son avantage de pouvoir lancer plusieurs "convertissement" à la suite (ou en simultané) sans avoir à être à côté.




EDIT: j'ai aussi des soucis avec avchd:

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

Dernière modification par Grandpeck (Le 22/01/2010, à 17:48)

Hors ligne

#16 Le 22/01/2010, à 17:55

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

fredthefrenchy a écrit :
ffmpeg -i tonfichier.MTS -target pal-dvd -aspect 16:9 tonfichier.mpeg

(j'ai pas testé la commande)

moi j'ai testé et ça ne marche pas chez moi...

Hors ligne

#17 Le 22/01/2010, à 18:01

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Grandpeck a écrit :

Bon, j'ai des soucis avec ffmpeg. Mais j'aurais bien testé le logiciel, en partie pour son avantage de pouvoir lancer plusieurs "convertissement" à la suite (ou en simultané) sans avoir à être à côté.

EDIT: j'ai aussi des soucis avec avchd:

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

Un mot utile pour ta thèse: Conversion http://www.cnrtl.fr/definition/conversion ( un peu mieux que "convertissement" lol )

sinon le tout début du message: "Unsupported Option: n" indique qu'une mauvaise option a été rentrée, est-ce que tu as mis tout le log?
quelle est la ligne de commande utilisée?
sinon lance avchd converter depuis la console et affiche le log console aussi...

Dernière modification par CasseTaTele (Le 22/01/2010, à 18:02)

Hors ligne

#18 Le 22/01/2010, à 18:08

Grandpeck

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

C'est le log console

(pour conversion, mea culpa, j'ai parfois des troup de mémoire avec les mots, d'où les guillemets ^^)


ça a planté, j'ai retenté la manip:

Les librairies pour FFmpeg ...
*  libavdevice-unstripped-52
*  libavfilter-unstripped-0
*  libavformat-unstripped-52
... sont bien installées.
Fichier chargé:  /home/jean-manu/Documents/Documents/BOULOT/THESE/fichier_video/00008copie.MTS <type 'unicode'>
Encodage sortie vidéo:  MPEG4 (.mp4)
Résolution sortie:  Résolution d'origine de chaque vidéo

ffmpeg -i "/home/jean-manu/Documents/Documents/BOULOT/THESE/fichier_video/00008copie.MTS"

['FFmpeg', 'version', 'SVN-r19352-4:0.5+svn20090706-2ubuntu2,', 'Copyright', '(c)', '2000-2009', 'Fabrice', 'Bellard,', 'et', 'al.\n', '', 'configuration:', '--extra-version=4:0.5+svn20090706-2ubuntu2', '--prefix=/usr', '--enable-avfilter', '--enable-avfilter-lavf', '--enable-vdpau', '--enable-bzlib', '--enable-libgsm', '--enable-libschroedinger', '--enable-libspeex', '--enable-libtheora', '--enable-libvorbis', '--enable-pthreads', '--enable-zlib', '--disable-stripping', '--disable-vhook', '--enable-gpl', '--enable-postproc', '--enable-swscale', '--enable-x11grab', '--enable-libdc1394', '--extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include', '--enable-shared', '--disable-static\n', '', 'libavutil', '', '', '', '', '49.15.', '0', '/', '49.15.', '0\n', '', 'libavcodec', '', '', '', '52.20.', '0', '/', '52.20.', '0\n', '', 'libavformat', '', '', '52.31.', '0', '/', '52.31.', '0\n', '', 'libavdevice', '', '', '52.', '1.', '0', '/', '52.', '1.', '0\n', '', 'libavfilter', '', '', '', '0.', '4.', '0', '/', '', '0.', '4.', '0\n', '', 'libswscale', '', '', '', '', '0.', '7.', '1', '/', '', '0.', '7.', '1\n', '', 'libpostproc', '', '', '51.', '2.', '0', '/', '51.', '2.', '0\n', '', 'built', 'on', 'Oct', '13', '2009', '22:15:16,', 'gcc:', '4.4.1\n[NULL', '@', '0x9d13820]sps_id', 'out', 'of', 'range\n[NULL', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[NULL', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]sps_id', 'out', 'of', 'range\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]sps_id', 'out', 'of', 'range\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]sps_id', 'out', 'of', 'range\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '7', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '31', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]non-existing', 'PPS', 'referenced\n[h264', '@', '0x9d13820]non-existing', 'SPS', '32', 'referenced', 'in', 'buffering', 'period\n[h264', '@', '0x9d13820]B', 'picture', 'before', 'any', 'references,', 'skipping\n[h264', '@', '0x9d13820]decode_slice_header', 'error\n[h264', '@', '0x9d13820]no', 'frame!\n[h264', '@', '0x9d13820]number', 'of', 'reference', 'frames', 'exceeds', 'max', '(probably', 'corrupt', 'input),', 'discarding', 'one\n', '', '', '', 'Last', 'message', 'repeated', '2', 'times\nInput', '#0,', 'mpegts,', 'from', "'/home/jean-manu/Documents/Documents/BOULOT/THESE/fichier_video/00008copie.MTS':\n", '', 'Duration:', '00:42:34.72,', 'start:', '1.040000,', 'bitrate:', '6653', 'kb/s\n', '', 'Program', '1', '\n', '', '', '', 'Stream', '#0.0[0x1011]:', 'Video:', 'h264,', 'yuv420p,', '1440x1080', '[PAR', '4:3', 'DAR', '16:9],', '50', 'tbr,', '90k', 'tbn,', '50', 'tbc\n', '', '', '', 'Stream', '#0.1[0x1100]:', 'Audio:', 'ac3,', '48000', 'Hz,', '5.1,', 's16,', '448', 'kb/s\nAt', 'least', 'one', 'output', 'file', 'must', 'be', 'specified\n']

Durée détectée:  00:42:34.72
Framerate détecté : 50.0
Résolution en entrée détectée : 1440x1080


Durée totale de la vidéo  /home/jean-manu/Documents/Documents/BOULOT/THESE/fichier_video/00008copie.MTS (en secondes):  2554.72
Nombre d'images totales dans la vidéo  /home/jean-manu/Documents/Documents/BOULOT/THESE/fichier_video/00008copie.MTS :  127736.0

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

Hors ligne

#19 Le 22/01/2010, à 18:31

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

C'est vrai qu'en essayant avec ffmpeg directement, je n'y arrive pas !

J'arrive à convertir mes fichiers avec kdenlive sans problème ! Donc, c'est MELT qui doit faire le boulot avant d'envoyer à ffmpeg pour que celui ci ait un format qu'il comprenne (à priori, le MTS, il n'aime pas trop, il ne trouve pas la durée , etc ..)


CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#20 Le 22/01/2010, à 18:59

Grandpeck

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Oulà oulà!!

Mais c'est que ce logiciel enregistre les fichier temporaire de conversion dans le répertoire temporaire: /tmp/avchd_video_converter/tampon

J'ai pas assez de mémoire pour ce dossier (20 petit Go tout de même, mais le fichier est volumineux et il ne me reste que 12/13  Go de libre )

Dernière modification par Grandpeck (Le 22/01/2010, à 19:21)

Hors ligne

#21 Le 22/01/2010, à 19:51

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Voila ce que donne ffmpeg:

sebastien@sebastien-desktop:/media/data/camera/videos_partage/Brest sous la neige$ ffmpeg -i 00103.MTS -target pal-dvd -aspect 16:9 test.mpeg
FFmpeg version SVN-r13582, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil version: 49.7.0
  libavcodec version: 51.58.0
  libavformat version: 52.16.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on May  3 2009 12:02:42, gcc: 4.3.2
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]non existing PPS referenced
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
[h264 @ 0xb7c36610]B picture before any references, skipping
[h264 @ 0xb7c36610]decode_slice_header error
[h264 @ 0xb7c36610]no frame!
Input #0, mpegts, from '00103.MTS':
  Duration: 00:00:20.25, start: 1.040000, bitrate: 17160 kb/s
  Program 1 
    Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25.00 tb(r)
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
Output #0, dvd, to 'test.mpeg':
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 25.00 tb(c)
    Stream #0.1: Audio: ac3, 48000 Hz, 0 channels, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

Hors ligne

#22 Le 22/01/2010, à 20:02

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

avant de décoder il faut réussir à lire, donc chez moi j'y arrive avec mplayer en précisant le fps:

mplayer 00010.MTS -fps 50

ça marche comme ça !
(si le fps n'est pas le bon il y a un décalage entre l'image et le son)
je vais donc essayer mencoder qui logiquement devrait y arriver

Hors ligne

#23 Le 22/01/2010, à 20:05

CasseTaTele

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

OK ça roule chez moi !!!!
voici la soluce, trouvé sur ce site: http://slacy.com/blog/2008/02/transcodi … -on-linux/

mencoder 00010.MTS -o ./00010_test.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000 -fps 50 -vf scale=1280:720

yeah baby! big_smile

j'ai rajouté cette solution dans la doc du coup:
http://doc.ubuntu-fr.org/tutoriel/comme … _avi#liens

Dernière modification par CasseTaTele (Le 22/01/2010, à 20:14)

Hors ligne

#24 Le 23/01/2010, à 14:57

fredthefrenchy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Merci pour la soluce ... à tester mais pour moi en 1080i ...


CM MSI 990FXA-GD80 - AMD FX8150 8 x 3.6Ghz - G.SKILL KIT EXTREME3 2 X 4 GO PC17000 ARES CAS9 8192 Mo (2133 MHz), 9-11-10-28 - GeForce GTX560 1Go GDDR5 - Ubuntu 16.04 x86-64 dual boot avec W7 64bits

Hors ligne

#25 Le 02/06/2010, à 14:58

Camy

Re : [Résolu] Convertir des vidéos AVCHD (.mts)

Bonjour j'ai un lumix FZ38 les vidéos prises sont en AVCHD lite j'aimerais simplement les lire sous linux. Je n'y connais pas grand chose... donc explication le plus simple possible si vous avez une solution pour moi :$.
Si c'est indiqué quel que part je suis vraiment désolé je n'ai pas vu.
Bye merci d'avance

Hors ligne