Jump to content

MJPG / PCM / AVI - dashcam videos dont work?


speechles

Recommended Posts

Okay, so got this dashcam thing and it records in AVI. But it records as MJPG within AVI. For some reason ffmpeg does nothing with the file?

 

mTmM2YL.png

 

 

General
Complete name                            : \\SPEECHLES-I3-PC\Media\-- Car\MOVI0002.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 7.94 MiB
Duration                                 : 9s 120ms
Overall bit rate                         : 7 301 Kbps
Director                                 : Generplus
Original source form/Distributed by      : Generplus
Recorded date                            : 2010-06-29
Copyright                                : Generplus

Video
ID                                       : 0
Format                                   : JPEG
Codec ID                                 : MJPG
Duration                                 : 9s 33ms
Bit rate                                 : 12.9 Mbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.465
Stream size                              : 13.8 MiB

Audio
ID                                       : 1
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : 1
Duration                                 : 9s 120ms
Bit rate mode                            : Constant
Bit rate                                 : 256 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 16.0 KHz
Bit depth                                : 16 bits
Stream size                              : 285 KiB (4%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 475 ms (14.26 video frames)

 

These wont play in anything with emby. But they do play just fine in bsplayer on windows and android. Are these videos not supported? Can they be? I dont want to permanently convert them. There are over 200 of them. Thanks.

 

Link to comment
Share on other sites

  • 11 months later...

I have the same situation, a bunch of home videos are in MJPG format which is not recognized, is it a ffmpeg/licence problem, or it could be resolved in future releases?

Link to comment
Share on other sites

trifleneurotic

FWIW, there may some clues in this forum posting:

 

https://emby.media/community/index.php?/topic/39281-new-installation-videos-wont-play/

 

The first suggestion was update ffmpeg then refresh media in web app. Although you may already have the newest ffmpeg version. If so, in that thread there is a link on how to report playback issues. They may ask for a media sample.

Link to comment
Share on other sites

FWIW, there may some clues in this forum posting:

 

https://emby.media/community/index.php?/topic/39281-new-installation-videos-wont-play/

 

The first suggestion was update ffmpeg then refresh media in web app. Although you may already have the newest ffmpeg version. If so, in that thread there is a link on how to report playback issues. They may ask for a media sample.

nope, I tried a fresh static build of ffmpeg but no luck

Link to comment
Share on other sites

Happy2Play

I guess the conflict here is identifying MJPEG differences in Embedded Images vs Video files.

Link to comment
Share on other sites

@@Luke

 

Http://ereader.kiczek.com/MOVI0057.avi

 

If emby hasnt scanned in the media info, but does list the file, it works to play in emby (no media info = always transcodes). Once emby stores media info (ffprobes the file), then it no longer works to play. It just stalls the video player on my roku.

 

The video is me looking for parking at walmart on a rainy day. Nothing big there, this dashcam chops videos into 5 minutes segments hence this one being 0057.. lol

 

Can you get this to work with the sample above, please? 3 more days and its been a year since I created this thread. A nice present for the anniversary date would be to fix this. Lol

Edited by speechles
Link to comment
Share on other sites

@@Luke any thoughts on this? Ffmpeg issue? Work-arounds?

 

Sent from my Nexus 7 using Tapatalk

Link to comment
Share on other sites

Happy2Play

Image vs Video

 

Image
Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1400x2100 [SAR 72:72 DAR 2:3], 90k tbr, 90k tbn, 90k tbc

Video
Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 22255 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
Log showing when you try to play sample provided by speechles. Edited by Happy2Play
Link to comment
Share on other sites

  • 1 month later...

I'm using the recent ffmpeg build (post 3.2.2), and get the following in the debug log:

 

2017-01-17 09:25:26.3333 Info App: /opt/ffmpeg/ffmpeg -ss 00:00:03.000 -i file:"/mnt/Home_Video/Дельфинарий 2013/IMGP4555.AVI" -map_metadata -1 -map_chapters -1 -threads 0 -map -0:v -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset fast -crf 23 -tune zerolatency -maxrate 1616000 -bufsize 3232000 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -flags -global_header -copyts -codec:a:0 aac -strict experimental -ac 1 -ab 384000 -af "adelay=1,aresample=async=1" -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -hls_time 3 -start_number 1 -hls_list_size 0 -y "/var/lib/emby-server/transcoding-temp/097d21fe770b197d73d84a3a25bb4389.m3u8"
2017-01-17 09:25:26.4536 Info App: FFMpeg exited with code 1
2017-01-17 09:25:26.5415 Info App: returning /var/lib/emby-server/transcoding-temp/097d21fe770b197d73d84a3a25bb43891.ts

 

ffmpeg log:

 

{"Protocol":"File","Id":"6b5c12318af9116e9cd2e29629ff036d","Path":"/mnt/Home_Video/Дельфинарий 2013/IMGP4555.AVI","Type":"Default","Container":"AVI","Name":"PCM_S16LE","ETag":"e7bd149dcd82c6ae46270dc56e1ca420","RunTimeTicks":5769940000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"mjpeg","CodecTag":"MJPG","TimeBase":"33333/1000000","CodecTimeBase":"33333/1000000","IsInterlaced":false,"BitRate":48961300,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":30.0003,"RealFrameRate":30.0003,"Type":"EmbeddedImage","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuvj420p","Level":-99,"IsAnamorphic":false},{"Codec":"pcm_s16le","TimeBase":"1/32000","CodecTimeBase":"1/32000","DisplayTitle":"PCM_S16LE 1 ch","IsInterlaced":false,"BitRate":512000,"BitDepth":16,"Channels":1,"SampleRate":32000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":49474543,"RequiredHttpHeaders":{}}

/opt/ffmpeg/ffmpeg -ss 00:00:03.000 -i file:"/mnt/Home_Video/Дельфинарий 2013/IMGP4555.AVI" -map_metadata -1 -map_chapters -1 -threads 0 -map -0:v -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset fast -crf 23 -tune zerolatency -maxrate 1616000 -bufsize 3232000 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -flags -global_header -copyts -codec:a:0 aac -strict experimental -ac 1 -ab 384000 -af "adelay=1,aresample=async=1" -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -hls_time 3 -start_number 1 -hls_list_size 0 -y "/var/lib/emby-server/transcoding-temp/097d21fe770b197d73d84a3a25bb4389.m3u8"


ffmpeg version N-83033-g890320b1c0-static http://johnvansickle.com/ffmpeg/ Copyright © 2000-2017 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-4) 20161202
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 43.100 / 55. 43.100
libavcodec 57. 71.100 / 57. 71.100
libavformat 57. 62.100 / 57. 62.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 68.100 / 6. 68.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[avi @ 0x3cf6a80] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from 'file:/mnt/Home_Video/Дельфинарий 2013/IMGP4555.AVI':
Metadata:
creation_time : 2013-04-21 12:12:14
encoder : PENTAX K-7
Duration: 00:09:36.99, start: 0.000000, bitrate: 49474 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/unknown/unknown), 1280x720, 48961 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, mono, s16, 512 kb/s
Stream map '0:v' matches no streams.
To ignore this, add a trailing '?' to the map.

Link to comment
Share on other sites

Yea i got these a little further for the next release. they won't fail anymore, but won't have video yet, so there's a little more work to do still.

Link to comment
Share on other sites

  • 1 month later...
Ge0rge

I do hear a sound from these files now, will it be possible to add the video playback in the nearest future?

Link to comment
Share on other sites

Please note, once the next server release is available this will require refreshing titles from the detail screen.

Link to comment
Share on other sites

  • 1 year later...

These files are always a challenge. can you provide a sample video for testing? I hid your posting in the other topic as it was the same thing in two different places. thanks.

Link to comment
Share on other sites

Happy2Play

Just tested 2 sample files I acquired and they both played with out issue.  But your ffmpeg log clearly shows the video track being ignored.

Link to comment
Share on other sites

Richard Branches

These files are always a challenge. can you provide a sample video for testing? I hid your posting in the other topic as it was the same thing in two different places. thanks.

 

They are personal videos so I will record another one of the sky or the ground or something else, then I'll reply back.

Link to comment
Share on other sites

  • 2 weeks later...
Richard Branches

What app are you playing with?

 

On Google Chrome tries to play the video but then this error message appears:

 

5c634d1aab2be_Errormessage.png

 

On the latest beta of Android TV I hear audio but I see a black screen.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...