videoedicion.org (v8.3)
Imagen, Audio y Vídeo Digital => Compresión y formatos de vídeo => Mensaje iniciado por: madcrang en 06 de Abril de 2020, 16:59:31
hola,
soy nuevo en el foro y con herramientas de video.
Tengo la necesidad de cambiar un fichero AVC a mp4, pero además tengo que hacerlo en Linux y sin entorno gráfico.
La información del fichero es la siguiente (mediainfo)
# mediainfo GMT20200402-191258_double_click_to_convert_01.avc -f
General
Count : 331
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Complete name : GMT20200402-191258_double_click_to_convert_01.avc
File name extension : GMT20200402-191258_double_click_to_convert_01.avc
File name : GMT20200402-191258_double_click_to_convert_01
File extension : avc
Format : AVC
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Format/Extensions usually used : avc h264 264
Commercial name : AVC
Internet media type : video/H264
File size : 4590868
File size : 4.38 MiB
File size : 4 MiB
File size : 4.4 MiB
File size : 4.38 MiB
File size : 4.378 MiB
File last modification date : UTC 2020-04-02 19:13:26
File last modification date (local) : 2020-04-02 21:13:26
Video
Count : 377
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
Format : AVC
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High@L3
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, CABAC : No
Format settings, Reference frames : 2
Format settings, Reference frames : 2 frames
Internet media type : video/H264
Width : 640
Width : 640 pixels
Height : 480
Height : 480 pixels
Sampled_Width : 640
Sampled_Height : 480
Pixel aspect ratio : 1.000
Display aspect ratio : 1.333
Display aspect ratio : 4:3
Color space : YUV
Chroma subsampling : 4:2:0
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Color range : Limited
colour_range_Source : Stream
He intentado hacer la conversión con ffmpeg, pero siempre con errores:
# ffmpeg -i GMT20200402-191258_double_click_to_convert_01.zoom -framerate 24 -c copy test.mp4
Error: unable to open display
ffmpeg version n4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-avisynth --enable-cuda --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
GMT20200402-191258_double_click_to_convert_01.zoom: No such file or directory
#
el fichero existe, por lo que entiendo que pongo mal alguna de las opciones.
El Sistema es un CENTOS 7 sin entorno gráfico.
La necesidad es hacerlo todo por CLI, sin ventanas.
gracias
Bienvenido madcrang.
El archivo usa el códec H264, así que en principio sólo hay que reencapsular en mp4.
Prueba con HandBrake, tiene versiones para Linux por línea de comandos
https://handbrake.fr/downloads2.php
Saludos
En mediainfo das la información de un archivo .avc mientras que en el comando ffmpeg intentas cargar un archivo .zoom y por eso te da error ya que dice que ese archivo con ese nombre no existe
Es decir el archivo a cargar en ffmpeg debe ser: GMT20200402-191258_double_click_to_convert_01.avc
Yo probaría a cambiar la extensión avc por mp4, muchos programas no entienden la extensión avc y no lo leen