VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 37
  1. Hi am trying to merge an image in audio file,i have using the following command


    ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4

    But image gets upscaled and blurred,So can u pl tell me how to merge an image in audio file,and the image sholud not be upscaled when am playing in vlc.....
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    What is the image size? 10x10pixels?
    Quote Quote  
  3. when i give small size image such as 104x80....and so on ,it gets upscaled,i need same image size which i merged in audio file
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Even if you choose Video->normal size in VLC?


    But can't you make a bigger image?
    Quote Quote  
  5. i dont need image size be bigger,if i merged small size image the player should show same size image...can u pl tell me the command in ffmpeg .......
    Quote Quote  
  6. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by vijay123 View Post
    ...can u pl tell me the command in ffmpeg .......
    This is a command to try:-
    Code:
    ffmpeg -loop 1 -i image8.jpg -i file.m4a -shortest -c:v libx264 -tune stillimage -c:a copy test.mp4
    Quote Quote  
  7. @bat999:i tried this command,but i got an error like
    Invalid value '1' for option 'loop'
    instead of loop 1 ,i put loop_input 1 again got an error that
    Unable to find a suitable output format for '1' can u say me a solution pl
    Quote Quote  
  8. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by vijay123 View Post
    ... can u say me a solution pl
    Nope.

    You need to copy/paste here command with all output and messages.
    Quote Quote  
  9. E:\FFMpeg_Latest>ffmpeg -loop 1 -i "C:\Documents and Settings\Yali\Desktop\i.jpg
    " -i E:\m4afiles\Sample.m4a -shortest -c:v libx264 -tune stillimage -c:a copy E:
    \m4afiles\Sam.mp4
    FFmpeg version SVN-r23053, Copyright (c) 2000-2010 the FFmpeg developers
    built on May 16 2010 01:59:24 with gcc 4.4.0
    configuration: --enable-static --disable-shared --enable-gpl --enable-avfilter
    --enable-avfilter-lavf --enable-avisynth --enable-postproc --disable-ffplay --e
    nable-libmp3lame --enable-bzlib --enable-zlib --target-os=mingw32 --enable-runti
    me-cpudetect --enable-memalign-hack --enable-libx264 --extra-cflags=-fno-common
    --enable-libfaac --enable-nonfree --enable-libfaad
    libavutil 50.15. 1 / 50.15. 1
    libavcodec 52.67. 0 / 52.67. 0
    libavformat 52.62. 0 / 52.62. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.19. 0 / 1.19. 0
    libswscale 0.10. 0 / 0.10. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    Invalid value '1' for option 'loop'

    E:\FFMpeg_Latest>
    Quote Quote  
  10. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Get a newer ffmpeg from http://ffmpeg.zeranoe.com/builds/ . Use the 32bit static builds.
    Quote Quote  
  11. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    I've never gotten that command to work. Best bet IMO is Virtualdub. Under Video Frame Rate "change so video and audio duration match".

    Either use external encoder to save as MP4 or save as uncompressed AVI and use ffmpeg to convert to MP4.
    Quote Quote  
  12. You can do this with mp4box, no re-encoding or quality loss - but it will only play properly in certain players like VLC, SMPlayer

    Code:
    "PATH\mp4box.exe" -add "PATH\0.jpg" -add "PATH\1.mp4#1" -new "PATH\output.mp4"
    Image Attached Images  
    Image Attached Files
    Quote Quote  
  13. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    Umm...that image looks a bit non-ahlla approved. That type of photo can get the OP castrated in some regions of the world.
    Quote Quote  
  14. Originally Posted by budwzr View Post
    Umm...that image looks a bit non-ahlla approved. That type of photo can get the OP castrated in some regions of the world.

    There you go, jumping to conclusions again

    What if "vijay123" is a white honky living in the Mid West USA, in a Trailer park in Tornado valley ?

    Come on! It's not that bad . Besides, Jessica fricken Alba should get a free pass in all parts of the world



    (If there are objections, PM me and I will remove image , or replace with a more SFW picture)
    Quote Quote  
  15. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    What you say willis?

    Plus, it's not immediately apparent what the picture is, although it doesn't take long to recognize. The "Y" area automatically triggers the brain.

    Hahaha
    Last edited by budwzr; 16th Apr 2013 at 20:56.
    Quote Quote  
  16. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    A very easy way to create an audio with an embedded image is to use FFMpeg IF you download the version 20120426 because sometime in 201205xx they changed something that will not work now. I keep the previous version because it works on a lot that the later ones do not.

    Anyway, just type : "ffmpeg-20120426.exe" -loop 1 -r 1 -shortest -i "shoes.jpg" -i "1.mp4" -acodec copy -vcodec mpeg4 "output.mp4"

    I used the mpeg4 codec because it is less fussy about image width, height, etc.

    Oh yeah... I couldn't find a great image like yours above so I used shoes. LOL
    Image Attached Files
    Last edited by Budman1; 16th Apr 2013 at 22:59. Reason: comment
    Quote Quote  
  17. @budman1: ya almost i got output,but i need image size should not be upscaled ,i need same image size which i merged....can u pl tell me the solution.......
    Quote Quote  
  18. @poisondeathray:hi buddy image got merged ,but image get upscaled, i don't need image size be bigger ,is it possible to merge same image size in audio file...
    Quote Quote  
  19. @poisondeathray:hi buddy image got merged ,but image size get upscaled, i don't need image size be bigger ,is it possible to merge same image size in audio file...
    Quote Quote  
  20. Originally Posted by vijay123 View Post
    @poisondeathray:hi buddy image got merged ,but image size get upscaled, i don't need image size be bigger ,is it possible to merge same image size in audio file...
    What do you mean "upscaled ?"

    Are you using VLC ? This was tested in VLC 2.0.5 - it's the same size as source image

    Click image for larger version

Name:	vlc.jpg
Views:	726
Size:	39.5 KB
ID:	17340

    Man, most people would want to see enlarged picture of that
    Quote Quote  
  21. upscaled in since image get larger size and blurred when am seeing in vlc player
    Quote Quote  
  22. upscaled in since image get larger size and blurred when am seeing in vlc player.....
    Quote Quote  
  23. Originally Posted by vijay123 View Post
    upscaled in since image get larger size and blurred when am seeing in vlc player

    did you test output.mp4 from post #15 ? does it look upscaled ? or does it look like picture in post #20 ?

    Try resetting your VLC preferences : Tools => Preferences => Reset Preferences

    If you used your own jpg, what are the characteristics, what dimensions ?
    Quote Quote  
  24. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Okay I guess I do not understand. The video image is the same size that I used. I used the one from your output and it stays same size as whatever the image starts as. If it is bigger in VLC then I would guess that is a setting in VLC. I use PotPlayer and I had to set the settings to play at the exact size of the video.

    I also used your 104x80 image and created with FFmpeg and played in VLC and the image does not get upscaled:
    Click image for larger version

Name:	ScreenHunter_487 Apr. 16 23.50.jpg
Views:	692
Size:	57.7 KB
ID:	17341
    The image is still 104x80 when played in my VLC. Are you saying it starts in an upscaled size. because mine does not.

    Or do you mean http://www.aolcdn.com/photogalleryassets/comedy/902609/jessica-alba-940pg062510.jpg ?

    You could convert that one for an upscaled UNblurred video but ypour original stay original size when embedded.
    Last edited by Budman1; 17th Apr 2013 at 00:31.
    Quote Quote  
  25. hi poisondeathray ,when u minimize the player image size gets smaller,i need image size be same ,whatever i maximize or minimize when i see my output..... i had attached your output,pl find it,it shows bigger size when i maximize the player
    Last edited by vijay123; 17th Apr 2013 at 09:56.
    Quote Quote  
  26. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    I have several machines with XP I will try it later today when I return. Actually I believe FFMpeg does the encoding with its encoders so I would think it wouldn't matter what OS you use since the MP4 would be encoded identical on both systems UNLESS your VLC codecs(filters) would DISPLAY the video image differently under XP. Did you try other players such at Potplayer, GOM or others? Also, as I mentioned earlier, FFMpeg has changed many times and the version 20120426 was tested to work up through some time in may of 2012. Make sure you are using this version. The later versions will not work with this method.
    Quote Quote  
  27. yes am using ffmpeg 20120426 only,but still am getting an image size as bigger,so u check in xp and reply me buddy
    Quote Quote  
  28. Originally Posted by vijay123 View Post
    hi poisondeathray ,when u minimize the player image size gets smaller,i need image size be same ,whatever i maximize or minimize when i see my output..... i had attached your output,pl find it,it shows bigger size when i maximize the player
    Sorry, I don't understand what you're saying

    I checked in both Xp and Win7 , they play the same

    By default, it will play minimized. If you maximize in VLC and want to prevent scaling, uncheckmark video=>always fit window
    Quote Quote  
  29. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    After checking in XP also, I agree with Poisondeathray. The video is created in ffmpeg the same in all OS and is the size of the original image.
    However, be sure the settings in Potplayer and VLC are set so the windows changes to fit the video and not the other way around. In VLC under tools -> preferences, check the all at the bottom and make sure the Video auto scaling is checked and the Video Scaling factor is set to default 1.0 as well as the zoom video set to 1.0 also.

    To reiterate, all OS (XP and 7) create the video with FFmpeg with the dimensions of the original image. In your case 104x80. When you play them, different players can have their settings that will enlarge or not depending on how you set them.

    Click image for larger version

Name:	ScreenHunter_488 Apr. 18 00.03.jpg
Views:	443
Size:	177.2 KB
ID:	17357
    Quote Quote  
  30. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Okay I think I understand.... Correction to my statement above, uncheck the video auto scaling box above. Click save and then click stop button and then play again. Your image should now stay the same no matter what size you make the window.

    Click image for larger version

Name:	ScreenHunter_488 Apr. 18 00.14.jpg
Views:	502
Size:	63.9 KB
ID:	17358
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!