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 01/08/2017, à 02:03

fabrigo

pas de piste son dans HandBrakeCLI

Bonjour à tous
Je souhaites convertir les vidéos faites avec mon appareil photo (Canon Powershot G9) à l'aide de HandBrakeCLI, mais celui-ci m'indique qu'il n'a pas trouvé de piste son. La conversion se déroule bien mais la vidéo résultante est muette (la vidéo d'origine a bien une piste son audible).

Voici ce que me donne le log de la conversion :

nous@nous-portable:~/Vidéos/encodage/test HandBrakeCLI$ HandBrakeCLI -i original.AVI -o son.mp4 -e x264 --x264-preset fast --x264-tune film --h264-profile main --h264-level 3.0 -q 23.0 --rotate 1 -a 0 -E faac -B 64 -6 mono -R 48 -O
[01:48:31] hb_init: starting libhb thread
HandBrake 0.10.2 (2016021200) - Linux x86_64 - https://handbrake.fr
2 CPUs detected
Opening original.AVI...
[01:48:31] CPU: Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz
[01:48:31]  - logical processor count: 2
[01:48:31] OpenCL: library not available
[01:48:31] hb_scan: path=original.AVI, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:269: failed opening UDF image original.AVI
disc.c:350: error opening file BDMV/index.bdmv
disc.c:350: error opening file BDMV/BACKUP/index.bdmv
[01:48:31] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[01:48:31] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from 'original.AVI':
  Metadata:
    creation_time   : 2010-05-02 09:20:39
    encoder         : CanonMVI06
  Duration: 00:00:40.00, start: 0.000000, bitrate: 8161 kb/s
    Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 7457 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 1 channels, s16, 705 kb/s
[01:48:31] scan: decoding previews for title 1
Scanning title 1 of 1, preview 8, 80.00 %[01:48:32] scan: 10 previews, 640x480, 30.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[01:48:32] scan: removing audio 0x1 because no bitrate found
[01:48:32] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: original.AVI
  + duration: 00:00:39
  + size: 640x480, pixel aspect: 1/1, display aspect: 1.33, 30.000 fps
  + autocrop: 0/0/0/0
  + support opencl: no
  + support hwd: not built-in
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:39
  + audio tracks:
  + subtitle tracks:
Warning: Could not find audio track '0', skipped
Audio codecs and no valid audio tracks, skipping codec faac
Ignoring sample rate 0, no audio tracks
Ignoring mixdown, no audio tracks
[01:48:32] 1 job(s) to process
[01:48:32] starting job
[01:48:32] sync: expecting 1199 video frames
[01:48:32] job configuration:
[01:48:32]  * source
[01:48:32]    + original.AVI
[01:48:32]    + title 1, chapter(s) 1 to 1
[01:48:32]    + container: avi
[01:48:32]    + data rate: 8161 kbps
[01:48:32]  * destination
[01:48:32]    + son.mp4
[01:48:32]    + container: MPEG-4 (libavformat)
[01:48:32]      + optimized for HTTP streaming (fast start)
[01:48:32]  * video track
[01:48:32]    + decoder: mjpeg
[01:48:32]      + bitrate 7457 kbps
[01:48:32]    + filters
[01:48:32]      + Framerate Shaper (0:27000000:900000)
[01:48:32]        + frame rate: same as source (around 30.000 fps)
[01:48:32]      + Crop and Scale (640:480:0:0:0:0)
[01:48:32]        + source: 640 * 480, crop (0/0/0/0): 640 * 480, scale: 640 * 480
[01:48:32]      + Rotate (rotate & flip image axes) (default settings)
[01:48:32]        + flip vertical/flip horizontal
[01:48:32]    + dimensions: 640 * 480, mod 0
[01:48:32]    + encoder: H.264 (libx264)
[01:48:32]      + preset:  fast
[01:48:32]      + tune:    film
[01:48:32]      + profile: main
[01:48:32]      + level:   3.0
[01:48:32]      + quality: 23.00 (RF)
[01:48:32] Rotate thread started for segment 1
[01:48:32] Rotate thread started for segment 0
[01:48:32] encx264: min-keyint: 30, keyint: 300
[01:48:32] encx264: encoding at constant RF 23.000000
[01:48:32] encx264: unparsed options: level=3.0:ref=2:deblock=-1,-1:8x8dct=0:weightp=1:subme=6:psy-rd=1.00,0.15:vbv-bufsize=10000:vbv-maxrate=10000:rc-lookahead=30
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[01:48:32] reader: first SCR 0 id 0x0 DTS 0
x264 [info]: profile Main, level 3.0
Encoding: task 1 of 1, 95.33 % (32.04 fps, avg 32.88 fps, ETA 00h00m02s)[01:49:07] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (32.03 fps, avg 32.87 fps, ETA 00h00m00s)[01:49:10] work: average encoding speed for job is 32.872784 fps
Muxing: this may take awhile...[01:49:11] mux: track 0, 1200 frames, 8809692 bytes, 1763.41 kbps, fifo 2048
[01:49:11] sync: got 1200 frames, 1199 expected
[01:49:11] render: lost time: 0 (0 frames)
[01:49:11] render: gained time: 0 (0 frames) (0 not accounted for)
[01:49:11] mjpeg-decoder done: 1200 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:4     Avg QP:23.75  size: 35780
x264 [info]: frame P:588   Avg QP:25.79  size: 13285
x264 [info]: frame B:608   Avg QP:29.67  size:  1406
x264 [info]: consecutive B-frames:  1.3% 91.0%  7.8%  0.0%
x264 [info]: mb I  I16..4: 17.3%  0.0% 82.7%
x264 [info]: mb P  I16..4:  2.1%  0.0%  7.0%  P16..4: 36.9% 27.9% 18.5%  0.0%  0.0%    skip: 7.6%
x264 [info]: mb B  I16..4:  0.4%  0.0%  0.2%  B16..8: 11.3%  4.3%  0.5%  direct:15.3%  skip:68.1%  L0:29.4% L1:43.4% BI:27.2%
x264 [info]: coded y,uvDC,uvAC intra: 77.9% 86.5% 47.9% inter: 25.2% 38.4% 10.7%
x264 [info]: i16 v,h,dc,p: 42% 23% 14% 22%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 17%  4%  5%  5%  6%  4%  5%
x264 [info]: i8c dc,h,v,p: 51% 19% 26%  5%
x264 [info]: Weighted P-Frames: Y:3.1% UV:0.2%
x264 [info]: ref P L0: 74.5% 25.5%
x264 [info]: ref B L0: 80.6% 19.4%
x264 [info]: ref B L1: 99.1%  0.9%
x264 [info]: kb/s:1761.99
[01:49:11] libhb: work result = 0

Encode done!

HandBrake has exited.

-> voilà ce que l'on trouve à la fin du scan :
Warning: Could not find audio track '0', skipped
Audio codecs and no valid audio tracks, skipping codec faac
Ignoring sample rate 0, no audio tracks
Ignoring mixdown, no audio tracks

Voilà ce que me donne mediainfo sur le même fichier:

nous@nous-portable:~/Vidéos/encodage/test HandBrakeCLI$ mediainfo original.AVI 
General
Complete name                            : original.AVI
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 38.9 MiB
Duration                                 : 40s 0ms
Overall bit rate                         : 8 162 Kbps
Mastered date                            : 2010-05- 2 09:20:39
Writing application                      : CanonMVI06

Video
ID                                       : 0
Format                                   : JPEG
Codec ID                                 : MJPG
Duration                                 : 40s 0ms
Bit rate                                 : 7 452 Kbps
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.809
Stream size                              : 35.5 MiB (91%)

Audio
ID                                       : 1
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : 1
Duration                                 : 40s 0ms
Bit rate mode                            : Constant
Bit rate                                 : 705.6 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 44.1 KHz
Bit depth                                : 16 bits
Stream size                              : 3.36 MiB (9%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 1000 ms (30.00 video frames)
Interleave, preload duration             : 1000 ms

Qu'en pensez-vous ?

Merci

fabrigo

Hors ligne