-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading MP4 via FFMpeg results in DelegateFailed
.
#312
Comments
It looks like you are using the default build in configuration under Linux and I think we need to update the |
Thanx. I am on Mac os using Magick.Net 7.7.0 with FFMpeg 4.0.2 installed. |
I just published Magick.NET 7.8.0.0 that includes a fix for your issue. |
That is awesome.. I will test it tomorrow.. |
Hi.. |
You probably need to install |
I did try to install avconv via This is the exception in get in C#:
But running it from CLI seems to work:
|
@dlemstra I never managed to get it to work via Magick.NET even though it works fine from the CLI. Is there any way I can dig up more details for this issue? |
The problem is that we don't have an error message here. It looks like error messages are directed to the a file but I am not sure why we don't get those. I don't own a MAC so I cannot test this myself easily. Have you tried executing this:
|
Ahaaa...
|
Could you research for me what happened with the |
Okay. I am unsure if I know precisely what nostdin is for, but I understand it to be a flag forcing it to require nothing from standard in. Looking into the docs of libav, it seems to me like it does not require anything from stdin and should work without any similar flag. |
Thanks for looking into this. I think it might be better to remove that flag. Does the command that I gave you earlier work without the |
Sorry for taking so long. (Only working on this project twice a week). Original command: $ 'avconv' -nostdin -v -1 -i 'nwtsv_D_430_r480P.mp4' -vframes 1 -vcodec pam -an -f rawvideo -y 'out.pam'
avconv version 12.3, Copyright (c) 2000-2018 the Libav developers
built on Feb 13 2018 11:17:07 with Apple LLVM version 9.0.0 (clang-900.0.39.2)
Unrecognized option 'nostdin'.
Error splitting the argument list: Option not found Without -stdin: $ 'avconv' -v -1 -i 'nwtsv_D_430_r480P.mp4' -vframes 1 -vcodec pam -an -f rawvideo -y 'out.pam'
$ Without -stdin and increased verbosity: $ 'avconv' -i 'nwtsv_D_430_r480P.mp4' -vframes 1 -vcodec pam -an -f rawvideo -y 'out.pam'
avconv version 12.3, Copyright (c) 2000-2018 the Libav developers
built on Feb 13 2018 11:17:07 with Apple LLVM version 9.0.0 (clang-900.0.39.2)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc5dd801200] overread end of atom 'colr' by 1 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc5dd801200] max_analyze_duration 5000000 reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'nwtsv_D_430_r480P.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
creation_time : 2018-06-18 12:09:41
title : Introduktion til Johannes
artist : Watch Tower Bible and Tract Society of PA
album : Introduktionsfilm til bibelbøger
track : 43
copyright : © 2017 Watch Tower Bible and Tract Society of Pennsylvania Danish
Duration: 00:04:50.48, start: 0.000000, bitrate: 1138 kb/s
Stream #0:0(eng): Audio: aac (LC) [mp4a / 0x6134706D]
44100 Hz, stereo, fltp, 93 kb/s (default)
Metadata:
creation_time : 2018-06-18 12:09:41
handler_name : Core Media Audio
Stream #0:1(und): Video: h264 (Baseline) [avc1 / 0x31637661]
yuv420p, tv, smpte170m/smpte170m/bt709
854x480 [PAR 1:1 DAR 427:240], 1002 kb/s, PAR 1:1 DAR 427:240
29.97 fps, 30k tbn (default)
Metadata:
creation_time : 2018-06-18 12:09:41
handler_name : Core Media Video
Stream #0:2: Video: png
bgra, pc, 600x600
90k tbn
Stream mapping:
Stream #0:1 -> #0:0 (h264 (native) -> pam (native))
Press ctrl-c to stop encoding
Output #0, rawvideo, to 'out.pam':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
creation_time : 2018-06-18 12:09:41
title : Introduktion til Johannes
artist : Watch Tower Bible and Tract Society of PA
album : Introduktionsfilm til bibelbøger
track : 43
copyright : © 2017 Watch Tower Bible and Tract Society of Pennsylvania Danish
encoder : Lavf57.7.2
Stream #0:0(und): Video: pam
rgb24, 854x480 [PAR 1:1 DAR 427:240], q=2-31, 200 kb/s, PAR 1:1 DAR 427:240
30k tbn (default)
Metadata:
creation_time : 2018-06-18 12:09:41
handler_name : Core Media Video
encoder : Lavc57.25.0 pam
frame= 1 fps= 0 q=-0.0 Lsize= 1201kB time=10000000000.00 bitrate= 0.0kbits/s
video:1201kB audio:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% |
Decided to remove the option in the ImageMagick library. This should be resolved in the next release. |
@michaelkrog Can you give it another try with the latest release? |
It works! :) Now my next issue is how to get a specific frame. (The first frame is almost always black in a pro video). |
Prerequisites
Question
How should I read an image from an MP4 file?
I tried to look for answers and the best result I have come to is this:
But the result I get is this:
If I run the command line directly in a terminal, then I get this:
The text was updated successfully, but these errors were encountered: