Opened 10 months ago

Closed 9 months ago

#8846 closed defect (fixed)

Unable to transcode file

Reported by: ksampan Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mxf
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:
"ffmpeg.exe -loglevel warning -y -i C:/content/IPv_Generated_File_USE_THIS.mp4 -r 1/10 -vf scale='min(500,iw)':-2 -f image2 <file_name>.jpg -vf scale='min(640,iw)':-2 -r 29.97 -b:v 800000 -b:a 96000 -ar 48000 C:\transcodeoutput\IPv_Generated_File_USE_THIS.mp4"

FFmpeg version : 4.2

Attachments (1)

c.mp4 (2.0 MB ) - added by ksampan 10 months ago.

Download all attachments as: .zip

Change History (19)

comment:1 by ksampan, 10 months ago

Error : Invalid data found when processing input

comment:2 by ksampan, 10 months ago

Version: unspecified4.2

comment:3 by Carl Eugen Hoyos, 10 months ago

Priority: criticalnormal
Version: 4.2unspecified

Please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output and an input sample to make this a valid ticket.

by ksampan, 10 months ago

Attachment: c.mp4 added

comment:4 by vschweitzer, 10 months ago

Can you play the input file with any media player? For me,
VLC, Windows Media Player and FFplay all fail.

As far as I can see, the sample file only consists of the
ftyp, a wide and the mdat box, which, I think, does not
make it a valid mp4 file, although I am not sure about that.

comment:5 by Carl Eugen Hoyos, 10 months ago

Resolution: needs_more_info
Status: newclosed

comment:6 by ksampan, 10 months ago

Resolution: needs_more_info
Status: closedreopened

Hello sorry for the delayed response. I have compressend and sent the file as it is limited to 2mb(This is followed from ffmpeg official website). I am sharing the original video via google drive (https://drive.google.com/file/d/1D9h2QLzHj9BBBUoENQHl3SKgp3dx1Ej1/view?usp=sharing)

comment:7 by Carl Eugen Hoyos, 10 months ago

Component: undeterminedavformat
Keywords: mxf added
Reproduced by developer: set
Version: unspecifiedgit-master

Could you elaborate a little on this ticket? How was the file created?

Patch sent.

comment:8 by Tomas Härdin, 10 months ago

This file is a polyglot, created by "IPV MXF Multiplexer". In other words it is both an MP4 file and an MXF file. One workaround here is to add -f mp4 to the ffmpeg command line. I'm not sure whether the file is supposed to be decoded as MXF, it is glitchy with -f mxf. Waiting for user feedback.

comment:9 by Carl Eugen Hoyos, 10 months ago

Resolution: fixed
Status: reopenedclosed

comment:10 by ksampan, 10 months ago

Resolution: fixed
Status: closedreopened

I'm facing few issue when I put -f mp4 in ffmpeg command. Can you please provide me the command that worked?

comment:11 by Carl Eugen Hoyos, 10 months ago

Resolution: fixed
Status: reopenedclosed

in reply to:  10 comment:12 by Tomas Härdin, 10 months ago

Replying to ksampan:

I'm facing few issue when I put -f mp4 in ffmpeg command. Can you please provide me the command that worked?

ffmpeg -f mp4 -i input [rest of command line]

comment:13 by ksampan, 10 months ago

Resolution: fixed
Status: closedreopened

[swscaler @ 00000156894dfc00] deprecated pixel format used, make sure you did set range correctly
[image2 @ 0000015688ce00c0] Could not get frame filename number 2 from pattern 'C:\test\IPv_Generated_File_USE_THIS.jpg'. Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename.
av_interleaved_write_frame(): Invalid argument
Im facing this issue when I do? I just added that to command line and ran that command.

comment:14 by Carl Eugen Hoyos, 10 months ago

Resolution: fixed
Status: reopenedclosed

comment:15 by ksampan, 10 months ago

Resolution: fixed
Status: closedreopened

Im running in to some other issue when i ran the below command.

ffmpeg.exe -f mp4 -loglevel warning -y -i C:\test\IPv_Generated_File_USE_THIS.mp4 -r 1/10 -vf scale='min(500,iw)':-2 -f image2 C:\test\IPv_Generated_File_USE_THIS.jpg -vf scale='min(640,iw)':-2 -r 29.97 -b:v 800000 -b:a 96000 -ar 48000 C:\test\IPv_Generated_File_USE_THIS1.mp4

comment:16 by Carl Eugen Hoyos, 10 months ago

Resolution: fixed
Status: reopenedclosed

comment:17 by ksampan, 9 months ago

Resolution: fixed
Status: closedreopened

comment:18 by Carl Eugen Hoyos, 9 months ago

Resolution: fixed
Status: reopenedclosed

Please ask all usage questions on the FFmpeg user mailing list.

Note: See TracTickets for help on using tickets.