Does anyone used or has anyone used ffmpeg to convert iso to mp4? I have looked at the documents and they explain how to do everything but what I want to do, so it seems. I do use CLI. That is the only command I know that converts from CLI.
There must be some missing libraries or something. Can I ask dnf to look for this? I have all rpms that mention being used with ffmpeg installed. I guess I could post errors posted if that would help. If no one has any idea what is wrong.
On 6/20/22 14:40, Bill Cunningham wrote:
There must be some missing libraries or something. Can I ask dnf to look for this? I have all rpms that mention being used with ffmpeg installed. I guess I could post errors posted if that would help. If no one has any idea what is wrong.
Yes, what command are you trying to run and what is the error message?
On 6/20/2022 5:41 PM, Samuel Sieb wrote:
On 6/20/22 14:40, Bill Cunningham wrote:
There must be some missing libraries or something. Can I ask dnf to look for this? I have all rpms that mention being used with ffmpeg installed. I guess I could post errors posted if that would help. If no one has any idea what is wrong.
Yes, what command are you trying to run and what is the error message?
I have tried all I know to try to get a copy of the output from ffmpeg. There are a lot of errors. It seems to be beyond my reach. The cli input was ffmpeg -i re.iso re.mp4. TO convert. "Device not found" is one of many errors. I have tried these shell command and all I get is an empty file,
ffmpeg -i re.iso re.mp4 > text
The easy way empty file,
I tried ffmpeg -i re.iso re.mp4 >&2> text,
text is always an empty file. Maybe all output from ffmpeg is stdout. stderr doesn't seem to work. Is there something I can try?
On 20Jun2022 16:02, Bill Cunningham bill.cu1234@gmail.com wrote:
Does anyone used or has anyone used ffmpeg to convert iso to mp4? I have looked at the documents and they explain how to do everything but what I want to do, so it seems. I do use CLI. That is the only command I know that converts from CLI.
In addition to what commands you've tried, can you specify what you mean by "iso"? Typically in these forums the term "an ISO" means a CDROM or DVD-ROM image conforming to ISO9660: https://en.wikipedia.org/wiki/ISO_9660 i.e. a data CDROM image.
But I suppose it could mean something else. For example ISO 14496, which defines their base media format. But MP4 conforms to that!
So, when you say "iso" what do you mean in fuller terms?
Cheers, Cameron Simpson cs@cskk.id.au
On Mon, Jun 20, 2022 at 4:03 PM Bill Cunningham bill.cu1234@gmail.com wrote:
Does anyone used or has anyone used ffmpeg to convert iso to mp4? I have looked at the documents and they explain how to do everything but what I want to do, so it seems. I do use CLI. That is the only command I know that converts from CLI.
First you need to mount the ISO file (assuming it isn't encrypted) - something like "sudo mount -o ro re.iso /mnt". Then you can access the contents of the ISO to do the next step - but that step depends on the ISO contents. Is it a data ISO? A DVD? A Blu-Ray?
On 6/20/2022 6:19 PM, Cameron Simpson wrote:
On 20Jun2022 16:02, Bill Cunningham bill.cu1234@gmail.com wrote:
Does anyone used or has anyone used ffmpeg to convert iso to mp4? I have looked at the documents and they explain how to do everything but what I want to do, so it seems. I do use CLI. That is the only command I know that converts from CLI.
In addition to what commands you've tried, can you specify what you mean by "iso"? Typically in these forums the term "an ISO" means a CDROM or DVD-ROM image conforming to ISO9660: https://en.wikipedia.org/wiki/ISO_9660 i.e. a data CDROM image.
But I suppose it could mean something else. For example ISO 14496, which defines their base media format. But MP4 conforms to that!
So, when you say "iso" what do you mean in fuller terms?
Cheers, Cameron Simpson cs@cskk.id.au
It is a dvd image from genisoimage using the -dvd-video switch.
On 6/20/22 15:13, Bill Cunningham wrote:
On 6/20/2022 5:41 PM, Samuel Sieb wrote:
On 6/20/22 14:40, Bill Cunningham wrote:
There must be some missing libraries or something. Can I ask dnf to look for this? I have all rpms that mention being used with ffmpeg installed. I guess I could post errors posted if that would help. If no one has any idea what is wrong.
Yes, what command are you trying to run and what is the error message?
I have tried all I know to try to get a copy of the output from ffmpeg. There are a lot of errors. It seems to be beyond my reach. The cli input was ffmpeg -i re.iso re.mp4. TO convert. "Device not found" is one of many errors. I have tried these shell command and all I get is an empty file,
ffmpeg -i re.iso re.mp4 > text
The easy way empty file,
I tried ffmpeg -i re.iso re.mp4 >&2> text,
text is always an empty file. Maybe all output from ffmpeg is stdout. stderr doesn't seem to work. Is there something I can try?
I'm not quite sure what you're trying to do with ">&2>". That's a very strange redirection attempt. Just "2> text" will send stderr to the file named "text".
What does "file re.iso" show?
On 6/20/2022 6:52 PM, Samuel Sieb wrote:
On 6/20/22 15:13, Bill Cunningham wrote:
On 6/20/2022 5:41 PM, Samuel Sieb wrote:
On 6/20/22 14:40, Bill Cunningham wrote:
There must be some missing libraries or something. Can I ask dnf to look for this? I have all rpms that mention being used with ffmpeg installed. I guess I could post errors posted if that would help. If no one has any idea what is wrong.
Yes, what command are you trying to run and what is the error message?
I have tried all I know to try to get a copy of the output from ffmpeg. There are a lot of errors. It seems to be beyond my reach. The cli input was ffmpeg -i re.iso re.mp4. TO convert. "Device not found" is one of many errors. I have tried these shell command and all I get is an empty file,
ffmpeg -i re.iso re.mp4 > text
The easy way empty file,
I tried ffmpeg -i re.iso re.mp4 >&2> text,
text is always an empty file. Maybe all output from ffmpeg is stdout. stderr doesn't seem to work. Is there something I can try?
I'm not quite sure what you're trying to do with ">&2>". That's a very strange redirection attempt. Just "2> text" will send stderr to the file named "text".
Perhaps there was a syntax error
What does "file re.iso" show?
ISO 9660 'CDROM'
ok Sorry it says "re.iso: UDF filesystem data (version 1.5) 'CDROM'".
OK here is a copy of the output. I was evidently doing something wrong there with the ampersand,
ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/ffmpeg-5.0.1/.package_note-ffmpeg-5.0.1-11.fc36.x86_64.ld' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --enable-version3 --enable-libsmbclient --disable-openssl --enable-b zlib --enable-frei0r --enable-chromaprint --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libshaderc --enable-vulkan --disable-cuda-sdk --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopenh264-dlopen --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsvtav1 --enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi - -enable-lto --enable-libmfx --enable-vaapi --enable-vdpau --enable-openal --enable-opencl --enable-opengl --enable-pthreads --enable-vapoursynth --enable-muxers --enable-demuxers --enable-hwaccels --disable-encoders --disable-decoders --disable-decoder='mpeg4,h263,h264,hevc,vc1' --enable-encoder=',libfdk_aac,ac3,apng,ass,ayuv,bmp,ffv1,ffvhuff,flac,gif,h263_v4l2m2m,h264_amf,h264_nvenc,h264_qsv,h264_v4l2m2m,h264_vaapi,hevc_amf,hevc_nvenc,hevc_qsv,hevc_v4l2m2m,hevc_vaapi,huffyuv,ilbc,jpegls,jpeg2000,libaom,libaom_av1,libcodec2,libgsm,libilbc,libmp3lame,libopenh264,libopenjpeg,libopus,librav1e,libschroedinger,libspeex,libsvtav1,libtheora,libtwolame,libvorbis,libvpx_vp8,libvpx_vp9,libwebp,libwebp_anim,mjpeg,mjpeg_qsv,mjpeg_vaapi,mp2,mp2fixed,mpeg1video,mpeg2video,mpeg2_qsv,mpeg2_vaapi,mpeg4_v4l2m2m,opus,pam,pbm,pcm_alaw,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le _planar,pcm_s8,pcm_s8_planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pcx,pgm,pgmyuv,png,ppm,rawvideo,sgi,srt,ssa,sunrast,targa,text,tiff,v210,v308,v408,v410,vc1_qsv,vc1_v4l2m2m,vorbis,vp8_qsv,vp8_v4l2m2m,vp8_vaapi,vp9_qsv,vp9_vaapi,webvtt,wrapped_avframe,xbm,xwd,y41p,yuv4,zlib,' --enable-decoder=',libfdk_aac,ac3,ansi,apng,ass,av1_qsv,ayuv,bmp,dirac,exr,ffv1,ffvhuff,ffwavesynth,flac,gif,gsm,huffyuv,ilbc,jpeg2000,libaom,libaom_av1,libcodec2,libdav1d,libgsm,libilbc,libopenh264,libopenjpeg,libopus,libschroedinger,libspeex,libvorbis,libvpx_vp8,libvpx_vp9,mjpeg,mjpeg_qsv,mp1,mp1float,mp2,mp2float,mp3,mp3float,mpeg1video,mpeg1_v4l2m2m,mpeg2video,mpeg2_qsv,mpeg2_v4l2m2m,opus,pam,pbm,pcm_alaw,pcm_bluray,pcm_dvd,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s8,pcm_s8_planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le ,pcm_u8,pcx,pgm,pgmyuv,pgssub,pgx,png,ppm,rawvideo,sgi,srt,ssa,sunrast,targa,text,theora,tiff,v210,v210x,v308,v408,v410,vorbis,vp3,vp5,vp6,vp6a,vp6f,vp8,vp8_qsv,vp8_v4l2m2m,vp9,vp9_qsv,vp9_v4l2m2m,webp,webvtt,wrapped_avframe,xbm,xwd,y41p,yuv4,zlib,' libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 [mpeg @ 0x5602c25b3240] stream 4 : no PTS found at end of file, duration not set [mpeg @ 0x5602c25b3240] stream 5 : no TS found at start of file, duration not set [mpeg @ 0x5602c25b3240] Could not find codec parameters for stream 5 (Audio: mp2, 0 channels): unspecified frame size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpeg, from 're.iso': Duration: 00:00:00.50, start: 0.280633, bitrate: 105501764 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m, progressive), 720x480 [SAR 32:27 DAR 16:9], 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 5000000/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:2[0x20]: Subtitle: dvd_subtitle Stream #0:3[0x21]: Subtitle: dvd_subtitle Stream #0:4[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:5[0x1d7]: Audio: mp2, 0 channels Stream mapping: Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg4 (mpeg4_v4l2m2m)) Stream #0:4 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [mpeg4_v4l2m2m @ 0x5602c25bb740] Could not find a valid device [mpeg4_v4l2m2m @ 0x5602c25bb740] can't configure encoder Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed!
lot of text
On 6/20/22 16:11, Bill Cunningham wrote:
Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg4 (mpeg4_v4l2m2m)) Stream #0:4 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [mpeg4_v4l2m2m @ 0x5602c25bb740] Could not find a valid device [mpeg4_v4l2m2m @ 0x5602c25bb740] can't configure encoder
It looks like it's trying to use hardware accelerated encoding, but then doesn't find the hardware. Assuming you have x264-libs installed from rpmfusion, try adding "-vcodec libx264" to the command.
On 6/20/22 16:20, Samuel Sieb wrote:
On 6/20/22 16:11, Bill Cunningham wrote:
Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg4 (mpeg4_v4l2m2m)) Stream #0:4 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [mpeg4_v4l2m2m @ 0x5602c25bb740] Could not find a valid device [mpeg4_v4l2m2m @ 0x5602c25bb740] can't configure encoder
It looks like it's trying to use hardware accelerated encoding, but then doesn't find the hardware. Assuming you have x264-libs installed from rpmfusion, try adding "-vcodec libx264" to the command.
Try running "ffmpeg -encoders | grep 264" to see what you have available. I don't know if the openh264 package provides a usable encoder. You might have to get one from rpmfusion to do encoding.
pkgs include,...
ffmpeg.x86_64 4.4.2-1.fc34 @rpmfusion-free-updates ffmpeg-devel.x86_64 4.4.2-1.fc34 @rpmfusion-free-updates ffmpeg-libs.x86_64 4.4.2-1.fc34 @rpmfusion-free-updates
ffmpeg -codecs
ffmpeg -encoders
did you explore installed encoders/decoders?
On Mon, Jun 20, 2022 at 2:40 PM Bill Cunningham bill.cu1234@gmail.com wrote:
There must be some missing libraries or something. Can I ask dnf to look for this? I have all rpms that mention being used with ffmpeg installed. I guess I could post errors posted if that would help. If no one has any idea what is wrong. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Mon, 2022-06-20 at 18:37 -0400, Bill Cunningham wrote:
It is a dvd image from genisoimage using the -dvd-video switch.
Is this a disk that has worked before?
Alternatively, can you try doing this with another disc that has worked before?
For a standard DVD-video disc, you have menus to contend with, as well as several video files (some related to each other, others not). Your command line seems extraordinarily simple for dealing with the complexity of a video disc.
DVDs, are usually an assembly of 1 GB parts of titles. e.g. Title 1 part 1, title 1 part 2, title 1 part 3, title 2 part 1, title 2 part 2. With various index files so the player knows how to assemble the parts into sane order and interact with the menus.
For me, I'd compile all the title 1 parts into one file, all the title 2 parts into one file, etc. But that would require giving a set of instructions to the tool doing the conversion. And storing the resultant files on something that can handle very large files.
Are you expecting each MPEG file on the disc to become a standalone file on the computer? Are you expecting it to concatenate all the disc MPEGs into one MPEG on the computer? Are you expecting it concatenate all the associated MPEGs on disc from one title into one MPEG on the computer, then start doing the same for any other titles, separately?
I couldn't imagine one simple import ISO export as MP4 command working for any disc I have, other than the odd one or two that I've made with just one short clip on them.
https://www.google.com/search?q=ffmpeg+convert+DVD+to+MP4 Might start you on the right direction.
On 6/20/22 20:19, Tim via users wrote:
On Mon, 2022-06-20 at 18:37 -0400, Bill Cunningham wrote:
It is a dvd image from genisoimage using the -dvd-video switch.
Is this a disk that has worked before?
Alternatively, can you try doing this with another disc that has worked before?
It's not a problem with the file. His problem is a lack of codecs.
For a standard DVD-video disc, you have menus to contend with, as well as several video files (some related to each other, others not). Your command line seems extraordinarily simple for dealing with the complexity of a video disc.
DVDs, are usually an assembly of 1 GB parts of titles. e.g. Title 1 part 1, title 1 part 2, title 1 part 3, title 2 part 1, title 2 part 2. With various index files so the player knows how to assemble the parts into sane order and interact with the menus.
I just did a test and ffmpeg seems to handle it well. It appears to find the main title and process that. I didn't get the menu in the output file. I did test it with a very simple one, but from the description, his will be even more simple.